[MEncoder-users] Mpeg duration too short

Peter B. pb at das-werkstatt.com
Mon Jan 16 10:50:36 CET 2012


Zitat von "L. Lee" <llee040 at sbcglobal.net>:

> On 1/13/12 7:12 AM, "Peter B." <pb at das-werkstatt.com> wrote:
>
>> Which mencoder/mplayer revision did you use for your conversion?
>> I'm using the version: "MEncoder SVN-r34537-4.4.5"
>> (which is a very recent SVN checkout)
>
>
> SVN-r34537-4.2.1
>
> I recently fixed a problem by downloading and  building complete source from
> scratch instead of phase compiling. I don't know if that might affect yours,
> of course.

I've now fetched the most recent SVN version (r34577) from scratch,  
compiled it and: Again, the MPEG is too short :(

I'm quite puzzled, how you've managed that your MPEG has the correct  
length - with exactly the same mencoder version I'm using. I'm having  
this problem with more than just *my* mencoder version:

1) MEncoder 1.0rc3-4.4.4 (Debian Squeeze - official package)
2) MEncoder Sherpya-SVN-r34401-4.6.2 (Windows 7)
3) MEncoder SVN-r34577-4.4.5


Here's commandline and uncut output from my latest attempt. The  
commandline used should exactly match the one, successfully used by Lee:

// -------------------------
$ mencoder client/mpeg-duration/input/vx-04690_01-026s.avi -oac lavc  
-channels 2 -o 026s-169.mpg -demuxer lavf -ovc
  lavc -lavcopts  
acodec=ac3:abitrate=320:vqscale=1:mbd=0:vcodec=mpeg2video:aspect=16/9:keyint=25:vrc_buf_size=1835:v
bitrate=7000:vratetol=7000:vrc_maxrate=7500:vrc_minrate=5000 -mc 0.1  
-vf scale=720:480 -of mpeg -mpegopts format=dv
d:tsaf:muxrate=40000 -fps 25 -ofps 25
// -------------------------

MEncoder SVN-r34577-4.4.5 (C) 2000-2012 MPlayer Team
success: format: 0  data: 0x0 - 0x10bea1d0
libavformat version 53.29.100 (internal)
libavformat file format detected.
[lavf] stream 0: video (ffv1), -vid 0
[lavf] stream 1: audio (pcm_s16le), -aid 0
VIDEO:  [FFV1]  720x576  24bpp  25.000 fps    0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:35  fourcc:0x31564646  size:720x576  fps:25.000  ftime:=0.0400
Input fps will be interpreted as 25.000 instead.
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 48000 Hz, 2 ch, s16le, 1536.0 kbit/100.00% (ratio: 192000->192000)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
PACKET SIZE: 2048 bytes, deltascr: 11059
libavcodec version 53.55.105 (internal)
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [scale w=720 h=480]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffv1] vfm: ffmpeg (FFV1 (lossless codec))
==========================================================================
[ac3 @ 0x8b23de0]channel_layout not specified
[ac3 @ 0x8b23de0]No channel layout specified. The encoder will guess  
the layout, but it might be incorrect.
Limiting audio preload to 0.4s.
Increasing audio density to 4.
Movie-Aspect is undefined - no prescaling applied.
[swscaler @ 0x8aa0160]BICUBIC scaler, from yuv422p to yuv420p using MMX2
videocodec: libavcodec (720x480 fourcc=3267706d [mpg2])
[VE_LAVC] Using constant qscale = 1.000000 (VBR).
[mpeg2video @ 0x8b23de0]Warning min_rate > 0 but min_rate != max_rate  
isn't recommended!
[swscaler @ 0x8aa0160]Warning: dstStride is not aligned!
          ->cannot do aligned memory accesses anymore
[swscaler @ 0x8aa0160]Warning: data is not aligned! This can lead to a  
speedloss
Writing header...
INITV: 0.200, 0.160, fps: 25.000
Pos:  60.0s   1500f (99%) 20.65fps Trem:   0min  38mb  A-V:0.044 [5061:320]

Flushing video frames.
Writing index...

Overhead: 1.642% (652169 / 39720055)
Writing header...

Video stream: 5061.373 kbit/s  (632671 B/s)  size: 37960301 bytes   
60.000 secs  1500 frames

Audio stream:  320.000 kbit/s  (40000 B/s)  size: 2400000 bytes  60.000 secs


// -------------------------
$ ffprobe 026s-169.mpg
// -------------------------
ffprobe version N-36728-g794006f Copyright (c) 2007-2012 the FFmpeg developers
   built on Jan 12 2012 09:16:04 with gcc 4.4.5
   configuration: --prefix=/usr/local --enable-gpl --enable-nonfree  
--enable-postproc --enable-swscale --enable-avfilter --enable-pthreads  
--enable-bzlib --enable-libmp3lame --enable-libvorbis --enable-libxvid  
--enable-zlib --enable-libopenjpeg --enable-decoder=png  
--enable-encoder=png --enable-libdirac --enable-libschroedinger
   libavutil      51. 34.100 / 51. 34.100
   libavcodec     53. 55.100 / 53. 55.100
   libavformat    53. 29.100 / 53. 29.100
   libavdevice    53.  4.100 / 53.  4.100
   libavfilter     2. 58.100 /  2. 58.100
   libswscale      2.  1.100 /  2.  1.100
   libswresample   0.  6.100 /  0.  6.100
   libpostproc    51.  2.100 / 51.  2.100
[mpeg @ 0x931d320] max_analyze_duration 5000000 reached at 5000000
Input #0, mpeg, from '026s-169.mpg':
   Duration: 00:00:59.00, start: 0.240000, bitrate: 5474 kb/s
     Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480  
[SAR 32:27 DAR 16:9], 7500 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
     Stream #0:1[0x80]: Audio: ac3, 48000 Hz, stereo, s16, 320 kb/s




More information about the MEncoder-users mailing list