FFmpeg is a complete, cross-platform solution to record, convert and stream audio and video. It includes libavcodec – the leading audio/video codec library.
Install ffmpeg On Ubuntu
sudo apt-get install ffmpeg libavcodec-extra-53
Converting MP4 to MP3
Basic command:
ffmpeg -i filename.mp4 filename.mp3
Find out the more options of this command with man page. (man ffmpeg)
ffmpeg -i filename.mp4 -b:a 192K -vn filename.mp3
A stream specifier can match several stream, the option is then applied to all of them. E.g. the stream specifier in “-b:a 128k” matches all audio streams.
By Script:
The following script is going to convert all file with extension .mp4 in the folder Music to .mp3.
#!/bin/bash
MP4FILE=$(ls ~/Music/ |grep .mp4)
for filename in $MP4FILE
do
name=`echo "$filename" | sed -e "s/.mp4$//g"`
ffmpeg -i ~/Music/$filename -b:a 192K -vn ~/Music/$name.mp3
done
Install ffmpeg On Ubuntu
sudo apt-get install ffmpeg libavcodec-extra-53
Converting MP4 to MP3
Basic command:
ffmpeg -i filename.mp4 filename.mp3
Find out the more options of this command with man page. (man ffmpeg)
ffmpeg -i filename.mp4 -b:a 192K -vn filename.mp3
A stream specifier can match several stream, the option is then applied to all of them. E.g. the stream specifier in “-b:a 128k” matches all audio streams.
By Script:
The following script is going to convert all file with extension .mp4 in the folder Music to .mp3.
#!/bin/bash
MP4FILE=$(ls ~/Music/ |grep .mp4)
for filename in $MP4FILE
do
name=`echo "$filename" | sed -e "s/.mp4$//g"`
ffmpeg -i ~/Music/$filename -b:a 192K -vn ~/Music/$name.mp3
done
FFmpeg is a complete, cross-platform solution to record, convert and stream audio and video. It includes libavcodec – the leading audio/video codec library.
Install ffmpeg On Ubuntu
sudo apt-get install ffmpeg libavcodec-extra-53
Converting MP4 to MP3
Basic command:
ffmpeg -i filename.mp4 filename.mp3
Find out the more options of this command with man page. (man ffmpeg)
ffmpeg -i filename.mp4 -b:a 192K -vn filename.mp3
A stream specifier can match several stream, the option is then applied to all of them. E.g. the stream specifier in “-b:a 128k” matches all audio streams.
By Script:
The following script is going to convert all file with extension .mp4 in the folder Music to .mp3.
#!/bin/bash
MP4FILE=$(ls ~/Music/ |grep .mp4)
for filename in $MP4FILE
do
name=`echo "$filename" | sed -e "s/.mp4$//g"`
ffmpeg -i ~/Music/$filename -b:a 192K -vn ~/Music/$name.mp3
done
- See more at: http://www.unixmen.com/linux-basics-convert-mp4-mp3/#sthash.QoGtqCIX.dpufFFmpeg is a complete, cross-platform solution to record, convert and stream audio and video. It includes libavcodec – the leading audio/video codec library.
Install ffmpeg On Ubuntu
sudo apt-get install ffmpeg libavcodec-extra-53
Converting MP4 to MP3
Basic command:
ffmpeg -i filename.mp4 filename.mp3
Find out the more options of this command with man page. (man ffmpeg)
ffmpeg -i filename.mp4 -b:a 192K -vn filename.mp3
A stream specifier can match several stream, the option is then applied to all of them. E.g. the stream specifier in “-b:a 128k” matches all audio streams.
By Script:
The following script is going to convert all file with extension .mp4 in the folder Music to .mp3.
#!/bin/bash
MP4FILE=$(ls ~/Music/ |grep .mp4)
for filename in $MP4FILE
do
name=`echo "$filename" | sed -e "s/.mp4$//g"`
ffmpeg -i ~/Music/$filename -b:a 192K -vn ~/Music/$name.mp3
done
- See more at: http://www.unixmen.com/linux-basics-convert-mp4-mp3/#sthash.QoGtqCIX.dpufFFmpeg is a complete, cross-platform solution to record, convert and stream audio and video. It includes libavcodec – the leading audio/video codec library.
Install ffmpeg On Ubuntu
sudo apt-get install ffmpeg libavcodec-extra-53
Converting MP4 to MP3
Basic command:
ffmpeg -i filename.mp4 filename.mp3
Find out the more options of this command with man page. (man ffmpeg)
ffmpeg -i filename.mp4 -b:a 192K -vn filename.mp3
A stream specifier can match several stream, the option is then applied to all of them. E.g. the stream specifier in “-b:a 128k” matches all audio streams.
By Script:
The following script is going to convert all file with extension .mp4 in the folder Music to .mp3.
#!/bin/bash MP4FILE=$(ls ~/Music/ |grep .mp4) for filename in $MP4FILE do name=`echo "$filename" | sed -e "s/.mp4$//g"` ffmpeg -i ~/Music/$filename -b:a 192K -vn ~/Music/$name.mp3 done- See more at: http://www.unixmen.com/linux-basics-convert-mp4-mp3/#sthash.QoGtqCIX.dpuf
FFmpeg
is a complete, cross-platform solution to record, convert and stream
audio and video. It includes libavcodec – the leading audio/video codec
library.
Install ffmpeg On Ubuntu
sudo apt-get install ffmpeg libavcodec-extra-53
Converting MP4 to MP3
Basic command:
ffmpeg -i filename.mp4 filename.mp3
Find out the more options of this command with man page. (man ffmpeg)
ffmpeg -i filename.mp4 -b:a 192K -vn filename.mp3
A stream specifier can match several stream, the option is then applied to all of them. E.g. the stream specifier in “-b:a 128k” matches all audio streams.
By Script:
The following script is going to convert all file with extension .mp4 in the folder Music to .mp3.
#!/bin/bash MP4FILE=$(ls ~/Music/ |grep .mp4) for filename in $MP4FILE do name=`echo "$filename" | sed -e "s/.mp4$//g"` ffmpeg -i ~/Music/$filename -b:a 192K -vn ~/Music/$name.mp3 done- See more at: http://www.unixmen.com/linux-basics-convert-mp4-mp3/#sthash.QoGtqCIX.
FFmpeg
is a complete, cross-platform solution to record, convert and stream
audio and video. It includes libavcodec – the leading audio/video codec
library.
Install ffmpeg On Ubuntu
sudo apt-get install ffmpeg libavcodec-extra-53
Converting MP4 to MP3
Basic command:
ffmpeg -i filename.mp4 filename.mp3
Find out the more options of this command with man page. (man ffmpeg)
ffmpeg -i filename.mp4 -b:a 192K -vn filename.mp3
A stream specifier can match several stream, the option is then applied to all of them. E.g. the stream specifier in “-b:a 128k” matches all audio streams.
By Script:
The following script is going to convert all file with extension .mp4 in the folder Music to .mp3.
#!/bin/bash MP4FILE=$(ls ~/Music/ |grep .mp4) for filename in $MP4FILE do name=`echo "$filename" | sed -e "s/.mp4$//g"` ffmpeg -i ~/Music/$filename -b:a 192K -vn ~/Music/$name.mp3 done- See more at: http://www.unixmen.com/linux-basics-convert-mp4-mp3/#sthash.QoGtqCIX.dpuf
FFmpeg
is a complete, cross-platform solution to record, convert and stream
audio and video. It includes libavcodec – the leading audio/video codec
library.
Install ffmpeg On Ubuntu
sudo apt-get install ffmpeg libavcodec-extra-53
Converting MP4 to MP3
Basic command:
ffmpeg -i filename.mp4 filename.mp3
Find out the more options of this command with man page. (man ffmpeg)
ffmpeg -i filename.mp4 -b:a 192K -vn filename.mp3
A stream specifier can match several stream, the option is then applied to all of them. E.g. the stream specifier in “-b:a 128k” matches all audio streams.
By Script:
The following script is going to convert all file with extension .mp4 in the folder Music to .mp3.
#!/bin/bash MP4FILE=$(ls ~/Music/ |grep .mp4) for filename in $MP4FILE do name=`echo "$filename" | sed -e "s/.mp4$//g"` ffmpeg -i ~/Music/$filename -b:a 192K -vn ~/Music/$name.mp3 done- See more at: http://www.unixmen.com/linux-basics-convert-mp4-mp3/#sthash.QoGtqCIX.dpuf.vndifgdslkfjodsjbklzcidfsu
No comments:
Post a Comment