Solved

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

Posted on 2014-10-15
4
430 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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 demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

760 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

18 Experts available now in Live!

Get 1:1 Help Now