Recherche avancée

Médias (1)

Mot : - Tags -/book

Autres articles (47)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • 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

Sur d’autres sites (5451)

  • Download MP4 Video In Specific Folder In server With CURL

    14 novembre 2017, par Alish

    I’m Trying To Download .MP4 Extension File With PHP Code In Specific Folder My Code Working Fine For .MP4 Extension Only But I Can’t Download This URL MP4 Video With This Code

    https://r3---sn-vgqsrnel.c.doc-0-0-sj.sj.googleusercontent.com/videoplayback?itag=18&key=yt6&source=youtube&mime=video%2Fmp4&sparams=dur%2Cei%2Cid%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Cratebypass%2Csource%2Cexpire&mv=m&ipbits=0&ratebypass=yes&ms=au&mn=sn-vgqsrnel&pl=28&mm=31&dur=296.147&id=o-AGGQKzVE4Kx-vQgQkb_7v_-2v8RJEP8bYukfJukhn8PM&expire=1510672628&lmt=1510636913694890&ip=107.178.194.23&mt=1510650948&ei=lLQKWoz2NcruDrDrikg&signature=B548DE94A6C594DE473F900D22D3A2685FBEBDED.126ED86D280FC8A4B1FF33B62A6F02EFC0E43576

    I’m Trying This Code

       function download ($url, $location){
       $ch = curl_init();
       curl_setopt($ch, CURLOPT_URL, $url);
       curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
       curl_setopt($ch, CURLOPT_SSLVERSION,3);
       curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
       $data = curl_exec ($ch);
       $error = curl_error($ch);
       curl_close ($ch);


       $file = fopen($location, "wb");
       fwrite($file, $data);
       fclose($file);
       return 'done';
       }
       ?>
       
       
       
       <form method="post" action="&lt;?php echo $_SERVER['PHP_SELF'];?>">
       Video URL (Only With .MP4 Extension):
       <input type="text" placeholder="Video URL Here" required="required" /><br />
       Video ID Number:
       <input type="text" placeholder="Video ID Nmber eg:1,2,3" required="required" /><br />
       <input type="submit" />
       </form>
       
       
       &lt;?php
       @$url = $_POST['url'];
       @$ID = $_POST['id'];
       $SCRIPT_DIR = dirname(__FILE__);
       $TEMP_DIR = $SCRIPT_DIR . '/videos/';
       $location = $TEMP_DIR . $ID . '.mp4';
       if(isset($_POST['url'])){

           echo download($url, $location);

       }
  • Making youtube-dl download mp3's faster

    12 novembre 2017, par sciencelord

    It takes a long time to download mp3 songs using youtube-dl, and it takes even longer when downloading a bunch of mp3 songs. Is there a way to make it significantly faster ? I don’t mind reducing quality. I’ve been using the command below.

    youtube-dl --extract-audio --audio-format "mp3" --output "%(title)s.%(ext)s" "https://www.youtube.com/watch?v={videoid}

    I also took a look at this post :
    ffmpeg command for faster encoding at a decent bitrate with smaller file size

    But I wasn’t sure how to change the above command using the ffmpeg modifications.

    Thanks !

  • How to download .m3u8 in once time

    11 octobre 2024, par Nabi K.A.Z.

    I have a .m3u8 file on remote host, with contain fixed numbers of chunk .ts file name, and not stream :

    &#xA;&#xA;

    #EXTM3U&#xA;#EXT-X-VERSION:3&#xA;#EXT-X-TARGETDURATION:11&#xA;#EXT-X-MEDIA-SEQUENCE:0&#xA;#EXTINF:9.736,&#xA;media_0.ts&#xA;#EXTINF:9.96,&#xA;media_1.ts&#xA;#EXTINF:10.0,&#xA;media_2.ts&#xA;#EXTINF:10.0,&#xA;media_3.ts&#xA;#EXTINF:10.0,&#xA;media_4.ts&#xA;#EXTINF:10.2,&#xA;media_5.ts&#xA;#EXTINF:10.0,&#xA;

    &#xA;&#xA;

    When I use this command :

    &#xA;&#xA;

    # ffmpeg -i "http://example.com/chunklist.m3u8" file.mp4&#xA;&#xA;frame=  582 fps=9.4 q=28.0 size=    1536kB time=00:00:23.21 bitrate= 542.1kbits/s dup=2 drop=4 speed=0.375x&#xA;

    &#xA;&#xA;

    It works. But It get frame by frame video and very long time needed. (It takes time almost to playback the video.)

    &#xA;&#xA;

    But since the path of all the .ts files are known. (http://example.com/media_0.ts, http://example.com/media_1.ts, ...) There must be a way to get and merge them all at the same time.

    &#xA;&#xA;

    But How in ffmpeg directly ?!

    &#xA;&#xA;

    EDIT (try a solution) :

    &#xA;&#xA;

    For one solution, I know how can concatenation files with ffmpeg.

    &#xA;&#xA;

    ffmpeg -i "concat:0.ts|1.ts|2.ts|3.ts|4.ts|5.ts" -c copy output.mp4&#xA;

    &#xA;&#xA;

    This ffmpeg command was great, and works in less 1 sec time !

    &#xA;&#xA;

    So try to download all .ts files with CURL with this command :

    &#xA;&#xA;

    curl \&#xA;http://example.com/media_0.ts -o 0.ts \&#xA;http://example.com/media_1.ts -o 1.ts \&#xA;http://example.com/media_2.ts -o 2.ts \&#xA;http://example.com/media_3.ts -o 3.ts \&#xA;http://example.com/media_4.ts -o 4.ts \&#xA;http://example.com/media_5.ts -o 5.ts&#xA;

    &#xA;&#xA;

    But you can see result :

    &#xA;&#xA;

      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current&#xA;                                 Dload  Upload   Total   Spent    Left  Speed&#xA;100  687k  100  687k    0     0  75108      0  0:00:09  0:00:09 --:--:-- 74111&#xA;100  652k  100  652k    0     0  59404      0  0:00:11  0:00:11 --:--:-- 53400&#xA;100  673k  100  673k    0     0  48675      0  0:00:14  0:00:14 --:--:-- 55781&#xA;100  657k  100  657k    0     0  63573      0  0:00:10  0:00:10 --:--:-- 62494&#xA;100  671k  100  671k    0     0  39019      0  0:00:17  0:00:17 --:--:-- 40863&#xA;100  692k  100  692k    0     0  63480      0  0:00:11  0:00:11 --:--:-- 80049&#xA;

    &#xA;&#xA;

    See, total download time was 72 sec, while the total duration of all parts is 59 sec ! that this time is very long !

    &#xA;&#xA;

    So sorry, download all parts and then concat that, was not good solution.

    &#xA;&#xA;

    EDIT 2

    &#xA;&#xA;

    I try for another .m3u8 file on the another server with difference URL :

    &#xA;&#xA;

    Download and concat together :

    &#xA;&#xA;

    ffmpeg -i "concat:\&#xA;http://184.72.239.149/vod/smil:BigBuckBunny.smil/media_w442897525_b560000_0.ts|\&#xA;http://184.72.239.149/vod/smil:BigBuckBunny.smil/media_w442897525_b560000_1.ts|\&#xA;http://184.72.239.149/vod/smil:BigBuckBunny.smil/media_w442897525_b560000_2.ts|\&#xA;http://184.72.239.149/vod/smil:BigBuckBunny.smil/media_w442897525_b560000_3.ts|\&#xA;http://184.72.239.149/vod/smil:BigBuckBunny.smil/media_w442897525_b560000_4.ts|\&#xA;http://184.72.239.149/vod/smil:BigBuckBunny.smil/media_w442897525_b560000_5.ts\&#xA;" -c copy -y output.ts&#xA;

    &#xA;&#xA;

    Another command with input.txt URLs file.

    &#xA;&#xA;

    ffmpeg -f "concat" -i "input.txt" -c copy -y output.ts&#xA;

    &#xA;&#xA;

    input.txt file :

    &#xA;&#xA;

    file &#x27;http://184.72.239.149/vod/smil:BigBuckBunny.smil/media_w442897525_b560000_0.ts&#x27;&#xA;file &#x27;http://184.72.239.149/vod/smil:BigBuckBunny.smil/media_w442897525_b560000_1.ts&#x27;&#xA;file &#x27;http://184.72.239.149/vod/smil:BigBuckBunny.smil/media_w442897525_b560000_2.ts&#x27;&#xA;file &#x27;http://184.72.239.149/vod/smil:BigBuckBunny.smil/media_w442897525_b560000_3.ts&#x27;&#xA;file &#x27;http://184.72.239.149/vod/smil:BigBuckBunny.smil/media_w442897525_b560000_4.ts&#x27;&#xA;file &#x27;http://184.72.239.149/vod/smil:BigBuckBunny.smil/media_w442897525_b560000_5.ts&#x27;&#xA;

    &#xA;&#xA;

    Or this command some time if needed :

    &#xA;&#xA;

    ffmpeg -f "concat" -safe "0" -protocol_whitelist "file,http,https,tcp,tls" -i "input.txt" -c copy -y output.ts&#xA;

    &#xA;&#xA;

    Finally, for that download speed was good, MAYBE my server target has limited bandwidth. :-(

    &#xA;