LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-30-2010, 12:21 AM   #1
horde
LQ Newbie
 
Registered: Jan 2005
Posts: 24

Rep: Reputation: 0
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

Last edited by horde; 05-30-2010 at 12:25 AM. Reason: spelling
 
Old 05-31-2010, 08:53 AM   #2
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
I think the problem is that mp3 doesn't support 6 channel audio
 
  


Reply

Tags
mencoder, mkv, xvid



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
convert .mkv to .avi Gortex Linux - General 10 12-05-2017 03:19 AM
ffmpeg: howto convert dvd/mkv to avi? G00fy Linux - Software 2 01-14-2009 11:25 AM
How to convert .ts files to mkv or avi Pearlseattle Linux - Software 3 03-26-2008 12:26 PM
does mencoder allows me to convert avi to mp4? sirpelidor Linux - Software 1 12-16-2006 08:34 PM
using mencoder to convert directory to avi ogross74 Linux - Software 2 07-05-2005 09:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration