Opened 5 years ago

Last modified 5 years ago

#2123 new defect

mplayer -vo yuv4mpeg creates longer clip than the original mkv

Reported by: basinilya@… Owned by: reimar
Priority: normal Component: demuxer
Version: unspecified Severity: normal
Keywords: Cc: cehoyos
Blocked By: Blocking:
Reproduced by developer: Analyzed by developer:

Description

Hi.

media info:

Complete name : C:\2\Uchuu Kyoudai - 24 [480p].mkv

(download link below)

General
Duration : 24mn 10s

Video
Frame rate : 23.810 fps
Original frame rate : 23.976 fps

Audio
Duration : 24mn 10s

The clip length shown in OSD is 24:10 (1450s) and it has 34764 frames.
But mplayer reports 23.810 fps, not 23.976 fps.
It plays without A/V desync, it's probably due to mplayer's syncing
video to audio.

The problem starts when I try to pipe the video to a yuv stream. The
resulting stream has 23.810 fps and the length 1460s (extra 10 seconds).
Then, when I mux it with audio, the clip has wrong length and A/V desync.

This problem seems to be a regression: I have an older Windows build
of mplayer. It reports correct fps.

There are many bugs in bugzilla,

$ mplayer -noconfig all -vo null "$file"
MPlayer SVN-r35421-4.7.2 (C) 2000-2012 MPlayer Team
199 audio & 415 video codecs
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.


Playing Uchuu Kyoudai - 24 [480p].mkv.
libavformat version 54.36.100 (internal)
libavformat file format detected.
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (aac), -aid 0
VIDEO: [H264] 848x480 0bpp 23.810 fps 0.0 kbps ( 0.0 kbyte/s)
Clip info:

creation_time: 2012-09-17 12:10:00

Load subtitles in ./
SUB: Added subtitle file (1): ./Uchuu Kyoudai - 24 [480p].ass
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 54.71.100 (internal)
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, s16le, 0.0 kbit/0.00% (ratio: 0->176400)
Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
Unsupported PixelFormat? 61
Unsupported PixelFormat? 53
Unsupported PixelFormat? 81
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [null] 848x480 => 854x480 Planar YV12
A:1449.9 V:1449.9 A-V: 0.000 ct: 0.046 0/ 0 4% 0% 0.5% 0 0



Exiting... (End of file)

mencoder stats:

linux:

$ natnul=nul; mencoder -quiet -nosound -ovc frameno -vc null -o $natnul "$file"
MEncoder SVN-r35421-4.7.2 (C) 2000-2012 MPlayer Team
199 audio & 415 video codecs
success: format: 0 data: 0x0 - 0x9559744
libavformat version 54.36.100 (internal)
libavformat file format detected.
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (aac), -aid 0
VIDEO: [H264] 848x480 0bpp 23.810 fps 0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:44 fourcc:0x34363248 size:848x480 fps:23.810 ftime:=0.0420
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Writing index...
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Recommended video bitrate for 650MB CD: 3729
Recommended video bitrate for 700MB CD: 4016
Recommended video bitrate for 800MB CD: 4590
Recommended video bitrate for 2 x 650MB CD: 7463
Recommended video bitrate for 2 x 700MB CD: 8038
Recommended video bitrate for 2 x 800MB CD: 9187


Video stream: 0.762 kbit/s (95 B/s) size: 139056 bytes 1460.088 secs 34764 frames

windows:

$ natnul=nul; mencoder -quiet -nosound -ovc frameno -vc null -o $natnul "$file"
MEncoder Sherpya-SVN-r34401-4.6.2 (C) 2000-2011 MPlayer Team
success: format: 0 data: 0x0 - 0x9559744
libavformat file format detected.
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (aac), -aid 0
VIDEO: [H264] 848x480 0bpp 23.976 fps 0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:44 fourcc:0x34363248 size:848x480 fps:23.976 ftime:=0.0417
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Writing index...
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Recommended video bitrate for 650MB CD: 3755
Recommended video bitrate for 700MB CD: 4044
Recommended video bitrate for 800MB CD: 4622
Recommended video bitrate for 2 x 650MB CD: 7515
Recommended video bitrate for 2 x 700MB CD: 8094
Recommended video bitrate for 2 x 800MB CD: 9251


Video stream: 0.767 kbit/s (95 B/s) size: 139056 bytes 1449.948 secs 34764 frames

video torrent:
magnet:?xt=urn:btih:4MVF2BK6BURDPRD2U2NCOVRCUHTL5SNT

Change History (2)

comment:1 Changed 5 years ago by basinilya@…

There are many bugs in bugzilla,

please disregard this.

I'm piping mplayer to mencoder instead of directly using mencoder, because I know no other way to hardsub

comment:2 Changed 5 years ago by cehoyos

  • Cc cehoyos@… added

FFmpeg now supports hardsubs, please remember that MEncoder is not an actively maintained application for several years.

Note: See TracTickets for help on using tickets.