Recherche avancée

Médias (0)

Mot : - Tags -/xmlrpc

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

Autres articles (67)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-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

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

Sur d’autres sites (8099)

  • Powershell script for youtube-dl

    29 mai 2022, par Ricardo

    I'm trying to write a script to simplify input of variables to youtube-dl.

    


    Here is my ffmpeg command (replace items in brackets) :

    


    ./ffmpeg -ss ['starting time', ex: 05:49] -i $(./youtube-dl -f 22 --get-url ['video youtube url']) -t ['clip duration in seconds'] -c:v copy -c:a copy ['file result name'].mp4


    


    Here is my PowerShell command :

    


    cls

$url = Read-Host -Prompt "Enter the Youtube Video URL"

$start = Read-Host -Prompt "Enter the video start time (H:MM:SS)"

$end = Read-Host -Prompt "Enter the clip duration in seconds"

$name = Read-Host -Prompt "Enter the video name"

./ffmpeg -ss $start -i $(./youtube-dl -f 22 --get-url $url) -t $end -c:v copy -c:a copy $name.mp4



    


    And this is the result I receive from Powershell :

    


    Powershell screenshot

    


  • look for a mp4 file inside a directory and send it to different directory after converting to mp3 in php ?

    13 mai 2019, par flash

    I have a directory called incoming_folder in which there is a mp4 file.

    What I want to achieve through php code is to scan a incoming_folder directory, look for an mp4 file and send it to outgoing_folder after converting it into mp3.

    Technically outgoing_folder should have mp3 version of mp4 from incoming_folder

    Here is the pictorial representation of what I want :

    enter image description here

    Tried with the following code although its scanning the incoming_folder directory but no conversion is happening through ffmpeg.

    <?php
    $dir    = 'in_folder';  /* Place where mp4 file is present */
    $files1 = scandir($dir);
    print_r($files1);    /* It lists all the files in a directory including mp4 file*/

    $destination = 'out_folder';  /* Place where mp3 file need to be send after conversion from mp4 */

       <?php
       foreach($files1 as $f)
       {
         $parts = pathinfo($f);

         switch($parts['extension'])
         {
           case 'mp4' :
             system('ffmpeg -i '.$f.' -map 0:2 -ac 1 '.$destination.DS. $parts['filename'].'.mp3', $result);

             if ($result) {
               // Do something with result if you want
               // log for example
             }
             break;

           case 'mp3' :
             // copy($f, $destination. DS . $parts['filename']. '.' . $parts['extension']);
             copy($f, $destination.DS.$parts['filename'].'.mp3');
             break;  
         }
       }
       ?>

    Problem Statement :

    I am wondering what changes I should make in the php code so that conversion of file happens from incoming_folder and it should go to outgoing_folder.

  • Why is PowerShell Eating my Dash

    11 novembre 2017, par gvkv

    In a directory vidtemp with files : G*53.mp4 (a series of GoPro videos) using PowerShell 5.0 :

    PS C:\Users\gvkv\vidtemp $sources = Get-ChildItem -Filter *53*
    PS C:\Users\gvkv\vidtemp $vin = [String]::Join(" ", $($sources | %{"-i $($_.Name)"}))
    PS C:\Users\gvkv\vidtemp $vin
    -i GOPR0053.MP4 -i GP010053.MP4 -i GP020053.MP4 -i GP030053.MP4 -i GP040053.MP4 -i GP050053.MP4

    PS C:\Users\gvkv\Videos\hockeytemp\tt\trw> $concat = [String]::Join(" ", `
    >> $(0..$($sources.count-1) | `
    >> %{"[$($_):v:0] [$($_):a:0]"}) + "concat=n=$($sources.count):v=1:a=1 [v] [a]" `
    >> )
    PS C:\Users\gvkv\vidtemp $concat
    PS C:\Users\gvkv\vidtemp [0:v:0] [0:a:0] [1:v:0] [1:a:0] [2:v:0] [2:a:0] [3:v:0] [3:a:0] [4:v:0] [4:a:0] [5:v:0] [5:a:0] concat=n=6:v=1:a=1 [v] [a]
    PS C:\Users\gvkv\vidtemp ffmpeg $vin `
    >> -filter_complex $concat -map '[v]' -map '[a]' `
    >> -c:v -crf 21 -preset slow
    >> out.53.mp4
    ...
    Unrecognized option 'i GOPR0053.MP4 -i GP010053.MP4 -i GP020053.MP4 -i GP030053.MP4 -i GP040053.MP4 -i GP050053.MP4'.
    ndError splitting the argument list: Option not found

    Note there’s no "-" on the first i. What’s happening and what do I do about it ?