This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Using Windows Media Player to play a video stream encoded by DM355 MP4V CODEC

Hi,

I am just starting to delve into video with the DM355. My application has me capturing video and saving it to removable storage. The resulting video files must be playable by Windows Media Player.

I cannot get WMP to recognize any of my MPEG files. I can play them with MPlayer, and have also generated some container files with the following mencoder commands:

mencoder.exe -ovc copy -of lavf -otest01.mp4 test01.raw

mencoder.exe -ovc copy -of lavf -o test01.mpg test01.raw

mencoder.exe -ovc copy -of lavf -o test01.avi test01.raw

I thought that WMP would be able to play back the .mp4 file generated by mencoder, but it did not. Same with the .mpg file. Strangely, WMP was able to play back the .avi.

Can anyone point me in the right direction? I'm looking for a simple solution, preferably one involving a pre-determined header appended to the stream before the stream is saved to disk.

 

  • Hi JPM,

    Could you try to generate mp4 using mp4box. I have observed ffmpeg/mencoder generated mp4 files being not played by some other media players like PS3.
    MP4Box seems to generate proper header, etc.
    mp4box -add input.m4v output.mp4

    For .mpg, I have not used it much and therefore not sure how it handles codecs other than mpeg1 and mpeg2.
    With the latest mencoder, I see a lot of errors for the command you have used.
    You can try using ffmpeg to generate mpeg2 transport streams instead.
    ffmpeg -i input.raw -vcodec copy -f mpegts output.mpg

    For details refer to: http://sites.google.com/site/csghone/audio-video-tools

    Regards,
    Chaitanya