x
Search Posts:
BLOG POST #93 SHOW ALL

convert YT videos to ogg and mp3 with ffmpeg

#!/bin/bash

mkdir audio

for file in *.mp4
do
ffmpeg -i $file -vn -acodec libvorbis -ab 192k -ar 44100 ./audio/$file.ogg
done

for file in *.flv
do
ffmpeg -i $file -vn -acodec libvorbis -ab 192k -ar 44100 ./audio/$file.ogg
done

for file in *.mp4
do
ffmpeg -i $file -vn -acodec libmp3lame -ab 192k -ar 44100 ./audio/$file.mp3
done

for file in *.flv
do
ffmpeg -i $file -vn -acodec libmp3lame -ab 192k -ar 44100 ./audio/$file.mp3
done