How to transcode YouTube mp4 audio to mp3 with ffmpeg?
Posted: Wed 15 Apr 2009, 18:39
hey all,
here's a simple version of my dilemma (more elaborated below)
I want to uninstall ffmpeg and then reinstall it (manually compile) enabling libfaad, b/c I am trying to transcode mp4 files. How can I do this, since ffmpeg is not in puppy's package manager?
More details:
In case more details can help you solve my problem, here's the whole story:
I am downloading videos from youtube as mp4 files. you can do this by putting the word pwn in front of your youtube url (e.g. www.pwnyoutube.com/video_address_here)
Now, usually these are videos of lectures that I want to listen to in my mp3 player. So, I transode them using ffmpeg. This worked fine at my parent's house using ubuntu! The process is very easy with ffmpeg, just name the input and output files and disable video output with the -vn flag (e.g. ffmpeg -i in.mp4 -vn out.mp3)
Now, when I try to do this on puppy it does not work. And I receive the following error message:
# ffmpeg -i save-video.mp4 -vn out.mp3
FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
configuration: --prefix=/usr --libdir=/usr/lib --mandir=/usr/man --disable-debug --arch=i386 --enable-libmp3lame --enable-liba52 --enable-libogg --enable-libvorbis --enable-pthreads --enable-small --enable-gpl --enable-shared --enable-pp
libavutil version: 49.5.0
libavcodec version: 51.44.0
libavformat version: 51.14.0
built on Oct 23 2007 22:05:00, gcc: 4.2.2
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'save-video.mp4':
Duration: 00:03:25.9, start: 0.000000, bitrate: 623 kb/s
Stream #0.0(und): Audio: mp4a / 0x6134706D, 44100 Hz, stereo
Stream #0.1(und): Video: h264, yuv420p, 480x360, 29.97 fps(r)
Output #0, mp3, to 'out.mp3':
Stream #0.0(und): Audio: libmp3lame, 44100 Hz, stereo, 64 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Unsupported codec (id=86018) for input stream #0.0
So, I am guessing I need to reinstall with libfaad enabled. It's strange that I would need to do this b/c if I play the mp4 using gxine it plays fine and says that it is using ffmpeg with libfaad. So, maybe there is something i am overlooking here??
thks for any help or advice!!!
here's a simple version of my dilemma (more elaborated below)
I want to uninstall ffmpeg and then reinstall it (manually compile) enabling libfaad, b/c I am trying to transcode mp4 files. How can I do this, since ffmpeg is not in puppy's package manager?
More details:
In case more details can help you solve my problem, here's the whole story:
I am downloading videos from youtube as mp4 files. you can do this by putting the word pwn in front of your youtube url (e.g. www.pwnyoutube.com/video_address_here)
Now, usually these are videos of lectures that I want to listen to in my mp3 player. So, I transode them using ffmpeg. This worked fine at my parent's house using ubuntu! The process is very easy with ffmpeg, just name the input and output files and disable video output with the -vn flag (e.g. ffmpeg -i in.mp4 -vn out.mp3)
Now, when I try to do this on puppy it does not work. And I receive the following error message:
# ffmpeg -i save-video.mp4 -vn out.mp3
FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
configuration: --prefix=/usr --libdir=/usr/lib --mandir=/usr/man --disable-debug --arch=i386 --enable-libmp3lame --enable-liba52 --enable-libogg --enable-libvorbis --enable-pthreads --enable-small --enable-gpl --enable-shared --enable-pp
libavutil version: 49.5.0
libavcodec version: 51.44.0
libavformat version: 51.14.0
built on Oct 23 2007 22:05:00, gcc: 4.2.2
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'save-video.mp4':
Duration: 00:03:25.9, start: 0.000000, bitrate: 623 kb/s
Stream #0.0(und): Audio: mp4a / 0x6134706D, 44100 Hz, stereo
Stream #0.1(und): Video: h264, yuv420p, 480x360, 29.97 fps(r)
Output #0, mp3, to 'out.mp3':
Stream #0.0(und): Audio: libmp3lame, 44100 Hz, stereo, 64 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Unsupported codec (id=86018) for input stream #0.0
So, I am guessing I need to reinstall with libfaad enabled. It's strange that I would need to do this b/c if I play the mp4 using gxine it plays fine and says that it is using ffmpeg with libfaad. So, maybe there is something i am overlooking here??
thks for any help or advice!!!