
Recherche avancée
Autres articles (32)
-
Personnaliser les catégories
21 juin 2013, parFormulaire de création d’une catégorie
Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
On peut modifier ce formulaire dans la partie :
Administration > Configuration des masques de formulaire.
Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...) -
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 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 (...)
Sur d’autres sites (5711)
-
How to get success info from ffmpeg on C# ?
13 mars 2014, par user2989391I using ffmpeg on C#, my argument worked fine but i don't know get success handle..
Sorry for my bad English.
Thank you for help.ProcessStartInfo psi = new ProcessStartInfo("bin\\ffmpeg.exe");
Process proc = Process.Start(psi);
psi.UseShellExecute = false;
psi.CreateNoWindow = true;
psi.Arguments = " My argument ";
psi.RedirectStandardError = true;
psi.WindowStyle = ProcessWindowStyle.Hidden;
proc = Process.Start(psi);
StringBuilder sb = new StringBuilder();
StreamReader outputReader = proc.StandardOutput;
while (!(proc.StandardOutput.EndOfStream)) {
sb.AppendLine(proc.StandardOutput.ReadLine());
}
proc.WaitForExit();
proc.Close();
psi = null; -
FFMPEG Mpeg-DASH what attributes options and flags do we need to make H264 playable .mpd universally playable
22 mars 2021, par JintorI want to encode from any source to a universally playable .mpd with h264 codec.


Here my command


/usr/bin/ffmpeg -re -i 1.webm -c:v libx264 -preset ultrafast 
-tune zerolatency -c:a aac -ac 2 -strict -2 -crf 18 -profile:v baseline 
-maxrate 1000k -pix_fmt yuv420p -flags -global_header -streaming 1 
-use_template 1 -use_timeline 0 -seg_duration 2 -remove_at_exit 1 
-f dash index.mpd



but with dash.js the log says


dash.js videoCodec (video/mp4;codecs="avc1") is not supported.



**EXTRA NOTE : When using -c:v libx264 and output in HLS .m3u8 —> it's working in all browsers


HTML with dash.js


<code class="echappe-js"><script src="http://cdn.dashjs.org/latest/dash.all.min.js"></script>



<script>&#xA; (function(){&#xA; var url = "https://www.---domain--path-to.mpd";&#xA; var player = dashjs.MediaPlayer().create();&#xA; player.initialize(document.querySelector("#videoPlayer"), url, true);&#xA;player.updateSettings({&#xA; streaming: {&#xA; lowLatencyEnabled: true, &#xA; liveDelay: 4,&#xA; liveCatchup: {&#xA; minDrift: 0.02,&#xA; maxDrift: 0,&#xA; playbackRate: 0.5,&#xA; latencyThreshold: 60 &#xA; }&#xA; }&#xA; });&#xA; })(); &#xA; video = document.getElementById("videoPlayer");&#xA; video.addEventListener("loadedmetadata", function(){ video.muted = true; video.play(); }, false);&#xA; </script>



I do have "-c:v libx264" but why dash.js sees avc1... I know that h264 have avc1, but how to fix this. Is it fixing the ffmpeg command or changing the
player.initialize
in the javascript

-
Python - getting duration of a video with ffprobe and splitting the video into pieces
22 octobre 2018, par ZelelBI am trying to split a video with ffmpeg, implementing a python script.
I am getting this error :
Command '['ffprobe', '-i', 'path_to_my_video/MVI_0731.MP4', '-hide_banner']' returned non-zero exit status 1.
Here is the code I am using to split the video :
for video_file in video_files:
try:
# Call "ffprobe" to get duration of input video.
ffprobe_process = subprocess.run(args=["ffprobe", "-i", video_file, "-hide_banner"],
check=True,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
encoding="utf-8",
shell=True)
# "ffprobe" writes to stderr instead of stdout!
duration_string = extract_duration_from_ffprobe_output(ffprobe_process.stderr)
duration_in_seconds = duration_string_to_seconds(duration_string)
# Make start_stop_list
start_stop_list = read_start_stop_list(start_stop_lists[nbr_video])
nbr_video += 1
total_pieces = int(len(start_stop_list))This is the line causing the problem :
ffprobe_process = subprocess.run(args=["ffprobe", "-i", video_file, "-hide_banner"],
check=True,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
encoding="utf-8",
shell=True)When I change it to this line of code :
ffprobe_process = subprocess.run(args=['ffprobe', '-i', video_file, '-show_entries', 'format=duration', '-v', 'quiet', '-of', 'csv=%s' % ("p=0")])
it works, I mean, the script goes after that line, but then throws the following error at the next line :
470.240000
expected string or bytes-like object470.240000 is the right duration of my video. So the new line that I changed it with works better, but still not working with my code somehow.
Anyone has an idea how I can solve this ?