LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-21-2012, 07:22 PM   #1
unclejed613
Member
 
Registered: Mar 2009
Posts: 352

Rep: Reputation: 32
having trouble converting mkv to avi


and the stock mencoder (slack 13.37) doesn't have xvid support(?), so using a command line similar to
Quote:
mencoder abc.mkv -oac pcm -ovc xvid -xvidencopts bitrate=886 -sub ITC0101.srt -subfont-text-scale 3 -o zzz.avi
gives me an error saying -xvidencopts is not a valid option.

Last edited by unclejed613; 04-21-2012 at 07:24 PM.
 
Old 04-21-2012, 10:45 PM   #2
wildwizard
Member
 
Registered: Apr 2009
Location: Oz
Distribution: slackware64-14.0
Posts: 875

Rep: Reputation: 282Reputation: 282Reputation: 282
Firstly your best bet is either

http://slackbuilds.org/repository/13...imedia/ffmpeg/
Don't forget the dependencies

or

http://alien.slackbook.org/blog/vlc-2-0-1/

Secondly are you sure that it's a xvid codec inside that? A lot of stuff on the Internet now is x264.
 
Old 04-22-2012, 12:15 AM   #3
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
Quote:
Originally Posted by wildwizard View Post
Secondly are you sure that it's a xvid codec inside that? A lot of stuff on the Internet now is x264.
it shouldnt matter what the input is as long as the mkv is playable. he is having troubles converting it to xvid.
 
Old 04-22-2012, 12:52 AM   #4
unclejed613
Member
 
Registered: Mar 2009
Posts: 352

Original Poster
Rep: Reputation: 32
so i installed VLC from alien bob's slackbuild, and tried converting a file and i got these errors
Code:
[NULL @ 0x8311900] Codec is experimental but experimental codecs are not enabled, see -strict -2
[0x83e6f50] avcodec encoder error: cannot open encoder
[0x9492cf0] stream_out_transcode stream out error: cannot find audio encoder (module:any fourcc:mp4a). Take a look few lines earlier to see possible reason.
[0x9492cf0] stream_out_transcode stream out error: cannot create audio chain
[0x839e470] main decoder error: cannot create packetizer output (mp4a)
x264 [info]: using SAR=181/204
x264 [info]: using cpu capabilities: MMX2 SSE2Slow SlowCTZ
x264 [info]: profile High, level 2.1
i thought the slackbuild (at least this one...)took care of the dependencies

my problem with ffmpeg seems to be it has a latex dependency (??? i thought latex was already part of slack)

Last edited by unclejed613; 04-22-2012 at 12:54 AM.
 
Old 04-22-2012, 02:21 AM   #5
wildwizard
Member
 
Registered: Apr 2009
Location: Oz
Distribution: slackware64-14.0
Posts: 875

Rep: Reputation: 282Reputation: 282Reputation: 282
Not sure why you installed vlc from the slackbuild Eric has precompiled packages one is capable of encoding while the other is not (make sure you get the encoding one)

As for ffmpeg & latex Slackware has tetex installed by default which is all it needs, as per the comment on slackbuilds.org
 
Old 04-22-2012, 04:06 AM   #6
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
XVid is not a separate encoder in ffmpeg (and thus in MPlayer and VLC too).
From http://ffmpeg.org/faq.html#How-do-I-...th-ffmpeg_003f :
Quote:
3.8 How do I encode Xvid or DivX video with ffmpeg?

Both Xvid and DivX (version 4+) are implementations of the ISO MPEG-4 standard (note that there are many other coding formats that use this same standard). Thus, use ’-c:v mpeg4’ to encode in these formats. The default fourcc stored in an MPEG-4-coded file will be ’FMP4’. If you want a different fourcc, use the ’-vtag’ option. E.g., ’-vtag xvid’ will force the fourcc ’xvid’ to be stored as the video fourcc rather than the default.
Eric
 
Old 04-22-2012, 05:03 AM   #7
andrew.46
Senior Member
 
Registered: Oct 2007
Distribution: Slackware
Posts: 1,365

Rep: Reputation: 493Reputation: 493Reputation: 493Reputation: 493Reputation: 493
Mind you it is possible to compile FFmpeg against the external xvid library and use this:

Code:
andrew@skamandros~$ ffmpeg -codecs 2>/dev/null | grep xvid
  EV    libxvid         libxvidcore MPEG-4 part 2
But for the most part it would be better to use x264 to produce h.264 video anyway...
 
Old 04-22-2012, 01:06 PM   #8
unclejed613
Member
 
Registered: Mar 2009
Posts: 352

Original Poster
Rep: Reputation: 32
well i think i got it figured out.. vlc continued encoding, and i got video but no audio. i tried several common audio formats but vlc would error out saying "your installation of ffmpeg is crippled". i finally settled on AC3 which i hope makes the xbox happy. i'm serving files for an xbox using minidlna.

i just tried playing the file on the xbox, and it doesn't play....

xbox likes AAC but not AC3... vlc's AAC encoder isn't working

Last edited by unclejed613; 04-22-2012 at 01:10 PM.
 
Old 04-22-2012, 04:08 PM   #9
manwichmakesameal
Member
 
Registered: Aug 2006
Distribution: Slackware
Posts: 804

Rep: Reputation: 110Reputation: 110
Since you are streaming to an XBox, have you tried transcoding to mp4? I have some dvd's ripped with handbrake that I ripped to mp4 and they work fine with the ps3, not sure about XBox as mine doesn't see my server.
 
Old 04-22-2012, 05:14 PM   #10
unclejed613
Member
 
Registered: Mar 2009
Posts: 352

Original Poster
Rep: Reputation: 32
so here's what i found out in the meantime...
Code:
Xbox 360 console support for AVI

    File extensions: .avi, .divx
    Containers: AVI
    Video profiles: MPEG-4 Part 2 (Simple Profile and Advanced Simple Profile)
    Video bit rate: 5 Mbps with resolutions of 1280 × 720 at 30 fps. See the question about max bit rate, resolution, and frames per second.
    Audio profiles: Dolby® Digital (2 channel and 5.1 channel), MP3
    Audio max bit rate: No restrictions. See the question about max bit rate, resolution, and frames per second.

Xbox 360 console support for H.264

    File extensions: .mp4, .m4v, mp4v, .mov, .avi
    Containers: MPEG-4, QuickTime
    Video profiles: Baseline, main, and high (up to level 4.1)
    Video bit rate: 10 Mbps with resolutions of 1920 × 1080 at 30 fps. See the question about max bit rate, resolution, and frames per second.
    Audio profiles: AAC, 2-channel, Low Complexity
    Audio max bit rate: No restrictions. See the question about max bit rate, resolution, and frames per second.

Xbox 360 console support for MPEG-4 Part 2

    File extensions: .mp4, .m4v, .mp4v, .mov, .avi
    Containers: MPEG-4, QuickTime
    Video profiles: MPEG-4 Part 2 (Simple Profile and Advanced Simple Profile)
    Video bit rate: 5 Mbps with resolutions of 1280 × 720 at 30 fps. See the question about max bit rate, resolution, and frames per second.
    Audio profiles: AAC, 2-channel, Low Complexity
    Audio max bit rate: No restrictions. See the question about max bit rate, resolution, and frames per second.

Xbox 360 console support for WMV (VC-1)

    File extensions: .wmv
    Containers: ASF
    Video profiles: WMV7 (WMV1), WMV8 (WMV2), WMV9 (WMV3), VC-1 (WVC1 or WMVA) in simple, main, and advanced up to level 3
    Video bit rate: 15 Mbps with resolutions of 1920 × 1080 at 30 fps. See the question about max bit rate, resolution, and frames per second.
    Audio profiles: WMA7/8, WMA9 Pro (stereo and 5.1), WMA Lossless
    Audio max bit rate: No restrictions. See the question about max bit rate, resolution, and frames per second.
so these are the file structures the xbox will play, unfortunately my install of vlc, and ffmpeg are limited, so i will get the manual slackbuilds for both, and make sure the proper options are installed.

in order for the xbox to see your media, you need to be running a dlna server such as miniDNLA.
 
Old 04-23-2012, 03:30 AM   #11
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Originally Posted by unclejed613 View Post
so these are the file structures the xbox will play, unfortunately my install of vlc, and ffmpeg are limited, so i will get the manual slackbuilds for both, and make sure the proper options are installed.

in order for the xbox to see your media, you need to be running a dlna server such as miniDNLA.
Perhaps you have installed the version of my VLC package which I host on connie.slackware.com. I am not allowed to host software which "infringes" on US software patents on that US-baseded server. Therefor that VLC package is unable to ENcode mp3 and aac audio (although it can DEcode those formats just fine).

For a version of my VLC package which can ENcode to mp3 and aac, see http://taper.alienbase.nl/mirrors/pe...ackbuilds/vlc/

The same holds true for my FFMPEG package.

Eric
 
Old 04-23-2012, 07:00 AM   #12
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
Quote:
Originally Posted by unclejed613 View Post
so here's what i found out in the meantime...
Code:
Xbox 360 console support for AVI

    File extensions: .avi, .divx
    Containers: AVI
    Video profiles: MPEG-4 Part 2 (Simple Profile and Advanced Simple Profile)
    Video bit rate: 5 Mbps with resolutions of 1280 × 720 at 30 fps. See the question about max bit rate, resolution, and frames per second.
    Audio profiles: Dolby® Digital (2 channel and 5.1 channel), MP3
    Audio max bit rate: No restrictions. See the question about max bit rate, resolution, and frames per second.

Xbox 360 console support for H.264

    File extensions: .mp4, .m4v, mp4v, .mov, .avi
    Containers: MPEG-4, QuickTime
    Video profiles: Baseline, main, and high (up to level 4.1)
    Video bit rate: 10 Mbps with resolutions of 1920 × 1080 at 30 fps. See the question about max bit rate, resolution, and frames per second.
    Audio profiles: AAC, 2-channel, Low Complexity
    Audio max bit rate: No restrictions. See the question about max bit rate, resolution, and frames per second.

Xbox 360 console support for MPEG-4 Part 2

    File extensions: .mp4, .m4v, .mp4v, .mov, .avi
    Containers: MPEG-4, QuickTime
    Video profiles: MPEG-4 Part 2 (Simple Profile and Advanced Simple Profile)
    Video bit rate: 5 Mbps with resolutions of 1280 × 720 at 30 fps. See the question about max bit rate, resolution, and frames per second.
    Audio profiles: AAC, 2-channel, Low Complexity
    Audio max bit rate: No restrictions. See the question about max bit rate, resolution, and frames per second.

Xbox 360 console support for WMV (VC-1)

    File extensions: .wmv
    Containers: ASF
    Video profiles: WMV7 (WMV1), WMV8 (WMV2), WMV9 (WMV3), VC-1 (WVC1 or WMVA) in simple, main, and advanced up to level 3
    Video bit rate: 15 Mbps with resolutions of 1920 × 1080 at 30 fps. See the question about max bit rate, resolution, and frames per second.
    Audio profiles: WMA7/8, WMA9 Pro (stereo and 5.1), WMA Lossless
    Audio max bit rate: No restrictions. See the question about max bit rate, resolution, and frames per second.
so these are the file structures the xbox will play, unfortunately my install of vlc, and ffmpeg are limited, so i will get the manual slackbuilds for both, and make sure the proper options are installed.

in order for the xbox to see your media, you need to be running a dlna server such as miniDNLA.
not a slot in replacement but have a look at xbmc.
 
  


Reply



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
Convert mkv and avi to mov intz Linux - Software 5 06-26-2014 07:32 AM
[SOLVED] mkv to avi conversion timl Linux - Software 5 01-13-2011 02:01 PM
Converting VC1 inside mkv to a x.264 in a mkv J_Humphrey Linux - Software 1 03-26-2010 07:04 AM
Converting avi to mpg OR creating an SVCD from an avi MasterC Linux - Software 5 03-28-2003 05:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:49 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