
Recherche avancée
Autres articles (31)
-
Participer à sa documentation
10 avril 2011La documentation est un des travaux les plus importants et les plus contraignants lors de la réalisation d’un outil technique.
Tout apport extérieur à ce sujet est primordial : la critique de l’existant ; la participation à la rédaction d’articles orientés : utilisateur (administrateur de MediaSPIP ou simplement producteur de contenu) ; développeur ; la création de screencasts d’explication ; la traduction de la documentation dans une nouvelle langue ;
Pour ce faire, vous pouvez vous inscrire sur (...) -
Ajouter notes et légendes aux images
7 février 2011, parPour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
Modification lors de l’ajout d’un média
Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...) -
Librairies et binaires spécifiques au traitement vidéo et sonore
31 janvier 2010, parLes logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
Binaires complémentaires et facultatifs flvtool2 : (...)
Sur d’autres sites (6099)
-
ffmpeg on fb0 from Nexus Galaxy error : "could not get frame filename number 2"
3 mars 2012, par user848106I use ffmpeg to convert fb0 files from Androids and produce screenshots. For some reason this does not work with the Nexus Galaxy.
I get this error :
[image2 @ 0000000001E0E350] Could not get frame filename number 2 from pattern '
image.png'
av_interleaved_write_frame(): Invalid argumentHere is the process :
C:\dev\scripts>adb pull /dev/graphics/fb0
3292 KB/s (16777216 bytes in 4.976s)
C:\dev\scripts>ffmpeg -vframes 1 -vcodec rawvideo -f rawvideo -pix
_fmt rgb32 -s 720x1080 -i fb0 -f image2 -vcodec png image.png
ffmpeg version N-36635-gceb0dd9 Copyright (c) 2000-2012 the FFmpeg developers
built on Jan 9 2012 17:45:55 with gcc 4.6.2
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-ru
ntime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libope
ncore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --en
able-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger -
-enable-libspeex --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwben
c --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-
libxvid --enable-zlib
libavutil 51. 34.100 / 51. 34.100
libavcodec 53. 54.100 / 53. 54.100
libavformat 53. 29.100 / 53. 29.100
libavdevice 53. 4.100 / 53. 4.100
libavfilter 2. 58.100 / 2. 58.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 6.100 / 0. 6.100
libpostproc 51. 2.100 / 51. 2.100
[rawvideo @ 000000000037D5A0] Estimating duration from bitrate, this may be inac
curate
Input #0, rawvideo, from 'fb0':
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Video: rawvideo (BGRA / 0x41524742), bgra, 720x1080, 25 tbr, 25
tbn, 25 tbc
[buffer @ 000000000037D420] w:720 h:1080 pixfmt:bgra tb:1/1000000 sar:0/1 sws_pa
ram:
Output #0, image2, to 'image.png':
Metadata:
encoder : Lavf53.29.100
Stream #0:0: Video: png, bgra, 720x1080, q=2-31, 200 kb/s, 90k tbn, 25 tbc
Stream mapping:
Stream #0:0 -> #0:0 (rawvideo -> png)
Press [q] to stop, [?] for help
[image2 @ 0000000001E0E350] Could not get frame filename number 2 from pattern '
image.png'
av_interleaved_write_frame(): Invalid argument -
FFMPEG conversion to MXF [closed]
16 février 2012, par MFBI have to wrap an MPEG2 video file in an MXF container and convert the audio in the process. I have the MXF wrapping working but it won't convert the audio stream (which needs to be 16bit, 48kHz Linear PCM).
Here's what I'm trying :
ffmpeg -i input.mpg -map 0:0 -map 0:1 -vcodec copy -f mpeg2video -acodec pcm_s16le -ar 48000 -ac 2 output.mxf
Results :
ffmpeg version 0.10 Copyright (c) 2000-2012 the FFmpeg developers
built on Jan 30 2012 17:49:23 with gcc 4.2.1 (Apple Inc. build 5666) (dot 3)
configuration: *{snipped}*
runtime-cpudetect
libavutil 51. 34.101 / 51. 34.101
libavcodec 53. 60.100 / 53. 60.100
libavformat 53. 31.100 / 53. 31.100
libavdevice 53. 4.100 / 53. 4.100
libavfilter 2. 60.100 / 2. 60.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 6.100 / 0. 6.100
libpostproc 52. 0.100 / 52. 0.100
[mpeg @ 0x10201ae00] max_analyze_duration 5000000 reached at 5000000
Input #0, mpeg, from '/Volumes/Extra/test.mpg':
Duration: 00:00:59.97, start: 0.192911, bitrate: 6513 kb/s
Stream #0:0[0x1c0]: Audio: mp2, 48000 Hz, stereo, s16, 384 kb/s
Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x576 [SAR 16:15 DAR 4:3], 12000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
Output #0, mpeg2video, to 'video.mxf':
Metadata:
encoder : Lavf53.31.100
Stream #0:0: Video: mpeg2video, yuv420p, 720x576 [SAR 16:15 DAR 4:3], q=2-31, 12000 kb/s, 25 fps, 90k tbn, 25 tbc
Stream mapping:
Stream #0:1 -> #0:0 (copy)
Press [q] to stop, [?] for help
frame= 1500 fps= 0 q=-1.0 Lsize= 43949kB time=00:00:59.96 bitrate=6004.6kbits/s
video:43949kB audio:0kB global headers:0kB muxing overhead 0.000000%The video plays fine as the MXF, but there is no audio stream at all. Any help would be great.
-
FFmpeg "Unrecognized option" error when trying to merge 2 audio files in Android
20 mars 2017, par ShaLooked at This and This links to create a command to merge 2 audio files using
ffmpeg
but it’s not working.My command :
String input1 = "/storage/emulated/0/jd.m4a ";
String input2 = "/storage/emulated/0/jd.m4a "; //trying with same audio just to check if it works or not
String filter = "-filter_complex [0:a]volume=0.99[a1];[1:a]volume=0.3[a2];[a1][a2]amerge=inputs=2,volume=1.3,pan=stereo|c0code>The console output :
03-20 13:52:04.981 32013-32013/io.whispero.soundmerger E/onProgress: ffmpeg version n3.0.1 Copyright (c) 2000-2016 the FFmpeg developers
03-20 13:52:04.981 32013-32013/io.whispero.soundmerger E/onProgress: built with gcc 4.8 (GCC)
03-20 13:52:04.982 32013-32013/io.whispero.soundmerger E/onProgress: configuration: --target-os=linux --cross-prefix=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi- --arch=arm --cpu=cortex-a8 --enable-runtime-cpudetect --sysroot=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/sysroot --enable-pic --enable-libx264 --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-fontconfig --enable-pthreads --disable-debug --disable-ffserver --enable-version3 --enable-hardcoded-tables --disable-ffplay --disable-ffprobe --enable-gpl --enable-yasm --disable-doc --disable-shared --enable-static --pkg-config=/home/vagrant/SourceCode/ffmpeg-android/ffmpeg-pkg-config --prefix=/home/vagrant/SourceCode/ffmpeg-android/build/armeabi-v7a --extra-cflags='-I/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all' --extra-ldflags='-L/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie' --extra-libs='-lpng -lexpat -lm' --extra-cxxflags=
03-20 13:52:04.982 32013-32013/io.whispero.soundmerger E/onProgress: libavutil 55. 17.103 / 55. 17.103
03-20 13:52:04.983 32013-32013/io.whispero.soundmerger E/onProgress: libavcodec 57. 24.102 / 57. 24.102
03-20 13:52:04.983 32013-32013/io.whispero.soundmerger E/onProgress: libavformat 57. 25.100 / 57. 25.100
03-20 13:52:04.984 32013-32013/io.whispero.soundmerger E/onProgress: libavdevice 57. 0.101 / 57. 0.101
03-20 13:52:04.984 32013-32013/io.whispero.soundmerger E/onProgress: libavfilter 6. 31.100 / 6. 31.100
03-20 13:52:04.985 32013-32013/io.whispero.soundmerger E/onProgress: libswscale 4. 0.100 / 4. 0.100
03-20 13:52:04.985 32013-32013/io.whispero.soundmerger E/onProgress: libswresample 2. 0.101 / 2. 0.101
03-20 13:52:04.985 32013-32013/io.whispero.soundmerger E/onProgress: libpostproc 54. 0.100 / 54. 0.100
03-20 13:52:04.986 32013-32013/io.whispero.soundmerger E/onProgress: Unrecognized option 'filter_complex [0:a]volume=0.99[a1];[1:a]volume=0.3[a2];[a1][a2]amerge=inputs=2,volume=1.3,pan=stereo|c0io.whispero.soundmerger E/onProgress: Error splitting the argument list: Option not foundFrom what I can understand is that
ffmpeg
is unable to split and differentiate the inputs, filter and output from thecommand
, but I tried with a lot of variations, still not working :(Please help. Looked around a lot but none of the commands is working.
Thanks in advance !
EDIT :
Added-report
before-filter_complex
and ran. LOG is below AS @Mulvya asked03-20 16:29:06.830 27671-27671/io.whispero.soundmerger E/onProgress: ffmpeg version n3.0.1 Copyright (c) 2000-2016 the FFmpeg developers
03-20 16:29:06.830 27671-27671/io.whispero.soundmerger E/onProgress: built with gcc 4.8 (GCC)
03-20 16:29:06.830 27671-27671/io.whispero.soundmerger E/onProgress: configuration: --target-os=linux --cross-prefix=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi- --arch=arm --cpu=cortex-a8 --enable-runtime-cpudetect --sysroot=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/sysroot --enable-pic --enable-libx264 --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-fontconfig --enable-pthreads --disable-debug --disable-ffserver --enable-version3 --enable-hardcoded-tables --disable-ffplay --disable-ffprobe --enable-gpl --enable-yasm --disable-doc --disable-shared --enable-static --pkg-config=/home/vagrant/SourceCode/ffmpeg-android/ffmpeg-pkg-config --prefix=/home/vagrant/SourceCode/ffmpeg-android/build/armeabi-v7a --extra-cflags='-I/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all' --extra-ldflags='-L/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie' --extra-libs='-lpng -lexpat -lm' --extra-cxxflags=
03-20 16:29:06.830 27671-27671/io.whispero.soundmerger E/onProgress: libavutil 55. 17.103 / 55. 17.103
03-20 16:29:06.830 27671-27671/io.whispero.soundmerger E/onProgress: libavcodec 57. 24.102 / 57. 24.102
03-20 16:29:06.832 27671-27671/io.whispero.soundmerger E/onProgress: libavformat 57. 25.100 / 57. 25.100
03-20 16:29:06.832 27671-27671/io.whispero.soundmerger E/onProgress: libavdevice 57. 0.101 / 57. 0.101
03-20 16:29:06.833 27671-27671/io.whispero.soundmerger E/onProgress: libavfilter 6. 31.100 / 6. 31.100
03-20 16:29:06.834 27671-27671/io.whispero.soundmerger E/onProgress: libswscale 4. 0.100 / 4. 0.100
03-20 16:29:06.834 27671-27671/io.whispero.soundmerger E/onProgress: libswresample 2. 0.101 / 2. 0.101
03-20 16:29:06.835 27671-27671/io.whispero.soundmerger E/onProgress: libpostproc 54. 0.100 / 54. 0.100
03-20 16:29:06.836 27671-27671/io.whispero.soundmerger E/onProgress: Unrecognized option 'i '.
03-20 16:29:06.837 27671-27671/io.whispero.soundmerger E/onProgress: Error splitting the argument list: Option not found
03-20 16:29:06.846 27671-27671/io.whispero.soundmerger E/onFailure: ffmpeg version n3.0.1 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 4.8 (GCC)
configuration: --target-os=linux --cross-prefix=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi- --arch=arm --cpu=cortex-a8 --enable-runtime-cpudetect --sysroot=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/sysroot --enable-pic --enable-libx264 --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-fontconfig --enable-pthreads --disable-debug --disable-ffserver --enable-version3 --enable-hardcoded-tables --disable-ffplay --disable-ffprobe --enable-gpl --enable-yasm --disable-doc --disable-shared --enable-static --pkg-config=/home/vagrant/SourceCode/ffmpeg-android/ffmpeg-pkg-config --prefix=/home/vagrant/SourceCode/ffmpeg-android/build/armeabi-v7a --extra-cflags='-I/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all' --extra-ldflags='-L/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie' --extra-libs='-lpng -lexpat -lm' --extra-cxxflags=
libavutil 55. 17.103 / 55. 17.103
libavcodec 57. 24.102 / 57. 24.102
libavformat 57. 25.100 / 57. 25.100
libavdevice 57. 0.101 / 57. 0.101
libavfilter 6. 31.100 / 6. 31.100
libswscale 4. 0.100 / 4. 0.100
libswresample 2. 0.101 / 2. 0.101
libpostproc 54. 0.100 / 54. 0.100
Unrecognized option 'i '.
Error splitting the argument list: Option not found
03-20 16:29:06.848 27671-27671/io.whispero.soundmerger E/onFinish: onFinish