|
supra
computerEnthusiast
Registered: 10/26/03
Posts: 6,446
Loc: TEXAS
Last seen: 12 years, 11 months
|
linux replacement for mkv2vob
#9038616 - 10/06/08 06:49 PM (15 years, 6 months ago) |
|
|
I use an application on windows called mkv2vob that turns my .mkv video files into .mpg, .avi, .mp4, or .vob files. Anyways, it rips out the video and audio stream and then transcodes the audio if it needs to, then remux them back together in a different container, i just use mpg, so that I can play them on my ps3. Well, this whole process usually takes about 3 minutes on a 5gb .mkv file. About 15 if it has to do the audio, but that is rare. THis is much better than the hours it takes to do it with nero, since it thinks it has to encode the entire video too.
So, im looking for an application that can do the same thing, but in linux, as im trying to convert over completely, but this is one thing that my computer must be able to do...
thanks
peace
|
vonhumboldt
Stranger
Registered: 02/28/08
Posts: 377
|
Re: linux replacement for mkv2vob [Re: supra]
#9038673 - 10/06/08 07:02 PM (15 years, 6 months ago) |
|
|
|
automan
blasted chipmunk
Registered: 09/18/03
Posts: 8,272
|
Re: linux replacement for mkv2vob [Re: supra]
#9041007 - 10/07/08 08:12 AM (15 years, 6 months ago) |
|
|
mencoder can do it
-------------------- No, no, you're not thinking, you're just being logical. ~ Niels Bohr
|
vonhumboldt
Stranger
Registered: 02/28/08
Posts: 377
|
Re: linux replacement for mkv2vob [Re: automan]
#9090117 - 10/17/08 02:48 AM (15 years, 6 months ago) |
|
|
|
supra
computerEnthusiast
Registered: 10/26/03
Posts: 6,446
Loc: TEXAS
Last seen: 12 years, 11 months
|
Re: linux replacement for mkv2vob [Re: vonhumboldt]
#9560187 - 01/06/09 08:15 PM (15 years, 3 months ago) |
|
|
I know this thread is old, but i have finally figured out a way to do this that actually works, stays with audio/video in sync, and plays on ps3 without a problem, for anyone interested.
First i get the info from the mkv file using mkvinfo
Code:
mkvinfo movie.mkv
next i extract the video and audio into separate tracks, the numbers are the tracks, and after the colon is the output file name, in quotes is the input file name. Both mkvinfo and mkvextract are part of the mkvtoolnix package. If the sound is dts, use dts extension, if its ac3 use ac3 extension, etc.
Code:
mkvextract tracks "movie.mkv" 1:movie.264 2:movie.dts
next i convert the sound to aac for use in the mp4 container using ffmpeg
Code:
ffmpeg -i movie.dts -vcodec libfaac movie.aac
lastly, i have to mux the audio and video back together, i use MP4Box for this, its part of teh package gpac
Code:
MP4Box -new movie.mp4 -add movie.264 -add movie.aac -fps 23.976
use whatever fps the video track originally had, which is displayed when you ran mkvinfo on it.
And this makes a mp4 preserving the full quality of the video since it does no encoding of the video, and just gets the audio to aac. It only takes about 10 mins for the whole process, instead of hours to encode hi-def video.
peace
|
henry_kay
Stranger
Registered: 01/12/09
Posts: 7
Last seen: 15 years, 2 months
|
Re: linux replacement for mkv2vob [Re: supra]
#9593409 - 01/12/09 05:59 AM (15 years, 3 months ago) |
|
|
Hey, thanks for the tip! I have a problem though: I tried to convert two mkv's containing ac3 sound. When i tried to convert the audio file using ffmpeg i got the following error:
ffmpeg -i burn.ac3 -vcodec libfaac burn.aac
Output #0, adts, to 'burn.aac': Stream #0.0: Audio: 0x0000, 48000 Hz, 5:1, 64 kb/s Stream mapping: Stream #0.0 -> #0.0 Unsupported codec for output stream #0.0
I am using Ubuntu Intrepid.
Also how can i add one of the subtitles found in the mkv to the final movie file?
Thanks for your help!
|
supra
computerEnthusiast
Registered: 10/26/03
Posts: 6,446
Loc: TEXAS
Last seen: 12 years, 11 months
|
Re: linux replacement for mkv2vob [Re: henry_kay]
#9597502 - 01/12/09 08:02 PM (15 years, 3 months ago) |
|
|
Quote:
henry_kay said: Hey, thanks for the tip! I have a problem though: I tried to convert two mkv's containing ac3 sound. When i tried to convert the audio file using ffmpeg i got the following error:
ffmpeg -i burn.ac3 -vcodec libfaac burn.aac
Output #0, adts, to 'burn.aac': Stream #0.0: Audio: 0x0000, 48000 Hz, 5:1, 64 kb/s Stream mapping: Stream #0.0 -> #0.0 Unsupported codec for output stream #0.0
I am using Ubuntu Intrepid.
Also how can i add one of the subtitles found in the mkv to the final movie file?
Thanks for your help!
to add the subtitle stream simply rip it out using the same syntax within mkvextract. I do not know what extension to use as I have never messed with the subtitles. then, when you remux with MP4Box, just use and extra -add for the subtitle stream.
And on your ac3 problem, you simply need to install liba52 to be able to decode/encode.
peace
|
henry_kay
Stranger
Registered: 01/12/09
Posts: 7
Last seen: 15 years, 2 months
|
Re: linux replacement for mkv2vob [Re: supra]
#9599131 - 01/13/09 01:08 AM (15 years, 3 months ago) |
|
|
Unfortunately, liba52 is already installed so there should be another problem. Is it failing to create the aac file or to parse the ac3? If there is a problem with the aac, maybe i can try and transform it into something else (for example mp3)? How can i do that?
Thank you very much!
|
supra
computerEnthusiast
Registered: 10/26/03
Posts: 6,446
Loc: TEXAS
Last seen: 12 years, 11 months
|
Re: linux replacement for mkv2vob [Re: henry_kay]
#9603103 - 01/13/09 06:23 PM (15 years, 3 months ago) |
|
|
lame can encode it into mp3 for you, don't know if it works with ffmpeg, but it should. you may have to convert the ac3 into wav first, and then the wav into mp3, i wouldn't know.
Personally, i would find a way to get the ac3 sound to work, it works fine on mine with ffmpeg and having liba52 installed. Using mp3 sound on a high definition movie is kind of silly IMO...
also, i think you can just remux the video and audio into the .mp4 container, i know ps3 can play ac3 sound, just not sure what bandwidth it would use, or what container to put it in, i would have to do some more research. Seems this software is really needed for linux, something easy for people to use, maybe I have found myself a coding project to do at home in my free time
peace
Edited by supra (01/13/09 06:25 PM)
|
henry_kay
Stranger
Registered: 01/12/09
Posts: 7
Last seen: 15 years, 2 months
|
Re: linux replacement for mkv2vob [Re: supra]
#9605647 - 01/14/09 01:38 AM (15 years, 3 months ago) |
|
|
Ok, i solved it another way. For anyone with the same problem visit this link:
http://ubuntuforums.org/showpost.php?p=6207546&postcount=3
Thank you very much, your help is greatly appreciated!
|
supra
computerEnthusiast
Registered: 10/26/03
Posts: 6,446
Loc: TEXAS
Last seen: 12 years, 11 months
|
Re: linux replacement for mkv2vob [Re: henry_kay]
#9609661 - 01/14/09 05:20 PM (15 years, 3 months ago) |
|
|
Quote:
henry_kay said: Ok, i solved it another way. For anyone with the same problem visit this link:
http://ubuntuforums.org/showpost.php?p=6207546&postcount=3
Thank you very much, your help is greatly appreciated!
ahh, i see, the ubuntu repositories have stripped down versions of the libs and ffmpeg in them. I had compiled my own ffmpeg so didn't even think about that. I haven't messed with ubuntu since 6.06...and that was when it first came out...lol
peace
|
henry_kay
Stranger
Registered: 01/12/09
Posts: 7
Last seen: 15 years, 2 months
|
Re: linux replacement for mkv2vob [Re: supra]
#9635669 - 01/19/09 12:35 AM (15 years, 2 months ago) |
|
|
I tried adding the subtitles the way you suggested but the playstation does not recognize them. Maybe the playstation is not supporting subtitles from mp4 files? Should i try and convert the mkv to vob?
|
supra
computerEnthusiast
Registered: 10/26/03
Posts: 6,446
Loc: TEXAS
Last seen: 12 years, 11 months
|
Re: linux replacement for mkv2vob [Re: henry_kay]
#9642388 - 01/19/09 10:48 PM (15 years, 2 months ago) |
|
|
Quote:
henry_kay said: I tried adding the subtitles the way you suggested but the playstation does not recognize them. Maybe the playstation is not supporting subtitles from mp4 files? Should i try and convert the mkv to vob?
would be worth a try...i have never really messed with subtitles, but if you figure it out, let me know incase I ever need them.
You coudl always find a way to make hard subs directly on the video stream.
|
henry_kay
Stranger
Registered: 01/12/09
Posts: 7
Last seen: 15 years, 2 months
|
Re: linux replacement for mkv2vob [Re: supra]
#9643683 - 01/20/09 03:45 AM (15 years, 2 months ago) |
|
|
It seems that the playstation does not recognize external subs. I've read that mkv2vob transcodes the video file when subtitles are chosen to place them directly on the video.
So, do you know how to transcode the subtitles to the x264 file BEFORE placing it into the mp4 container?(i am not familiar at all with mencoder/ffmpeg).
|
supra
computerEnthusiast
Registered: 10/26/03
Posts: 6,446
Loc: TEXAS
Last seen: 12 years, 11 months
|
Re: linux replacement for mkv2vob [Re: henry_kay]
#9668290 - 01/23/09 10:10 PM (15 years, 2 months ago) |
|
|
hey, don't know if your still coming around checking this thread, but I was over at mkv2vob forums, and there is a way to get it working fine with wine, just follow Serdna's post here:
http://www.mkv2vob.com/showthread.php?ti...805#pid805
and this supports subtitles too!!!!
|
henry_kay
Stranger
Registered: 01/12/09
Posts: 7
Last seen: 15 years, 2 months
|
Re: linux replacement for mkv2vob [Re: supra]
#9680832 - 01/26/09 05:11 AM (15 years, 2 months ago) |
|
|
I can't get mkv2vob to work via wine, when adding mkv files i get the following error: Error getting mkv info!
Also the thread you posted does not exist.
|
henry_kay
Stranger
Registered: 01/12/09
Posts: 7
Last seen: 15 years, 2 months
|
Re: linux replacement for mkv2vob [Re: henry_kay]
#9680859 - 01/26/09 05:29 AM (15 years, 2 months ago) |
|
|
Ok, i had to install wsh56, now it seems to be working with wine!
|
supra
computerEnthusiast
Registered: 10/26/03
Posts: 6,446
Loc: TEXAS
Last seen: 12 years, 11 months
|
Re: linux replacement for mkv2vob [Re: henry_kay]
#9683182 - 01/26/09 03:12 PM (15 years, 2 months ago) |
|
|
http://www.mkv2vob.com/showthread.php?tid=27&page=2
post #17.
I see you got it now, but for others.
peace
|
blink
eye of horus
Registered: 03/31/02
Posts: 11,349
Loc: Geographic Location (Stat...
|
Re: linux replacement for mkv2vob [Re: supra]
#9778297 - 02/11/09 01:44 PM (15 years, 2 months ago) |
|
|
supra: have you ever had a chance to marry video from a 29.97fps source and audio from a 25fps source?
--------------------
|
supra
computerEnthusiast
Registered: 10/26/03
Posts: 6,446
Loc: TEXAS
Last seen: 12 years, 11 months
|
Re: linux replacement for mkv2vob [Re: blink]
#9787705 - 02/12/09 09:33 PM (15 years, 2 months ago) |
|
|
Quote:
blink said: supra: have you ever had a chance to marry video from a 29.97fps source and audio from a 25fps source?
nope, never figured it out...since i use mkv2vob now for what i need to do as far as encoding is concerned, i never really worked much harder on that...I'm not completely positive its even possible without using some sort of key frames to slow the audio, or simply chopping frames from the video, resulting in bad quality more than likely...
good luck.
|
|