
Recherche avancée
Médias (91)
-
Les Miserables
9 décembre 2019, par
Mis à jour : Décembre 2019
Langue : français
Type : Textuel
-
VideoHandle
8 novembre 2019, par
Mis à jour : Novembre 2019
Langue : français
Type : Video
-
Somos millones 1
21 juillet 2014, par
Mis à jour : Juin 2015
Langue : français
Type : Video
-
Un test - mauritanie
3 avril 2014, par
Mis à jour : Avril 2014
Langue : français
Type : Textuel
-
Pourquoi Obama lit il mes mails ?
4 février 2014, par
Mis à jour : Février 2014
Langue : français
-
IMG 0222
6 octobre 2013, par
Mis à jour : Octobre 2013
Langue : français
Type : Image
Autres articles (32)
-
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 (...) -
Librairies et binaires spécifiques au traitement vidéo et sonore
31 janvier 2010, parLes logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
Binaires complémentaires et facultatifs flvtool2 : (...)
Sur d’autres sites (7473)
-
Saving Raw Uncompressed Video Files using OpenCv, Gstreamer, and/or FFMPEG ?
20 septembre 2022, par adav0033I have been trying to implement the
cv::VideoWriter
function from OpenCV to generate a an uncompressed (raw) video file. I started this because of a statement within the OpenCV Documentation which I will link here along with the statement.

cv::VideoWriter::VideoWriter ( const String & filename,
int fourcc,
double fps,
Size frameSize,
bool isColor = true 
) 



"If FFMPEG is enabled, using
codec=0
;fps=0
; you can create an uncompressed (raw) video file."

Ref. https://docs.opencv.org/3.4/dd/d9e/classcv_1_1VideoWriter.html


However whilst troubleshooting the function I came across the refuting statement,


" VideoCapture and VideoWriter do not provide interface to access raw compressed video stream, except maybe MJPEG in some cases.
Make sure you actually use FFmpeg backend by setting apiPreference parameter :
VideoWriter("outfile.avi", cv2.CAP_FFMPEG, ...)
"

Ref. https://github.com/opencv/opencv/issues/14573


I am now confused about how I go about writing the
cv::VideoWriter
function to satisfy the requirements to create a raw uncompressed video file (.avi) and if it is even possible. If it is not possible how do I achieve the outcome of saving an raw uncompressed video file, as I assume it would use some combination of FFMPEG, OpenCV,or Gstreamer.

Note : My code is implemented in c++


-
dnn : remove type cast which is not necessary
22 janvier 2021, par Guo, Yejundnn : remove type cast which is not necessary
- [DH] libavfilter/dnn/dnn_backend_native.c
- [DH] libavfilter/dnn/dnn_backend_native_layer_avgpool.c
- [DH] libavfilter/dnn/dnn_backend_native_layer_conv2d.c
- [DH] libavfilter/dnn/dnn_backend_native_layer_dense.c
- [DH] libavfilter/dnn/dnn_backend_native_layer_depth2space.c
- [DH] libavfilter/dnn/dnn_backend_native_layer_mathbinary.c
- [DH] libavfilter/dnn/dnn_backend_native_layer_mathunary.c
- [DH] libavfilter/dnn/dnn_backend_native_layer_maximum.c
- [DH] libavfilter/dnn/dnn_backend_native_layer_pad.c
- [DH] libavfilter/dnn/dnn_backend_openvino.c
- [DH] libavfilter/dnn/dnn_backend_tf.c
-
How to generate a GIF thumbnail from a video without saving individual frames to disk ?
12 mars 2023, par Rabie DaddiI have a Node.js script that uses fluent-FFmpeg to generate a GIF thumbnail from a video for the first 4 seconds. Currently, the script saves individual frames as PNG images to disk, and then reads them back in to generate the GIF. However, this creates a lot of unnecessary I/O.


Is there a way to modify the script to generate the GIF directly from the video frames, without saving them to disk first ? Ideally, I would like to do this while still using FFmpeg for the processing.


Here's the current code for generating the frames and the GIF :


function generateFrames(videoUrl) {
 return new Promise((resolve, reject) => {
 ffmpeg(videoUrl)
 .setStartTime(0) // start at 0 seconds
 .setDuration(4) // cut 4 seconds
 .videoFilters('scale=if(gte(iw\\,ih)\\,min(600\\,iw)\\,-2):if(lt(iw\\,ih)\\,min(600\\,ih)\\,-2)')
 .fps(4)
 .output('output/img%04d.png') // output file pattern with %04d indicating a sequence number with four digits
 .on('end', () => {
 console.log('GIF generated successfully!');
 resolve()
 })
 .on('error', (err) => {
 console.log('Error generating GIF: ' + err.message);
 reject()
 })
 .run();
 });
}

function generateGif() {
 const inputPattern = 'output/img%04d.png';
 const outputFilename = 'output/output2.gif';

 ffmpeg(inputPattern)
 .inputFPS(9)
 .output(outputFilename)
 .on('error', (err) => {
 console.log('Error generating GIF: ' + err.message);
 })
 .run();
}


execute = async () => {
 await generateFrames('video.mp4')
 generateGif()
}

execute()



Any help or suggestions would be greatly appreciated. Thank you !