
Recherche avancée
Autres articles (49)
-
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Mise à jour de la version 0.1 vers 0.2
24 juin 2013, parExplications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...) -
Soumettre améliorations et plugins supplémentaires
10 avril 2011Si vous avez développé une nouvelle extension permettant d’ajouter une ou plusieurs fonctionnalités utiles à MediaSPIP, faites le nous savoir et son intégration dans la distribution officielle sera envisagée.
Vous pouvez utiliser la liste de discussion de développement afin de le faire savoir ou demander de l’aide quant à la réalisation de ce plugin. MediaSPIP étant basé sur SPIP, il est également possible d’utiliser le liste de discussion SPIP-zone de SPIP pour (...)
Sur d’autres sites (10995)
-
Add image to video using ffmpeg , the output file can't be played
22 juin 2017, par StevenChenI need to watermark a mp4 video , but it is not working , It has bothered me for a week,please help me
here is my code :ffmpeg -i sss01.mp4 -i watermark.png -filter_complex "[0:v][1:v] overlay=10:10" -pix_fmt yuv420p -c:a copy output.mp4
****This command was executed successfully ,but The size of output.mp4 only is 50kb and it cann’t play. the command detail :****
> ffmpeg -i sss01.mp4 -i watermark.png -filter_complex "[0:v][1:v] overlay=10:10" -pix_fmt yuv420p -c:a copy output.mp4
ffmpeg version git-2017-06-08-a3b5b60 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-18)
configuration: --prefix=/root/ffmpeg_build --extra-cflags=-I/root/ffmpeg_build/include --extra-ldflags=-L/root/ffmpeg_build/lib --bindir=/root/bin --extra-libs=-ldl --enable-gpl --enable-nonfree --enable-libfdk_aac --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-openssl
libavutil 55. 63.100 / 55. 63.100
libavcodec 57. 96.101 / 57. 96.101
libavformat 57. 72.101 / 57. 72.101
libavdevice 57. 7.100 / 57. 7.100
libavfilter 6. 91.100 / 6. 91.100
libswscale 4. 7.101 / 4. 7.101
libswresample 2. 8.100 / 2. 8.100
libpostproc 54. 6.100 / 54. 6.100
Input #0, png_pipe, from 'watermark.png':
Duration: N/A, bitrate: N/A
Stream #0:0: Video: png, rgba(pc), 215x115 [SAR 2835:2835 DAR 43:23], 25 tbr, 25 tbn, 25 tbc
Invalid file index 1 in filtergraph description [0:v][1:v] overlay=10:10.
[root@localhost wwwroot]# ffmpeg -i sss01.mp4 -i watermark.png -filter_complex "[0:v][1:v] overlay=10:10" -pix_fmt yuv420p -c:a copy output.mp4
ffmpeg version git-2017-06-08-a3b5b60 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-18)
configuration: --prefix=/root/ffmpeg_build --extra-cflags=-I/root/ffmpeg_build/include --extra-ldflags=-L/root/ffmpeg_build/lib --bindir=/root/bin --extra-libs=-ldl --enable-gpl --enable-nonfree --enable-libfdk_aac --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-openssl
libavutil 55. 63.100 / 55. 63.100
libavcodec 57. 96.101 / 57. 96.101
libavformat 57. 72.101 / 57. 72.101
libavdevice 57. 7.100 / 57. 7.100
libavfilter 6. 91.100 / 6. 91.100
libswscale 4. 7.101 / 4. 7.101
libswresample 2. 8.100 / 2. 8.100
libpostproc 54. 6.100 / 54. 6.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'sss01.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf57.72.101
Duration: 00:03:09.80, start: 0.000000, bitrate: 1547 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 1416 kb/s, 24 fps, 24 tbr, 90k tbn, 48 tbc (default)
Metadata:
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s (default)
Metadata:
handler_name : SoundHandler
Stream #0:2(eng): Subtitle: mov_text (tx3g / 0x67337874), 0 kb/s (default)
Metadata:
handler_name : SubtitleHandler
Input #1, png_pipe, from 'watermark.png':
Duration: N/A, bitrate: N/A
Stream #1:0: Video: png, rgba(pc), 215x115 [SAR 2835:2835 DAR 43:23], 25 tbr, 25 tbn, 25 tbc
File 'output.mp4' already exists. Overwrite ? [y/N] y
Stream mapping:
Stream #0:0 (h264) -> overlay:main
Stream #1:0 (png) -> overlay:overlay
overlay -> Stream #0:0 (libx264)
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[libx264 @ 0xb4ee7e0] using SAR=1/1
[libx264 @ 0xb4ee7e0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 0xb4ee7e0] profile High, level 4.0
[libx264 @ 0xb4ee7e0] 264 - core 150 - H.264/MPEG-4 AVC codec - Copyleft 2003-2017 - 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=1 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=24 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 'output.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf57.72.101
Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 24 fps, 12288 tbn, 24 tbc (default)
Metadata:
encoder : Lavc57.96.101 libx264
Side data:
cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
Stream #0:1(und): Audio: aac (LC) ([64][0][0][0] / 0x0040), 44100 Hz, stereo, fltp, 125 kb/s (default)
Metadata:
handler_name : SoundHandler
frame= 20 fps=0.0 q=0.0 size= 0kB time=00:00:00.81 bitrate= 0.0kbits/sframe= 30 fps= 29 q=0.0 size= 0kB time=00:00:01.23 bitrate= 0.0kbits/sframe= 37 fps= 23 q=0.0 size= 0kB time=00:00:01.50 bitrate= 0.0kbits/sframe= 42 fps= 11 q=28.0 size= 40kB time=00:00:01.71 bitrate= 190.6kbits/frame= 44 fps= 10 q=28.0 size= 46kB time=00:00:01.81 bitrate= 210.2kbits/Killedd=0.41x -
Video Encoded using FFmpeg is not being played in Azure Kinect Viewer
4 octobre 2023, par Ashutosh SinglaI captured a video using a
Kinect Azure SDK
device and extracted the RGB (Color) track usingMKVToolNIX
. I could playback this RGB track usingAzure Kinect Viewer (v.1.4.1)
. However, when I encode a video usingFFmpeg
, the command is given below. I can not playback the video using Azure Kinect Viewer. I get a message :



Failed to open Recording




ffmpeg -i .\RGB.mkv -c:v libx264 -preset veryfast -crf 18 -c:a aac -b:a 128k RGG_Enc.mkv



I tried with different codecs (H.264, H.265, VP9, VP10, MJPEG) and different settings, but could not play the video in
Azure Kinect Viewer
. Can someone suggest to me what to do ?

Here is the output of the
FFprobe
for the original video.

C:\Users\Ashutosh\Desktop\RGB_Encoding> ffprobe -i .\RGB.mkv
 ffprobe version 6.0-full_build-www.gyan.dev Copyright (c) 2007- 
 2023 the FFmpeg developers
 built with gcc 12.2.0 (Rev10, Built by MSYS2 project)
 configuration: --enable-gpl --enable-version3 --enable-static -- 
 disable-w32threads --disable-autodetect --enable-fontconfig -- 
 enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp -- 
 enable-bzlib --enable-lzma --enable-libsnappy --enable-zlib -- 
 enable-librist --enable-libsrt --enable-libssh --enable-libzmq -- 
 enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 
 --enable-libaribb24 --enable-libdav1d --enable-libdavs2 --enable- 
 libuavs3d --enable-libzvbi --enable-librav1e --enable-libsvtav1 -- 
 enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 
 --enable-libxvid --enable-libaom --enable-libjxl --enable- 
 libopenjpeg --enable-libvpx --enable-mediafoundation --enable- 
 libass --enable-frei0r --enable-libfreetype --enable-libfribidi -- 
 enable-liblensfun --enable-libvidstab --enable-libvmaf --enable- 
 libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable- 
 ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable- 
 dxva2 --enable-libvpl --enable-libshaderc --enable-vulkan -- 
 enable-libplacebo --enable-opencl --enable-libcdio --enable-libgme 
 --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb 
 --enable-libmp3lame --enable-libshine --enable-libtheora --enable- 
 libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable- 
 libgsm --enable-libopencore-amrnb --enable-libopus --enable- 
 libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b -- 
 enable-libflite --enable-libmysofa --enable-librubberband -- 
 enable-libsoxr --enable-chromaprint

 libavutil 58. 2.100 / 58. 2.100
 libavcodec 60. 3.100 / 60. 3.100
 libavformat 60. 3.100 / 60. 3.100
 libavdevice 60. 1.100 / 60. 1.100
 libavfilter 9. 3.100 / 9. 3.100
 libswscale 7. 1.100 / 7. 1.100
 libswresample 4. 10.100 / 4. 10.100
 libpostproc 57. 1.100 / 57. 1.100

 [matroska,webm @ 0000018ef5f4e240] Could not find codec parameters 
 for stream 1 (Attachment: none): unknown codec
 Consider increasing the value for the 'analyzeduration' (0) and 
 'probesize' (5000000) options

 Input #0, matroska,webm, from '.\RGB.mkv':
 Metadata:
 title : Azure Kinect
 encoder : libebml v1.4.4 + libmatroska v1.7.1
 creation_time : 2023-08-04T11:52:43.000000Z
 Duration: 00:00:40.03, start: 0.033000, bitrate: 126708 kb/s
 Stream #0:0(eng): Video: mjpeg (Baseline) (MJPG / 0x47504A4D), 
 yuvj422p(pc, bt470bg/unknown/unknown), 2048x1536, SAR 1:1 DAR 4:3, 
 30 fps, 30 tbr, 1k tbn (default)
 
 Metadata:
 title : COLOR
 BPS : 126696930
 DURATION : 00:00:40.029000000
 NUMBER_OF_FRAMES: 1201
 NUMBER_OF_BYTES : 633943931
 _STATISTICS_WRITING_APP: mkvmerge v76.0 ('Celebration') 64-bit
 _STATISTICS_WRITING_DATE_UTC: 2023-08-04 11:52:43
 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES

Stream #0:1: Attachment: none
Metadata:
 filename : calibration.json
 mimetype : application/octet-stream
 Unsupported codec with id 0 for input stream 1

 



This example video contains only one channel (RGB) from the original video. I am able to play this video using Azure Kinect Viewer.


-
Extract audio from youtube in a client-side script
5 mai 2018, par KevinThere are a lot of node libraries for turning a youtube video into an audio stream, but all of them rely on a C-library called ffmpeg.
Ffmpeg has been ported to javascript as well, but it has a 30MB size, which seems rather cumbersome (ffmpeg does a lot more than just rip audio from youtube, it has many advanced audio filtering techniques that won’t be needed for this application).
Lastly, I came across this link,https://hackernoon.com/how-to-build-an-audio-processor-in-your-browser-302cb7aa502a, which claims to be a client-side audio processor but really does all the stuff on the server-side, and then says that stuff can’t be done in the client because of CORS (not sure I understand this, can’t CORS be avoided with a simple flag in the request ?).
Does anyone know of any way to stream audio within the client-side browser, specifically from youtube, in a manner that’s general and unopposed ?