Recherche avancée

Médias (0)

Mot : - Tags -/publication

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (111)

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

  • Script d’installation automatique de MediaSPIP

    25 avril 2011, par

    Afin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
    Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
    La documentation de l’utilisation du script d’installation (...)

Sur d’autres sites (13659)

  • Stream to youtube from xvfb using ffmpeg and x11grab

    13 décembre 2017, par Ivan Sergeev

    I want to make stream from virtual display to youtube via ffmpeg.
    I’m using this code :

    #! /bin/bash

    BITRATE="2500k"                                    
    FPS="30"                                      

    YOUTUBE_URL="rtmp://a.rtmp.youtube.com/live2"  
    YOUTUBE_KEY="..."                                    

    SOURCE="./test.mp4"

    export DISPLAY=44
    sudo xvfb-run -a -n 44 -l -s "-screen 0, 1280x720x24" google-chrome -start-maximized https://upload.wikimedia.org/wikipedia/commons/2/2c/Rotating_earth_%28large%29.gif --no-sandbox >/dev/null &

    ffmpeg -threads 0 -y -v verbose -re \
    -f x11grab -video_size 1280x720 -i :44 \
    -vcodec libx264 -pix_fmt yuv420p -preset ultrafast -r $FPS -g $(($FPS * 2)) -b:v $BITRATE -bufsize 512k \
    -acodec libmp3lame -ar 44100 -threads 0 -crf 25 -b:a 712000 -bufsize 512k \
    -f flv "$YOUTUBE_URL/$YOUTUBE_KEY"

    And I don’t receive any errors, but youtube cannot start stream(

    In my log :

    Stream mapping:
    Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
    Press [q] to stop, [?] for help
    frame=    4 fps=0.0 q=17.0 size=      72kB time=00:00:00.50 bitrate=1186.9kbits/s
    frame=    6 fps=5.9 q=17.0 size=     106kB time=00:00:00.93 bitrate= 931.2kbits
    frame=    8 fps=5.3 q=17.0 size=     141kB time=00:00:01.36 bitrate= 846.4kbits/s
    frame=   11 fps=5.4 q=16.0 size=     188kB time=00:00:02.00 bitrate= 771.9kbits/s
    frame=   13 fps=5.2 q=15.0 size=     217kB time=00:00:02.43 bitrate= 730.5kbits/s
    frame=   15 fps=5.0 q=14.0 size=     241kB time=00:00:02.86 bitrate= 687.2kbits/s
    frame=   18 fps=5.1 q=14.0 size=     270kB time=00:00:03.53 bitrate= 625.2kbits/s
    frame=   20 fps=4.9 q=15.0 size=     294kB time=00:00:03.96 bitrate= 608.3kbits/s

    etc.

    However, if I do stream from file, but not x11grab stream is starting normal.

    What I’m doing wrong ?
    Any ideas, guys, please)

  • ffmpeg and Youtube upload - can't merge existing audio track with external one

    9 avril 2012, par Aleksy Goroszko

    I am realizing campaign, where idea is that users are creating TV ad. The process looks as following :

    • User watches ad (youtube video)
    • User selects video (mp4 file played in Flash Player)
    • User records his own voice using webcam/mic for the selected video
    • User's voice is uploaded to server
    • User's voice is merged with selected video (video+music) and saved as mp4 file
    • User's video is uploaded to youtube

    When realizing audio-video merging I found some suprises :

    When I was using command

    ffmpeg -i sourceVideoFile.mp4 -i sourceAudioFile.mp3 -acodec copy -vcodec copy outputFile.mp4 - video's music was replaced by user's voice.

    So I used option -newaudio :

    ffmpeg -i sourceVideoFile.mp4 -i sourceAudioFile.mp3 -acodec copy -vcodec copy outputFile.mp4 -newaudio - I can hear that output video has both music and user's voice. So - that's what I wanted to reach. But...

    The surprize is that if I upload this video to Youtube, after it's processing I can watch it and hear only music. User's voice disappears !

    So, how to keep both voice and music ?

    Any idea, gurus ? :)

  • How to stream 24/7 on youtube (audio + video) with FFMPEG

    29 septembre 2023, par Carter510

    I plan to create a 24/7 stream with a video and a musical background which is located in a /Playlist folder.
I would like the music playlist to be played randomly and if a piece of music is corrupted or cannot be played, the program moves on to the next one.

    


    The problem is that with my command every time the music changes the stream stops.
Any suggestions ?

    


    #!/bin/bash

VBR="4500k"
FPS="30"
QUAL="superfast"

YOUTUBE_URL="rtmp://a.rtmp.youtube.com/live2"
KEY="XXXX-XXXX-XXXX-XXXX"

VIDEO_SOURCE="fireplace.mkv"
AUDIO_FOLDER="/home/administrateur/Documents/Youtube/Playlist"

while true; do
    # Joue la vidéo en boucle
    ffmpeg -re -stream_loop -1 -i "$VIDEO_SOURCE" \
    -thread_queue_size 512 -i "$(find "$AUDIO_FOLDER" -type f -name "*.mp3" | shuf -n 1)" \
    -map 0:v:0 -map 1:a:0 \
    -map_metadata:g 1:g \
    -vcodec libx264 -pix_fmt yuv420p -preset $QUAL -r $FPS -g $(($FPS * 2)) -b:v $VBR \
    -acodec libmp3lame -ar 44100 -threads 6 -qscale:v 3 -b:a 320000 -bufsize 512k \
    -f flv "$YOUTUBE_URL/$KEY"
done


    


    I would like the fireplace.mkv video to play without interruption, for the music to be chosen randomly without ever stopping. And if one of the songs cannot be played, it is skipped.