Recherche avancée

Médias (0)

Mot : - Tags -/publication

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (104)

  • Soumettre améliorations et plugins supplémentaires

    10 avril 2011

    Si vous avez développé une nouvelle extension permettant d’ajouter une ou plusieurs fonctionnalités utiles à MediaSPIP, faites le nous savoir et son intégration dans la distribution officielle sera envisagée.
    Vous pouvez utiliser la liste de discussion de développement afin de le faire savoir ou demander de l’aide quant à la réalisation de ce plugin. MediaSPIP étant basé sur SPIP, il est également possible d’utiliser le liste de discussion SPIP-zone de SPIP pour (...)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

Sur d’autres sites (11837)

  • Python - getting duration of a video with ffprobe and splitting the video into pieces

    22 octobre 2018, par ZelelB

    I 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 object

    470.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 ?

  • FFMPEG Mpeg-DASH what attributes options and flags do we need to make H264 playable .mpd universally playable

    22 mars 2021, par Jintor

    I 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">&lt;script src=&quot;http://cdn.dashjs.org/latest/dash.all.min.js&quot;&gt;&lt;/script&gt;&#xA;    

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

    &#xA;

    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

    &#xA;

  • How to get success info from ffmpeg on C# ?

    13 mars 2014, par user2989391

    I 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;