Recherche avancée

Médias (91)

Autres articles (107)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

  • De l’upload à la vidéo finale [version standalone]

    31 janvier 2010, par

    Le chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
    Upload et récupération d’informations de la vidéo source
    Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
    Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)

Sur d’autres sites (9440)

  • Nginx video streaming - ffmpeg convert to flv, but requsted is mp4

    18 juin 2012, par abrahab

    I am converting videos from different sources with ffmpeg to mp4 with libx264 codec.
    The following command (simplified) :
    ffmpeg -i 1.mp4 -y -f mp4 -vcodec libx264 -crf 28 -threads 2 -strict experimental -acodec aac -ab 56k -ar 44100 -ac 2 temp.mp4

    Then, I can not stream the output file (500 Internal Server Error) with nginx mp4-streaming solution (aka http pseudo streaming). My system administrator found, that if rename file to flv it stream well, so, seems the output file is not mp4, but flv ? Why ? How to correctly convert ? Or, please, suggest how to stream video properly ? I think that mp4 is much better then flv... therefore I choose mp4.

    In other words, the problem is to stream output file like mp4.

    ps i also need to be sure that this video will always work at ipad after convertation. thanks and sorry for my bad english.

    EDIT : I found that if convert video with the same string but without -vcodec libx264 - nginx can serve the output .mp4 file well. where may be the problem ?

  • FFmpeg convert video to adaptive streaming and multiple audio track

    13 juin 2020, par user998405

    I have one mpeg video and this video consist of three audio track . And I want to convert this video to adaptive streaming. Here is the example command that used 
ffmpeg.exe -i c:\test\1.mpg  -c:a aac -strict experimental -map 0:v -map 0:a -c:v libx264 -s 854x480 -aspect 16:9 -f hls -hls_key_info_file enc.keyinfo -hls_list_size 1000000 -hls_time 2 c:\k854_out.m3u8

    



    Index.m3u8

    



     #EXTM3U
#EXT-X-STREAM-INF:PROGRAM-ID=1, BANDWIDTH=696000
854_out.m3u8
#EXT-X-STREAM-INF:PROGRAM-ID=1, BANDWIDTH=1096000
1280_out.m3u8
#EXT-X-STREAM-INF:PROGRAM-ID=1, BANDWIDTH=2096000
1920_out.m3u8


    



    Here my question how can I convert the adaptive streaming to support multiple audio track ?

    


  • Streaming RTP with ffmpeg

    30 mars 2016, par Dmitry

    Im trying to stream audio via rtp over udp with ffmpeg (filename = "rtp://11.89.9.211:30000").
    Here is my code for server(which one is streaming, and I have deleted all checks from code for easy reading) :

       AVStream *stream = NULL;
       AVCodec *output_codec = NULL;
       int error;
       out_ifcx[i] = avformat_alloc_context();
       out_ifcx[i]->oformat = av_guess_format("rtp", NULL, NULL);
       avformat_alloc_output_context2(&out_ifcx[i], nullptr, "rtp", filename);
       avio_open(&(out_ifcx[i])->pb, filename, AVIO_FLAG_WRITE));
       av_strlcpy((out_ifcx[i])->filename, filename, sizeof((out_ifcx[i])->filename));
       output_codec = avcodec_find_encoder((in_ifcx[i])->streams[0]->codec->codec_id);
       stream = avformat_new_stream(out_ifcx[i], output_codec)
       out_iccx[i] = stream->codec;
       (out_iccx[i])->channels = OUTPUT_CHANNELS;
       (out_iccx[i])->channel_layout = av_get_default_channel_layout(OUTPUT_CHANNELS);
       (out_iccx[i])->sample_rate = in_iccx[i]->sample_rate;
       (out_iccx[i])->sample_fmt = AV_SAMPLE_FMT_S16;
       (out_iccx[i])->bit_rate = iccx[i]->bit_rate;
       if ((out_ifcx[i])->oformat->flags & AVFMT_GLOBALHEADER)
           (out_iccx[i])->flags |= CODEC_FLAG_GLOBAL_HEADER;
       avcodec_open2(out_iccx[i], output_codec, NULL)

    PS : out_iccx[i], in_iccx[i] - vector; out_ifcx[i] in_ifcx[i] - vector
    Problem with it is : when i`m trying to reach another computer in the same network this code gives an error

    udp_resolve_host: nodename nor servname provided, or not known

    Also, when i`m streaming to the same computer but on other port (I use not local host IP(127.0.0.1), but of this computer : 11.88.8.20), everything works perfect.
    I dont know why and how to fix it. Can anyone help, please ?