
Recherche avancée
Autres articles (18)
-
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 (...) -
Emballe médias : à quoi cela sert ?
4 février 2011, parCe plugin vise à gérer des sites de mise en ligne de documents de tous types.
Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ; -
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 (...)
Sur d’autres sites (3808)
-
Incomplete video when using ffmpeg to weave WAV and PNG
18 avril 2023, par Howard BaekI am trying to "weave" PNG image files with a WAV file. Here is the
ffmpeg
command that I used :

'/opt/homebrew/Cellar/ffmpeg/5.1.2_6/bin/ffmpeg' -y -f concat -safe 0 -i '/private/var/folders/bb/m2b0ry595ys7bfs1r397lnf40000gp/T/Rtmp8gnKo7/ari_input_NQIg95oycVnb.txt' -i '/private/var/folders/bb/m2b0ry595ys7bfs1r397lnf40000gp/T/Rtmp8gnKo7/ari_audio_ngNm5vr2vFta.wav' -c:v libx264 -c:a aac -ac 2 -shortest -fps_mode auto -pix_fmt yuv420p -vf fps=5,\"scale=trunc(iw/2)*2:trunc(ih/2)*2\" -strict experimental -max_muxing_queue_size 9999 -threads 2 '/var/folders/bb/m2b0ry595ys7bfs1r397lnf40000gp/T//Rtmp8gnKo7/file46521ffd4ef8.mp4'



While
ffmpeg
is doing its thing, I get this long message :

ffmpeg version 5.1.2 Copyright (c) 2000-2022 the FFmpeg developers
 built with Apple clang version 14.0.0 (clang-1400.0.29.202)
 configuration: --prefix=/opt/homebrew/Cellar/ffmpeg/5.1.2_6 --enable-shared --enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libaribb24 --enable-libbluray --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librist --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libsvtav1 --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libspeex --enable-libsoxr --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack --enable-videotoolbox --enable-neon
 libavutil 57. 28.100 / 57. 28.100
 libavcodec 59. 37.100 / 59. 37.100
 libavformat 59. 27.100 / 59. 27.100
 libavdevice 59. 7.100 / 59. 7.100
 libavfilter 8. 44.100 / 8. 44.100
 libswscale 6. 7.100 / 6. 7.100
 libswresample 4. 7.100 / 4. 7.100
 libpostproc 56. 6.100 / 56. 6.100
Input #0, concat, from '/private/var/folders/bb/m2b0ry595ys7bfs1r397lnf40000gp/T/Rtmp8gnKo7/ari_input_NQIg95oycVnb.txt':
 Duration: 00:00:37.00, start: 0.000000, bitrate: 0 kb/s
 Stream #0:0: Video: png, rgb24(pc), 6000x3375 [SAR 23622:23622 DAR 16:9], 25 fps, 25 tbr, 25 tbn
Input #1, wav, from '/private/var/folders/bb/m2b0ry595ys7bfs1r397lnf40000gp/T/Rtmp8gnKo7/ari_audio_ngNm5vr2vFta.wav':
 Duration: 00:00:37.00, bitrate: 352 kb/s
 Stream #1:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 22050 Hz, 1 channels (FL), s16, 352 kb/s
Stream mapping:
 Stream #0:0 -> #0:0 (png (native) -> h264 (libx264))
 Stream #1:0 -> #0:1 (pcm_s16le (native) -> aac (native))
Press [q] to stop, [?] for help
[libx264 @ 0x13c9084e0] using SAR=3374/3375
[libx264 @ 0x13c9084e0] using cpu capabilities: ARMv8 NEON
[libx264 @ 0x13c9084e0] profile High, level 6.0, 4:2:0, 8-bit
[libx264 @ 0x13c9084e0] 264 - core 164 r3095 baee400 - H.264/MPEG-4 AVC codec - Copyleft 2003-2022 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=2 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=5 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to '/var/folders/bb/m2b0ry595ys7bfs1r397lnf40000gp/T//Rtmp8gnKo7/file46521ffd4ef8.mp4':
 Metadata:
 encoder : Lavf59.27.100
 Stream #0:0: Video: h264 (avc1 / 0x31637661), yuv420p(tv, progressive), 6000x3374 [SAR 3374:3375 DAR 16:9], q=2-31, 5 fps, 10240 tbn
 Metadata:
 encoder : Lavc59.37.100 libx264
 Side data:
 cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
 Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 22050 Hz, stereo, fltp, 128 kb/s
 Metadata:
 encoder : Lavc59.37.100 aac
frame= 150 fps= 11 q=-1.0 Lsize= 658kB time=00:00:30.00 bitrate= 179.7kbits/s speed=2.21x 
video:286kB audio:364kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.219465%
[libx264 @ 0x13c9084e0] frame I:2 Avg QP: 2.27 size: 77096
[libx264 @ 0x13c9084e0] frame P:38 Avg QP:12.33 size: 1831
[libx264 @ 0x13c9084e0] frame B:110 Avg QP:12.66 size: 622
[libx264 @ 0x13c9084e0] consecutive B-frames: 2.0% 0.0% 2.0% 96.0%
[libx264 @ 0x13c9084e0] mb I I16..4: 95.0% 2.4% 2.5%
[libx264 @ 0x13c9084e0] mb P I16..4: 0.0% 0.0% 0.0% P16..4: 0.1% 0.0% 0.0% 0.0% 0.0% skip:99.9%
[libx264 @ 0x13c9084e0] mb B I16..4: 0.0% 0.0% 0.0% B16..8: 0.1% 0.0% 0.0% direct: 0.0% skip:99.9% L0:60.3% L1:39.7% BI: 0.0%
[libx264 @ 0x13c9084e0] 8x8 transform intra:3.0% inter:3.7%
[libx264 @ 0x13c9084e0] coded y,uvDC,uvAC intra: 1.7% 0.4% 0.4% inter: 0.0% 0.0% 0.0%
[libx264 @ 0x13c9084e0] i16 v,h,dc,p: 99% 1% 1% 0%
[libx264 @ 0x13c9084e0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 79% 2% 19% 0% 0% 0% 0% 0% 0%
[libx264 @ 0x13c9084e0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 47% 16% 24% 2% 2% 3% 3% 2% 2%
[libx264 @ 0x13c9084e0] i8c dc,h,v,p: 99% 1% 0% 0%
[libx264 @ 0x13c9084e0] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x13c9084e0] ref P L0: 87.6% 1.9% 9.4% 1.1%
[libx264 @ 0x13c9084e0] ref B L0: 56.8% 41.9% 1.3%
[libx264 @ 0x13c9084e0] ref B L1: 97.9% 2.1%
[libx264 @ 0x13c9084e0] kb/s:77.92
[aac @ 0x13c9098c0] Qavg: 60691.250



The output, a mp4 video file, isn't what I expected. I expected 6 PNG images embedded with my combined WAV file, but the video only shows 5 PNG images and a shortened WAV file.


Here is the content of the
txt
file,ari_input_NQIg95oycVnb.txt
:

file '/Users/howardbaek/Documents/sandbox/loqui/png_files/slide1.png'
duration 6
file '/Users/howardbaek/Documents/sandbox/loqui/png_files/slide2.png'
duration 6
file '/Users/howardbaek/Documents/sandbox/loqui/png_files/slide3.png'
duration 6
file '/Users/howardbaek/Documents/sandbox/loqui/png_files/slide4.png'
duration 6
file '/Users/howardbaek/Documents/sandbox/loqui/png_files/slide5.png'
duration 6
file '/Users/howardbaek/Documents/sandbox/loqui/png_files/slide6.png'
duration 7



I wanted to attach my WAV file and PNG files to make this question more reproducible, but couldn't so I'll redirect you to my GitHub issue, which contains 6 separate WAV files and 6 PNG files.


-
Matomo maker InnoCraft named 2023 Hi-Tech Awards finalist
20 avril 2023, par Erin — Press Releases -
Burning subtitles into video using ffmpeg overlay on react native
25 avril 2023, par YoussefI have managed to complete this task on node server but it's too slow I don't want to upgrade my instance so I decided to do the conversion on the front end, my app is on react native can please somebody help me convert the code and keep the same args and options


Server code


// Execute the ffmpeg command to burn the subtitles into the video
const ffmpeg = spawn("ffmpeg", [
 "-i",
 "pipe:0",
 "-vf",
 `subtitles=${subtitlePath}:force_style='Alignment=10,OutlineColour=&H100000000,BorderStyle=3,Outline=1,Shadow=0,Fontsize=10'`,
 "-c:a",
 "copy",
 "-progress", "pipe:1",
 outputPath,
]);

// Pipe the videoResponse array buffer to FFmpeg
ffmpeg.stdin.write(videoResponse.data);
ffmpeg.stdin.end();

// Send the output file as a response once the process is complete
ffmpeg.on("close", () => {
 fs.readFile(outputPath, (err, data) => {
 if (err) {
 console.error(err);
 } else {
 console.log(outputPath)
 }
 });
});



My try on react native but failed for several issues including, main ones are :




No such filter : 'subtitles' Failed to inject frame into filter






Invalid argument






Error initializing complex filters.




This is what I come up with so far


componentDidMount() {
 FFmpegKit.executeAsync(`-i ${inputFilePath} -i ${subtitleFilePath} -filter_complex "[0:v][1:s]overlay=10:main_h-overlay_h-10" -c:a copy ${outputFilePath}`)
 .then((session) => {
 FFmpegKit.cancel();
 
 const returnCode = session.getReturnCode();
 
 if (ReturnCode.isSuccess(returnCode)) {
 console.log('Video with subtitles was created successfully!');
 } else {
 console.log('Error creating video with subtitles');
 }
 })
 .catch((error) => {
 console.log('Error creating video with subtitles', error);
 });
 }



If you want to see the logs you can find them below


LOG init firebase : videocap-71b4a
 LOG Running "videocap" with {"rootTag":11,"initialProps":{}}
 LOG Loading ffmpeg-kit-react-native.
 LOG Loaded ffmpeg-kit-react-native-ios-https-x86_64-5.1.0.
 LOG Error creating video with subtitles [TypeError: undefined is not a function]
 LOG ffmpeg version n5.1.2
 LOG Copyright (c) 2000-2022 the FFmpeg developers
 LOG 
 LOG built with Apple clang version 14.0.0 (clang-1400.0.29.102)
 LOG configuration: --cross-prefix=x86_64-ios-darwin- --sysroot=/Applications/Xcode-v13.4.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.0.sdk --prefix=/Users/taner/Projects/ffmpeg-kit/prebuilt/apple-ios-x86_64/ffmpeg --pkg-config=/opt/homebrew/bin/pkg-config --enable-version3 --arch=x86_64 --cpu=x86_64 --target-os=darwin --disable-neon --disable-asm --ar=/Applications/Xcode-v13.4.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar --cc=clang --cxx=clang++ --as='clang -arch x86_64 -target x86_64-apple-ios12.1-simulator -march=x86-64 -msse4.2 -mpopcnt -m64 -DFFMPEG_KIT_X86_64 -Wno-unused-function -Wno-deprecated-declarations -fstrict-aliasing -DIOS -DFFMPEG_KIT_BUILD_DATE=20220929 -isysroot /Applications/Xcode-v13.4.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.0.sdk -O2 -mios-simulator-version-min=12.1 -I/Applications/Xcode-v13.4.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.0.sdk/usr/include' --ranlib=/Applications/Xcode-v13.4.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib --strip=/Applications/Xcode-v13.4.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip --nm=/Applications/Xcode-v13.4.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/nm --extra-ldflags='-mios-simulator-version-min=12.1' --disable-autodetect --enable-cross-compile --enable-pic --enable-inline-asm --enable-optimizations --enable-swscale --enable-shared --disable-static --install-name-dir='@rpath' --enable-pthreads --disable-v4l2-m2m --disable-outdev=v4l2 --disable-outdev=fbdev --disable-indev=v4l2 --disable-indev=fbdev --enable-small --disable-xmm-clobber-test --disable-debug --disable-neon-clobber-test --disable-programs --disable-postproc --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-sndio --disable-schannel --disable-securetransport --disable-xlib --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --disable-alsa --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --enable-gmp --enable-gnutls --disable-sdl2 --disable-openssl --enable-zlib --enable-audiotoolbox --disable-outdev=audiotoolbox --enable-bzlib --enable-videotoolbox --enable-avfoundation --enable-iconv --disable-coreimage --disable-appkit --disable-opencl --disable-opengl
 LOG libavutil 57. 28.100 / 57. 28.100
 LOG libavcodec 59. 37.100 / 59. 37.100
 LOG libavformat 59. 27.100 / 59. 27.100
 LOG libavdevice 59. 7.100 / 59. 7.100
 LOG libavfilter 8. 44.100 / 8. 44.100
 LOG libswscale 6. 7.100 / 6. 7.100
 LOG libswresample 4. 7.100 / 4. 7.100
 LOG Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/master/Documents/Code/videocap-mobile/media.mp4':
 LOG Metadata:
 LOG major_brand :
 LOG isom
 LOG 
 LOG minor_version :
 LOG 512
 LOG 
 LOG compatible_brands:
 LOG isomiso2avc1mp41
 LOG 
 LOG encoder :
 LOG Lavf58.76.100
 LOG 
 LOG Duration:
 LOG 00:00:11.82
 LOG , start:
 LOG 0.000000
 LOG , bitrate:
 LOG 813 kb/s
 LOG 
 LOG Stream #0:0
 LOG [0x1]
 LOG (und)
 LOG : Video: h264 (avc1 / 0x31637661), yuv420p(tv, bt470bg/bt470bg/smpte170m, progressive), 480x608, 682 kb/s
 LOG , SAR 32757:32326 DAR 491355:614194
 LOG ,
 LOG 24.15 fps,
 LOG 24 tbr,
 LOG 1000k tbn
 LOG (default)
 LOG 
 LOG Metadata:
 LOG handler_name :
 LOG VideoHandler
 LOG 
 LOG vendor_id :
 LOG [0][0][0][0]
 LOG 
 LOG Stream #0:1
 LOG [0x2]
 LOG (und)
 LOG : Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 126 kb/s
 LOG (default)
 LOG 
 LOG Metadata:
 LOG handler_name :
 LOG SoundHandler
 LOG 
 LOG vendor_id :
 LOG [0][0][0][0]
 LOG 
 LOG /Users/master/Documents/Code/videocap-mobile/transcription.srt: Immediate exit requested
 LOG Exiting normally, received signal 2.



Please help