Opened 11 years ago

Last modified 9 years ago

#1215 closed defect (invalid)

Encoded video is shorter than original source.

Reported by: eloy.de.enige@… Owned by: reimar
Priority: normal Component: core
Version: HEAD Severity: normal
Keywords: Cc: compn
Blocked By: Blocking:
Reproduced by developer: Analyzed by developer:

Description

Here's a test video from our regression test suite, which when encoded is shorter than the original.
The original length is 8.99s, after encoding it's 7.2s. Also mplayer identifies the original source as being 10fps, however QuickTime? reports it to be 8.01fps.

Tested on OS X & Debian and also verified by others in #mplayer. It was suggested there that it might be because of a variable framerate. Which is what it looks like while actually playing the video in QT.

Video: http://superalloy.nl/misc_files/impossible-to-seek.mov

Command: mencoder -of lavf -lavfopts format=mp4 -ovc x264 -x264encopts crf=22 -nosound impossible-to-seek.mov -o impossible-to-seek.m4v

Original:
% mplayer -vo null -frames 0 -identify impossible-to-seek.mov
MPlayer dev-SVN-r26973-4.0.1 (C) 2000-2008 MPlayer Team
CPU: Genuine Intel(R) CPU 1300 @ 1.66GHz (Family: 6, Model: 14, Stepping: 8)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

Playing impossible-to-seek.mov.
libavformat file format detected.
ID_VIDEO_ID=0
[lavf] Video stream found, -vid 0
VIDEO: [rle ] 532x101 24bpp 10.000 fps 0.0 kbps ( 0.0 kbyte/s)
ID_FILENAME=impossible-to-seek.mov
ID_DEMUXER=lavfpref
ID_VIDEO_FORMAT=rle
ID_VIDEO_BITRATE=0
ID_VIDEO_WIDTH=532
ID_VIDEO_HEIGHT=101
ID_VIDEO_FPS=10.000
ID_VIDEO_ASPECT=0.0000
ID_LENGTH=8.99
ID_SEEKABLE=1
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffqtrle] vfm: ffmpeg (QuickTime? Animation (RLE))
==========================================================================
ID_VIDEO_CODEC=ffqtrle
Audio: no sound
Starting playback...

Encoded video:
% mplayer -vo null -frames 0 -identify impossible-to-seek.m4v
MPlayer dev-SVN-r26973-4.0.1 (C) 2000-2008 MPlayer Team
CPU: Genuine Intel(R) CPU 1300 @ 1.66GHz (Family: 6, Model: 14, Stepping: 8)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

Playing impossible-to-seek.m4v.
libavformat file format detected.
ID_VIDEO_ID=0
[lavf] Video stream found, -vid 0
VIDEO: [avc1] 532x102 24bpp 10.000 fps 0.0 kbps ( 0.0 kbyte/s)
ID_FILENAME=impossible-to-seek.m4v
ID_DEMUXER=lavfpref
ID_VIDEO_FORMAT=avc1
ID_VIDEO_BITRATE=0
ID_VIDEO_WIDTH=532
ID_VIDEO_HEIGHT=102
ID_VIDEO_FPS=10.000
ID_VIDEO_ASPECT=0.0000
ID_LENGTH=7.20
ID_SEEKABLE=1
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
ID_VIDEO_CODEC=ffh264
Audio: no sound
Starting playback...

Change History (1)

comment:1 Changed 9 years ago by compn

  • Resolution set to invalid
  • Status changed from new to closed, patriotact@gmail.com

sample is 404, please reopen if this is still a problem (and i'm guessing variable fps is)

Note: See TracTickets for help on using tickets.