Recherche avancée

Médias (33)

Mot : - Tags -/creative commons

Autres articles (75)

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

  • 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

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

Sur d’autres sites (12018)

  • Cannot stream properly on YouTube using ffmpeg with Python

    1er mars 2018, par Francesco

    I have a few problems related to sending ffmpeg stream to YouTube.
    1. If I comment out "time.sleep(sleep_time)" the stream goes 3x fast(basing on what ?) ;
    2. If I uncomment the ’-r’ args the stream lags ;
    3. If I don’t add the background music the stream doesn’t start on YouTube, the problem persists if I uncomment the ’-an’ args.
    4. When the background music ends the stream stops working on YouTube.

    frame = cv2.imread('STATIC_IMAGE.jpg')
    fps = 25
    sleepTime = 1 / fps

    height, width, channels = frame.shape

    command = [
       'ffmpeg',

       #OpenCV image.
       #'-re',
       #'-threads', '0',
       '-f', 'rawvideo', #image2pipe
       '-vcodec','rawvideo',
       '-s', str(width) + 'x' + str(height),
       '-pixel_format', 'bgr24',
       #'-r', str(fps),
       #'-an',
       '-i', '-',

       #Background music
       #'-stream_loop', '-1',
       #'-re',
       #'-r', str(fps),
       '-i', 'music.mp3',

       #Output (actual stream)
       #'-r', str(fps),
       #'-crf', '25',
       #'-g', '39',
       #'-g', '2',
       #'-ac', '2',
       #'-c:a', 'aac',
       #'-b:a', '128k',
       #'-ar', '44100',
       #'-an',
       #'-b:v', '300k',
       #'-c:v', 'libx264',
       #'-bufsize', '600k',
       #'-maxrate', '300k',
       #'-qmin', '32',
       #'-qmax', '64',
       #'-vcodec', 'libx264',
       #'-pixel_format', 'yuv420p',
       '-vcodec', 'h264',
       '-pixel_format', 'h264',
       '-f', 'flv',
       'rtmp://a.rtmp.youtube.com/live2/STREAM_KEY'
    ]

    import subprocess as sp
    proc = sp.Popen(command, stdin=sp.PIPE, shell=False)

    while True:
       proc.stdin.write(frame.tostring())

       time.sleep(sleepTime)

    Any idea of why these problems happen ?
    May the "while True" be the problem ?

  • FFMPEG : 2x2 Grid Cameras stream to Youtube

    8 avril 2021, par Martin

    So this is my "working" ffmpeg command :

    


    ffmpeg -rtsp_transport tcp -i "input1" -rtsp_transport tcp -i "input2" -rtsp_transport tcp -i "input3" -rtsp_transport tcp -i "input4" -filter_complex "[0:v] setpts=PTS-STARTPTS, scale=480x270 [a0];[1:v] setpts=PTS-STARTPTS, scale=480x270 [a1];[2:v] setpts=PTS-STARTPTS, scale=480x270 [a2];[3:v] setpts=PTS-STARTPTS, scale=480x270 [a3];[a0][a1][a2][a3]xstack=inputs=4:layout=0_0|0_h0|w0_0|w0_h0[out]" -map "[out]" -map 3:a -video_size 1920x1080 -tune zerolatency -profile:v baseline -level 3.0 -b:v 5000k -vcodec libx264 -preset medium -q:v 3 -crf 15 -r 15 -c:a aac -ac 2 -f flv rtmp://a.rtmp.youtube.com/live2/...

    


    The problem that i have is that the Youtube recognize this stream as only "360p" and i think that the quality of each stream is way worst than these cameras really are.

    


    Is there something that i'm doing wrong or it should "work" like that because of scalling it to 2x2 grid ?

    


  • ffmpeg fluent live streaming to youtube not working

    18 octobre 2020, par Ricky

    I am learning how to using ffmpeg fluent and I am having trouble getting it to stream live to Youtube

    



    here is the command I have tried :

    



    let streamYT = (YTrtmpKey) => {
  var proc3 = new ffmpeg({ source: inputURL, timeout: 0 })
    .addOption('-vcodec', 'libx264')
    .addOption('-acodec', 'aac')
    .addOption('-crf', 26)
    .addOption('-aspect', '640:360')
    .withSize('640x360')
    .on('start', function(commandLine) {
    console.log('Query : ' + commandLine);
    })
    .on('error', function(err) {
    console.log('Error: ' + err.message);
    })
    .output('rtmp://a.rtmp.youtube.com/live2/' + YTrtmpKey, function(stdout, stderr) {
    console.log('Convert complete' +stdout);
  });
  }


    



    this doesn't throw any errors but also doesn't do anything