[MPlayer-dev-eng] -of mpeg

Nico nsabbi at libero.it
Thu Sep 25 11:59:54 CEST 2003


the mpeg muxer is totally broken. There was a short period (2/3 weeks) 
when it was working,
then all of a sudden it broke and was never fixed.

MAL wrote:

> Just a quickie...
>
> Can someone explain why when I do:
>
> mencoder -of mpeg -ovc copy -oac copy input.mpg -o output.mpg
>
> where input.mpg is MPEG2 video/audio at SVCD spec, does it state:
>
> "Writing AVI header..."
> "Writing AVI index..."
> and:
> "Fixing AVI header..."
>
> Surely if i'm wanting an MPEG output, (-of mpeg), it should get an 
> MPEG header?
>
> As it stands, not only can I not play the file in a windows player, 
> (the original plays fine), but I also lose the audio stream, (even 
> mplayer reports no audio stream).
>
>
> mencoder output:
>
> success: format: 0  data: 0x0 - 0x2BB82000
> MPEG-PS file format detected.
> VIDEO:  MPEG2  480x576  (aspect 2)  25.000 fps  1200.0 kbps (150.0 
> kbyte/s)
> [V] filefmt:2  fourcc:0x10000002  size:480x576  fps:25.00  ftime:=0.0400
> ========================================================================== 
>
> Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
> MP3lib: init layer2&3 finished, tables done
> AUDIO: 44100 Hz, 2 ch, 16 bit (0x10), ratio: 28000->176400 (224.0 kbit)
> Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
> ========================================================================== 
>
> videocodec: framecopy (480x576 24bpp fourcc=10000002)
> audiocodec: framecopy (format=50 chans=2 rate=44100 bits=16 bps=28000 
> sample=1)
> Writing AVI header...
> Limiting audio preload to 0.4s
> Increasing audio density to 4
> Pos:   0.9s     22f ( 0%)   0fps Trem:   0min   0mb  A-V:0.084 [0:224]
> Skipping frame!
> Pos:   1.2s     32f ( 0%)   0fps Trem:   0min   0mb  A-V:0.080 [1375:224]
> Skipping frame!
> Pos:4020.0s 100501f (100%) 1429fps Trem:   0min 689mb  A-V:0.065 
> [1200:224]
> Writing AVI index...
> Fixing AVI header...
> Video stream: 1200.084 kbit/s  (150010 bps)  size: 603036137 bytes 
> 4019.960 secs  100501 frames
> Audio stream:  224.000 kbit/s  (28000 bps)  size: 112558080 bytes 
> 4019.931 secs
>
>
> mplayer output on playback of resultant file:
>
> Playing output.mpg
> Cache fill:  0.00% (0 bytes)    MPEG-PS file format detected.
>
> Too many video packets in the buffer: (4096 in 8305649 bytes).
> Maybe you are playing a non-interleaved stream/file or the codec failed?
> For AVI files, try to force non-interleaved mode with the -ni option.
> MPEG: No audio stream found -> no sound.
> VIDEO:  MPEG2  480x576  (aspect 2)  25.000 fps  1200.0 kbps (150.0 
> kbyte/s)
> vo: X11 running at 1280x960 with depth 16 and 16 bpp (":0.0" => local 
> display)
> Disabling DPMS
> ========================================================================== 
>
> Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
> VDec: vo config request - 480 x 576 (preferred csp: Mpeg PES)
> Could not find matching colorspace - retrying with -vop scale...
> Opening video filter: [scale]
> The selected video_out device is incompatible with this codec.
> VDecoder init failed :(
> Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.3.1
> Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG 1 or 2 (libmpeg2))
> ========================================================================== 
>
> Audio: no sound
> Starting playback...
> VDec: vo config request - 480 x 576 (preferred csp: Planar YV12)
> VDec: using Planar YV12 as output csp (no 0)
> Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
> VO: [xv] 480x576 => 768x576 Planar YV12
> Successfully enabled DPMS.0% 0 0 15%
>
> Exiting... (Quit)
>
>
> Thanks to anyone who can shed light,
> MAL
>
> _______________________________________________
> MPlayer-dev-eng mailing list
> MPlayer-dev-eng at mplayerhq.hu
> http://mplayerhq.hu/mailman/listinfo/mplayer-dev-eng
>




More information about the MPlayer-dev-eng mailing list