Recherche avancée

Médias (91)

Autres articles (49)

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

  • L’utiliser, en parler, le critiquer

    10 avril 2011

    La première attitude à adopter est d’en parler, soit directement avec les personnes impliquées dans son développement, soit autour de vous pour convaincre de nouvelles personnes à l’utiliser.
    Plus la communauté sera nombreuse et plus les évolutions seront rapides ...
    Une liste de discussion est disponible pour tout échange entre utilisateurs.

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

Sur d’autres sites (4908)

  • ffmpeg downloading parts of Youtube videos but for some of them they have a black screen for a few seconds

    29 septembre 2021, par user14702793

    So im using ffmpeg to download some youtube videos with specific start and stop times. My code looks like os.system("ffmpeg -i $(youtube-dl --no-check-certificate -f 18 --get-url %s) -ss %s -to %s -c:v copy -c:a copy %s"% (l, y, z, w)) where the variables would all be the name of the file, the url, and the start and stop times. Some of the vidoes come out just fine, others have a black screen and only a portion of the video, and a very few amount have just audio files. My time is formated as x.y where x would be the seconds and y would be the milliseconds. Is this the issue so I need to transform it to 00:00:00.0 format ? Any help is appreciated

    


  • 403 Forbidden ffmpeg / youtube-dl

    28 février 2023, par TSR

    I am trying to download a blob video that is playing in my browser :

    


     ffmpeg -i 'https://example.com/playlist.m3u8?cred=abcd' -bsf:a aac_adtstoasc \              
    -vcodec copy -c copy -crf 50 file.mp4


    


    I get the error

    


    


    https @ 0x11fe2ade0] HTTP error 403 Forbidden [hls @ 0x11fe05610]
Failed to open an initialization section in playlist 0
Error when loading first segment
'https://example.com/s2q1.m4s' ;

    


    


    Indeed, when I open https://example.com/s2q1.m4s I get 403 forbidden in browser. However, if I add https://example.com/s2q1.m4s?cred=abcd , I get no error.

    


    I get the same behaviour with youtube-dl

    


    So how to make ffmpeg or youtube-dl append whatever query parameter in the input url in all subsequent requests ?

    


  • How to livestream a webcam to YouTube with FFmpeg ?

    6 juillet 2023, par pkok

    I want to send the livestream of my webcam to YouTube. I can follow YouTube's guide up to step 8. "Stream Connection" tells me there is "No data" and the button "Go Live" remains unclickable. A screenshot of this situation can be seen at

    



    image

    



    As encoding software, I was planning on using FFmpeg because it can run from the target platform, a Raspberry Pi with Raspbian. A USB webcam supported by video4linux2 is used.

    



    FFmpeg's wiki shows that streaming a file can be done with the following :

    



    ffmpeg -re -i input.mkv \&#xA;-c:v libx264 -preset veryfast -maxrate 3000k \&#xA;-bufsize 6000k -pix_fmt yuv420p -g 50 -c:a aac -b:a 160k -ac 2 \&#xA;-ar 44100 -f flv rtmp://live.twitch.tv/app/<stream key="key">&#xA;</stream>

    &#xA;&#xA;

    I modified this command in the following ways :&#xA;1. It takes the video stream from the webcam with -f v4l2 -i /dev/video0.&#xA;2. It does not broadcast any audio with -an.&#xA;3. It broadcasts to YouTube's RTMP server, rtmp://a.rtmp.youtube.com/live2/<stream key="key"></stream>

    &#xA;&#xA;

    The final version of the command is now :

    &#xA;&#xA;

    RTMP_URL="rtmp://a.rtmp.youtube.com/live2"&#xA;STREAM_KEY="secr-etse-cret-secr"&#xA;OUTPUT=$RTMP_URL/$STREAM_KEY&#xA;ffmpeg -re -f v4l2 -i /dev/video0 \&#xA;-c:v libx264 -preset veryfast -maxrate 3000k \&#xA;-bufsize 6000k -pix_fmt yuv420p -g 50 -an \&#xA;-f flv $OUTPUT&#xA;

    &#xA;&#xA;

    When I run this command, I would expect that "Stream connection" would change to something else than "No data" after a few seconds, but that does not happen.

    &#xA;&#xA;

    I have tried recording the stream to a local file with :

    &#xA;&#xA;

    ffmpeg -re -f v4l2 -i /dev/video0 \&#xA;-c:v libx264 -preset veryfast -maxrate 3000k \&#xA;-bufsize 6000k -pix_fmt yuv420p -g 50 -an \&#xA;-f flv test.flv&#xA;

    &#xA;&#xA;

    This worked fine. That demonstrates to me that the issue is with getting the video stream accepted by YouTube.

    &#xA;