Differences

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

Link to this comparison view

howto:convert_mp4_to_mp3_linux [2016/11/06 12:24] (current)
yehuda created
Line 1: Line 1:
 +====== Convert mp4 to mp3 linux ======
 +<code bash convert.sh>
 +#!/bin/sh
 +
 +SAVEIFS=$IFS
 +IFS=$(echo -en "\n\b")
 +for f in *
 +do
 +  echo "$f"
 +  ffmpeg -i "$f" -vn \
 +       -acodec libmp3lame -ac 2 -ab 160k -ar 48000 \
 +      "${f%.mp4}.mp3"
 +done
 +IFS=$SAVEIFS
 +</code>
  
howto/convert_mp4_to_mp3_linux.txt ยท Last modified: 2016/11/06 12:24 by yehuda
Back to top
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0