[MEncoder-users] Problem converting a mpeg-ps file to avi
Giacomo Comes
comes at naic.edu
Thu Jul 14 16:33:08 CEST 2005
On Thu, Jul 14, 2005 at 03:02:14PM +0200, Tobias Schmetzer wrote:
> Hey guys,
>
> I want to reencode a mpeg-ps file to a mpeg4 avi file.
> Unfortunately mplayer say "The selected video_out device is incompatible
> with this codec. VDecoder init failed :("
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
>
> I startet it with:
> mencoder Refugio.en.el.paraíso.avi -oac copy -ovc lavc -
> lavcopts vcodec=mpeg4 -vf scale=352:576 -o output.avi
You do not need to scale because the original stream has already that
resolution.
Giacomo
>
> What I get (after 15mb) as a result is a avi file without video
> information.
>
> I looked up the man page, the mailinglist, the html-documenation but I
> couldn't find any hint what I'm doing wrong.
>
> Another question: How can I pipe the video stream to stout?
>
> Could anybody help me, please?
>
> I am using Mencoder 1.0pre7 on a Athlon 700Mhz, debian sarge(3.1).
>
> Thank you!
>
> ------------------and here is what mplayer says----------------
>
> >mencoder Refugio.en.el.paraíso.avi -oac copy -ovc lavc -
> lavcopts vcodec=mpeg4 -vf scale=352:576 -o output.avi
>
> MEncoder 1.0pre7-3.3.5 (C) 2000-2005 MPlayer Team
> CPU: Advanced Micro Devices Athlon K75 Pluto,Orion (Family: 6, Stepping:
> 2)
> Detected cache-line size is 64 bytes
> MMX2 supported but disabled
> 3DNow supported but disabled
> 3DNowExt supported but disabled
> CPUflags: Type: 6 MMX: 1 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
> Compiled for x86 CPU with extensions: MMX
>
> 61 audio & 169 video codecs
> File not found: 'frameno.avi'
> Failed to open frameno.avi
> success: format: 0 data: 0x0 - 0x31a09674
> Seek failed
> AVI: Missing video stream!? Contact the author, it may be a bug :(
> MPEG-PS file format detected.
> 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
> 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)
> ==========================================================================
> Opening video filter: [expand osd=1]
> Expand: -1 x -1, -1 ; -1 (-1=autodetect) osd: 1
> Opening video filter: [scale w=352 h=576]
> ==========================================================================
> Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
> VDec: vo config request - 352 x 576 (preferred csp: Mpeg PES)
> 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 h
> eader.
> VDec: vo config request - 352 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.
> SwScaler: using unscaled Planar YV12 -> Planar YV12 special converter
> videocodec: libavcodec (352x576 fourcc=34504d46 [FMP4])
> ODML: Aspect information not (yet?) available or unspecified, not
> writing vprp h
> eader.
>
> 1 duplicate frame(s)!
> Pos: 0.8s 22f ( 0%) 0fps Trem: 0min 0mb A-V:0.083 [0:192]
> Skipping frame!
> Pos: 3.1s 80f ( 0%) 67fps Trem: 0min 0mb A-V:0.080 [109:192]
> Skipping frame!
> Pos: 5.7s 146f ( 0%) 67fps Trem: 0min 0mb A-V:-0.010
> [135:192]
More information about the MEncoder-users
mailing list