LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   having trouble converting mkv to avi (http://www.linuxquestions.org/questions/slackware-14/having-trouble-converting-mkv-to-avi-941048/)

unclejed613 04-21-2012 07:22 PM

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.

wildwizard 04-21-2012 10:45 PM

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.

schneidz 04-22-2012 12:15 AM

Quote:

Originally Posted by wildwizard (Post 4659600)
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.

unclejed613 04-22-2012 12:52 AM

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)

wildwizard 04-22-2012 02:21 AM

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

Alien Bob 04-22-2012 04:06 AM

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

andrew.46 04-22-2012 05:03 AM

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...

unclejed613 04-22-2012 01:06 PM

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

manwichmakesameal 04-22-2012 04:08 PM

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.

unclejed613 04-22-2012 05:14 PM

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.

Alien Bob 04-23-2012 03:30 AM

Quote:

Originally Posted by unclejed613 (Post 4660163)
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

schneidz 04-23-2012 07:00 AM

Quote:

Originally Posted by unclejed613 (Post 4660163)
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.


All times are GMT -5. The time now is 08:12 AM.