LinuxQuestions.org
Review your favorite Linux distribution.
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 12-30-2010, 05:26 PM   #1
baronobeefdip
Senior Member
 
Registered: Jul 2009
Distribution: Debian Squeeze
Posts: 1,267

Rep: Reputation: 32
is there a program that can extract the content of an mkv file to be combined later


i have some mkv files that come out pixelated and i don't want to go through the trouble of finding a suitable media player so i want to extract the desired audio channel and video channel to combine them into an avi file that will hopefully be playable on most media players

i already have mkv-toolnix installed but i see nothing that will extract the contents of an mkv or as far as i know i think it's though command line. and how would you combine the audio and video together
 
Old 12-30-2010, 05:59 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
is the pixalation the normal mostly green with some red and blue added and all jumbled up ?
if so it is encrypted and you would need some odd proprietary codec from whomever made it . Check the web site of the content creator
 
Old 12-30-2010, 06:06 PM   #3
baronobeefdip
Senior Member
 
Registered: Jul 2009
Distribution: Debian Squeeze
Posts: 1,267

Original Poster
Rep: Reputation: 32
i just extracted it from the mkv file and the video comes out mpeg and when i play it in anything it goes really fast and i can't put it in avidemux to slow it down. i extracted it with mkvextract but here are the tracks after running mkvmerge
Code:
$ mkvmerge -i movie.mkv
File 'movie.mkv': container: Matroska
Track ID 1: video (V_MPEG4/ISO/AVC)
Track ID 2: audio (A_AC3)
Track ID 3: audio (A_AC3)
Track ID 4: subtitles (S_TEXT/ASS)
Attachment ID 1: type 'application/x-truetype-font', size 97080 bytes, file name 'LT.ttf'
Chapters: 15 entries
and this is what i ran to get the video
Code:
$ mkvextract tracks movie.mkv 1:video.mpeg
Extracting track 1 with the CodecID 'V_MPEG4/ISO/AVC' to the file 'video.mpeg'. Container format: AVC/h.264 elementary stream
Progress: 100%
and since it's an mkv it doesn't play nice with vlc which is what i used to play it but i have read that mplayer plays mkv files more smoothly and it worked but i still want to make it into an avi file format

Last edited by baronobeefdip; 12-30-2010 at 06:07 PM.
 
Old 12-30-2010, 06:20 PM   #4
silvyus_06
Member
 
Registered: Oct 2010
Distribution: Ubuntu 10.04 , Linux Mint Debian Edition , Microsoft Windows 7
Posts: 390

Rep: Reputation: 50
hi there.
i recently converted a dvd iso file with a movie on it to ogg compressed to 700MB.

i looked at the log file and through it i found this command that it used to combine the audio and video together .

maybe starting from this would another more experienced user give the corrent command ... i think it is for ogg . please anyone say for avi ...

Quote:
Merging
-------

oggz-merge -o /home/andy/6gradesthatcouldchanetheworld.ogg /tmp/video.SVG8NV /tmp/audio.08ZCOV
 
Old 12-30-2010, 09:18 PM   #5
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,137
Blog Entries: 6

Rep: Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826
Do you have ffmpeg installed?
Example:
Code:
ffmpeg myfile.mkv -b 2000k -ab 128k -s wvga -ac 2 -acodec ac3 myfile.avi
Look at man ffmpeg

There are lots of options to choose from
http://www.ffmpeg.org/ffmpeg-doc.html
http://draconishinobi.50webs.com/linux/encoding.html
 
  


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
extract audio from a mkv file sylar Linux - Software 16 11-29-2017 02:58 PM
An application to extract the content of flash movies under Linux Basel Linux - Software 1 02-21-2006 12:13 AM
What program can I use to extract a rar file in linux? gbdavidx Linux - Software 3 11-20-2004 05:30 PM
Get Log file content by C/C++ program alchen1999 Programming 4 09-04-2003 10:55 AM

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

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