[MEncoder-users] Problem converting a mpeg-ps file to avi
Giacomo Comes
comes at naic.edu
Fri Jul 15 03:36:34 CEST 2005
On Thu, Jul 14, 2005 at 11:58:33PM +0200, Tobias Schmetzer wrote:
> El jue, 14-07-2005 a las 10:33 -0400, Giacomo Comes escribió:
> > The encoding process looks ok, although you should use more lavcopts.
> > (setting the video bit rate, adding autoaspect, adding mbd=2 etc.)
> > About the failure of MPlayer, you should send his output with the
> > option -v
> >
>
> It does'n work either. I tried 2-pass, I tried -v -v and there were no
> more details on my problem (at least I couldn't recognise one)
>
> The Problem seems to be, that mplayer doesn't recognize the resulting
> video-stream. Either Mencoder writes a wrong videostream, or mplayer
> can't play it.("Cannot find codec matching selected -vo and video format
> 0x34504D46.")
>
> mplayer-output:
>
> Playing r.avi.
> Cache fill: 0.00% (0 bytes) AVI file format detected.
> VIDEO: [FMP4] 352x576 24bpp 25.000 fps 216.3 kbps (26.4 kbyte/s)
> Clip info:
> Software: MEncoder 1.0pre7-3.3.5
> ==========================================================================
> Trying to force audio codec driver family libmad...
> Opening audio decoder: [libmad] libmad mpeg audio decoder
> AUDIO: 48000 Hz, 2 ch, s16le, 192.0 kbit/12.50% (ratio: 24000->192000)
> Selected audio codec: [mad] afm:libmad (libMAD MPEG layer 1-2-3)
> ==========================================================================
> vo: X11 running at 1280x1024 with depth 24 and 32 bpp (":0.0" => local
> display)
> ==========================================================================
> Cannot find codec matching selected -vo and video format 0x34504D46.
> Read DOCS/HTML/en/codecs.html!
> ==========================================================================
> Checking audio filter chain for 48000Hz/2ch/s16le ->
> 48000Hz/2ch/s16le...
> AF_pre: 48000Hz/2ch/s16le
> alsa-init: no soundcards found: Success
> AO: [oss] 48000Hz 2ch s16le (2 bps)
> Building audio filter chain for 48000Hz/2ch/s16le ->
> 48000Hz/2ch/s16le...
> Video: no video
> Starting playback...
> A: 3.6 (03.5) 4.0%
> 84%
> Exiting... (Quit)
This is not the complete output of mplayer -v
if you continue to omit the informations it will be impossible to help you.
Giacomo
>
>
> mencoder infile.mpg -o r.avi -ovc lavc -lavcopts
> vcodec=mpeg4:vbitrate=1100:mbd=2:autoaspect -frames 1000 -oac copy -v
> -v
>
> here is the output of mencoder:
>
> Checking for MPEG-TS...
> GET_PACKET_SIZE, pos 1, char: fd
> [...]
> GET_PACKET_SIZE, pos 1, char: 34
> GET_PACKET_SIZE, pos 1, char: 34
> TRIED UP TO POSITION 72975, FOUND 47, packet_size= 0, SEEMS A TS? 0
> s->pos=13798 newpos=11800 new_bufpos=11D0F buflen=0
> Cannot seek backward in linear streams!
> Seek failed
> DEMUXER: freeing demuxer at 0x83edf50
> s->pos=13798 newpos=0 new_bufpos=0 buflen=0
> Cannot seek backward in linear streams!
> Seek failed
> Checking for LMLM4 Stream Format
> typ: 15637 chan: 41938 size: -1753618344 pad: 416
> Invalid packet in LMLM4 stream: ch=41938 size=-1753618344
> LMLM4 Stream Format not found
> DEMUXER: freeing demuxer at 0x83edf50
> s->pos=13F98 newpos=0 new_bufpos=0 buflen=0
> Cannot seek backward in linear streams!
> Seek failed
> Opps... elementary video packet found: 114
> [...]
> ==> Found video stream: 0
> MPEG-PS file format detected.
> Searching for sequence header... OK!
> VIDEO: MPEG2 352x576 (aspect 2) 25.000 fps 2000.0 kbps (250.0
> kbyte/s)
> [V] filefmt:2 fourcc:0x10000002 size:352x576 fps:25.00 ftime:=0.0400
> ==========================================================================
> Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
> dec_audio: Allocating 4608 + 65536 = 70144 bytes for output buffer.
> mp3lib: made decode tables with MMX optimization
> mp3lib: using MMX optimized decore!
> MP3lib: init layer2&3 finished, tables done
> MPEG 1.0, Layer II, 48000 Hz 192 kbit Stereo, BPF: 576
> Channels: 2, copyright: No, original: No, CRC: Yes, emphasis: 0
> AUDIO: 48000 Hz, 2 ch, s16le, 192.0 kbit/12.50% (ratio: 24000->192000)
> Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
> ==========================================================================
> SPU: Display only forced subs now disabled
> Opening video filter: [expand osd=1]
> Expand: -1 x -1, -1 ; -1 (-1=autodetect) osd: 1
> ==========================================================================
> Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
> VDec: vo config request - 352 x 576 (preferred csp: Mpeg PES)
> Trying filter chain: expand lavc
> vo_debug: query(Mpeg PES) returned 0x0 (i=0)
> Could not find matching colorspace - retrying with -vf scale...
> Opening video filter: [scale]
> SwScale params: -1 x -1 (-1=no scaling)
> Trying filter chain: scale expand lavc
> vo_debug: query(Mpeg PES) returned 0x0 (i=0)
> The selected video_out device is incompatible with this codec.
> VDecoder init failed :(
> Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder
> libmpeg2-v0.4.0b
> Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG 1 or 2 (libmpeg2))
> ==========================================================================
> audiocodec: framecopy (format=50 chans=2 rate=48000 bits=16 bps=24000
> sample-1)
> Writing AVI header...
> ODML: Aspect information not (yet?) available or unspecified, not
> writing vprp header.
> user_data: len= 14 10 0E 00 80 '&V'
> telecine = 1.0 -2.500
> VDec: vo config request - 352 x 576 (preferred csp: Planar YV12)
> Trying filter chain: expand lavc
> vo_debug: query(Planar YV12) returned 0x401 (i=0)
> vo_debug: query(Planar I420) returned 0x401 (i=1)
> vo_debug: query(Planar IYUV) returned 0x401 (i=2)
> VDec: using Planar YV12 as output csp (no 0)
> Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
> VO Config (352x576->768x576,flags=0,'MPlayer',0x32315659)
> REQ: flags=0x401 req=0x0
> videocodec: libavcodec (352x576 fourcc=34504d46 [FMP4])
> High quality encoding selected (non real time)!
> OSD chg: 3 V: no pb:-1
> OSD chg: 2 V: no pb:-1
> *** [lavc] Allocating mp_image_t, 352x576x12bpp YUV planar, 304128 bytes
> (imgfmt: 32315659, planes: 41ab0040,41aede40,41ae1840 strides:
> 352,176,176, chroma: 176x288, shift: h:1,v:1)
> *** [expand] Direct Rendering mp_image_t, 352x576x12bpp YUV planar,
> 304128 bytes
> (imgfmt: 32315659, planes: 41ab0040,41aede40,41ae1840 strides:
> 352,176,176, chroma: 176x288, shift: h:1,v:1)
> Pos: 0.0s 1f ( 0%) 0fps Trem: 0min 0mb A-V:0.000 [0:0]
> A/Vms 1/18 telecine = 1.0 -2.500
> OSD chg: 3 V: no pb:-1
> OSD chg: 2 V: no pb:-1
> *** [lavc] Allocating mp_image_t, 352x576x12bpp YUV planar, 304128 bytes
> (imgfmt: 32315659, planes: 41afb040,41b38e40,41b2c840 strides:
> 352,176,176, chroma: 176x288, shift: h:1,v:1)
> *** [expand] Direct Rendering mp_image_t, 352x576x12bpp YUV planar,
> 304128 bytes
> (imgfmt: 32315659, planes: 41afb040,41b38e40,41b2c840 strides:
> 352,176,176, chroma: 176x288, shift: h:1,v:1)
> Pos: 0.0s 2f ( 0%) 0fps Trem: 0min 0mb A-V:-0.004 [0:0]
> A/Vms 1/20 telecine = 1.0 -2.500
> OSD chg: 3 V: no pb:-1
> OSD chg: 2 V: no pb:-1
> ODML: vprp aspect is 4:3.
> [...]
> Pos: 40.5s 1000f ( 0%) 25fps Trem: 0min 0mb A-V:-0.049
> [216:192] A/Vms 2/37 D/B/S 15/2/0
> Flushing video frames
>
> Writing AVI index...
> Fixing AVI header...
> ODML: vprp aspect is 4:3.
>
> Video stream: 216.324 kbit/s (27040 bps) size: 1095681 bytes 40.520
> secs 1000 frames
>
> Audio stream: 192.000 kbit/s (24000 bps) size: 971532 bytes 40.480
> secs
> uninit video: libmpeg2
> DEMUXER: freeing demuxer at 0x83edf50
> DEMUXER: freeing sh_audio at 0x83f09b0
> DEMUXER: freeing sh_video at 0x83f1390
>
More information about the MEncoder-users
mailing list