2009年4月16日 星期四

ffmpeg encode mp3


http://howto-pages.org/ffmpeg/

從avi檔案中取出mp3 audio
ffmpeg -i 影片/JerryCCanonRock.avi JerryCCanonRock.mp3

CD wav 檔轉 mp3 bitrate 320k
ffmpeg -ab 320k -i 桌面/Track\ 10.wav NR.mp3

gigijoe@gigijoe-laptop:~$ ffmpeg -ab 320k -i 桌面/Track\ 10.wav NR.mp3
FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
  configuration: --enable-gpl --enable-pp --enable-swscaler --enable-pthreads --enable-libvorbis --enable-libtheora --enable-libogg --enable-libgsm --enable-dc1394 --disable-debug --enable-shared --prefix=/usr
  libavutil version: 1d.49.3.0
  libavcodec version: 1d.51.38.0
  libavformat version: 1d.51.10.0
  built on Mar 12 2008 14:31:53, gcc: 4.2.3 (Ubuntu 4.2.3-2ubuntu4)
Input #0, wav, from '桌面/Track 10.wav':
  Duration: 00:08:57.5, start: 0.000000, bitrate: 1411 kb/s
  Stream #0.0: Audio: pcm_s16le, 44100 Hz, stereo, 1411 kb/s
File 'NR.mp3' already exists. Overwrite ? [y/N] y
Output #0, mp2, to 'NR.mp3':
  Stream #0.0: Audio: mp2, 44100 Hz, stereo, 320 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
Press [q] to stop encoding
size=   20996kB time=537.5 bitrate= 320.0kbits/s   
video:0kB audio:20996kB global headers:0kB muxing overhead 0.000000%

Ubuntu CD ripper

https://help.ubuntu.com/community/CDRipping#RubyRipper
http://ubuntuforums.org/showthread.php?t=295698&page=3

Encode mp3 from DVD .vob file

gigijoe@user-desktop:~/ffmpeg$ ./ffmpeg -i /media/cdrom0/VIDEO_TS/VTS_01_0.VOB -ab 320k ./VTS_01_0.mp3
FFmpeg version SVN-r18658, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  configuration: --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-gpl
  libavutil     50. 3. 0 / 50. 3. 0
  libavcodec    52.27. 0 / 52.27. 0
  libavformat   52.32. 0 / 52.32. 0
  libavdevice   52. 2. 0 / 52. 2. 0
  libswscale     0. 7. 1 /  0. 7. 1
  built on Apr 22 2009 15:18:23, gcc: 4.2.3 (Ubuntu 4.2.3-2ubuntu7)

Seems stream 0 codec frame rate differs from container frame rate: 59.94 (60000/1001) -> 29.97 (60000/2002)
Input #0, mpeg, from '/media/cdrom0/VIDEO_TS/VTS_01_0.VOB':
  Duration: 00:00:59.93, start: 0.330078, bitrate: 1311 kb/s
    Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 720x480 [PAR 8:9 DAR 4:3], 9000 kb/s, 29.97 tbr, 90k tbn, 59.94 tbc
    Stream #0.1[0x20]: Subtitle: dvdsub
    Stream #0.2[0x80]: Audio: ac3, 48000 Hz, stereo, s16, 384 kb/s
Output #0, mp3, to './VTS_01_0.mp3':
    Stream #0.0: Audio: libmp3lame, 48000 Hz, stereo, s16, 320 kb/s
Stream mapping:
  Stream #0.2 -> #0.0
Press [q] to stop encoding
size=    7033kB time=180.05 bitrate= 320.0kbits/s   
video:0kB audio:7033kB global headers:0kB muxing overhead 0.000444%

http://forum.doom9.org/archive/index.php/t-134588.html


沒有留言:

張貼留言