|
|
|
|
Bonjour,
en suivant ceci :
http://forums.fedoraforum.org/forum/showthread.php?p=1004207#post1004207
ou "comment télécharger des vidéos youtube et extraire uniquement le son",.
Je reproduis donc ici, à l'identique les manipulations pour extraire la partie audio ....manipulations que voici :
première méthode :
[redfox@fedora8 Bureau]$ mplayer -dumpaudio myvideo.flv MPlayer 1.0rc2-4.1.2 (C) 2000-2007 MPlayer Team CPU: Intel(R) Celeron(R) CPU 2.80GHz (Family: 15, Model: 4, Stepping: 1) CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1 Compiled with runtime CPU detection. 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 myvideo.flv. libavformat file format detected. [lavf] Video stream found, -vid 0 [lavf] Audio stream found, -aid 1 VIDEO: [FLV1] 320x240 0bpp 25.000 fps 0.0 kbps ( 0.0 kbyte/s) Core dumped Exiting... (End of file) [redfox@fedora8 Bureau]$
[redfox@fedora8 Bureau]$ ffmpeg -i myvideo.flv -f mp3 -vn -acodec copy myvideo.mp3 FFmpeg version SVN-r10703, Copyright (c) 2000-2007 Fabrice Bellard, et al. configuration: --prefix=/usr --incdir=/usr/include/ffmpeg --libdir=/usr/lib --shlibdir=/usr/lib --mandir=/usr/share/man --arch=i386 --extra-cflags=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables --enable-liba52 --enable-libfaac --enable-libfaad --enable-libgsm --enable-libmp3lame --enable-libogg --enable-libtheora --enable-libvorbis --enable-libxvid --enable-libx264 --enable-pp --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-opts --disable-strip libavutil version: 49.5.0 libavcodec version: 51.45.0 libavformat version: 51.14.0 built on Oct 18 2007 03:11:06, gcc: 4.1.2 20070925 (Red Hat 4.1.2-31) Seems stream 0 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 25.00 (25/1) Input #0, flv, from 'myvideo.flv': Duration: 00:05:00.0, start: 0.000000, bitrate: 56 kb/s Stream #0.0: Video: flv, yuv420p, 320x240, 25.00 fps(r) Stream #0.1: Audio: mp3, 22050 Hz, mono, 56 kb/s Output #0, mp3, to 'trumpet.mp3': Stream #0.0: Audio: libmp3lame, 22050 Hz, mono, 56 kb/s Stream mapping: Stream #0.1 -> #0.0 Press [q] to stop encoding size= 2321kB time=300.0 bitrate= 63.4kbits/s video:0kB audio:2321kB global headers:0kB muxing overhead 0.001347% [redfox@fedora8 Bureau]$
[redfox@fedora8 Bureau]$ ls -l stream.dump myvideo.mp3 -rw-rw-r-- 1 redfox redfox 2376318 mai 1 14:04 stream.dump -rw-rw-r-- 1 redfox redfox 2376350 mai 1 14:19 myvideo.mp3 [redfox@fedora8 Bureau]$
Configuration: Linux Fedora8 Firefox 3.0
Répondre à jeanbi
|
Non, jamais essayé !
|
Ok ! en vrac :
vo = gl2 ## active la sortie gl2 double = yes ## double buffering fs=yes ## démarre la vidéo en plein écran fixed-vo=yes ## maintient la vidéo en plein écran lors d'un changement de fichier nom du fichier : "making_a_trumpet.avi" [redfox@fedora8 Bureau]$ mplayer making_a_trumpet.avi MPlayer 1.0rc2-4.1.2 (C) 2000-2007 MPlayer Team CPU: Intel(R) Celeron(R) CPU 2.80GHz (Family: 15, Model: 4, Stepping: 1) CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1 Compiled with runtime CPU detection. 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 making_a_trumpet.avi. AVI file format detected. [aviheader] Video stream found, -vid 0 [aviheader] Audio stream found, -aid 1 VIDEO: [FMP4] 320x240 24bpp 25.000 fps 205.9 kbps (25.1 kbyte/s) Clip info: Software: Lavf51.14.0 ========================================================================== Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4) ========================================================================== ========================================================================== Opening audio decoder: [mp3lib] MPEG layer-2, layer-3 AUDIO: 48000 Hz, 2 ch, s16le, 64.0 kbit/4.17% (ratio: 8000->192000) Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3) ========================================================================== AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample) Starting playback... VDec: vo config request - 320 x 240 (preferred colorspace: Planar YV12) Could not find matching colorspace - retrying with -vf scale... Opening video filter: [scale] VDec: using Planar YV12 as output csp (no 0) Movie-Aspect is 1.33:1 - prescaling to correct movie aspect. [swscaler @ 0x876e990]SwScaler: using unscaled yuv420p -> bgr24 special converter VO: [gl2] 320x240 => 320x240 BGR 24-bit [fs] [gl2] You have OpenGL >= 1.2 capable drivers, GOOD (16bpp and BGR is ok!) [gl2] antialiasing off [gl2] bilinear linear No bind found for key 'MOUSE_BTN2'. 5% 2 0 A: 23.1 V: 23.1 A-V: -0.000 ct: 0.004 578/578 3% 11% 0.5% 2 0 Exiting... (Quit) ...............................................................................................en faisant Echap [redfox@fedora8 Bureau]$ car je sais pas comment revenir à la taille "normale" proprement ... bref mplayer marche, bien que je retrouve les mêmes messages d'erreur ! enfin je pense que la commande mplayer -dumpaudio est foireuse ! mplayer semble tout faire : How to Backup a DVD https://help.ubuntu.com/community/BackupDVD Un Linux, c'est bien ...........plein de Linux, c'est mieux ! Debian lenny // Fedora 2.6.24.5-85.fc8 // Gentoo 2.6.24-gentoo-r4 // Mandriva 2007.1 Spring
|
Petit rajout pour moi :
mencoder -oac copy -ovc copy -o file.avi file.flvUn Linux, c'est bien ...........plein de Linux, c'est mieux ! Debian lenny // Fedora 2.6.24.5-85.fc8 // Gentoo 2.6.24-gentoo-r4 // Mandriva 2007.1 Spring |
Vous pouvez utilisez ca c'est plus simple http://listentoyoutube.com/
|
@ opening post: " il semble qu'il y ait un gros problème...mais pourtant, et, de façon intéressante, s'est créé un fichier nommé "stream.dump".
|
$ mplayer -dumpaudio -dumpfile audio.mp3 video.flv
mplayer -dumpaudio my_video_file.avi -dumpfile extracted_audio.mp3 et comme le dit le sage dicton : "mieux vaut tard que jamais" .... alors, merci ! un pinguin sur la banquise ! |
extraire une image d'une video avec ffmpeg :
|