Recherche avancée

Médias (91)

Autres articles (101)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

  • Gestion de la ferme

    2 mars 2010, par

    La ferme est gérée dans son ensemble par des "super admins".
    Certains réglages peuvent être fais afin de réguler les besoins des différents canaux.
    Dans un premier temps il utilise le plugin "Gestion de mutualisation"

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

Sur d’autres sites (7401)

  • Save .mp4 from YouTube output stream

    15 mai 2023, par walolinux

    I am currently running a Ffmpeg script in Raspbian which works fine. It captures video from an USB webcam and stream it to YouTube.

    


    ffmpeg -thread_queue_size 512 -f v4l2 -video_size 1920x1080 -i /dev/video0 -ar 44100 -ac 2 -acodec pcm_s16le -f s16le -ac 2 -i /dev/zero -acodec aac -ab 128k -strict experimental -aspect 16:9 -vcodec h264 -preset veryfast -crf 25 -pix_fmt yuv420p -g 60 -vb 820k -maxrate 820k -bufsize 820k -profile:v baseline -r 30 -f flv rtmp://a.rtmp.youtube.com/live2/XXX-XXX-XXX


    


    But I also want to save the file into an mp4 file.

    


    I have tried adding a .mp4 file to the end, but it generates a corrupt file and the stream does not emit at 1x speed, it get slower to 0.4x

    


    ffmpeg -thread_queue_size 512 -f v4l2 -video_size 1920x1080 -i /dev/video0 -ar 44100 -ac 2 -acodec pcm_s16le -f s16le -ac 2 -i /dev/zero -acodec aac -ab 128k -strict experimental -aspect 16:9 -vcodec h264 -preset veryfast -crf 25 -pix_fmt yuv420p -g 60 -vb 820k -maxrate 820k -bufsize 820k -profile:v baseline -r 30 -f flv rtmp://a.rtmp.youtube.com/live2/XXX-XXX-XXX output.mp4


    


    I have also tried without result :

    


    -vcodec copy -acodev copy output.mp4


    


    Any idea ? Thanks.

    


  • Powershell : Start-Job a script, cannot connect to youtube

    16 mai 2016, par Kostas Georgokitsos

    I am a bit new to PS, so please bear with me. I have written a script that starts an ffmpeg proccess, and in an endless loop waits for the process, and restarts it as ffmpeg is a bit shaky. ffmpeg is taking an rtsp stream from a camera and forwards it to youtube.

    # initialization
    $buffer_size = "30720k" # 60 sec * 512kbps
    $ffm = "C:\Users\kostas\Downloads\_software\ffmpeg-20160308-git-5061579-win32-static\bin\ffmpeg.exe"
    $params = "-f lavfi -i aevalsrc=0  -thread_queue_size 512 -i rtsp://$($usr):$($pw)@$($cam_ip):554/mpeg-4/ch1/main//av_stream/ -f flv -vcodec copy -acodec aac -bufsize $($buffer_size) rtmp://a.rtmp.youtube.com/live2/$($youtube_key)"
    $params_bak = $params.Replace('/live2/','/live2/?backup=1/')
    # start stream(s)
    while (1 -eq 1) {
     $err_log = "C:\Users\kostas\Documents\logs\Stream_Error-$(Get-Date -Format dd-MM-yyyy_HH-mm-ss).log"
     $out_log = "C:\Users\kostas\Documents\logs\Stream-$(Get-Date -Format dd-MM-yyyy_HH-mm-ss).log"
     $strm_app = Start-Process $ffm $params -PassThru -WindowStyle Minimized -RedirectStandardError $err_log -RedirectStandardOutput $out_log
     Wait-Process $strm_app.Id
    }

    When I call the script from the powershell prompt directly like .\youtube_cam_1.ps1 all is well, but the powershell prompt locks, obviously.

    When I start like Start-Job -FilePath C:\Users\kostas\Documents\youtube_cam_1.ps1 the job starts allright and I also see the ffmpeg process starting and running, but the youtube channel stays offline. Now to the funny bit : doing Stop-Job does not kill the ffmpeg process, and suddenly ffmpeg can connect to youtube.

    I want to start and run several camera streams (i.e. ffmpeg instances) in the end and need the looping script to somehow go into the background. Is Start-Job the wrong way to do it ?

    What is happening ?

  • FFMPEG 1 Audio + 1 Still image + multiple image frames at several times

    28 mars 2019, par Bhavik Rathod

    I want to create a video from combination of all these files which includes single audio file, still image in background and multiple image frames at several times, i have achieved this with video file on this help Now i have tried a failure attempt to create audio with same approach. But got an error which is obvious because still lack of knowledge in FFMPEG

    Following is my failure attempt with error Output with label 'v2' does not exist in any defined filter graph, or was already used elsewhere.

    ffmpeg -y -loop 1 -i bg.jpg -i img/%07d.png -i dia.mp3 -c:v libx264 -tune stillimage -pix_fmt yuv420p -c:a aac -b:a 128k -shortest -vf "[0:v]scale=1280:1280:force_original_aspect_ratio=increase,crop=1280:1280[v1],[v1][2]overlay=10:10:enable='between(t,0,6)'[v2]" -map "[v2]" out.mp4 2>&1