Recherche avancée

Médias (17)

Mot : - Tags -/wired

Autres articles (39)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Librairies et binaires spécifiques au traitement vidéo et sonore

    31 janvier 2010, par

    Les logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
    Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
    Binaires complémentaires et facultatifs flvtool2 : (...)

  • 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 (4542)

  • Best way to have 2 youtube-dl input with ffmpeg and php

    8 janvier 2021, par Baraque Obahamas

    I'm trying to find the best way to combine a youtube-dl link in mp4 format with another youtube-dl link in m4a format to get an mp4 file through ffmpeg & php and to have an output in stdout in order to download the file directly.

    


    With only one file to convert to another format, I managed to do it easily, for example from m4a to mp3 :

    


    $cmd = "youtube-dl -f bestaudio[ext=m4a] --no-part --no-cache-dir --no-warnings --no-progress -o - https://www.youtube.com/watch?v=6Dh-RL__uN4 | ffmpeg -i - -f mp3 -ab 192k -";


    


    But with 2 inputs, it doesn't work :

    


    $cmd = "cat <(youtube-dl -f bestvideo[ext=mp4] --no-part --no-cache-dir --no-warnings --no-progress -o - https://www.youtube.com/watch?v=6Dh-RL__uN4) <(youtube-dl -f bestaudio[ext=m4a] --no-part --no-cache-dir --no-warnings --no-progress -o - https://www.youtube.com/watch?v=6Dh-RL__uN4) > ffmpeg -i - -movflags frag_keyframe+empty_moov+faststart -frag_duration 3600 -c:v copy -c:a copy -f mp4 -";


    


    In this case I get a "said into stderr : "sh : 1 : Syntax error : "(" unexpected")" error.

    


    I guess there must be a better way to do it.
I notice another problem is that on the ffmpeg command there is only one input "-i -". Now there are 2 inputs, there should be I guess "pipe:3" in addition, but so far my tests have not been conclusive.

    


    Full code :

    


    <?php
header('Content-Description: File Transfer');
header('Cache-Control: must-revalidate');
header('Pragma: public');
header("Content-Disposition: attachment; filename=\"ok.mp4\"");
header("Content-Type: application/octet-stream");

$cmd = "cat <(youtube-dl -f bestvideo[ext=mp4] --no-part --no-cache-dir --no-warnings --no-progress -o - https://www.youtube.com/watch?v=6Dh-RL__uN4) <(youtube-dl -f bestaudio[ext=m4a] --no-part --no-cache-dir --no-warnings --no-progress -o - https://www.youtube.com/watch?v=6Dh-RL__uN4) > ffmpeg -i - -movflags frag_keyframe+empty_moov+faststart -frag_duration 3600 -c:v copy -c:a copy -f mp4 -";
$cmd = passthru($cmd, $status);


    


  • DISABLE post processing(ffmpeg) in youtube-dl(2020.01.24)

    1er février 2020, par user3515562

    I want to disbale post process in youtube-dl(2020.01.24).
    My batch file contains

    set /p ytlink=Enter the link of Youtube Video:-    
    youtube-dl -x -o D:\%%(title)s.%%(ext)s %ytlink%  
    pause  

    The youtube-dl first downloads webm file or any other file than use post process ffmpeg.exe to convert it.
    I want to disable post process.Their must be no post process happening after youtube-dl download.

    - x is the option to only download audio file of the YouTube video in webm format .There is no post processing involved.But youtube-dl by default tries to convert the webm file to some other format, which is post processing.Post processing of audio file by default is one that i want to disable
    OS=Windows 10

  • Video size streaming to YouTube with FFMPEG on Raspberry Pi 4

    14 juillet 2023, par mysterons

    I'm using FFMPEG to stream video to YouTube with my Raspberry Pi 4. It used to work well, but just recently YouTube has started displaying the video smaller than it should be with a black surround as pictured.
preview in YouTube studio

    


    The command I am using is :

    


    ffmpeg -re -i $path -r 24 -g 48 -pix_fmt yuv420p -x264-params kiyint=48:min-keyint=48:scenecut=-1 -video_size 1280x720 -b:v 2000k -b:a 128k -ar 44100 -acodec aac -vcodec h264_v4l2m2m -preset superfast -bufsize 960k -crf 28 -threads 4 -f flv rtmp://a.rtmp.youtube.com/live2/$key

    


    I thought -video_size 1280x720 should set the resolution that FFMPEG is outputting, but it's still displaying as in the picture. The videos themselves are 720p.

    


    I can't work out how to get YouTube and FFMPEG to understand the resolution of the video from one another and have it fill the frame.