Opened 5 years ago

Closed 5 years ago

#8075 closed defect (invalid)

ability to play video successfully depends on encoding fps

Reported by: Andy Owned by:
Priority: normal Component: undetermined
Version: git-master Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

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@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.

Attachments (3)

ffmpeg-20190812-171843.log (303.5 KB ) - added by Andy 5 years ago.
-report from -r 5
ffmpeg-20190812-171845.log (301.3 KB ) - added by Andy 5 years ago.
-report for -r6
FCounter.mp4 (887.5 KB ) - added by Andy 5 years ago.
The video file if you don't feel like getting it from google drive.

Download all attachments as: .zip

Change History (4)

by Andy, 5 years ago

Attachment: ffmpeg-20190812-171843.log added

-report from -r 5

by Andy, 5 years ago

Attachment: ffmpeg-20190812-171845.log added

-report for -r6

by Andy, 5 years ago

Attachment: FCounter.mp4 added

The video file if you don't feel like getting it from google drive.

comment:1 by Carl Eugen Hoyos, 5 years ago

Keywords: fps removed
Resolution: invalid
Status: newclosed

Wrong bug tracker?
Please test with other media players and current vlc.

Note: See TracTickets for help on using tickets.