VLC gets stuck for 10s on my machine after seeking through a .flv file.
The "--avcodec-hw none -VXv" switches make no difference, problem not present on ffplay.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
This sample works flawlessly for me with vlc.git+libav.git. Can you post the output of vlc -vvv file.flv? What is your installed version of libav/ffmpeg?
Could you point us to a sample again? The link above does not work anymore.
Here it is http://www.mediafire.com/?1phi9o7wc2jdwz1 .
I also wonder if this could be a ffmpeg packaging issue on my distro. I will try making it as close as possible to the libav package and report back.
when vlc opens this file and after it seeks, vlc fetches apparently 10seconds of audio packets, if one tries to seek again or exit before these packets have been played vlc gets "stuck" for a few seconds, if one waits these 10sec before seeking then it seems to work fine
when vlc opens this file and after it seeks, vlc fetches apparently 10seconds of audio packets, if one tries to seek again or exit before these packets have been played vlc gets "stuck" for a few seconds, if one waits these 10sec before seeking then it seems to work fine
How are you building VLC ? And which version of ffmpeg/libav are you using btw?
when parsing the flv, libavformat fails to parse a metadata packet and returns this in a new data stream, this data stream with only a single packet seems to confuse vlc and cause this 10sec seek stuck bug thing.
ive fixed the parsing in libavformat (ffmpeg git master) and also changed the code so that such parse failures should no longer result in such a data stream.
Ill try to backport this fix and workaround to the ffmpeg release branches so it should be in future ffmpeg releases.
VLC should not fail to seek though even if theres a nearly empty data stream
when parsing the flv, libavformat fails to parse a metadata packet and returns this in a new data stream, this data stream with only a single packet seems to confuse vlc and cause this 10sec seek stuck bug thing.
ive fixed the parsing in libavformat (ffmpeg git master) and also changed the code so that such parse failures should no longer result in such a data stream.
Ill try to backport this fix and workaround to the ffmpeg release branches so it should be in future ffmpeg releases.
VLC should not fail to seek though even if theres a nearly empty data stream
That's great.
I applied your commits dc0edf2 and 993b5a2 to ffmpeg 2.3.5 and so far the problem appears to be gone.
Two questions: do I need to apply any of the other patches to libavformat/flvdec.c you pushed at the same time and most important of all, do you think they're safe for general use?
Thanks again for your efforts, this issue had plagued me for months!
I applied your commits dc0edf2 and 993b5a2 to ffmpeg 2.3.5 and so far the problem appears to be gone.
Two questions: do I need to apply any of the other patches to libavformat/flvdec.c you pushed at the same time and most important of all, do you think they're safe for general use?
The 2 should be enough, and they should be safe though of course like with any other bugfix unexpected regressions are never impossible