This video demonstrates the problem. The video starts at 0, as
demonstrated by looking at the frames such as with "ffprobe
-select_streams 0 -show_frames timing.mp4 |less".

But vlc starts video playback around 2, showing frame 0 at that time,
and ends at the 6th frame (frame 5), not displaying the last four frames
at all. As with bug #1443835, pressing 'e' to advance a frame doesn't
work.

Changing decoding and output options doesn't change this. Seeking to the middle 
of the video, though, does cause vlc to...
1) display frame 5
2) very briefly display frame 6
3) display frames 7, 8, and 9 for the normal time duration.

This could be related to frames 8 and 9 having no decoding-time-stamp
listed in ffprobe, so vlc or libav could decide to decode them
simultaneously (instead of 1 sec apart), and then display the most
recent frame in the buffer (since it's already 2 sec late) each time one
of those frames is decoded. It isn't clear why this doesn't happen for
normal playback though, without seeking.

The video was generated with this command:
 ffmpeg -ss 4.5 -i '『-Project DIVA F-』 - Nostalgic [40_XMJzyQPE].webm' -vf 
"fps=1,split[crop],lutyuv=val/1.2-10:val/2+64:val/2+64[bottom],[crop]crop=iw:ih/4:0:'mod(n,4)*ih/4',[bottom]overlay=0:'mod(n,4)*h'"
 -hide_banner -t 10 timing.mp4

I note that avplay (I don't have ffplay) plays it better; it does
display the first frame only briefly, and then turns black, but all the
rest of the frames are displayed at the correct times. (Totem also works
correctly.)

So it seems like vlc should be getting frames earlier than it is. Since
framerate can be variable, this wouldn't be based on a buffer of a
certain length of time.

** Attachment added: "timing.mp4"
   
https://bugs.launchpad.net/ubuntu/+source/vlc/+bug/1443856/+attachment/4375581/+files/timing.mp4

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1443856

Title:
  Very short videos won't play

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/vlc/+bug/1443856/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to