Differences

This shows you the differences between two versions of the page.

Link to this comparison view

howto:convert_mp4_to_mp3_files_in_linux [2016/04/14 09:30] (current)
yehuda created
Line 1: Line 1:
 +====== How to convert mp4 to mp3 files in linux ======
  
 +<code bash>
 +#!/bin/sh
 +
 +if [ ! -d mp3 ] ;
 +    mkdir mp3
 +fi
 +
 +for item in *.mp4; 
 +do
 + ffmpeg -i "${item}" -vn \
 +       -acodec libmp3lame -ac 2 -ab 160k -ar 48000 \
 +        "mp3/${item%mp4}mp3"
 +done
 +</code>
howto/convert_mp4_to_mp3_files_in_linux.txt ยท Last modified: 2016/04/14 09:30 by yehuda
Back to top
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0