
Recherche avancée
Médias (91)
-
GetID3 - Boutons supplémentaires
9 avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
-
Core Media Video
4 avril 2013, par
Mis à jour : Juin 2013
Langue : français
Type : Video
-
The pirate bay depuis la Belgique
1er avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
-
Bug de détection d’ogg
22 mars 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Video
-
Exemple de boutons d’action pour une collection collaborative
27 février 2013, par
Mis à jour : Mars 2013
Langue : français
Type : Image
-
Exemple de boutons d’action pour une collection personnelle
27 février 2013, par
Mis à jour : Février 2013
Langue : English
Type : Image
Autres articles (63)
-
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page. -
Les formats acceptés
28 janvier 2010, parLes commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
ffmpeg -codecs ffmpeg -formats
Les format videos acceptés en entrée
Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
Les formats vidéos de sortie possibles
Dans un premier temps on (...) -
Support de tous types de médias
10 avril 2011Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)
Sur d’autres sites (6008)
-
How do I download a list mpd with ffmpeg
13 mai 2016, par Don DonlleiI did download the video from a site that used M3U8 but he moved to mpd and do not know how do I download it.
<mpd type="static" minbuffertime="PT1S" mediapresentationduration="PT0H1M56.320S" profiles="urn:mpeg:dash:profile:full:2011"><programinformation moreinformationurl="http://gpac.sourceforge.net"></programinformation><period start="PT0S" duration="PT0H1M56.320S"><adaptationset segmentalignment="true" maxwidth="1920" maxheight="1080" maxframerate="25" par="16:9"><contentcomponent contenttype="video"></contentcomponent><contentcomponent contenttype="audio"></contentcomponent><segmenttemplate timescale="1000" duration="9693" media="$RepresentationID$/Y7aRjDxbh_$Number$.m4s" startnumber="1" initialization="$RepresentationID$/Y7aRjDxbh_init.mp4"></segmenttemplate><representation mimetype="video/mp4" codecs="avc3.64000d,mp4a.40.2" width="320" height="240" framerate="25" sar="4:3" audiosamplingrate="44100" startwithsap="1" bandwidth="400000">
</representation><representation mimetype="video/mp4" codecs="avc3.64001e,mp4a.40.2" width="720" height="480" framerate="25" sar="32:27" audiosamplingrate="44100" startwithsap="1" bandwidth="900000">
</representation><representation mimetype="video/mp4" codecs="avc3.64001f,mp4a.40.2" width="960" height="720" framerate="25" sar="4:3" audiosamplingrate="44100" startwithsap="1" bandwidth="1500000">
</representation><representation mimetype="video/mp4" codecs="avc3.640028,mp4a.40.2" width="1920" height="1080" framerate="25" sar="1:1" audiosamplingrate="44100" startwithsap="1" bandwidth="3500000">
</representation><representation mimetype="video/mp4" codecs="avc3.640028,mp4a.40.2" width="2730" height="1440" framerate="25" sar="1:1" audiosamplingrate="44100" startwithsap="1" bandwidth="10000000">
</representation><representation mimetype="video/mp4" codecs="avc3.640028,mp4a.40.2" width="4096" height="2160" framerate="25" sar="1:1" audiosamplingrate="44100" startwithsap="1" bandwidth="20000000">
</representation></adaptationset></period></mpd> -
Download youtube video duration using youtube-dl PHP and ffmpeg
20 juillet 2016, par user3285828Is there any more efficient way to download youtube videos at a specific start and end time using youtube-dl and ffmpeg in PHP.
I currently have this, which does work, it first downloads the whole video to an mp3 file, and then crops that file to the range I set using ffmpeg, but when I only want 30 seconds or so of a 20 minute video, waiting for the full video to download doesn’t seem the best way to do it.
<?php
require __DIR__ . '/vendor/autoload.php';
use YoutubeDl\YoutubeDl;
$dl = new YoutubeDl([
'extract-audio' => true,
'audio-format' => 'mp3',
'audio-quality' => 0, // best
'output' => 'videoname.%(ext)s',
]);
$dl->setDownloadPath('C:\youtubevideos');
$video = $dl->download('https://www.youtube.com/watch?v=oDAw7vW7H0c');
$start = 60; // Start 60 seconds in to the video
$duration = 30; // Get 30 seconds after $start
$fullVideo = "C:\youtubevideos\videoname.mp3";
$shortVideo = "C:\youtubevideos\short\shortversion.mp3"; // create 30 seconds
exec("ffmpeg -ss $start -i $fullVideo -t $duration -c copy $shortVideo");
exec("DEL $fullVideo");I am using youtube dl PHP https://github.com/norkunas/youtube-dl-php
-
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)