Extração de arquivos de audio de arquivos .flv

1. Extração de arquivos de audio de arquivos .flv

Ronaldo Caldas da Silva
goss

(usa Slackware)

Enviado em 27/06/2013 - 12:27h

Olá Pessoal boa tarde,
estou tentando extrair arquivos mp3 de arquivos de video .flv mas somente estou conseguindo extrair 2 minutos de um arquivo com 20 minutos de video, estou usando o seguinte comando:

ffmpeg -i video1.flv -ab 160k -ac 2 -ar 44100 -vn audio1.mp3
ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers
built on Jun 10 2012 22:43:48 with gcc 4.6.2
configuration: --shlibdir=/usr/lib64 --prefix=/usr --mandir=/usr/share/man --libdir=/usr/lib64 --enable-shared --disable-static --enable-debug --disable-stripping --extra-cflags='-fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -fPIC -I/usr/include/gsm' --enable-gpl --enable-x11grab --enable-version3 --enable-pthreads --enable-avfilter --enable-libpulse --enable-libvpx --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libspeex --enable-libxvid --enable-libx264 --enable-libschroedinger --enable-libgsm --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-postproc --enable-libdc1394 --enable-librtmp --enable-libfreetype --enable-avresample
libavutil 51. 54.100 / 51. 54.100
libavcodec 54. 23.100 / 54. 23.100
libavformat 54. 6.100 / 54. 6.100
libavdevice 54. 0.100 / 54. 0.100
libavfilter 2. 77.100 / 2. 77.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 15.100 / 0. 15.100
libpostproc 52. 0.100 / 52. 0.100
Input #0, flv, from 'video1.flv':
Metadata:
audiodelay : 0
canSeekToEnd : true
Duration: 00:21:53.23, start: 0.000000, bitrate: 969 kb/s
Stream #0:0: Video: vp6f, yuv420p, 640x480, 1536 kb/s, 30 tbr, 1k tbn, 1k tbc
Stream #0:1: Audio: mp3, 44100 Hz, stereo, s16, 128 kb/s
Output #0, mp3, to 'audio1.mp3':
Metadata:
audiodelay : 0
canSeekToEnd : true
TSSE : Lavf54.6.100
Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16, 160 kb/s
Stream mapping:
Stream #0:1 -> #0:0 (mp3 -> libmp3lame)
Press [q] to stop, [?] for help
size= 2351kB time=00:02:00.32 bitrate= 160.1kbits/s
video:0kB audio:2351kB global headers:0kB muxing overhead 0.025302%


Tentei tambem com o mplayer porém esse nem o arquivo de audio funcionou, testei com o seguinte comando:

mplayer -dumpaudio -dumpfile audio1.mp3 video1.flv
MPlayer dev-SVN-r35107-4.6-openSUSE Linux 12.1 (x86_64)-Packman (C) 2000-2012 MPlayer Team
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing video1.flv.
libavformat version 54.25.104 (internal)
libavformat file format detected.
[lavf] stream 0: video (vp6f), -vid 0
[lavf] stream 1: audio (mp3), -aid 0
VIDEO: [VP6F] 640x480 0bpp 30.000 fps 1536.0 kbps (187.5 kbyte/s)
dump: 1920702 bytes written to 'audio1.mp3'.
Core dumped ;)

Exiting... (End of file)

Agradeço a ajuda.




  






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts