Recherche avancée

Médias (17)

Mot : - Tags -/wired

Autres articles (10)

  • Other interesting software

    13 avril 2011, par

    We don’t claim to be the only ones doing what we do ... and especially not to assert claims to be the best either ... What we do, we just try to do it well and getting better ...
    The following list represents softwares that tend to be more or less as MediaSPIP or that MediaSPIP tries more or less to do the same, whatever ...
    We don’t know them, we didn’t try them, but you can take a peek.
    Videopress
    Website : http://videopress.com/
    License : GNU/GPL v2
    Source code : (...)

  • MediaSPIP Init et Diogène : types de publications de MediaSPIP

    11 novembre 2010, par

    À l’installation d’un site MediaSPIP, le plugin MediaSPIP Init réalise certaines opérations dont la principale consiste à créer quatre rubriques principales dans le site et de créer cinq templates de formulaire pour Diogène.
    Ces quatre rubriques principales (aussi appelées secteurs) sont : Medias ; Sites ; Editos ; Actualités ;
    Pour chacune de ces rubriques est créé un template de formulaire spécifique éponyme. Pour la rubrique "Medias" un second template "catégorie" est créé permettant d’ajouter (...)

  • Le plugin : Podcasts.

    14 juillet 2010, par

    Le problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
    Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
    Types de fichiers supportés dans les flux
    Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...)

Sur d’autres sites (3966)

  • Mixing audio stream into video stream using ffmpeg while retaining original audio from the video stream as background [duplicate]

    18 mars 2020, par Core7s

    I have a live video stream and a live audio stream. The audio stream has to get mixed into the video stream and the resulting stream is pushed to YouTube. I have this working ffmpeg -i videostream -i audiostream -map 0:1 -map 1:0 -shortest -c:a copy -c:v copy -f flv streamout-youtube;
    However I am losing the original audio in the videostream. I want to have the original audio playing at maybe 20% of the original volume.
    I looked around a lot and found maybe I can modify the above command to use -filter_complex to get ffmpeg -i videostream -i audiostream -filter_complex "volume=0.2" -map 0:1 -map 1:0 -shortest -c:a copy -c:v copy -f flv streamout-youtube;

    However, when I add the -filter_complex option, the stream goes dead meaning it doesn’t get pushed to youtube anymore. I have verified the stream keys are correct. This seems to be a rather simple thing but I can’t put my finger on what’s wrong.

    I am using rtmp module of nginx to receive, mix and push out streams.

  • what container and stream buffersize for recording a incoming h264 stream using ffmpeg ?

    26 mai 2015, par Nyaruko

    I am saving a incoming h264 stream to a file so that it could be played by vlc player.

    1) what kind of file/container should I use ? I am currently using mpeg in the following way :

      fmt = ffmpeg::av_guess_format(NULL, "test.mpeg", NULL);
      oc  = ffmpeg::avformat_alloc_context();
      oc->oformat = fmt;
      avio_open2(&oc->pb, "test.mpeg", AVIO_FLAG_WRITE, NULL, NULL);

    where fmt is a AVOutputFormat* and oc is a AVFormatContext*
    I have tried using avi, but it doesn’t work...

    2) How to set the proper vbv-buffersize through setting stream->codec->rc_buffer_size here the stream is the output stream.

    If I set this value too small, it gives many buffer underflow warning.
    So what’s the proper value for it ? I am using 720*576 512kbps h264 stream with 20fps.

    3) Since the incoming h264 stream doesn’t come with time information, I used the following code to manually add the time base/pts/dts for the stream, is the code correct ?

         if (stream == NULL){//create stream in file
             stream = avformat_new_stream(oc, incomeStream->codec->codec);
             avcodec_copy_context(stream->codec, incomeStream->codec);
             stream->sample_aspect_ratio = incomeStream->codec->sample_aspect_ratio;

             stream->sample_aspect_ratio.num = incomeStream->codec->sample_aspect_ratio.num;
             stream->sample_aspect_ratio.den = incomeStream->codec->sample_aspect_ratio.den;

             // Assume r_frame_rate is accurate
             stream->r_frame_rate = incomeStream->r_frame_rate;
             stream->avg_frame_rate = stream->r_frame_rate;
             stream->time_base = av_inv_q(stream->r_frame_rate);
             stream->codec->time_base = stream->time_base;
             stream->codec->rc_buffer_size = 1024*500;
             avformat_write_header(oc, NULL);
         }
         ...
         //set the packet's dts pts
         packet.pts = stream->pts.val;
         packet.dts = stream->pts.val;

    Here stream is the output stream.

  • how to transfer an audio stream to a video stream ?

    14 janvier 2021, par 12345xw

    enter image description here

    


    PS C:\Users\RI\Desktop\Movie> ffprobe mov002.mpg 
Input #0, mpeg, from 'mov002.mpg':
  Duration: 00:00:00.26, start: 31.949778, bitrate: 2258447 kb/s
    Stream #0:0[0x1e0]: Audio: mp3, 0 channels, fltp
    Stream #0:1[0x1c0]: Audio: mp2, 48000 Hz, stereo, s16p, 192 kb/s


    


    Stream #0:0 should be a video stream, but it is parsed as an audio stream

    


    how to transfer the audio stream to a video stream