[FFmpeg-trac] #7(FFplay:open): seeking back to beginning of file sometimes fails badly
FFmpeg
trac at avcodec.org
Thu Oct 13 05:44:13 CEST 2011
#7: seeking back to beginning of file sometimes fails badly
---------------------------------+-----------------------------------
Reporter: fpretto | Owner: michael
Type: defect | Status: open
Priority: normal | Component: FFplay
Version: | Resolution:
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 1
Analyzed by developer: 0 |
---------------------------------+-----------------------------------
Comment (by DonMoir):
Not directly related to ffplay, but what I find in my own app, is on a
file by file basis seeking to start (rewind) does not work consistently
and sometimes badly. Audio can be out of sync etc. Some file formats work
well and some not. Sometimes a seek by byte just fails to seek on some
files. Sometimes seek by frame works and sometimes not. So you get the
picture. I have not taken the time to identify all this here yet as I need
to get back to the seek issues in general.
The only way I have gotten this to work for all files is to do a parital
shutdown of ffmpeg related file handling and restart. Fortunately, my
seamless loops still look seamless when doing this on a relatively slow
machine.
The easiest possible seek should be a rewind type and even if you had to
specialize this it might be helpful. The real answer of course is to
revisit seeking all together.
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/7#comment:4>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list