LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Unable to convert MKV file to AVI using mencoder - help please (https://www.linuxquestions.org/questions/linux-software-2/unable-to-convert-mkv-file-to-avi-using-mencoder-help-please-811018/)

horde 05-30-2010 12:21 AM

Unable to convert MKV file to AVI using mencoder - help please
 
I have a MKV file and need to convert it down to XVID to allow some of my other streamers to use the file.

However, when I try I get the following errors:

Quote:

Too many audio packets in the buffer: (4103 in 8255236 bytes)
and

Quote:

Maybe you are playing a non-interleaved stream/file or the codec failed?2:128]
For AVI files, try to force non-interleaved mode with the -ni option.
The file details are :

Quote:

General
Complete name : Test 1080p.mkv
Format : Matroska
File size : 10.9 GiB
Duration : 2h 41mn
Overall bit rate : 9 674 Kbps
Writing application : x264.exe
Writing library : mkv2rls v1.2 (date: 2010 febr 17)

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings, CABAC : Yes
Format settings, ReFrames : 4 frames
Muxing mode : Container profile=Unknown@4.1
Codec ID : V_MPEG4/ISO/AVC
Duration : 2h 41mn
Bit rate : 7 972 Kbps
Nominal bit rate : 8 171 Kbps
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate : 23.976 fps
Resolution : 8 bits
Colorimetry : 4:2:0
Scan type : Progressive
Bits/(Pixel*Frame) : 0.160
Stream size : 8.99 GiB (82%)
Writing library : x264 core 93 r1542 5b86182
Encoding settings : cabac=1 / ref=4 / deblock=1:0:0 / analyse=0x3:0x133 / me=umh / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=12 / sliced_threads=0 / nr=0 / decimate=0 / interlaced=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=3 / wpredb=1 / wpredp=2 / keyint=240 / keyint_min=24 / scenecut=40 / intra_refresh=0 / rc_lookahead=30 / rc=2pass / mbtree=1 / bitrate=8171 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=1:1.00

Audio
ID : 2
Format : DTS
Format/Info : Digital Theater Systems
Codec ID : A_DTS
Duration : 2h 41mn
Bit rate mode : Constant
Bit rate : 1 510 Kbps
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48.0 KHz
Resolution : 24 bits
Stream size : 1.71 GiB (16%)
Title : English DTS 1509kbps
Language : English

Text #1
ID : 3
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Title : English
Language : English

Text #2
ID : 4
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Title : English
Language : English
and the command I am using to run the conversion is:

Quote:

mencoder "Test 1080p.mkv" -channels 6 -ovc xvid -oac mp3lame -xvidencopts pass=1 -o /dev/null -lameopts cbr:br=128
I presume that it has something to do with the 6 channel DTS audio and the conversion to mp3 because if I change the command to just copy the audio all progresses fine.

Any hints would be welcome. Thanks

H_TeXMeX_H 05-31-2010 08:53 AM

I think the problem is that mp3 doesn't support 6 channel audio :)


All times are GMT -5. The time now is 07:54 AM.