I am trying to get video play back working using sharp FFMPEG. Currently I have audio working fine. However I am struggling to get video to work. Some video files seem to play fine, however other codecs just cause the output to go solid green. It seems to be MPEG2 videos mostly. I checked the output pixel format and thats the same as working codecs.
I know the routine to display the YUV420 is working as I use it elsewhere to decode Ogg Theora video (not using FFMPEG) which also outputs YUV420. Some videos (mov h.264s) work fine using FFMPEG, so it must be something related to the codec.
I was going to try the latest version of the FFMPEG dlls, but I was struggling to find where they are from, considering there are no official releases.
Incidentally I think I found a bug in the audio sample player. If you try to play video files, the audio track is stuttering. Its because the Stream method doesn't properly discard the video stream packets. It leaves the OpenAL buffer empty so it runs out of buffers. That may be I a bug I introduced messing around with my local version but I don't think it was. It was only a two minute fix, but if you want I can send you my local fixed version of the sample audio player.
Charlie
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am trying to get video play back working using sharp FFMPEG. Currently I have audio working fine. However I am struggling to get video to work. Some video files seem to play fine, however other codecs just cause the output to go solid green. It seems to be MPEG2 videos mostly. I checked the output pixel format and thats the same as working codecs.
I know the routine to display the YUV420 is working as I use it elsewhere to decode Ogg Theora video (not using FFMPEG) which also outputs YUV420. Some videos (mov h.264s) work fine using FFMPEG, so it must be something related to the codec.
I was going to try the latest version of the FFMPEG dlls, but I was struggling to find where they are from, considering there are no official releases.
Incidentally I think I found a bug in the audio sample player. If you try to play video files, the audio track is stuttering. Its because the Stream method doesn't properly discard the video stream packets. It leaves the OpenAL buffer empty so it runs out of buffers. That may be I a bug I introduced messing around with my local version but I don't think it was. It was only a two minute fix, but if you want I can send you my local fixed version of the sample audio player.
Charlie