
Recherche avancée
Autres articles (47)
-
MediaSPIP v0.2
21 juin 2013, parMediaSPIP 0.2 est la première version de MediaSPIP stable.
Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...) -
Mise à disposition des fichiers
14 avril 2011, parPar défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...) -
MediaSPIP version 0.1 Beta
16 avril 2011, parMediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)
Sur d’autres sites (8010)
-
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 !
-
Pausing ffmpeg stream
22 novembre 2020, par nmnirI'm running a client that reads video from a remote web cam :


ffplay rtp://127.0.0.1:1234



Sometimes the web cam stops and after a while it get back on. I need to be able to resume the stream even if the web cam was off for few minutes. Someone already asked that question on ffmpeg mailing list but didn't get any answer.


-
FFMPEG-PHP Error "Sample rate index in program config element does not match the sample rate index configured by the container."
21 novembre 2020, par JonathanAm using FFMPEG installed on a Windows server. I have a PHP webpage that uploads and trims videos using FFMPEG, when I upload MP4's with AAC audio, especially videos over 100mb, I get the following errors in the log output below.


I was wondering if anyone could point me in the right direction to getting this resolved.


Log output of the error below :


<pre>object(FFMpeg\Exception\RuntimeException)#35 (7) {
 ["message":protected]=>
 string(15) "Encoding failed"
 ["string":"Exception":private]=>
 string(0) ""
 ["code":protected]=>
 int(0)
 ["file":protected]=>
 string(108) "C:\inetpub\wwwroot\dev\ffmpeg-lib\ffmpeg-php\vendor\php-ffmpeg\php-ffmpeg\src\FFMpeg\Media\AbstractVideo.php"
 ["line":protected]=>
 int(106)
 ["trace":"Exception":private]=>
 array(1) {
 [0]=>
 array(5) {
 ["file"]=>
 string(45) "C:\inetpub\wwwroot\dev\ffmpeg-lib\process.php"
 ["line"]=>
 int(35)
 ["function"]=>
 string(4) "save"
 ["class"]=>
 string(26) "FFMpeg\Media\AbstractVideo"
 ["type"]=>
 string(2) "->"
 }
 }
 ["previous":"Exception":private]=>
 object(Alchemy\BinaryDriver\Exception\ExecutionFailureException)#43 (9) {
 ["command":protected]=>
 string(393) "C:\ffmpeg\bin\ffmpeg.exe -y -ss 00:00:17.00 -i "temp/temp_20201110-100656_1080p-220mb.mp4" -t 00:00:52.00 -threads 12 -vcodec libx264 -acodec aac -b:v 1000k -refs 6 -coder 1 -sc_threshold 40 -flags +loop -me_range 16 -subq 7 -i_qfactor 0.71 -qcomp 0.6 -qdiff 4 -trellis 1 -b:a 128k -pass 1 -passlogfile "W:/TempIIS\ffmpeg-passes5fabd8bdf3612uvd6b/pass-5fabd8bdf378b" "temp/20201111-122741.mp4""
 ["errorOutput":protected]=>
 string(830102) "ffmpeg version git-2020-08-31-4a11a6f Copyright (c) 2000-2020 the FFmpeg developers
 built with gcc 10.2.1 (GCC) 20200805
 configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libsrt --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libgsm --enable-librav1e --enable-libsvtav1 --disable-w32threads --enable-libmfx --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf
 libavutil 56. 58.100 / 56. 58.100
 libavcodec 58.101.101 / 58.101.101
 libavformat 58. 51.101 / 58. 51.101
 libavdevice 58. 11.101 / 58. 11.101
 libavfilter 7. 87.100 / 7. 87.100
 libswscale 5. 8.100 / 5. 8.100
 libswresample 3. 8.100 / 3. 8.100
 libpostproc 55. 8.100 / 55. 8.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'temp/temp_20201110-100656_1080p-220mb.mp4':
 Metadata:
 major_brand : mp42
 minor_version : 19529854
 compatible_brands: mp42isom
 creation_time : 2016-04-11T06:32:53.000000Z
 Duration: 00:02:25.98, start: 0.000000, bitrate: 13772 kb/s
 Stream #0:0(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
 Metadata:
 creation_time : 2016-04-11T06:32:53.000000Z
 handler_name : Sound Media Handler
 Stream #0:1(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 13639 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default)
 Metadata:
 creation_time : 2016-04-11T06:32:53.000000Z
 handler_name : Video Media Handler
 encoder : AVC Coding
Stream mapping:
 Stream #0:1 -> #0:0 (h264 (native) -> h264 (libx264))
 Stream #0:0 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
[aac @ 000001fc5a9ce8c0] Sample rate index in program config element does not match the sample rate index configured by the container.
[h264 @ 000001fc5a3dac80] Invalid NAL unit size (-360624822 > 108076).
[h264 @ 000001fc5a3dac80] Error splitting the input into NAL units.
[aac @ 000001fc5a9ce8c0] Inconsistent channel configuration.
[aac @ 000001fc5a9ce8c0] get_buffer() failed
Error while decoding stream #0:0: Invalid argument
[aac @ 000001fc5a9ce8c0] Sample rate index in program config element does not match the sample rate index configured by the container.
[aac @ 000001fc5a9ce8c0] Inconsistent channel configuration.
[aac @ 000001fc5a9ce8c0] get_buffer() failed
Error while decoding stream #0:0: Invalid argument
[aac @ 000001fc5a9ce8c0] channel element 2.15 is not allocated
Error while decoding stream #0:0: Invalid data found when processing input
[aac @ 000001fc5a9ce8c0] Sample rate index in program config element does not match the sample rate index configured by the container.
[aac @ 000001fc5a9ce8c0] Inconsistent channel configuration.
[aac @ 000001fc5a9ce8c0] get_buffer() failed
Error while decoding stream #0:0: Invalid argument
[h264 @ 000001fc5a3be480] Invalid NAL unit size (1926587749 > 39711).
[h264 @ 000001fc5a3be480] Error splitting the input into NAL units.
[h264 @ 000001fc5a3e4540] Invalid NAL unit size (-1483385910 > 21666).
[h264 @ 000001fc5a3e4540] Error splitting the input into NAL units.
[h264 @ 000001fc5ad06500] Invalid NAL unit size (1060193647 > 41388).
[h264 @ 000001fc5ad06500] Error splitting the input into NAL units.
Error while decoding stream #0:1: Invalid data found when processing input
[h264 @ 000001fc5ad22e80] Invalid NAL unit size (1499431567 > 26513).
[h264 @ 000001fc5ad22e80] Error splitting the input into NAL units.
Error while decoding stream #0:1: Invalid data found when processing input
[h264 @ 000001fc5a3dac80] Invalid NAL unit size (-23485766 > 46738).
[h264 @ 000001fc5a3dac80] Error splitting the input into NAL units.
Error while decoding stream #0:1: Invalid data found when processing input
[h264 @ 000001fc5a3be480] Invalid NAL unit size (2023411154 > 21613).
[h264 @ 000001fc5a3be480] Error splitting the input into NAL units.
Error while decoding stream #0:1: Invalid data found when processing input
[h264 @ 000001fc5a3e4540] Invalid NAL unit size (519125029 > 48521).
[h264 @ 000001fc5a3e4540] Error splitting the input into NAL units.
Error while decoding stream #0:1: Invalid data found when processing input
[h264 @ 000001fc5ad06500] Invalid NAL unit size (-2099015076 > 25631).
[h264 @ 000001fc5ad06500] Error splitting the input into NAL units.
Error while decoding stream #0:1: Invalid data found when processing input
[h264 @ 000001fc5ad22e80] Invalid NAL unit size (-1081182476 > 46590).
[h264 @ 000001fc5ad22e80] Error splitting the input into NAL units.
Error while decoding stream #0:1: Invalid data found when processing input
[aac @ 000001fc5a9ce8c0] channel element 2.0 is not allocated
Error while decoding stream #0:0: Invalid data found when processing input
[aac @ 000001fc5a9ce8c0] Multiple frames in a packet.
[aac @ 000001fc5a9ce8c0] Sample rate index in program config element does not match the sample rate index configured by the container.
[h264 @ 000001fc5a3dac80] Invalid NAL unit size (-2080403149 > 27914).
[h264 @ 000001fc5a3dac80] Error splitting the input into NAL units.
[aac @ 000001fc5a9ce8c0] Inconsistent channel configuration.
[aac @ 000001fc5a9ce8c0] get_buffer() failed
Error while decoding stream #0:0: Invalid argument
[aac @ 000001fc5a9ce8c0] Sample rate index in program config element does not match the sample rate index configured by the container.
[aac @ 000001fc5a9ce8c0] Inconsistent channel configuration.
[aac @ 000001fc5a9ce8c0] get_buffer() failed
Error while decoding stream #0:0: Invalid argument
[aac @ 000001fc5a9ce8c0] channel element 3.9 is not allocated
Error while decoding stream #0:0: Invalid data found when processing input
[aac @ 000001fc5a9ce8c0] Reserved bit set.
[aac @ 000001fc5a9ce8c0] Prediction is not allowed in AAC-LC.
Error while decoding stream #0:0: Invalid data found when processing input
[aac @ 000001fc5a9ce8c0] channel element 2.6 is not allocated
Error while decoding stream #0:0: Invalid data found when processing input
[aac @ 000001fc5a9ce8c0] Number of scalefactor bands in group (52) exceeds limit (49).
Error while decoding stream #0:0: Invalid data found when processing input
[aac @ 000001fc5a9ce8c0] channel element 3.10 is not allocated
Error while decoding stream #0:0: Invalid data found when processing input
[aac @ 000001fc5a9ce8c0] channel element 2.13 is not allocated
Error while decoding stream #0:0: Invalid data found when processing input
[aac @ 000001fc5a9ce8c0] channel element 3.8 is not allocated
Error while decoding stream #0:0: Invalid data found when processing input
[aac @ 000001fc5a9ce8c0] Reserved bit set.
[aac @ 000001fc5a9ce8c0] Prediction is not allowed in AAC-LC.
Error while decoding stream #0:0: Invalid data found when processing input
[aac @ 000001fc5a9ce8c0] channel element 3.9 is not allocated
Error while decoding stream #0:0: Invalid data found when processing input
[aac @ 000001fc5a9ce8c0] Number of bands (50) exceeds limit (49).
Error while decoding stream #0:0: Invalid data found when processing input
[aac @ 000001fc5a9ce8c0] Sample rate index in program config element does not match the sample rate index configured by the container.
[aac @ 000001fc5a9ce8c0] Inconsistent channel configuration.
[aac @ 000001fc5a9ce8c0] get_buffer() failed
Error while decoding stream #0:0: Invalid argument
[aac @ 000001fc5a9ce8c0] Reserved bit set.
[aac @ 000001fc5a9ce8c0] Number of bands (17) exceeds limit (13).
Error while decoding stream #0:0: Invalid data found when processing input
[aac @ 000001fc5a9ce8c0] Sample rate index in program config element does not match the sample rate index configured by the container.
[aac @ 000001fc5a9ce8c0] Inconsistent channel configuration.
[aac @ 000001fc5a9ce8c0] get_buffer() failed
Error while decoding stream #0:0: Invalid argument
Error while decoding stream #0:1: Invalid data found when processing input
[h264 @ 000001fc5a3be480] Invalid NAL unit size (-296706614 > 48346).
[h264 @ 000001fc5a3be480] Error splitting the input into NAL units.
Error while decoding stream #0:1: Invalid data found when processing input
[h264 @ 000001fc5a3e4540] Invalid NAL unit size (-1419758286 > 23497).
[h264 @ 000001fc5a3e4540] Error splitting the input into NAL units.
Error while decoding stream #0:1: Invalid data found when processing input
[h264 @ 000001fc5ad06500] Invalid NAL unit size (86578229 > 53255).
[h264 @ 000001fc5ad06500] Error splitting the input into NAL units.
</pre>