LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 05-30-2013, 12:40 PM   #1
ptokk
LQ Newbie
 
Registered: Aug 2009
Location: Bremen, Germany
Distribution: Debian
Posts: 4

Rep: Reputation: 2
Extracting audio from video files -- which conversions are tricky?


I've been working more and more with music videos of choirs lately. I tend to download a video file, then convert it (using ffmpeg) to an audio file in one of the following formats: FLAC, OGG, WAV, AU.

I often edit the audio files using audacity.

The original files are either MP4 files or FLV files.

Can someone inform me as to whether there are better and worse choices for audio formats, or are the formats I mentioned without special problems?
 
Old 05-30-2013, 01:43 PM   #2
stevene
LQ Newbie
 
Registered: Jun 2005
Location: Wiltshire, UK
Distribution: SUSE
Posts: 9

Rep: Reputation: 1
FLAC is lossless. While some will have already been lost in the encoding for the video - It will at least retain what is there. I'd recommend that.
You can then export to whatever is suitable when needed.
 
Old 05-30-2013, 01:45 PM   #3
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
The best thing to do generally is just to extract the raw audio stream as is and use that. The audio tracks of most media out there in the wild are already in one of the common lossy encodings; mp2, mp3, mp4, vorbis, wma, aac. "ffmpeg -acodec copy -vn" will extract the original audio stream from the source container. You can check the ffmpeg screen printout to see what the format/codec/stats are.

Your second best option would be to transfer it into a lossless format like flac or wav. This will give you an exact duplicate of the raw pcm audio -- including all the flaws that came from the previous lossy conversion. Note though that most people associate wav and flac with pristine CD-quality audio, and it can be easy to lose track of the ones that are actually lossy. Some people (like me) think that a lossless copy of a lossy recording is something of a travesty, except as a temporary step in a larger editing process.

As for editing, programs like audacity will likewise extract the source into a lossless format for internal use. So as long as the track sits in the editor you won't lose any quality (other than what you do to it in editing), but if you export it again into a lossy format you will incur further audio degradation.

In other words, as long as you keep either the original stream, or use a lossless codec, you'll maintain the best possible quality, but any conversion from one lossy codec to another will cause loss of sound quality, like making photocopies of photocopies.

Whether that's is a problem for you, or even noticeable, is up to you to decide.
 
  


Reply

Tags
audio, conversion, video



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
[SOLVED] extracting audio from "dual audio" video file ? dEnDrOn Linux - General 6 08-02-2011 07:55 PM
smplayer: video+audio stutters with pulseaudio, audio files play fine GamerX Linux - Desktop 1 02-06-2009 08:53 PM
Extracting audio from a video file DesignerX Mandriva 2 06-29-2007 03:43 PM
Extracting video frames to image files. Gutya Linux - General 1 10-15-2006 04:16 AM
Extracting audio from mpeg4 video fiacobelli Linux - Software 2 04-12-2006 09:07 PM

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

All times are GMT -5. The time now is 03:33 AM.

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