
Recherche avancée
Autres articles (48)
-
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 (3931)
-
Options to re-encode video with new key frames
24 novembre 2022, par muralivI need to add key frames at 2 second intervals in this video.


ffprobe input-video.mp4 
ffprobe version 5.1.2 Copyright (c) 2007-2022 the FFmpeg developers
 built with Apple clang version 14.0.0 (clang-1400.0.29.102)
 configuration: --prefix=/usr/local/Cellar/ffmpeg/5.1.2 --enable-shared --enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librist --enable-librubberband --enable-libsnappy --enable-libsrt --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
 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, mov,mp4,m4a,3gp,3g2,mj2, from 'input-video.mp4':
 Metadata:
 major_brand : mp42
 minor_version : 0
 compatible_brands: mp42mp41
 creation_time : 2022-11-23T10:04:47.000000Z
 Duration: 00:02:00.15, start: 0.000000, bitrate: 16302 kb/s
 Stream #0:0[0x1](eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 16174 kb/s, 23.98 fps, 23.98 tbr, 24k tbn (default)
 Metadata:
 creation_time : 2022-11-23T10:04:47.000000Z
 handler_name : ?Mainconcept Video Media Handler
 vendor_id : [0][0][0][0]
 encoder : AVC Coding
 Stream #0:1[0x2](eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 125 kb/s (default)
 Metadata:
 creation_time : 2022-11-23T10:04:47.000000Z
 handler_name : #Mainconcept MP4 Sound Media Handler
 vendor_id : [0][0][0][0]



I used this ffmpeg command for this purpose.


ffmpeg -i input-video.mp4 -codec:v libx264 -r 23.976 -force_key_frames "expr:gte(t,n_forced*2)" -c:a copy -y output.mp4



However, this output.mp4 now has different video bitrate (3692 kb/s) compared to the original video (16302 kb/s). How do I use the ffmpeg command to re-encode the video with key frames and with the same bitrate as original video ?


-
codification of whammy.js fails
5 novembre 2022, par DevStarlightI've been developing a mediastream application capturing video and audio using mediastreamrecorder and whammy.js.



In this process I have found a issue and I suspect it is related to the way whammy.js render and store into a blob var.



I realiced about this because I was trying to encode audio (wav) and video (webm) into mp4 with
ffmpeg
.
For any reason I don't really know at all, some of the videos were encoded correctly but others were not. When It wasn't encoded correctly, the video was not fluent but the audio was.


I've been using this ffmpeg sentence :



'ffmpeg -i path/to/file.wav -i path/to/file.webm -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" -map 0:0 -map 1:0 -c:v libx264 -preset ultrafast -qp 0 -c:a libvo_aacenc -b:a 128k path/to/file.mp4'




Then checking with ffprobe on a good conversion and a bad conversion into mp4 with the same camera I got what it comes :



For the good one :



ffprobe version N-77003-g64f7db5 Copyright (c) 2007-2015 the FFmpeg developers
 built with gcc 5.2.1 (Ubuntu 5.2.1-22ubuntu2) 20151010
 configuration: --prefix=/home/devstarlight/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/home/devstarlight/ffmpeg_build/include --extra-ldflags=-L/home/devstarlight/ffmpeg_build/lib --bindir=/home/devstarlight/bin --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree
 libavutil 55. 9.100 / 55. 9.100
 libavcodec 57. 16.101 / 57. 16.101
 libavformat 57. 19.100 / 57. 19.100
 libavdevice 57. 0.100 / 57. 0.100
 libavfilter 6. 19.100 / 6. 19.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 '/home/devstarlight/Escritorio/178.mp4':
 Metadata:
 major_brand : isom
 minor_version : 512
 compatible_brands: isomiso2avc1mp41
 encoder : Lavf56.36.100
 Duration: 00:00:04.50, start: 0.036281, bitrate: 5821 kb/s
 Stream #0:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 129 kb/s (default)
 Metadata:
 handler_name : SoundHandler
 Stream #0:1(und): Video: h264 (High 4:4:4 Predictive) (avc1 / 0x31637661), yuv420p, 400x400 [SAR 1:1 DAR 1:1], 5841 kb/s, 16 fps, 16 tbr, 16384 tbn, 32 tbc (default)
 Metadata:
 handler_name : VideoHandler




For the wrong conversion :



ffprobe version N-77003-g64f7db5 Copyright (c) 2007-2015 the FFmpeg developers
 built with gcc 5.2.1 (Ubuntu 5.2.1-22ubuntu2) 20151010
 configuration: --prefix=/home/devstarlight/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/home/devstarlight/ffmpeg_build/include --extra-ldflags=-L/home/devstarlight/ffmpeg_build/lib --bindir=/home/devstarlight/bin --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree
 libavutil 55. 9.100 / 55. 9.100
 libavcodec 57. 16.101 / 57. 16.101
 libavformat 57. 19.100 / 57. 19.100
 libavdevice 57. 0.100 / 57. 0.100
 libavfilter 6. 19.100 / 6. 19.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 '/home/devstarlight/Escritorio/179.mp4':
 Metadata:
 major_brand : isom
 minor_version : 512
 compatible_brands: isomiso2avc1mp41
 encoder : Lavf56.36.100
 Duration: 00:00:04.50, start: 0.036281, bitrate: 12815 kb/s
 Stream #0:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s (default)
 Metadata:
 handler_name : SoundHandler
 Stream #0:1(und): Video: h264 (High 4:4:4 Predictive) (avc1 / 0x31637661), yuv420p, 400x400 [SAR 1:1 DAR 1:1], 13381 kb/s, 1000.24 fps, 1k tbr, 16k tbn, 2k tbc (default)
 Metadata:
 handler_name : VideoHandler




Then I looked into the webm files directly and I realiced that there was no fps defined in the bad file :



The good record :



ffprobe version N-77003-g64f7db5 Copyright (c) 2007-2015 the FFmpeg developers
 built with gcc 5.2.1 (Ubuntu 5.2.1-22ubuntu2) 20151010
 configuration: --prefix=/home/devstarlight/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/home/devstarlight/ffmpeg_build/include --extra-ldflags=-L/home/devstarlight/ffmpeg_build/lib --bindir=/home/devstarlight/bin --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree
 libavutil 55. 9.100 / 55. 9.100
 libavcodec 57. 16.101 / 57. 16.101
 libavformat 57. 19.100 / 57. 19.100
 libavdevice 57. 0.100 / 57. 0.100
 libavfilter 6. 19.100 / 6. 19.100
 libswscale 4. 0.100 / 4. 0.100
 libswresample 2. 0.101 / 2. 0.101
 libpostproc 54. 0.100 / 54. 0.100
Input #0, matroska,webm, from '/home/devstarlight/Escritorio/179.webm':
 Metadata:
 encoder : whammy
 Duration: 00:00:04.25, start: 0.000000, bitrate: 1859 kb/s
 Stream #0:0: Video: vp8, yuv420p, 400x400, SAR 1:1 DAR 1:1, 1k tbr, 1k tbn, 1k tbc (default)




The bad record :



ffprobe version N-77003-g64f7db5 Copyright (c) 2007-2015 the FFmpeg developers
 built with gcc 5.2.1 (Ubuntu 5.2.1-22ubuntu2) 20151010
 configuration: --prefix=/home/devstarlight/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/home/devstarlight/ffmpeg_build/include --extra-ldflags=-L/home/devstarlight/ffmpeg_build/lib --bindir=/home/devstarlight/bin --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree
 libavutil 55. 9.100 / 55. 9.100
 libavcodec 57. 16.101 / 57. 16.101
 libavformat 57. 19.100 / 57. 19.100
 libavdevice 57. 0.100 / 57. 0.100
 libavfilter 6. 19.100 / 6. 19.100
 libswscale 4. 0.100 / 4. 0.100
 libswresample 2. 0.101 / 2. 0.101
 libpostproc 54. 0.100 / 54. 0.100
Input #0, matroska,webm, from '/home/devstarlight/Escritorio/178.webm':
 Metadata:
 encoder : whammy
 Duration: 00:00:04.36, start: 0.000000, bitrate: 1461 kb/s
 Stream #0:0: Video: vp8, yuv420p, 400x400, SAR 1:1 DAR 1:1, 16 fps, 16 tbr, 1k tbn, 1k tbc (default)




ffmpeg
output rate option (-r) is empty and rate is forced to 25 fps (because in fact in thewebm
it doesn't exist).


Is that issue registered at any point or someone know how to solve it ?



Thanks in advice.


-
ffmpeg_streaming capture Webcam
10 décembre 2022, par Anoop YadavI am trying to run the following example from https://github.com/aminyazdanpanah/python-ffmpeg-video-streaming : To capture the webcam and convert it to hls.


import ffmpeg_streaming
import logging

from ffmpeg_streaming import Formats

logging.basicConfig(level=logging.DEBUG)

video = ffmpeg_streaming.input(r"Integrated Webcam", capture=True)

hls = video.hls(Formats.h264())
hls.auto_generate_representations()
hls.output(r'C:\PycharmProjects\hls\hls.m3u8')



To list the webcam I used the command :
ffmpeg -list_devices true -f dshow -i dummy


Output :


[dshow @ 0000025f5317ecc0] "Integrated Webcam" (video)
[dshow @ 0000025f5317ecc0] Alternative name "@device_pnp_\\?\usb#vid_0bda&pid_5673&mi_00#6&15ef479&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global"
[dshow @ 0000025f5317ecc0] "Microphone Array (Realtek(R) Audio)" (audio)
[dshow @ 0000025f5317ecc0] Alternative name "@device_cm_{33D9A762-90C8-11D0-BD43-00A0C911CE86}\wave_{13610D2E-9970-4A37-8D19-42A73F796ED1}"



I am getting this error :


INFO:root:ffprobe running command: ffprobe -show_format -show_streams -of json video=Integrated Webcam
ERROR:root:b'{\r\n\r\n}\r\n'b'ffprobe version N-109396-g9651f873f8-20221209 Copyright (c) 2007-2022 the FFmpeg developers\r\n built with gcc 12.2.0 (crosstool-NG 1.25.0.90_cf9beb1)\r\n configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=x86_64-w64-mingw32- --arch=x86_64 --target-os=mingw32 --enable-gpl --enable-version3 --disable-debug --disable-w32threads --enable-pthreads --enable-iconv --enable-libxml2 --enable-zlib --enable-libfreetype --enable-libfribidi --enable-gmp --enable-lzma --enable-fontconfig --enable-libvorbis --enable-opencl --disable-libpulse --enable-libvmaf --disable-libxcb --disable-xlib --enable-amf --enable-libaom --enable-libaribb24 --enable-avisynth --enable-chromaprint --enable-libdav1d --enable-libdavs2 --disable-libfdk-aac --enable-ffnvcodec --enable-cuda-llvm --enable-frei0r --enable-libgme --enable-libkvazaar --enable-libass --enable-libbluray --enable-libjxl --enable-libmp3lame --enable-libopus --enable-librist --enable-libssh --enable-libtheora --enable-libvpx --enable-libwebp --enable-lv2 --disable-libmfx --enable-libvpl --enable-openal --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt --enable-librav1e --enable-librubberband --enable-schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libsvtav1 --enable-libtwolame --enable-libuavs3d --disable-libdrm --disable-vaapi --enable-libvidstab --enable-vulkan --enable-libshaderc --enable-libplacebo --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libzimg --enable-libzvbi --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-ldflags=-pthread --extra-ldexeflags= --extra-libs=-lgomp --extra-version=20221209\r\n libavutil 57. 43.100 / 57. 43.100\r\n libavcodec 59. 54.101 / 59. 54.101\r\n libavformat 59. 34.102 / 59. 34.102\r\n libavdevice 59. 8.101 / 59. 8.101\r\n libavfilter 8. 52.100 / 8. 52.100\r\n libswscale 6. 8.112 / 6. 8.112\r\n libswresample 4. 9.100 / 4. 9.100\r\n libpostproc 56. 7.100 / 56. 7.100\r\nvideo=Integrated Webcam: No such file or directory\r\n'



I have also tried with alternate name, but error is still same. I think error is with the arguments for
ffprobe
. How can I fix the arguments ?