[MEncoder-users] HDTV transcode loses 5.1 ac3 Audio

Dan Shoup deshoup at hotmail.com
Sun Aug 31 02:28:33 CEST 2008


I have a PC tuner card that records ATSC HDTV programs.  I’m trying to transcode these using MEncoder to save disk space, but I keep losing the 5.1 audio.  I use ffmpeg to convert the originally recorded .dvr-ms file to an .mpg file…this works fine and I still have 5.1 audio.  I then use mencoder with a string like:
 
Mencoder.exe -i "E:\Dir\filename.mpg” -of avi -oac copy -ovc xvid -xvidencopts fixed_quant=4 -vf scale=1024:576 -o “E:\Dir\filename.avi”
 
This works, but I only get 2-channel audio.  I have also tried adding "–channels 6" between the "–of..." and "–oac..." arguments in the above string, but I still get 2-channel audio and an error message stating “unimplemented resampler for mode 0xA ->6 channel conversion – Contact MPlayer developers!"
 
Is there any way to transcode my file without losing the 5.1 ac3 audio?  I’ve included  some output below showing the –channels 6 error code.
 
 
MEncoder dev-SVN-rUNKNOWN-4.2.1-sjlj (C) 2000-2007 MPlayer Team
CPU: Intel(R) Core(TM)2 CPU          4400  @ 2.00GHz (Family: 6, Model: 15, Step
ping: 2)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled with runtime CPU detection.
success: format: 0  data: 0x0 - 0xbfb17800
MPEG-PS file format detected.
VIDEO:  MPEG2  1280x720  (aspect 3)  59.940 fps  15500.0 kbps (1937.5 kbyte/s)
[V] filefmt:2  fourcc:0x10000002  size:1280x720  fps:59.94  ftime:=0.0167
==========================================================================
Opening audio decoder: [liba52] AC3 decoding with liba52
No accelerated IMDCT transform found
Unimplemented resampler for mode 0xA -> 6 channels conversion - Contact MPlayer
developers!
Unimplemented resampler for mode 0xA -> 5 channels conversion - Contact MPlayer
developers!
Unimplemented resampler for mode 0xA -> 4 channels conversion - Contact MPlayer
developers!
Unimplemented resampler for mode 0xA -> 3 channels conversion - Contact MPlayer
developers!
Using MMX optimized resampler
AUDIO: 48000 Hz, 2 ch, s16le, 384.0 kbit/25.00% (ratio: 48000->192000)
Selected audio codec: [a52] afm: liba52 (AC3-liba52)
==========================================================================
xvid: using library version 1.2.-127 (build xvid-1.2.0-dev)
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [scale w=1024 h=576]
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 1280 x 720 (preferred colorspace: Mpeg PES)
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
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=2000 chans=2 rate=48000 bits=16 B/s=48000 sample-1
)
VDec: vo config request - 1280 x 720 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
SwScaler: reducing / aligning filtersize 6 -> 8
SwScaler: reducing / aligning filtersize 6 -> 8
SwScaler: reducing / aligning filtersize 6 -> 5
SwScaler: reducing / aligning filtersize 6 -> 5
[swscaler @ 00ADA840]SwScaler: BICUBIC scaler, from yuv420p to yuv420p using MMX
2
[swscaler @ 00ADA840]SwScaler: using 8-tap MMX scaler for horizontal luminance s
caling
[swscaler @ 00ADA840]SwScaler: using 8-tap MMX scaler for horizontal chrominance
 scaling
[swscaler @ 00ADA840]SwScaler: using n-tap MMX scaler for vertical scaling (YV12
 like)
[swscaler @ 00ADA840]SwScaler: 1280x720 -> 1024x576
videocodec: XviD (1024x576 fourcc=44495658 [XVID])
xvid: par=0/0 (vga11), displayed=1024x576, sampled=1024x576
xvid: CBR Rate Control -- bitrate=1500kbit/s
Writing header...1f (28%)  0.00fps Trem:   0min   0mb  A-V:0.000 [0:0]
ODML: vprp aspect is 16:9.
Setting audio delay to 0.017s.
Writing header...
ODML: vprp aspect is 16:9.
Setting audio delay to 0.017s.
Writing header...2f (28%)  0.00fps Trem:   0min   0mb  A-V:0.002 [0:0]
ODML: vprp aspect is 16:9.
Setting audio delay to 0.017s.
Pos:  30.0s   1807f (29%) 26.71fps Trem:   2min  22mb  A-V:-0.008 [1463:384]
Flushing video frames.
Writing index...
Writing header...
ODML: vprp aspect is 16:9.
Setting audio delay to 0.017s.
 
Video stream: 1462.060 kbit/s  (182757 B/s)  size: 5491256 bytes  30.047 secs  1
807 frames
 
Audio stream:  384.000 kbit/s  (48000 B/s)  size: 1440000 bytes  30.000 secs
_________________________________________________________________
Talk to your Yahoo! Friends via Windows Live Messenger.  Find out how.
http://www.windowslive.com/explore/messenger?ocid=TXT_TAGLM_WL_messenger_yahoo_082008


More information about the MEncoder-users mailing list