
Recherche avancée
Autres articles (36)
-
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...) -
De l’upload à la vidéo finale [version standalone]
31 janvier 2010, parLe chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
Upload et récupération d’informations de la vidéo source
Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)
Sur d’autres sites (7567)
-
Issue playing output mp4 transcoded with ffmpeg wasm on mobile
14 mars 2023, par heroicsatsumaI'm capturing a video of a canvas using MediaRecorder :


(async () => {
 const stream = recordingCanvasCtx.canvas.captureStream();
 const chunks = [];
 videoRecorder.ondataavailable = e => chunks.push(e.data);
 videoRecorder.onstop = async () => {
 transcode(new Uint8Array(await (new Blob(chunks)).arrayBuffer()));
 stopRecording();
 };
 videoRecorder.start();
 setTimeout(() => {
 videoRecorder.stop();
 }, videoRecordDuration);
})();



Then transcoding using ffmpeg wasm :


const transcode = async (webcamData) => {
 const name = 'record.webm';

 ffmpeg.FS('writeFile', name, await fetchFile(webcamData));
 await ffmpeg.run('-i', name, '-codec', 'copy', '-preset', 'superfast', '-crf', '27', 'output.mp4');

 const data = ffmpeg.FS('readFile', 'output.mp4');

 const video = document.getElementById('vidpreview');
 video.src = URL.createObjectURL(new Blob([data.buffer], { type: 'video/mp4' }));

 document.getElementById('viddiv').classList.add("show");

 vidpreview.onloadeddata = function () {
 playBtn.addEventListener('click', playVidAgain);
 }
}



This all works and displays when running on a Windows laptop, but when trying to display the video.src on Android I see the following error in chrome ://inspect :


ERR_REQUEST_RANGE_NOT_SATISFIABLE


Any ideas how to get this working are much appreciated


-
avfilter/vf_vpp_qsv : set outlink to EOF correctly
12 mai 2022, par Fei Wangavfilter/vf_vpp_qsv : set outlink to EOF correctly
1. Return error if filter frame fail before set outlink to EOF in none
pass through mode.
2. Set outlink to EOF before return success in pass through mode.Fix endless cmd :
ffmpeg -hwaccel qsv -qsv_device /dev/dri/renderD128 -hwaccel_output_format \
qsv -v debug -c:v hevc_qsv -i 4k.h265 \filter_complex "vpp_qsv=w=3840:h=2160:async_depth=4[o1] ;[o1]split=2[s1][s2] ;
[s2]vpp_qsv=w=1920:h=1080:async_depth=4[o2] ;[o2]split=2[s3][s4] ;
[s4]vpp_qsv=w=1920:h=1080:async_depth=4[o3]" \map [s1] -c:v hevc_qsv -async 3 -async_depth 3 -b:v 9000k -preset 7 -g 33 -y -f null - \
map [s3] -c:v hevc_qsv -async 3 -async_depth 3 -b:v 4000k -preset 7 -g 33 -y -f null - \
map [o3] -c:v hevc_qsv -async 3 -async_depth 3 -b:v 3100k -preset 7 -g 33 -y -f null -
-
osx ffmpeg avfoundation audio not in sync
29 avril 2015, par Chris WhittingtonI’m trying to record my screen audio and video with ffmpeg. I have installed soundflower successfully and setup the correct audio devices. However, when using ffmpeg the audio is sped up and does not keep in sync with the video.
ffmpeg -f avfoundation -i "1:0" -y out.avi
I have also tried the following variations.
ffmpeg -vsync 2 -f avfoundation -i "1:0" -framerate 30 -y out.avi
ffmpeg -vsync 2 -f avfoundation -i "1:0" -frame_rate 30 -probesize 10M -y out.avi
ffmpeg -async 1 -probesize 10M -f avfoundation -i "1:0" -r 15 -y out.avi
ffmpeg -async 15 -f avfoundation -i "1:0" -r 15 -y out.aviI’m using ffmpeg version 2.6.2 installed via homebrew.
If someone has a free solution that isn’t ffmpeg that works well from the command line then i will also accept that. Quicktime screen recording produces very large file sizes so it’s not appropriate.