
Recherche avancée
Autres articles (56)
-
Les tâches Cron régulières de la ferme
1er décembre 2010, parLa gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
Le super Cron (gestion_mutu_super_cron)
Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...) -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
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 (...)
Sur d’autres sites (6159)
-
MPEG Dash output generated by FFMPEG not working
8 janvier 2019, par Anto JoyI created a dash output sample_video.mpd file using ffmpeg, but when I tried to play it using dash js the video was just loading and nothing else.
Below is the generated mpd file<?xml version="1.0" encoding="utf-8"?>
<mpd xmlns="urn:mpeg:dash:schema:mpd:2011" profiles="urn:mpeg:dash:profile:isoff-live:2011" type="static" mediapresentationduration="PT1M2.3S" minbuffertime="PT20.0S">
<programinformation>
</programinformation>
<period start="PT0.0S">
<adaptationset contenttype="video" segmentalignment="true" bitstreamswitching="true" lang="und">
<representation mimetype="video/mp4" codecs="avc1.640015" bandwidth="255520" width="426" height="240" framerate="24/1">
<segmenttemplate timescale="12288" initialization="init-stream$RepresentationID$.m4s" media="chunk-stream$RepresentationID$-$Number%05d$.m4s" startnumber="3">
<segmenttimeline>
<s t="198656" d="69120"></s>
<s d="75264"></s>
<s d="174592"></s>
<s d="122880"></s>
<s d="125440"></s>
</segmenttimeline>
</segmenttemplate>
</representation>
<representation mimetype="video/mp4" codecs="avc1.64001e" bandwidth="726596" width="854" height="480" framerate="24/1">
<segmenttemplate timescale="12288" initialization="init-stream$RepresentationID$.m4s" media="chunk-stream$RepresentationID$-$Number%05d$.m4s" startnumber="3">
<segmenttimeline>
<s t="198656" d="69120"></s>
<s d="75264"></s>
<s d="174592"></s>
<s d="122880"></s>
<s d="125440"></s>
</segmenttimeline>
</segmenttemplate>
</representation>
<representation mimetype="video/mp4" codecs="avc1.64001f" bandwidth="1433314" width="1280" height="720" framerate="24/1">
<segmenttemplate timescale="12288" initialization="init-stream$RepresentationID$.m4s" media="chunk-stream$RepresentationID$-$Number%05d$.m4s" startnumber="3">
<segmenttimeline>
<s t="198656" d="69120"></s>
<s d="75264"></s>
<s d="174592"></s>
<s d="122880"></s>
<s d="125440"></s>
</segmenttimeline>
</segmenttemplate>
</representation>
</adaptationset>
<adaptationset contenttype="audio" segmentalignment="true" bitstreamswitching="true" lang="und">
<representation mimetype="audio/mp4" codecs="mp4a.40.2" bandwidth="341000" audiosamplingrate="48000">
<audiochannelconfiguration schemeiduri="urn:mpeg:dash:23003:3:audio_channel_configuration:2011" value="6"></audiochannelconfiguration>
<segmenttemplate timescale="48000" initialization="init-stream$RepresentationID$.m4s" media="chunk-stream$RepresentationID$-$Number%05d$.m4s" startnumber="3">
<segmenttimeline>
<s t="772096" d="270336"></s>
<s d="293888"></s>
<s d="681984"></s>
<s d="480256"></s>
<s d="492544"></s>
</segmenttimeline>
</segmenttemplate>
</representation>
<representation mimetype="audio/mp4" codecs="mp4a.40.2" bandwidth="341000" audiosamplingrate="48000">
<audiochannelconfiguration schemeiduri="urn:mpeg:dash:23003:3:audio_channel_configuration:2011" value="6"></audiochannelconfiguration>
<segmenttemplate timescale="48000" initialization="init-stream$RepresentationID$.m4s" media="chunk-stream$RepresentationID$-$Number%05d$.m4s" startnumber="3">
<segmenttimeline>
<s t="772096" d="270336"></s>
<s d="293888"></s>
<s d="681984"></s>
<s d="480256"></s>
<s d="492544"></s>
</segmenttimeline>
</segmenttemplate>
</representation>
<representation mimetype="audio/mp4" codecs="mp4a.40.2" bandwidth="341000" audiosamplingrate="48000">
<audiochannelconfiguration schemeiduri="urn:mpeg:dash:23003:3:audio_channel_configuration:2011" value="6"></audiochannelconfiguration>
<segmenttemplate timescale="48000" initialization="init-stream$RepresentationID$.m4s" media="chunk-stream$RepresentationID$-$Number%05d$.m4s" startnumber="3">
<segmenttimeline>
<s t="772096" d="270336"></s>
<s d="293888"></s>
<s d="681984"></s>
<s d="480256"></s>
<s d="492544"></s>
</segmenttimeline>
</segmenttemplate>
</representation>
</adaptationset>
</period>
</mpd>The following is the ffmpeg command that i used to generate multi bitrate video
ffmpeg -y -i sample_video.mp4 ^
-c:v libx264 -x264opts "keyint=24:min-keyint=24:no-scenecut" -r 24 ^
-c:a aac -b:a 128k ^
-bf 1 -b_strategy 0 -sc_threshold 0 -pix_fmt yuv420p ^
-map 0:v:0 -map 0:a:0 -map 0:v:0 -map 0:a:0 -map 0:v:0 -map 0:a:0 ^
-b:v:0 250k -filter:v:0 "scale=-2:240" -profile:v:0 baseline ^
-b:v:1 750k -filter:v:1 "scale=-2:480" -profile:v:1 main ^
-b:v:2 1500k -filter:v:2 "scale=-2:720" -profile:v:2 high ^
sample_dash.mp4and to generate the mpd file
ffmpeg -y -re -i sample_dash.mp4 ^
-map 0 ^
-use_timeline 1 -use_template 1 -window_size 5 -adaptation_sets
"id=0,streams=v id=1,streams=a" ^
-f dash sample_video.mpdAlso I saw in the chrome network tab that only init-stream4.m4s and init-stream5.m4s was called.
-
FFmpeg dash manifest '-window_size'
14 novembre 2018, par edwinbradfordIn the FFmpeg DASH documentation I don’t understand the purpose of
-window_size
which is explained as :Set the maximum number of segments kept in the manifest.
If my video is 30 seconds long, the GOP size is 4 seconds and the segment length is 4 seconds, what is the meaning and purpose of a parameter to control the maximum number of segments kept in the manifest, when does this parameter need to be used and how do you determine valid values ?
I’m guessing that the stream is being loaded into memory and the number of segments in the manifest controls how much is kept in memory at one time but it’s just a wild guess and I can’t find any further explanation.
I am not live streaming in case it’s relevant.
-
ffmpeg dash Failed to open fragment of playlist 0
18 mars 2019, par user3787734As I m using an external .mpd file path, as playlist get a refresh every 10 seconds but
FFmpeg
can’t able to manage it out.after playing the remote .mpd file for 15 seconds it’s saying.
[dash @ 000001bf4149bfc0] No longer receiving stream_index 0bitrate=1057.4kbits/s speed=0.801x
[dash @ 000001bf4149bfc0] No longer receiving stream_index 1
[https @ 000001bf41dcb280] HTTP error 410 Gonee=00:00:18.06 bitrate=1937.1kbits/s dup=0 drop=2 speed=0.976x
[dash @ 000001bf4149bfc0] Failed to open fragment of playlist 0ffmpeg -re -i "http://remotehost/test.mpd" -copy -f flv
"rtmp ://server"