Difference between revisions of "Linux: "video to mp3""

From Luky-Wiki
Jump to: navigation, search
(Step 1 extract audio from video file)
Line 1: Line 1:
...........................
+
Problem: I have video file with concert or music show and I would like to play it in car or on phone.
  
 +
I both cases it is enough to have audio track and it is necessary to have correct format. My car radio can play only mp3 files (and of course regular cdda).
  
=== Step 1 extract audio from video file ===
+
Here are steps how to get sound track from video and store it as mp3. It is possible to do it directly via <code>ffmpeg</code> but I prefer <code>lame</code> mp3 creator. Depending on source I normalize tracks before converting to mp3. This is also recommend only on lossless file formats.
==== video with stereo sound track ====
 
<code>ffmpeg</code> is powerful video converter. It can be used to "extract" sound track from video files by using correct options.
 
<pre>
 
ffmpeg -i video_file.suffix -vn output.wav
 
</pre>
 
'' -i = input, -vn = no video proccessing''
 
==== video with multi-channel sound track (e.g 5.1 or others) ====
 

Revision as of 19:15, 14 March 2014

Problem: I have video file with concert or music show and I would like to play it in car or on phone.

I both cases it is enough to have audio track and it is necessary to have correct format. My car radio can play only mp3 files (and of course regular cdda).

Here are steps how to get sound track from video and store it as mp3. It is possible to do it directly via ffmpeg but I prefer lame mp3 creator. Depending on source I normalize tracks before converting to mp3. This is also recommend only on lossless file formats.