Recherche avancée

Médias (1)

Mot : - Tags -/sintel

Autres articles (52)

  • (Dés)Activation de fonctionnalités (plugins)

    18 février 2011, par

    Pour gérer l’ajout et la suppression de fonctionnalités supplémentaires (ou plugins), MediaSPIP utilise à partir de la version 0.2 SVP.
    SVP permet l’activation facile de plugins depuis l’espace de configuration de MediaSPIP.
    Pour y accéder, il suffit de se rendre dans l’espace de configuration puis de se rendre sur la page "Gestion des plugins".
    MediaSPIP est fourni par défaut avec l’ensemble des plugins dits "compatibles", ils ont été testés et intégrés afin de fonctionner parfaitement avec chaque (...)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

  • Le plugin : Podcasts.

    14 juillet 2010, par

    Le problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
    Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
    Types de fichiers supportés dans les flux
    Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...)

Sur d’autres sites (8987)

  • Download youtube video duration using youtube-dl PHP and ffmpeg

    21 juin 2017, par user3285828

    Is there any more efficient way to download youtube videos at a specific start and end time using youtube-dl and ffmpeg in PHP.

    I currently have this, which does work, it first downloads the whole video to an mp3 file, and then crops that file to the range I set using ffmpeg, but when I only want 30 seconds or so of a 20 minute video, waiting for the full video to download doesn’t seem the best way to do it.

    <?php
    require __DIR__ . '/vendor/autoload.php';

    use YoutubeDl\YoutubeDl;

    $dl = new YoutubeDl([
       'extract-audio' => true,
       'audio-format' => 'mp3',
       'audio-quality' => 0, // best
       'output' => 'videoname.%(ext)s',
    ]);
    $dl->setDownloadPath('C:\youtubevideos');
    $video = $dl->download('https://www.youtube.com/watch?v=oDAw7vW7H0c');

    $start = 60; // Start 60 seconds in to the video
    $duration = 30; // Get 30 seconds after $start
    $fullVideo = "C:\youtubevideos\videoname.mp3";
    $shortVideo = "C:\youtubevideos\short\shortversion.mp3"; // create 30 seconds
    exec("ffmpeg -ss $start -i $fullVideo -t $duration -c copy $shortVideo");
    exec("DEL $fullVideo");

    I am using youtube dl PHP https://github.com/norkunas/youtube-dl-php

  • How to download m3u8 playlist with URL redirection ? (blob URL,HydraX, JW Player version 8.4.2)

    17 novembre 2019, par wltprgm

    The video in https://hydrax.net/ is using HLS, .m3u8 file, direct link is https://hydrax.net/demo/hydrax.html (from the iframe src).

    However, youtube-dl couldn’t read from the .m3u8 file I downloaded from blob in chrome.

    And using ffmpeg method (which usually works) to download from the .m3u8 file failed because the first segment of the file is a URL redirect

    Error when loading first segment 'https://i.donald-gaines.xyz/redirect/7qC173pnWiDwe2TumUTYnzX4WdbPn8XJDzhqDzXPo39PWtX4EaAxLq7FLUW17aI/WhsiWh1RO6oSXzr6QqkTOgljgRrXBgpJtQf6gMBAC5Jq95JkuQlWKpfpgPoo/BSGGloj6MOe7cO4K9HoDj76PRzjSVoiwcJ1Xl34kc3Z5/Bl2WS3KO8WsicRVG8l1EBoi3RN2DnqZx6o13U56YnDBv'
    2b0bdf87-656f-4880-8357-f7fd6329b2f8.m3u8: Invalid data found when processing input

    Somebody asked the same question in reddit some days ago : link

  • FFmpeg does not download hls stream

    26 juillet 2020, par mrlucasrib

    I am trying to download a video from an m3u8 file. I used the chrome dev tools network analyzer and copied the address from the m3u8 file.

    


    #EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:6
#EXT-X-MEDIA-SEQUENCE:0
#EXT-X-PLAYLIST-TYPE:VOD
#EXT-X-KEY:METHOD=AES-128,URI="key://pi1CcgormCfrBeHFonx1SjYyNREActOy9x5fdSmTcQ74q9gDltGOMVTb2KT7jebRYJNU9skhE1wPp3VBgsIQhutzL9nlU7CwifAHVRX63E8abzo+8daPodXlUvN8qlXDKE8I2w37kc+UqyTG86U3Kg==",IV=0x157c77a2bc4ce357dfb893e2c01f8561
#EXTINF:6.0000,
https://contentplayer.website.com/video/4vqnGjj0L3/hls/360/segment-0.ts
....
#EXTINF:1.0667,
https://contentplayer.website.com/video/4vqnGjj0L3/hls/360/segment-219.ts
#EXT-X-ENDLIST 


    


    So I put in ffmpeg and got a 403 forbidden error

    


    [https @ 0x55c2fae84d80] HTTP error 403 Forbidden
[crypto @ 0x55c2fb11ebc0] Unable to open resource: https://contentplayer.website.com/video/4vqnGjj0L3/hls/540/segment-1.ts
[hls @ 0x55c2fae807c0] Failed to open segment 1 of playlist 0
...


    


    I thought it could be because of some missing http header, so I copied the cURL command from devtools. (I copied from the request of a segment, in which I had the cloudfront authorization key)

    


    I took all the headers from cURL and added them to ffmpeg.

    


    ffmpeg -allowed_extensions ALL -headers 'User-Agent: ...'
-headers 'Accept: */*' 
-headers 'Accept-Language: ...' 
-headers 'Referer: https://player....com/' 
-headers 'Origin: https://player....com' 
-headers 'Connection: keep-alive'
-headers 'Cookie: CloudFront-Policy=..; CloudFront-Signature=...; CloudFront-Key-Pair-Id=..; hotid=..; hmVlcIntegration=..' -headers 'Pragma: no-cache' -headers 'Cache-Control: no-cache' -headers 'TE: Trailers' 
-protocol_whitelist file,crypto,https,tcp,tls -i esse.m3u8  -map 0 -c copy output.mkv  -i link.m3u8  -map 0 -c copy output.mkv


    


    However, I still receive the 403 forbidden error. When I execute the cURL command it downloads the contents of the fragment. My hypothesis was that because it is about HTTP2 the headers were not sent after the first connection, but all the important headers were added.
other ways of doing this process are also welcome