Solved

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

Posted on 2014-10-15
4
481 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Help Linux centos 5.7 3 95
Problem to command 8 101
"uptime" high (200+) on RHEL6 but CPU usage is low... any ideas why? 4 110
WiFi Router device supports GPON! 3 119
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…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

733 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