Recherche avancée

Médias (91)

Autres articles (33)

  • 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

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

Sur d’autres sites (5972)

  • 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

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

    20 juillet 2016, 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

  • ffmpeg : combine filter_complex trim, overlay and concat

    4 octobre 2015, par jb_alvarado

    I try to combine different video and audio clips with trimming and a logo on top.

    My syntax looks like this :

    ffmpeg -i "$introVid" -i "$introAud" -i "$mainVid" -i "$mainAud" -i "$outroVid" -i "$outroAud" -i "$logo" -i "$mainVid" -i "$mainAud" \
    -filter_complex \
    "[2:0]trim=0.4:60[trimV1]; \
    [3:0]atrim=0.4:60[trimA1]; \
    [trimV1][6:v]overlay=main_w-overlay_w-20:15,fade=in:s=2:d=0.5:alpha=1,fade=out:s=60:d=0.5:alpha=1[fade]; \
    [7:0]trim=60.2:72[trimV2]; [8:0]atrim=60.2:72[trimA2]; \
    [0:0] [1:0] [fade] [trimA1] [4:0] [5:0] [trimV2] [trimA2] concat=n=4:v=1:a=1[cv][a]; \
    [cv]scale=864:480:flags=gauss:interl=0[scal]" \
    -map "[scal]" -map "[a]" -pix_fmt yuv420p -c:v libx264 -preset fast -y "$out"

    It works mostly, but the problem is that I get a black video, with the same length then the main video, on the 3rd place. Interesting is also, when I watch the ffmpeg process, it hangs shortly on time 1:26min and then it jumps to 2:40min. Normally the complete test video have around 1:30min.

    The output what I get is at the moment :

    ([intro][trimmed main with logo][black video][outro][credits]) <- the black video part is to much.