
Recherche avancée
Médias (1)
-
The Great Big Beautiful Tomorrow
28 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Texte
Autres articles (40)
-
La file d’attente de SPIPmotion
28 novembre 2010, parUne file d’attente stockée dans la base de donnée
Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...) -
Other interesting software
13 avril 2011, parWe don’t claim to be the only ones doing what we do ... and especially not to assert claims to be the best either ... What we do, we just try to do it well and getting better ...
The following list represents softwares that tend to be more or less as MediaSPIP or that MediaSPIP tries more or less to do the same, whatever ...
We don’t know them, we didn’t try them, but you can take a peek.
Videopress
Website : http://videopress.com/
License : GNU/GPL v2
Source code : (...) -
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 ;
Sur d’autres sites (5584)
-
How to make mp4 rendering visible on Mac ?
24 octobre 2022, par JánosGenerating mp4 from gif like this :


await new Promise<void>((resolve, reject) => {
 ffmpeg
 .input(`/tmp/input_${name}.gif`)
 .outputOptions([
 '-c:v libx264',
 '-movflags +faststart',
 '-movflags frag_keyframe+empty_moov',
 ])
 .noAudio()
 .output(`/tmp/output_${name}.mp4`)
 .on('end', () => {
 console.log('MP4 video generated')
 resolve()
 })
 .on('error', (e) => {
 console.log(e)
 reject()
 })
 .run()
 })
</void>


will generate mp4, but can be watch only in Chrome, not in Safari or Quicktime Player.


We tried many other option like this :


'-pix_fmt yuv420p',
'-vf "scale=trunc(iw/2)*2:trunc(ih/2)*2"',



but it raise an error :


Error reinitializing filters!
Failed to inject frame into filter network: Invalid argument





Using this framework in a React / Next.js project : https://github.com/eugeneware/ffmpeg-static


-
Animated Gif using PHP 5 and ffmpeg [closed]
1er décembre 2012, par user1828200I make an Animated Gif, by download a video from youtube with youtube-dl and then convert it into AVI with
ffmpeg
and then make animated gif throughconvert
. It works, but speed is very slow.Here is my code
Youtube Download :
shell_exec("youtube-dl -o JNJNoaIU7qs.flv --format=5 --audio-quality=9 http://www.youtube.com/watch?v=JNJNoaIU7qs);
Convert to AVI , because I want to make Small Gif so time manipulation is not done with youtube-dl thats why i convert avi with time manipulation
shell_exec("ffmpeg -i JNJNoaIU7qs.flv -sameq -ss 00:00:5 -t 00:00:10 JNJNoaIU7qs.avi");
Make Gif
shell_exec("convert -quiet -delay 0 JNJNoaIU7qs.avi JNJNoaIU7qs.gif");
It creates the GIF files, but it is very slow, how can I increase the speed of conversion ?
-
How to calculate the "Range" header for mp4 file to play/download a part of it ? [youtube-dl]
5 décembre 2016, par supersanI’m using youtube-dl to download videos from YouTube. Unfortunately, sometimes I just need to download a part of the video like 10 seconds of a 3 hour video and here is how I see I can do it.
Step 1 : Get the URL of the mp4 file from youtube-dl.
youtube-dl -g -f "[ext=mp4]" https://www.youtube.com/watch?v=qOZ1u9VpoMk
This returns
$url
: the full URL of mp4 file on server.Step 2 : Download part of the video using curl
curl -r $startBytes-$endBytes $url
But how to calculate
$startBytes
and$endBytes
. What is the formula for that ?P.S I was thinking could be something as simple but this isn’t it..
$startBytes
= (total_size_of_video / total_length_of_video_secs) * start_secondsP.P.S. When I play the mp4 video in Chrome and use the scrub bar to jump around in the video, Chrome too send the Range header to the same URL (as I can see in fiddler)