[FFmpeg-devel] [PATCH 2/2] MxPEG decoder

Anatoly Nenashev anatoly.nenashev
Wed Nov 3 18:54:44 CET 2010


On 03.11.2010 18:11, Anatoly Nenashev wrote:
> I have additional question. This patch works fine with ffplay, so this 
> command
>         ./ffplay stream.mxg
> works fine and I see well syncronized video.
>
> But if I run
>         ./ffmpeg -i stream.mxg -f rawvideo /dev/null
> there are a lot of messages:
>         [rawvideo @ 0x30f4d10] st:0 error, non monotone timestamps 1 >= 1
>
> After some researches I found that right command line must be
> ./ffmpeg -i stream.mxg -r 25 -f rawvideo /dev/null
>
> So it meens that user must manually define output FPS, otherwise it 
> will be 1/time_base. In case of mxg demuxer it is 1000000.
> I think that it isn't so user friendly way. What can I do with this 
> issue?
>
>    

I have found only one decision for this issue. I have changed time_base 
in demuxer  for video stream from 1/1000000 to 1/100 and rescale output 
pts from it.
Modified patch in attachment.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: mxg_v8.patch
Type: text/x-patch
Size: 7706 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20101103/2cb22665/attachment.bin>



More information about the ffmpeg-devel mailing list