[FFmpeg-trac] #8075(undetermined:new): ability to play video successfully depends on encoding fps
FFmpeg
trac at avcodec.org
Mon Aug 12 11:20:31 EEST 2019
#8075: ability to play video successfully depends on encoding fps
-------------------------------------+-------------------------------------
Reporter: andromodon | Type: defect
Status: new | Priority: normal
Component: | Version: git-
undetermined | master
Keywords: fps | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Hello.
I am using the latest master branch ffmpeg
(faa9cd312f02cec5f74658319d1119fcaa7f9088) and this vlc on an ubuntu 18.04
machine:
VLC media player 3.0.7.1 Vetinari (revision 3.0.7.1-0-gf3940db4af)
VLC version 3.0.7.1 Vetinari (3.0.7.1-0-gf3940db4af)
I configured ffmpeg with the --enable-gpl --enable-libx264 options before
running "make".
The issue is that sometimes when I'm viewing a video with vlc that was
encoded by ffmpeg, I only see the first frame and get these playback
errors:
[andromodon at yogie bin]$ vlc fcounter_6fps.avi
VLC media player 3.0.7.1 Vetinari (revision 3.0.7.1-0-gf3940db4af)
[000055e6c6702570] main libvlc: Running vlc with the default interface.
Use 'cvlc' to use vlc without interface.
libva info: VA-API version 1.1.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_1
libva info: va_openDriver() returns 0
[00007f3c60c04be0] avcodec decoder: Using Intel i965 driver for Intel(R)
Haswell Mobile - 2.1.0 for hardware decoding
[00007f3c60c04be0] main decoder error: buffer deadlock prevented
[00007f3c60c04be0] avcodec decoder error: more than 5 seconds of late
video -> dropping frame (computer too slow ?)
[00007f3c60c04be0] avcodec decoder error: more than 5 seconds of late
video -> dropping frame (computer too slow ?)
[00007f3c60c04be0] avcodec decoder error: more than 5 seconds of late
video -> dropping frame (computer too slow ?)
[00007f3c60c04be0] avcodec decoder error: more than 5 seconds of late
video -> dropping frame (computer too slow ?)
[00007f3c60c04be0] avcodec decoder error: more than 5 seconds of late
video -> dropping frame (computer too slow ?)
[00007f3c60c04be0] avcodec decoder error: more than 5 seconds of late
video -> dropping frame (computer too slow ?)
[00007f3c60c04be0] avcodec decoder error: more than 5 seconds of late
video -> dropping frame (computer too slow ?)
[00007f3c60c04be0] avcodec decoder error: more than 5 seconds of late
video -> dropping frame (computer too slow ?)
[00007f3c60c04be0] avcodec decoder error: more than 5 seconds of late
video -> dropping frame (computer too slow ?)
[00007f3c60c04be0] avcodec decoder error: more than 5 seconds of late
video -> dropping frame (computer too slow ?)
[00007f3c60c04be0] avcodec decoder error: more than 5 seconds of late
video -> dropping frame (computer too slow ?)
How to reproduce the issue:
Download this example video file:
https://drive.google.com/open?id=1YQ85A_m1HJTvTqITkg0rKRkselCwiHCu
cd to that directory.
Run this command:
for fps in {5..6}; do echo "$fps"; time './ffmpeg' -y -r "$fps" -i
FCounter.mp4 -c:v libx264 -crf 40 fcounter_"$fps"fps.avi; done
Then, view fcounter_5fps.avi and fcoutner_6fps.avi with that vlc version,
and you'll see that while 5 plays just fine, 6 doesn't. Just the first
frame is shown for fcoutner_6fps.avi, and then the errors start scrolling.
I've tried this experiment with fps as integers between 1 and 30, and it
seems that 1-5fps and 9-30fps works fine, but 6-8fps does not.
I'm also attaching the two logs, one from -r 5 and the later one from -r
6.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/8075>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list