
Recherche avancée
Autres articles (6)
-
L’espace de configuration de MediaSPIP
29 novembre 2010, parL’espace de configuration de MediaSPIP est réservé aux administrateurs. Un lien de menu "administrer" est généralement affiché en haut de la page [1].
Il permet de configurer finement votre site.
La navigation de cet espace de configuration est divisé en trois parties : la configuration générale du site qui permet notamment de modifier : les informations principales concernant le site (...) -
Submit bugs and patches
13 avril 2011Unfortunately a software is never perfect.
If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
You may also (...) -
Sélection de projets utilisant MediaSPIP
29 avril 2011, parLes exemples cités ci-dessous sont des éléments représentatifs d’usages spécifiques de MediaSPIP pour certains projets.
Vous pensez avoir un site "remarquable" réalisé avec MediaSPIP ? Faites le nous savoir ici.
Ferme MediaSPIP @ Infini
L’Association Infini développe des activités d’accueil, de point d’accès internet, de formation, de conduite de projets innovants dans le domaine des Technologies de l’Information et de la Communication, et l’hébergement de sites. Elle joue en la matière un rôle unique (...)
Sur d’autres sites (5191)
-
Trying to concat 2 videos using FFMPEG in Android command line
23 mars 2016, par Hero RomaI am trying to add a cross fade transitions between 2 videos in my Android application. I have used the Guardian Project to build the ffmpeg library locally. Guardian Project. I was able to do that.
Now I am trying to implement the cross fade using the StackOverflow answer
The code is basically something like
ArrayList cmd = new ArrayList() ;cmd.add(mFfmpegBin);
cmd.add("-i");
cmd.add(firstFile);
cmd.add("-i");
cmd.add(secondFile);
cmd.add("-f");
cmd.add("lavfi");
cmd.add("-i");
cmd.add("color=black");
cmd.add("-filter_complex");
cmd.add("[0:v]format=pix_fmts=yuva420p,fade=t=out:st=4:d=1:alpha=1,setpts=PTS-STARTPTS[va0];[1:v]format=pix_fmts=yuva420p,fade=t=in:st=0:d=1:alpha=1,setpts=PTS-STARTPTS+4/TB[va1];[2:v]scale=960x720,trim=duration=9[over];[over][va0]overlay[over1];[over1][va1]overlay=format=yuv420[outv]");
cmd.add("-vcodec");
cmd.add("libx264");
cmd.add("-map");
cmd.add("[outv]");
cmd.add(outputFile);
execFFMPEG(cmd, sc);The error I keep getting is
Invalid pixel format ’pix_fmts=yuva420p’
I feel I either the command is incorrect for command line usage or I am not providing the correct filters.
fc>/data/data/com.User.testapplication/app_bin/ffmpeg -i /storage/emulated/0/Pictures/DayVideos/FIRST_VIDEO.mp4 -i /storage/emulated/0/Pictures/DayVideos/SECOND_VIDEO.mp4 -f lavfi -i color=black -filter_complex [0:v]format=pix_fmts=yuva420p,fade=t=out:st=4:d=1:alpha=1,setpts=PTS-STARTPTS[va0];[1:v]format=pix_fmts=yuva420p,fade=t=in:st=0:d=1:alpha=1,setpts=PTS-STARTPTS+4/TB[va1];[2:v]scale=960x720,trim=duration=9[over];[over][va0]overlay[over1];[over1][va1]overlay=format=yuv420[outv] -vcodec libx264 -map [outv] /storage/emulated/0/Pictures/DayVideos/output.mp4
fc>WARNING: linker: /data/data/com.User.testapplication/app_bin/ffmpeg has text relocations. This is wasting memory and prevents security hardening. Please fix.
fc>ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers
fc> built on Mar 23 2016 12:12:02 with gcc 4.6 20120106 (prerelease)
fc> configuration: --arch=arm --cpu=cortex-a8 --target-os=linux --enable-runtime-cpudetect --prefix=/data/data/info.guardianproject.ffmpeg/app_opt --enable-pic --disable-shared --enable-static --cross-prefix=/home/test/Downloads/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/arm-linux-androideabi- --sysroot=/home/test/Downloads/android-ndk-r8e/platforms/android-14/arch-arm --extra-cflags='-I../x264 -mfloat-abi=softfp -mfpu=neon -fPIE -pie' --extra-ldflags='-L../x264 -fPIE -pie' --enable-version3 --enable-gpl --disable-doc --enable-yasm --enable-decoders --enable-encoders --enable-muxers --enable-demuxers --enable-parsers --enable-protocols --enable-filters --enable-avresample --disable-indevs --enable-indev=lavfi --disable-outdevs --enable-hwaccels --enable-ffmpeg --disable-ffplay --disable-ffprobe --disable-ffserver --disable-network --enable-libx264 --enable-zlib --enable-muxer=md5
fc> libavutil 51. 54.100 / 51. 54.100
fc> libavcodec 54. 23.100 / 54. 23.100
fc> libavformat 54. 6.100 / 54. 6.100
fc> libavdevice 54. 0.100 / 54. 0.100
fc> libavfilter 2. 77.100 / 2. 77.100
fc> libswscale 2. 1.100 / 2. 1.100
fc> libswresample 0. 15.100 / 0. 15.100
fc> libpostproc 52. 0.100 / 52. 0.100
fc>Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/Pictures/DayVideos/FIRST_VIDEO.mp4':
fc> Metadata:
fc> major_brand : isom
fc> minor_version : 0
fc> compatible_brands: isomiso2avc1
fc> creation_time : 2016-03-22 19:07:16
fc> Duration: 00:00:19.35, start: 0.000000, bitrate: 5253 kb/s
fc> Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720, 5252 kb/s, SAR 65536:65536 DAR 16:9, 30.02 fps, 30 tbr, 90k tbn, 180k tbc
fc> Metadata:
fc> creation_time : 2016-03-22 19:07:02
fc>Input #1, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/Pictures/DayVideos/SECOND_VIDEO.mp4':
fc> Metadata:
fc> major_brand : mp42
fc> minor_version : 0
fc> compatible_brands: isommp42
fc> creation_time : 2016-03-22 19:07:55
fc> Duration: 00:00:17.32, start: 0.000000, bitrate: 5414 kb/s
fc> Stream #1:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720, 5227 kb/s, SAR 65536:65536 DAR 16:9, 30.02 fps, 30.02 tbr, 90k tbn, 180k tbc
fc> Metadata:
fc> creation_time : 2016-03-22 19:07:55
fc> handler_name : VideoHandle
fc>[color @ 0xb8901360] w:320 h:240 r:25/1 color:0x000000ff
fc>[lavfi @ 0xb88fbb60] Estimating duration from bitrate, this may be inaccurate
fc>Input #2, lavfi, from 'color=black':
fc> Duration: N/A, start: 0.000000, bitrate: N/A
fc> Stream #2:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn, 25 tbc
fc>[format @ 0xb8901190] Invalid pixel format 'pix_fmts=yuva420p'
fc>Error initializing filter 'format' with args 'pix_fmts=yuva420p'
fc>Error configuring filters.Thanks !
-
FFmpeg concat with watermarks and audio "stream specifier in filtergraph description matches no streams."
28 mars 2016, par btalbotI’m trying to concatenate an arbitrary number of videos with a series of watermarks over them :
ffmpeg -i segment0.mp4 -i segment1.mp4 -i ... segmentn.mp4 -i end.mp4 -i ../../watermark/watermark1280/watermark_%05d.png -filter_complex "[0:v][1:v]...[n:v]concat=n=n:v=1:a=0 [v], [v] overlay [p]" -map "[v]" -an -y output.mp4
I am getting the following error :
Stream specifier ':v' in filtergraph description [0:v][1:v]...[n:v]concat=n=n:v=1:a=0 [v], [v] overlay [p] matches no streams.
Here is the full output of my latest attempt :
ffmpeg version N-78734-g666e2ed Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 5.3.0 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
libavutil 55. 19.100 / 55. 19.100
libavcodec 57. 25.101 / 57. 25.101
libavformat 57. 26.100 / 57. 26.100
libavdevice 57. 0.101 / 57. 0.101
libavfilter 6. 36.100 / 6. 36.100
libswscale 4. 0.100 / 4. 0.100
libswresample 2. 0.101 / 2. 0.101
libpostproc 54. 0.100 / 54. 0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'segment0.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf57.26.100
Duration: 00:00:02.01, start: 0.010000, bitrate: 6 kb/s
Stream #0:0(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 2 kb/s (default)
Metadata:
handler_name : SoundHandler
Input #1, mov,mp4,m4a,3gp,3g2,mj2, from 'segment1.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf57.26.100
Duration: 00:00:01.99, start: 0.066000, bitrate: 5014 kb/s
Stream #1:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv), 1280x720, 5008 kb/s, 59.94 fps, 59.94 tbr, 60k tbn, 119.88 tbc (default)
Metadata:
handler_name : VideoHandler
Input #2, mov,mp4,m4a,3gp,3g2,mj2, from 'segment2.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf57.26.100
Duration: 00:00:02.01, start: 0.009000, bitrate: 424 kb/s
Stream #2:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720, 1111 kb/s, 59 fps, 59 tbr, 15104 tbn, 118 tbc (default)
Metadata:
handler_name : VideoHandler
Stream #2:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 2 kb/s (default)
Metadata:
handler_name : SoundHandler
Input #3, mov,mp4,m4a,3gp,3g2,mj2, from 'segment3.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf57.26.100
Duration: 00:00:01.85, start: 0.205000, bitrate: 5058 kb/s
Stream #3:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv), 1280x720, 5050 kb/s, 59.94 fps, 59.94 tbr, 60k tbn, 119.88 tbc (default)
Metadata:
handler_name : VideoHandler
Input #4, mov,mp4,m4a,3gp,3g2,mj2, from 'segment4.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf57.26.100
Duration: 00:00:01.77, start: 0.282000, bitrate: 5174 kb/s
Stream #4:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv), 1280x720, 5167 kb/s, 59.94 fps, 59.94 tbr, 60k tbn, 119.88 tbc (default)
Metadata:
handler_name : VideoHandler
Input #5, mov,mp4,m4a,3gp,3g2,mj2, from 'segment5.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf57.26.100
Duration: 00:00:02.01, start: 0.006000, bitrate: 955 kb/s
Stream #5:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720, 1448 kb/s, 59 fps, 59 tbr, 15104 tbn, 118 tbc (default)
Metadata:
handler_name : VideoHandler
Stream #5:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 2 kb/s (default)
Metadata:
handler_name : SoundHandler
Input #6, mov,mp4,m4a,3gp,3g2,mj2, from '../../slate/Void_test.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf57.26.100
Duration: 00:00:02.97, start: 0.000000, bitrate: 3176 kb/s
Stream #6:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720, 3169 kb/s, 59.94 fps, 59.94 tbr, 11988 tbn, 119.88 tbc (default)
Metadata:
handler_name : VideoHandler
Input #7, image2, from '../../watermark/watermark1280/watermark_%05d.png':
Duration: 00:00:14.40, start: 0.000000, bitrate: N/A
Stream #7:0: Video: png, ya8(pc), 1280x720 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 25 tbn, 25 tbc
Stream specifier ':v' in filtergraph description [0:v][1:v][2:v][3:v][4:v][5:v][6:v]concat=n=7:v=1:a=0 [v], [v] overlay [p] matches no streams.Also, if someone can help me do this with a single mp3 audio input over the whole concatenated video, that’d be helpful, too.
-
ffmpeg Unrecognized option - filters - Android
26 mars 2016, par Adroid FreakI’m having an issue with ffmpeg on Android it’s complaining about this
Unrecognized option 'filter_compl amerge -ac 1 '
, I just compiled it and it the filters are enabled as you can see in below--enable-filters
app_bin/ffmpeg -y -i /storage/emulated/0/ex/media/1.wav -i /storage/emulated/0/ex/media/2.wav -filter_complex amerge -ac 1 /storage/emulated/0/ex/media/out.wav
03-26 11:21:09.647 8855-10179/com..android I/shellLine: WARNING: linker: /data/data/com..android/app_bin/ffmpeg has tt relocations. This is wasting memory and prevents security hardening. Please fix.
ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers
built on Mar 22 2016 21:28:14 with gcc 4.6 20120106 (prerelease)
configuration: --disable-stripping --arch=arm --cpu=cort-a8 --target-os=linux --enable-runtime-cpudetect --prefix=/home/linux/Downloads/android-ffmpeg1/android-ffmpeg/ffmpeg/build/armeabi-v7a --enable-pic --disable-shared --enable-static --cross-prefix=/opt/android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/arm-linux-androideabi- --sysroot=/opt/android-ndk/platforms/android-14/arch-arm/ --tra-cflags='-I../x264 -mfloat-abi=softfp -mfpu=neon -fPIE -pie' --tra-ldflags='-L../x264 -fPIE -pie' --enable-decoders --enable-encoders --enable-filters --disable-indevs --enable-indev=lavfi --disable-outdevs --enable-hwaccels --enable-ffmpeg --enable-pic --enable-libx264 --enable-version3 --disable-debug --disable-ffserver --disable-ffplay --disable-ffprobe --enable-gpl --enable-yasm --disable-doc --disable-shared --enable-static
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
Guessed Channel Layout for Input Stream #0.0 : mono
Input #0, wav, from '/storage/emulated/0/ex/media/1.wav':
Duration: 00:00:02.16, bitrate: 88 kb/s
Stream #0:0: Audio: pcm_u8 ([1][0][0][0] / 0x0001), 11025 Hz, mono, u8, 88 kb/s
Guessed Channel Layout for Input Stream #1.0 : mono
Input #1, wav, from '/storage/emulated/0/ex/media/2.wav':
Duration: 00:00:02.26, bitrate: 88 kb/s
Stream #1:0: Audio: pcm_u8 ([1][0][0][0] / 0x0001), 11025 Hz, mono, u8, 88 kb/s
Unrecognized option 'filter_compl amerge -ac 1 '
Failed to set value '/storage/emulated/0/ex/media/out.wav' for option 'filter_complex amerge -ac 1 'What is the issue here ?