Solved

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

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

Expert Comment

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

Accepted Solution

by:
Gerwin Jansen, EE MVE 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
why should double free() crash? 7 35
Help Linux centos 5.7 3 94
Linux Hanging with disable Error Output 4 89
bash file 10 49
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…
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…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

840 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