[FFmpeg-devel] RV30/40 decoder seek reset

compn tempn
Fri Feb 6 13:11:42 CET 2009


On Fri, 6 Feb 2009 09:45:30 +0200, Kostya wrote:
>On Fri, Feb 06, 2009 at 05:20:08AM +0200, Uoti Urpala wrote:
>> Currently the decoders do not have a .flush() function and produce
>> incorrect output after a seek. Is this just an oversight or would there
>> be something nontrivial to implement?
> 
>Why should they need flush() ? They operate on whole frames and the problem
>is in demuxer (and RM format itself).

someone just reported this bug to me:

D:\>ffmpeg -ss 1 -i movie.rm out2.avi
FFmpeg version SVN-r16573, Copyright (c) 2000-2009 Fabrice Bellard, et
al. configuration: --extra-cflags=-fno-common --enable-memalign-hack
--enable-pthreads --enable-libmp 3lame --enable-libxvid
--enable-libvorbis --enable-libtheora --enable-libspeex
--enable-libfaac --e nable-libgsm --enable-libx264
--enable-libschroedinger --enable-avisynth --enable-swscale --enable-
gpl libavutil     49.12. 0 / 49.12. 0 libavcodec    52.10. 0 / 52.10. 0
  libavformat   52.23. 1 / 52.23. 1
  libavdevice   52. 1. 0 / 52. 1. 0
  libswscale     0. 6. 1 /  0. 6. 1
  built on Jan 13 2009 02:57:09, gcc: 4.2.4
[NULL @ 0x3fe3b0]Unsupported video codec
Input #0, rm, from 'movie.rm':
  Duration: 00:19:23.59, start: 0.000000, bitrate: 227 kb/s
    Stream #0.0: Audio: cook, 22050 Hz, mono, s16, 32 kb/s
    Stream #0.1: Video: rv30, yuv420p, 320x236, 192 kb/s, 12.00 tb(r)
    Stream #0.2: Data: 0x0000
Output #0, avi, to 'out2.avi':
    Stream #0.0: Video: mpeg4, yuv420p, 320x236, q=2-31, 200 kb/s,
12.00 tb(c) Stream #0.1: Audio: mp2, 22050 Hz, mono, s16, 64 kb/s
Stream mapping:
  Stream #0.1 -> #0.0
  Stream #0.0 -> #0.1
Press [q] to stop encoding
[rv30 @ 0x3fdd80]warning: first frame is no keyframe
[rv30 @ 0x3fdd80]warning: first frame is no keyframe
[rv30 @ 0x3fdd80]warning: first frame is no keyframe
[rv30 @ 0x3fdd80]warning: first frame is no keyframe
[rv30 @ 0x3fdd80]warning: first frame is no keyframe
[rv30 @ 0x3fdd80]warning: first frame is no keyframe
[rv30 @ 0x3fdd80]warning: first frame is no keyframe
[rv30 @ 0x3fdd80]warning: first frame is no keyframe
[rv30 @ 0x3fdd80]warning: first frame is no keyframe
[rv30 @ 0x3fdd80]warning: first frame is no keyframe
repeats forever. 

same with mplayer/mencoder
but if you start mplayer and then seek it works fine

-compn




More information about the ffmpeg-devel mailing list