[Ubuntu-BR] Extraindo áudio com o ffmpeg
nethell
nethell em logbin.net
Terça Março 12 13:43:54 UTC 2013
Em Ter, 2013-03-12 às 10:01 -0300, Luciano de Souza escreveu:
> Caros,
> Tentei extrair o áudio de um vídeo, convertendo para mp3. Para isso,
> utilizei o ffmpeg, instalado com "sudo apt-get install ffmpeg".
> Entretanto, houve erro no resultado do processamento. Alguém teria
> alguma idéia sobre o porquê o meu arquivo não foi convertido? E como
> poderia resolver este problema?
Luciano,
fiz isso com um arquivo problemático seguindo uma dica do Daniel de
Oliveira há malguns anos:
mplayer -ao pcm -vo null video.flv
Ele vai gerar um audiodump.wav
Instalei o encoder gstreamer0.10-plugins-ugly-multiverse
Utilizei o sound converter e obtive o audiodump.mp3
No momento não tenho como testar aqui, estou na máquina de trabalho, mas
dá uma conferida.
Abraços,
nethell
> luciano [pendrive] $ ffmpeg -i teste.avi teste.mp3
> FFmpeg version SVN-r0.5.9-4:0.5.9-0ubuntu0.10.04.3, Copyright (c)
> 2000-2009 Fabrice Bellard, et al.
> configuration: --extra-version=4:0.5.9-0ubuntu0.10.04.3 --prefix=/usr
> --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib
> --enable-libgsm --enable-libschroedinger --enable-libspeex
> --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib
> --disable-stripping --disable-vhook --enable-runtime-cpudetect
> --enable-gpl --enable-postproc --enable-swscale --enable-x11grab
> --enable-libdc1394 --enable-shared --disable-static
> libavutil 49.15. 0 / 49.15. 0
> libavcodec 52.20. 1 / 52.20. 1
> libavformat 52.31. 0 / 52.31. 0
> libavdevice 52. 1. 0 / 52. 1. 0
> libavfilter 0. 4. 0 / 0. 4. 0
> libswscale 0. 7. 1 / 0. 7. 1
> libpostproc 51. 2. 0 / 51. 2. 0
> built on Jan 24 2013 19:42:21, gcc: 4.4.3
>
> Seems stream 0 codec frame rate differs from container frame rate: 23.98
> (65535/2733) -> 23.98 (24000/1001)
> Input #0, avi, from 'teste.avi':
> Duration: 01:57:58.08, start: 0.000000, bitrate: 858 kb/s
> Stream #0.0: Video: mpeg4, yuv420p, 640x272 [PAR 1:1 DAR 40:17],
> 23.98 tbr, 23.98 tbn, 23.98 tbc
> Stream #0.1: Audio: mp3, 48000 Hz, stereo, s16, 128 kb/s
> Output #0, mp3, to 'teste.mp3':
> Stream #0.0: Audio: 0x0000, 48000 Hz, stereo, s16, 64 kb/s
> Stream mapping:
> Stream #0.1 -> #0.0
> Unsupported codec for output stream #0.0
> luciano [pendrive] $
> luciano [pendrive] $
>
>
--
nethell (Salles) in logbin.net - Ubuntu User 24389 - Linux User 496632
More information about the ubuntu-br
mailing list