Re: [CBLX] ffmpeg et kbps |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/carrefourblinux Archives
]
Salut Philippe:
On Fri, Sep 06, 2013 at 07:23:01PM +0200, Philippe Delavalade wrote:
> Le vendredi 06 septembre à 17:17, Aldo a écrit :
> > en tapant la formule suivante,
> > ffmpeg -i input.mp4 -ab 320K -vn sortie.mp3 ou
> > ffmpeg -i input.mp4 -ab 320000 -vn sortie.mp3
> > j'obtiens un fichier de sortie beaucoup plus bas au niveau kilobit par
> > seconde, à savoir du 48 kbps 44.1 kHz stereo.
> Aucune explication mais chez moi les deux commandes donnent exactement ce
> qui est demandé et les fichiers ont exactement la même taille.
Les deux commandes sont identiques, c'est du "ou ou", j'ai fait le test
juste pour voir si un k minuscule ou K majuscule ou le bitrate écrit à six
chiffres influençait l'exécution de ffmpeg. Apparement non!
> De plus, si aucune option -ab, là j'ai du 128kbps.
Ici, si je fais ça, il annonce du 64 kbps au lieu de 128, et quand j'ai
finit ...et fais un: file fichier_de_sortie.mp3 il me montre à nouveau que
c'est un fichier mp3 à 48 kbps et 44.1 kHz stereo.
> L'essai a été fait sur un fichier .webm
Mes deux essais ont été fait sur un mp4 et un mp3,
même youtube-dl qui possède une option pour refiler un flv ou mp4
à ffmpeg finis par me sortir un fichier mp3 à 48 kbps et 44.1 stereo.
> Par hasard, n'aurais-tu pas un fichier de configuration quelque part ?
Possible mais lequel et où ? Comment le savoir ?
> je précise ma version : 1.2.2
Ma version de ffmpeg (sous Squeeze) est:
ffmpeg 0.7.15
libavutil 50. 43. 0 / 50. 43. 0
libavcodec 52.123. 0 / 52.123. 0
libavformat 52.111. 0 / 52.111. 0
libavdevice 52. 5. 0 / 52. 5. 0
libavfilter 1. 80. 0 / 1. 80. 0
libswscale 0. 14. 1 / 0. 14. 1
libpostproc 51. 2. 0 / 51. 2. 0
J'ajoute en pj le typescript avec les sorties de mes essais,
un premier sans option -ab, le second en voulant forcer 320 kbps.
Aldo.
Script started on vr 06 sep 2013 20:09:41 CEST
aldo@asteroid:/tmp$ file zz.mp3
zz.mp3: Audio file with ID3 version 2.4.0, extended header, contains: MPEG
ADTS, layer III, v1, 192 kbps, 44.1 kHz, JntStereo
aldo@asteroid:/tmp$ ffmpeg -i zz.mp3 -vn aa.mp3
ffmpeg version 0.7.15, Copyright (c) 2000-2013 the FFmpeg developers
built on Feb 22 2013 07:22:31 with gcc 4.4.5
configuration: --enable-libdc1394 --prefix=/usr --extra-cflags='-Wall -g ' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-avfilter --enable-libdirac --disable-decoder=libdirac --enable-libfreetype --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-libvpx --enable-librtmp --extra-libs=-lgcrypt --disable-altivec --disable-armv5te --disable-armv6 --disable-vis
libavutil 50. 43. 0 / 50. 43. 0
libavcodec 52.123. 0 / 52.123. 0
libavformat 52.111. 0 / 52.111. 0
libavdevice 52. 5. 0 / 52. 5. 0
libavfilter 1. 80. 0 / 1. 80. 0
libswscale 0. 14. 1 / 0. 14. 1
libpostproc 51. 2. 0 / 51. 2. 0
[0;33m[mp3 @ 0x8e8a5e0] max_analyze_duration 5000000 reached at 5015510
[0m[0;39mInput #0, mp3, from 'zz.mp3':
[0m[0;39m Metadata:
[0m[0;39m artist : Martin Garrix
[0m[0;39m title : Animals
[0m[0;39m Duration: [0m[0;39m00:05:05.08[0m[0;39m, start: [0m[0;39m0.000000[0m[0;39m, bitrate: [0m[0;39m192 kb/s[0m[0;39m
[0m[0;39m Stream #0.0[0m[0;39m: Audio: mp3, 44100 Hz, stereo, s16, 192 kb/s[0m[0;39m
[0m[0;39mOutput #0, mp3, to 'aa.mp3':
[0m[0;39m Metadata:
[0m[0;39m TPE1 : Martin Garrix
[0m[0;39m TIT2 : Animals
[0m[0;39m TSSE : Lavf52.111.0
[0m[0;39m Stream #0.0[0m[0;39m: Audio: libmp3lame, 44100 Hz, stereo, s16, 64 kb/s[0m[0;39m
[0mStream mapping:
Stream #0.0 -> #0.0
Press [q] to stop, [?] for help
size= 50kB time=00:00:06.34 bitrate= 64.3kbits/s
size= 100kB time=00:00:12.82 bitrate= 64.1kbits/s
size= 152kB time=00:00:19.40 bitrate= 64.1kbits/s
size= 203kB time=00:00:25.93 bitrate= 64.1kbits/s
size= 254kB time=00:00:32.44 bitrate= 64.1kbits/s
size= 305kB time=00:00:38.94 bitrate= 64.0kbits/s
size= 355kB time=00:00:45.45 bitrate= 64.0kbits/s
size= 406kB time=00:00:51.93 bitrate= 64.0kbits/s
size= 456kB time=00:00:58.38 bitrate= 64.0kbits/s
size= 505kB time=00:01:04.62 bitrate= 64.0kbits/s
size= 556kB time=00:01:11.07 bitrate= 64.0kbits/s
size= 606kB time=00:01:17.47 bitrate= 64.0kbits/s
size= 656kB time=00:01:23.95 bitrate= 64.0kbits/s
size= 707kB time=00:01:30.46 bitrate= 64.0kbits/s
size= 758kB time=00:01:36.94 bitrate= 64.0kbits/s
size= 808kB time=00:01:43.41 bitrate= 64.0kbits/s
size= 859kB time=00:01:49.89 bitrate= 64.0kbits/s
size= 910kB time=00:01:56.40 bitrate= 64.0kbits/s
size= 960kB time=00:02:02.90 bitrate= 64.0kbits/s
size= 1011kB time=00:02:09.35 bitrate= 64.0kbits/s
size= 1061kB time=00:02:15.81 bitrate= 64.0kbits/s
size= 1112kB time=00:02:22.28 bitrate= 64.0kbits/s
size= 1163kB time=00:02:28.81 bitrate= 64.0kbits/s
size= 1214kB time=00:02:35.32 bitrate= 64.0kbits/s
size= 1264kB time=00:02:41.80 bitrate= 64.0kbits/s
size= 1315kB time=00:02:48.30 bitrate= 64.0kbits/s
size= 1366kB time=00:02:54.78 bitrate= 64.0kbits/s
size= 1417kB time=00:03:01.28 bitrate= 64.0kbits/s
size= 1467kB time=00:03:07.76 bitrate= 64.0kbits/s
size= 1518kB time=00:03:14.24 bitrate= 64.0kbits/s
size= 1568kB time=00:03:20.72 bitrate= 64.0kbits/s
size= 1619kB time=00:03:27.22 bitrate= 64.0kbits/s
size= 1670kB time=00:03:33.70 bitrate= 64.0kbits/s
size= 1720kB time=00:03:40.16 bitrate= 64.0kbits/s
size= 1771kB time=00:03:46.63 bitrate= 64.0kbits/s
size= 1821kB time=00:03:53.11 bitrate= 64.0kbits/s
size= 1872kB time=00:03:59.56 bitrate= 64.0kbits/s
size= 1922kB time=00:04:06.04 bitrate= 64.0kbits/s
size= 1973kB time=00:04:12.52 bitrate= 64.0kbits/s
size= 2024kB time=00:04:19.00 bitrate= 64.0kbits/s
size= 2075kB time=00:04:25.50 bitrate= 64.0kbits/s
size= 2125kB time=00:04:32.01 bitrate= 64.0kbits/s
size= 2176kB time=00:04:38.54 bitrate= 64.0kbits/s
size= 2227kB time=00:04:45.07 bitrate= 64.0kbits/s
size= 2278kB time=00:04:51.55 bitrate= 64.0kbits/s
size= 2328kB time=00:04:58.00 bitrate= 64.0kbits/s
size= 2380kB time=00:05:04.64 bitrate= 64.0kbits/s
[4;31m[0msize= 2384kB time=00:05:05.11 bitrate= 64.0kbits/s
video:0kB audio:2384kB global headers:0kB muxing overhead 0.014831%
[4;31m[0m
aldo@asteroid:/tmp$ file aa.mp3
aa.mp3: Audio file with ID3 version 2.4.0, contains: MPEG ADTS, layer III,
v1, 48 kbps, 44.1 kHz, Stereo
aldo@asteroid:/tmp$ ffmpeg -i zz.mp3 -ab 320K bb.mp3
ffmpeg version 0.7.15, Copyright (c) 2000-2013 the FFmpeg developers
built on Feb 22 2013 07:22:31 with gcc 4.4.5
configuration: --enable-libdc1394 --prefix=/usr --extra-cflags='-Wall -g ' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-avfilter --enable-libdirac --disable-decoder=libdirac --enable-libfreetype --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-libvpx --enable-librtmp --extra-libs=-lgcrypt --disable-altivec --disable-armv5te --disable-armv6 --disable-vis
libavutil 50. 43. 0 / 50. 43. 0
libavcodec 52.123. 0 / 52.123. 0
libavformat 52.111. 0 / 52.111. 0
libavdevice 52. 5. 0 / 52. 5. 0
libavfilter 1. 80. 0 / 1. 80. 0
libswscale 0. 14. 1 / 0. 14. 1
libpostproc 51. 2. 0 / 51. 2. 0
[0;33m[mp3 @ 0x9f7a5e0] max_analyze_duration 5000000 reached at 5015510
[0m[0;39mInput #0, mp3, from 'zz.mp3':
[0m[0;39m Metadata:
[0m[0;39m artist : Martin Garrix
[0m[0;39m title : Animals
[0m[0;39m Duration: [0m[0;39m00:05:05.08[0m[0;39m, start: [0m[0;39m0.000000[0m[0;39m, bitrate: [0m[0;39m192 kb/s[0m[0;39m
[0m[0;39m Stream #0.0[0m[0;39m: Audio: mp3, 44100 Hz, stereo, s16, 192 kb/s[0m[0;39m
[0m[0;39mOutput #0, mp3, to 'bb.mp3':
[0m[0;39m Metadata:
[0m[0;39m TPE1 : Martin Garrix
[0m[0;39m TIT2 : Animals
[0m[0;39m TSSE : Lavf52.111.0
[0m[0;39m Stream #0.0[0m[0;39m: Audio: libmp3lame, 44100 Hz, stereo, s16, 320 kb/s[0m[0;39m
[0mStream mapping:
Stream #0.0 -> #0.0
Press [q] to stop, [?] for help
size= 296kB time=00:00:07.57 bitrate= 320.2kbits/s
size= 590kB time=00:00:15.09 bitrate= 320.1kbits/s
size= 881kB time=00:00:22.54 bitrate= 320.1kbits/s
size= 1159kB time=00:00:29.67 bitrate= 320.1kbits/s
size= 1445kB time=00:00:36.98 bitrate= 320.1kbits/s
size= 1731kB time=00:00:44.30 bitrate= 320.0kbits/s
size= 2011kB time=00:00:51.48 bitrate= 320.0kbits/s
size= 2295kB time=00:00:58.74 bitrate= 320.0kbits/s
size= 2572kB time=00:01:05.82 bitrate= 320.0kbits/s
size= 2836kB time=00:01:12.59 bitrate= 320.0kbits/s
size= 3110kB time=00:01:19.62 bitrate= 320.0kbits/s
size= 3381kB time=00:01:26.54 bitrate= 320.0kbits/s
size= 3654kB time=00:01:33.54 bitrate= 320.0kbits/s
size= 3927kB time=00:01:40.51 bitrate= 320.0kbits/s
size= 4201kB time=00:01:47.54 bitrate= 320.0kbits/s
size= 4483kB time=00:01:54.75 bitrate= 320.0kbits/s
size= 4753kB time=00:02:01.67 bitrate= 320.0kbits/s
size= 5028kB time=00:02:08.70 bitrate= 320.0kbits/s
size= 5307kB time=00:02:15.86 bitrate= 320.0kbits/s
size= 5553kB time=00:02:22.15 bitrate= 320.0kbits/s
size= 5828kB time=00:02:29.18 bitrate= 320.0kbits/s
size= 6098kB time=00:02:36.10 bitrate= 320.0kbits/s
size= 6372kB time=00:02:43.10 bitrate= 320.0kbits/s
size= 6645kB time=00:02:50.10 bitrate= 320.0kbits/s
size= 6919kB time=00:02:57.11 bitrate= 320.0kbits/s
size= 7193kB time=00:03:04.13 bitrate= 320.0kbits/s
size= 7469kB time=00:03:11.19 bitrate= 320.0kbits/s
size= 7747kB time=00:03:18.32 bitrate= 320.0kbits/s
size= 8016kB time=00:03:25.19 bitrate= 320.0kbits/s
size= 8258kB time=00:03:31.40 bitrate= 320.0kbits/s
size= 8540kB time=00:03:38.61 bitrate= 320.0kbits/s
size= 8819kB time=00:03:45.75 bitrate= 320.0kbits/s
size= 9098kB time=00:03:52.90 bitrate= 320.0kbits/s
size= 9380kB time=00:04:00.11 bitrate= 320.0kbits/s
size= 9661kB time=00:04:07.32 bitrate= 320.0kbits/s
size= 9942kB time=00:04:14.51 bitrate= 320.0kbits/s
size= 10225kB time=00:04:21.74 bitrate= 320.0kbits/s
size= 10513kB time=00:04:29.13 bitrate= 320.0kbits/s
size= 10797kB time=00:04:36.40 bitrate= 320.0kbits/s
size= 11052kB time=00:04:42.93 bitrate= 320.0kbits/s
size= 11328kB time=00:04:49.98 bitrate= 320.0kbits/s
size= 11595kB time=00:04:56.82 bitrate= 320.0kbits/s
size= 11860kB time=00:05:03.62 bitrate= 320.0kbits/s
[4;31m[0msize= 11919kB time=00:05:05.11 bitrate= 320.0kbits/s
video:0kB audio:11918kB global headers:0kB muxing overhead 0.002966%
[4;31m[0maldo@
asteroid:/tmp$ file bb.mp3
bb.mp3: Audio file with ID3 version 2.4.0, contains: MPEG ADTS, layer III,
v1, 48 kbps, 44.1 kHz, Stereo
aldo@asteroid:/tmp$ exit
exit
Script done on vr 06 sep 2013 20:12:00 CEST