Updated: Thu Mar 11, 2010 (07:00), A PHP / MySQL professional (10 yrs.exp.) is seeking employment outside Ukraine, CV and contact pages available at this site.

Welcome!

Contains materials for dummies This blog is for Linux dummies as just I am.

This blog contains various solutions and how-toes on the current release of Fedora Linux distribution and several Linux articles and tutorials.

View a PHP / MySQL / AJAX / JAVASCRIPT Freelancer Programmer profile on LinkedIn Follow me on twitter

Fedora Availability

Historically Test and General Availability releases happen at 10:00am Eastern US Time...

Announcement

A php/mysql freelancer programmer since 2001 is looking for contract work. Please use contact form at this page.

The full resume with examples of PHP/MySQL/Javascript projects, working experience and recommendations is available online from this page.

Get ioncube encoder

Ioncube encoder is the best solution for php developers

Ioncube encoder is the best solution for a php developer

Path: Blog > Linux > Audio Encoding > Ripping a Single Audio Stream from a File or DVD

Ripping a Single Audio Stream from a File or DVD

Valid for Fedora 10.

First get stream information and look which streams are available.

ffmpeg -i [INPUT].avi

When we have an avi (mpeg, mov, mp4) or another simple multimedia file with a single audio track:

ffmpeg -i [INPUT].avi -vn -acodec -ao pcm:fast:file=audio.wav -vc null -vo null

When we have an avi (mp4, mkv) or another multimedia file with multiple audio tracks (use -map option):

ffmpeg -i [INPUT].avi -vn -map 0:1 -acodec -ao pcm:fast:file=audio.wav -vc null -vo null

Ripping a 5.1 ac3 audio track form a multimedia file into a native ac3 format without re-encoding:

ffmpeg -i [INPUT].avi -vn -acodec ac3 -ac 6 -ab 384K -map 0:1 audio.ac3

Ripping an audio track from a DVD:

mplayer dvd:// -v | grep "audio stream" # find audio stream ids
mplayer title.vob -ao pcm:file=audio.wav -vc dummy -aid 128 -vo null

Post-processing of a PCM file:

normalize audio.wav

PCM (2 channels) to ipod’s aac:

neroAacEnc -if audio.wav -of audio.m4a

PCM to MP3:

lame -h audio.wav  audio.mp3

Example of direct ripping into an mp3 file from a multimedia file:

ffmpeg -i [INPUT].mkv -vn -acodec libmp3lame -ac 2 -ab 192K audio.mp3
Support this site:        

Leave a comment

You must be logged in to post a comment.

Get a Free Web Project Quote from a PHP Freelancer Consultant


 
 
 
 

Fight Spam!   Add to Technorati Favorites Programming Blogs - BlogCatalog Blog Directory       Programming Blog Directory
Software   Top Blogs

blogarama - the blog directory