Solved

how to extract and convert  audio  m2ts files with bash linux files

Posted on 2014-10-15
4
449 Views
Last Modified: 2014-10-16
hello

how to extract audio on m2ts files without loss quality and convert to ac3 a 192kbps


tx in advence
0
Comment
Question by:Gaaara
4 Comments
 
LVL 61

Expert Comment

by:gheist
ID: 40385328
Transcoding always involves quality loss.
0
 
LVL 37

Accepted Solution

by:
Gerwin Jansen earned 250 total points
ID: 40385430
You can use ffmpeg to extract the audio, use ffplay to find the audio stream, then extract like this (if 0:2 is your audio stream):

ffmpeg -i ./file.m2ts -map 0:2 -acodec pcm_s24le output.wav

You can get ffmpeg here: https://www.ffmpeg.org/download.html
0
 
LVL 18

Assisted Solution

by:TobiasHolm
TobiasHolm earned 250 total points
ID: 40385469
Extract the audio with:
ffmpeg -i "INPUT.m2ts" -acodec copy "OUTPUT.aac"

If the m2ts file contains a 192kbit ac3 stream you'll have the audio without having to reencode it!

You might have to download the ffmpeg source and compile it depending on what/if ffmpeg is already included in your machine.

/Tobias
0
 

Author Closing Comment

by:Gaaara
ID: 40385791
a 1 tx all ! 5 star !
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now