I am trying to use Jave to convert a wmv file into h264(mp4). The final version created by Jave plays fine with VLC player but when I try to use it inside the HTML5 video tag, it is not able to play the file.
I am guessing that the issue is with the attributes I am setting for the video attributes.
Java Code:
videoAttributes.setCodec("mpeg4");
videoAttributes.setTag("mpeg4");
videoAttributes.setBitRate(new Integer(5000));
videoAttributes.setFrameRate(new Integer(30));
videoAttributes.setSize(new VideoSize(512, 384));
encodingAttributes.setVideoAttributes(videoAttributes);
encodingAttributes.setFormat("mp4");
HTML code:
<video controls="true" width=400 height=200>
<source src="path_to_converted_mp4_file" type="video/mp4" />
Not Supported
</video>