copy-mode extract of audio from youtube flv video
I would like to extract the audio from a youtube (.flv) file without re-encoding it. When I play the video with mplayer and watch the console (text) output I see that the audio is in mp3 form. Despite this, I cannot extract that to an mp3 file (attempts using mencoder and also with transcode). I can use transcode to extract the audio but only in a way converts it to PCM ... which is not what I want.
By the way, extracting just the video part (no sound) in copy-mode (not-re-encoding) is easy: Code:
mencoder -of avi -nosound -ovc copy in.flv -o out_just_vid.avi |
Try this:
'ffmpeg -i inputfile.flv -f mp3 -vn -acodec copy ouputfile.mp3' That should do it for most files. Apparently there are some microphone-recorded .flv files that use a proprietary codec that doesn't have any open source support. I don't know how common those are in the wild. |
The easiest and most elegant (IMO) way is:
Code:
mplayer -dumpaudio in.flv |
David The H. and osor, I tried both your methods and both worked! Not only that, the files produced by the two methods are identical. Most excellent! Thank you both! Yay! :D :D
|
Quote:
Code:
[root@localhost tmp]# ffmpeg -i video.flv -f mp3 -vn -acodec copy carsounds2.mp3 Code:
[chris@localhost tmp]$ mplayer -dumpaudio video.flv |
I'm trying to get the audio only from here. I've already got the video.flv from that youtube site. Please help.
http://www.youtube.com/watch?v=Ejb8QOyjz-E& I tried putting together some of my own commands just as a test. Here are the results. Code:
[root@localhost tmp]# mencoder -novideo -ovc copy video.flv -o ultimatecarsounds2.mp3 |
Nevermind, problem solved. I used Avidemux.
|
extract audio from .flv files
To get the audio from a bunch of .flv files I use
for i in *.flv; do ffmpeg -i $i -f mp3 -vn -acodec copy $i.mp3 ;done By the way; this linuxquestions format is a pain in the ass. Try to log in and then find the question you were trying to answer is nuts. The thread disappeared after I loged in. bruce |
Quote:
|
Fakie_Flip: The video you posted is an mp4 file and not a flash video. It uses aac codec rather than mp3.
I was able to extract the audio easily with: ffmpeg -i Ultimate_Car_Sounds__Part_II.mp4 -vn -acodec copy ucs.m4a I could have transcoded it to another audio format/codec. Generally I will first play the source with "ffmpeg -identify <video_file>" and study the text output for what make up the video and audio streams. You can't go by the extension. It just indicates the container. |
but i usually chose Audio Recorder
|
Edit: deleted.
I should've noticed this was an older thread. I'd already replied to this one. :( |
extract audio from flv
use winff
|
Update: Solution
I know this is an old thread, but I found a solution over at UbuntuForums and thought I would post it here, too:
http://ubuntuforums.org/showpost.php...1&postcount=14 cheers, ethan |
dump and convert audio from flv to wav using mplayer
This way seems to work well (and one can see fast video meanwile ;-) ):
mplayer -ao pcm input.flv -ao pcm:file="output.wav" |
All times are GMT -5. The time now is 07:57 AM. |