
Recherche avancée
Médias (1)
-
Carte de Schillerkiez
13 mai 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
Autres articles (36)
-
Taille des images et des logos définissables
9 février 2011, parDans beaucoup d’endroits du site, logos et images sont redimensionnées pour correspondre aux emplacements définis par les thèmes. L’ensemble des ces tailles pouvant changer d’un thème à un autre peuvent être définies directement dans le thème et éviter ainsi à l’utilisateur de devoir les configurer manuellement après avoir changé l’apparence de son site.
Ces tailles d’images sont également disponibles dans la configuration spécifique de MediaSPIP Core. La taille maximale du logo du site en pixels, on permet (...) -
ANNEXE : Les plugins utilisés spécifiquement pour la ferme
5 mars 2010, parLe site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)
-
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 (6364)
-
FFMPEG muxing overhead unknown creating HLS Live stream from mp4 files
9 juillet 2021, par user72261I am using FFMPEG Concatenate to combine a number of mp4 files into a live HLS stream after around 40 seconds FFMPEG stops with error.


I am working in PHP launching the FFMPEG command from there using exec as this project relies on users input from there own control panels.


This is the error i am getting.


ffmpeg version N-57204-gc7c138e411-static https://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2021 the FFmpeg developers
 built with gcc 8 (Debian 8.3.0-6)
 configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-libgme --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid --enable-libzvbi --enable-libzimg
 libavutil 57. 0.100 / 57. 0.100
 libavcodec 59. 0.100 / 59. 0.100
 libavformat 59. 0.100 / 59. 0.100
 libavdevice 59. 0.100 / 59. 0.100
 libavfilter 8. 0.101 / 8. 0.101
 libswscale 6. 0.100 / 6. 0.100
 libswresample 4. 0.100 / 4. 0.100
 libpostproc 56. 0.100 / 56. 0.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x72fdcc0] Auto-inserting h264_mp4toannexb bitstream filter
Input #0, concat, from '/storage/($username)/hls/playlist.txt':
 Duration: N/A, start: 0.000000, bitrate: 1404 kb/s
 Stream #0:0(und): Video: h264 (Main) (avc3 / 0x33637661), yuv420p, 960x540 [SAR 1:1 DAR 16:9], 1183 kb/s, 25 fps, 25 tbr, 180k tbn
 Metadata:
 handler_name : Edgeware Video Media Handler
 vendor_id : [0][0][0][0]
 Stream #0:1(swe): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 221 kb/s
 Metadata:
 handler_name : Edgeware Audio Media Handler
 vendor_id : [0][0][0][0]
Output #0, hls, to '/storage/($username)/hls/playlist.m3u8':
 Metadata:
 encoder : Lavf59.0.100
 Stream #0:0(und): Video: h264 (Main) (avc3 / 0x33637661), yuv420p, 960x540 [SAR 1:1 DAR 16:9], q=2-31, 1183 kb/s, 25 fps, 25 tbr, 90k tbn
 Metadata:
 handler_name : Edgeware Video Media Handler
 vendor_id : [0][0][0][0]
 Stream #0:1(swe): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 221 kb/s
 Metadata:
 handler_name : Edgeware Audio Media Handler
 vendor_id : [0][0][0][0]
Stream mapping:
 Stream #0:0 -> #0:0 (copy)
 Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame= 1 fps=0.0 q=-1.0 size=N/A time=00:00:00.00 bitrate=N/A speed= 0x 
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7314640] Auto-inserting h264_mp4toannexb bitstream filter
[hls @ 0x7303800] Opening '/storage/($username)/hls/69426_0.ts' for writing
[hls @ 0x7303800] Opening '/storage/($username)/hls/playlist.m3u8.tmp' for writing
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7300740] Auto-inserting h264_mp4toannexb bitstream filter
[hls @ 0x7303800] Opening '/storage/($username)/hls/69426_1.ts' for writing
[hls @ 0x7303800] Opening '/storage/($username)/hls/playlist.m3u8.tmp' for writing
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7313e40] Auto-inserting h264_mp4toannexb bitstream filter
[hls @ 0x7303800] Opening '/storage/($username)/hls/69426_2.ts' for writing
[hls @ 0x7303800] Opening '/storage/($username)/hls/playlist.m3u8.tmp' for writing
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7313e40] Auto-inserting h264_mp4toannexb bitstream filter
[hls @ 0x7303800] Opening '/storage/($username)/hls/69426_3.ts' for writing
[hls @ 0x7303800] Opening '/storage/($username)/hls/playlist.m3u8.tmp' for writing
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7313e40] Auto-inserting h264_mp4toannexb bitstream filter
[hls @ 0x7303800] Opening '/storage/($username)/hls/69426_4.ts' for writing
[hls @ 0x7303800] Opening '/storage/($username)/hls/playlist.m3u8.tmp' for writing
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7313e40] Auto-inserting h264_mp4toannexb bitstream filter
[hls @ 0x7303800] Opening '/storage/($username)/hls/69426_5.ts' for writing
[hls @ 0x7303800] Opening '/storage/($username)/hls/playlist.m3u8.tmp' for writing
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7313e40] Auto-inserting h264_mp4toannexb bitstream filter
[hls @ 0x7303800] Opening '/storage/($username)/hls/69426_6.ts' for writing
[hls @ 0x7303800] Opening '/storage/($username)/hls/playlist.m3u8.tmp' for writing
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7313e40] Auto-inserting h264_mp4toannexb bitstream filter
[hls @ 0x7303800] Opening '/storage/($username)/hls/69426_7.ts' for writing
[hls @ 0x7303800] Opening '/storage/($username)/hls/playlist.m3u8.tmp' for writing
[hls @ 0x7303800] Opening '/storage/($username)/hls/69426_8.ts' for writing
[hls @ 0x7303800] Opening '/storage/($username)/hls/playlist.m3u8.tmp' for writing
[hls @ 0x7303800] Opening '/storage/($username)/hls/69426_9.ts' for writing
[hls @ 0x7303800] Opening '/storage/($username)/hls/playlist.m3u8.tmp' for writing
frame= 900 fps=0.0 q=-1.0 Lsize=N/A time=00:00:36.03 bitrate=N/A speed= 268x 
video:7232kB audio:973kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown



This is the FFMPEG command i am running


exec('ffmpeg -y -nostdin -hide_banner -re -f concat -safe 0 -i "' . $CONCAT_FILE . '" -c copy -f hls -start_number 0 -hls_init_time 4 -hls_time 4 -hls_list_size 8 -hls_segment_type mpegts -hls_allow_cache 0 -hls_flags delete_segments+discont_start -hls_segment_filename "' . $SEGMENT_FORMAT . '" "' . $PLAYLIST_NAME . '" );



All mp4 files are encoded to h264 with the same specifications and if the video has audio it is encoded to aac.


I am also using the latest version of the FFMPEG binary for linux.


Has anyone else faced this issue ?


-
FFMPEG Metadata Extraction Fails
30 juin 2021, par Emanuele BenozziI have a little issue with FFMPEG on Windows :


ffmpeg version 4.4-full_build-www_gyan_dev Copyright (c) 2000-2021 the FFmpeg developers


I Have got a video and a zip file to embed in the container as metadata
I encoded source files with the command


.\ffmpeg.exe -y -i D:\TestVideo3_T0.mkv -map 0 -attach .\TestVideo3_Merged_Meta.zip -metadata:s:t mimetype=application/zip -c:v copy D:\TestVideo3_Merged.mkv



Result of encoded data :


Input #0, matroska,webm, from 'D:\TestVideo3_T0.mkv':
 Metadata:
 ENCODER : Lavf58.76.100
 Duration: 00:00:02.00, start: 0.000000, bitrate: 4461 kb/s
 Stream #0:0: Video: hevc (Rext), gbrp(pc, gbr/unknown/unknown, progressive), 2048x1536, 10 fps, 10 tbr, 1k tbn, 10 tbc (default)
 Metadata:
 ENCODER : Lavc58.134.100 libx265
 DURATION : 00:00:02.000000000
Output #0, matroska, to 'D:\TestVideo3_Merged.mkv':
 Metadata:
 encoder : Lavf58.76.100
 Stream #0:0: Video: hevc (Rext), gbrp(pc, gbr/unknown/unknown, progressive), 2048x1536, q=2-31, 10 fps, 10 tbr, 1k tbn, 1k tbc (default)
 Metadata:
 ENCODER : Lavc58.134.100 libx265
 DURATION : 00:00:02.000000000
 Stream #0:1: Attachment: none
 Metadata:
 filename : .\TestVideo3_Merged_Meta.zip
 mimetype : application/zip
Stream mapping:
 Stream #0:0 -> #0:0 (copy)
 File .\TestVideo3_Merged_Meta.zip -> Stream #0:1
Press [q] to stop, [?] for help
frame= 20 fps=0.0 q=-1.0 Lsize= 3473kB time=00:00:01.70 bitrate=16727.1kbits/s speed= 554x
video:1086kB audio:0kB subtitle:0kB other streams:0kB global headers:2kB muxing overhead: 219.801529%



When I analyze the output file I can find the zip file embedded on the mkv video.
Deconding the file seems not working. (I tries -dump_attacment:s :s:t :t, ecc...)


.\ffmpeg -y -i .\TestVideo3_Merged.mkv -dump_attachment:t .\Meta.zip

ffmpeg version 4.4-full_build-www_gyan_dev Copyright (c) 2000-2021 the FFmpeg developers
 built with gcc 10.2.0 (Rev6, 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-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libglslang --enable-vulkan --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 56. 70.100 / 56. 70.100
 libavcodec 58.134.100 / 58.134.100
 libavformat 58. 76.100 / 58. 76.100
 libavdevice 58. 13.100 / 58. 13.100
 libavfilter 7.110.100 / 7.110.100
 libswscale 5. 9.100 / 5. 9.100
 libswresample 3. 9.100 / 3. 9.100
 libpostproc 55. 9.100 / 55. 9.100
Trailing option(s) found in the command: may be ignored.
[matroska,webm @ 0000023ddd5cf880] 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 '.\TestVideo3_Merged.mkv':
 Metadata:
 ENCODER : Lavf58.76.100
 Duration: 00:00:02.00, start: 0.000000, bitrate: 14226 kb/s
 Stream #0:0: Video: hevc (Rext), gbrp(pc, gbr/unknown/unknown, progressive), 2048x1536, 10 fps, 10 tbr, 1k tbn, 10 tbc (default)
 Metadata:
 ENCODER : Lavc58.134.100 libx265
 DURATION : 00:00:02.000000000
 Stream #0:1: Attachment: none
 Metadata:
 filename : .\TestVideo3_Merged_Meta.zip
 mimetype : application/zip
At least one output file must be specified
PS D:\> .\ffmpeg -y -i .\TestVideo3_Merged.mkv -dump_attachment:s:t .\Meta.zip
ffmpeg version 4.4-full_build-www.gyan.dev Copyright (c) 2000-2021 the FFmpeg developers
 built with gcc 10.2.0 (Rev6, 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-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libglslang --enable-vulkan --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 56. 70.100 / 56. 70.100
 libavcodec 58.134.100 / 58.134.100
 libavformat 58. 76.100 / 58. 76.100
 libavdevice 58. 13.100 / 58. 13.100
 libavfilter 7.110.100 / 7.110.100
 libswscale 5. 9.100 / 5. 9.100
 libswresample 3. 9.100 / 3. 9.100
 libpostproc 55. 9.100 / 55. 9.100
Trailing option(s) found in the command: may be ignored.
[matroska,webm @ 000002492afef7c0] 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 '.\TestVideo3_Merged.mkv':
 Metadata:
 ENCODER : Lavf58.76.100
 Duration: 00:00:02.00, start: 0.000000, bitrate: 14226 kb/s
 Stream #0:0: Video: hevc (Rext), gbrp(pc, gbr/unknown/unknown, progressive), 2048x1536, 10 fps, 10 tbr, 1k tbn, 10 tbc (default)
 Metadata:
 ENCODER : Lavc58.134.100 libx265
 DURATION : 00:00:02.000000000
 Stream #0:1: Attachment: none
 Metadata:
 filename : .\TestVideo3_Merged_Meta.zip
 mimetype : application/zip
At least one output file must be specified



Can anyone give a hint to solve this problem ?


Thanks in advance


-
Can't use OpenCV to decode video on GPU with cv2.CAP_FFMPEG
19 juillet 2021, par RezaI'm trying to get all frames of list of videos(lots of .mp4 videos) using OpenCV. In order to speed up the process I was thinking may be I can use FFMPEG with Nvidia Video Codec SDK to use hardware-accelerated decoding(I have T4 cards on my machine). My code is something like this :


import os
os.environ["OPENCV_FFMPEG_CAPTURE_OPTIONS"]="video_codec;h264_cuvid"
import cv2

ret = cv2.VideoCapture("input.mp4", cv2.CAP_FFMPEG)
while True:
 x, y = ret.read()
 if x:
 continue
 break



but I get these errors when I run my script.


[ERROR:0] global /tmp/pip-req-build-afu9cjzs/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp (1086) open Could not find decoder 'h264_cuvid'
[ERROR:0] global /tmp/pip-req-build-afu9cjzs/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp (1109) open VIDEOIO/FFMPEG: Failed to initialize VideoCapture



My ffmpeg configs,
ffmpeg
:

ffmpeg version N-102965-gf531a1a4e8 Copyright (c) 2000-2021 the FFmpeg developers
 built with gcc 9 (Ubuntu 9.3.0-17ubuntu1~20.04)
 configuration: --enable-nonfree --enable-cuda --enable-cuvid --enable-nvdec --enable-cuda-nvcc --enable-nvenc --enable-libnpp --enable-shared --extra-cflags=-I/usr/local/cuda/include --extra-ldflags=-L/usr/local/cuda/lib64
 libavutil 57. 0.100 / 57. 0.100
 libavcodec 59. 3.101 / 59. 3.101
 libavformat 59. 4.100 / 59. 4.100
 libavdevice 59. 0.100 / 59. 0.100
 libavfilter 8. 0.103 / 8. 0.103
 libswscale 6. 0.100 / 6. 0.100
 libswresample 4. 0.100 / 4. 0.100
Hyper fast Audio and Video encoder



and
ffmpeg -hwaccels
:

ffmpeg version N-102965-gf531a1a4e8 Copyright (c) 2000-2021 the FFmpeg developers
 built with gcc 9 (Ubuntu 9.3.0-17ubuntu1~20.04)
 configuration: --enable-nonfree --enable-cuda --enable-cuvid --enable-nvdec --enable-cuda-nvcc --enable-nvenc --enable-libnpp --enable-shared --extra-cflags=-I/usr/local/cuda/include --extra-ldflags=-L/usr/local/cuda/lib64
 libavutil 57. 0.100 / 57. 0.100
 libavcodec 59. 3.101 / 59. 3.101
 libavformat 59. 4.100 / 59. 4.100
 libavdevice 59. 0.100 / 59. 0.100
 libavfilter 8. 0.103 / 8. 0.103
 libswscale 6. 0.100 / 6. 0.100
 libswresample 4. 0.100 / 4. 0.100
Hardware acceleration methods:
cuda



OpenCV version
opencv-python==4.5.3.56