Recherche avancée

Médias (29)

Mot : - Tags -/Musique

Autres articles (96)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

Sur d’autres sites (10671)

  • libavcodec/jpeg2000 : fix precinct coordinate calculation

    11 avril 2020, par Gautam Ramakrishnan
    libavcodec/jpeg2000 : fix precinct coordinate calculation
    

    The calculation of precinct boundaries has been
    fixed. The precinct boundaries were calculated
    as an offset to the band boundary, but must
    instead be calculated as an offset from the
    reslevel. This patch fixes #4669 and #4679.

    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] libavcodec/jpeg2000.c
  • how to play nginx & rtmp based hls live stream on a remote machine

    21 mai 2020, par Ram

    I have installed nginx, rtmp and ffmpeg based hls live streaming working on ubuntu machine. I use this command to stream hls

    &#xA;&#xA;

    sudo ffmpeg -re -i sample.mp4 -vcodec libx264 -vprofile high -g 30 -acodec aac -strict -2 -f flv rtmp://localhost/show/stream2&#xA;

    &#xA;&#xA;

    when I try to play this stream using VLC using following commands on the same machine it works well.

    &#xA;&#xA;

    http://myIp:8080/hls/stream2.m3u8&#xA;

    &#xA;&#xA;

    or

    &#xA;&#xA;

    http://localhost:8080/hls/stream2.m3u8&#xA;

    &#xA;&#xA;

    However when I try to access from remote computer connected to same WIFI, not able to play. VLC gives an error that unable to play the file.

    &#xA;

  • Using ffmpeg dll's from a windows 32 bit app

    8 avril 2020, par Derek

    I am trying to use ffmpeg via dll calls from a win32 app (compiled in clarion)

    &#xA;&#xA;

    I transcoded the example file encode_video.c and that worked 100% however I was left with a .h264 file instead of a .mp4 file.

    &#xA;&#xA;

    I then transcoded the example muxing.c however it crashes and I am at a loss for options.

    &#xA;&#xA;

    Any help would be most appreciated.

    &#xA;&#xA;

    Encode_mp4 ROUTINE&#xA;! avformat_alloc_output_context2 *******************************************************************************************&#xA;file_name = &#x27;myvideo.mp4&#x27;&#xA;! Try guess format from filename&#xA;if CHECK_STACK then ds_SaveStack .&#xA;Result = avformat_alloc_output_context2(ThisPtrPtr, 0, NullCString, file_name);&#xA;if CHECK_STACK then ds_TestStack .&#xA;if Result &lt; 0&#xA;    ds_OutputDebugString(&#x27;avformat_alloc_output_context2 Try guess format failed, try mpeg&#x27;, TRUE)&#xA;    CString1 = &#x27;mpeg&#x27;&#xA;    if CHECK_STACK then ds_SaveStack .&#xA;    Result = avformat_alloc_output_context2(ThisPtrPtr, 0, CString1, file_name);&#xA;    if CHECK_STACK then ds_TestStack .&#xA;    if Result &lt; 0&#xA;        ds_OutputDebugString(&#x27;avformat_alloc_output_context2 failed&#x27;, TRUE)&#xA;        stop(&#x27;Could not allocate output format context&#x27;)&#xA;        exit&#xA;    end&#xA;end&#xA;formater_ctxt &amp;= (ThisPtrPtr)&#xA;!ds_OutputDebugString(&#x27;formater_ctxt=&#x27; &amp; address(formater_ctxt), TRUE)&#xA;assert(not(formater_ctxt &amp;= NULL), &#x27;Check AVFormatContext formater_ctxt&#x27;)&#xA;do VerifyFormatContext&#xA;assert(formater_ctxt.oformat > 0, &#x27;Check AVFormatContext formater_ctxt.oformat&#x27;)&#xA;formater &amp;= (formater_ctxt.oformat)&#xA;do VerifyFormat&#xA;ds_OutputDebugString(&#x27;avformat_alloc_output_context2 OK&#x27;, TRUE)&#xA;&#xA;! avcodec_find_encoder *******************************************************************************************&#xA;if CHECK_STACK then ds_SaveStack .&#xA;encoder &amp;= avcodec_find_encoder(formater.video_codec)&#xA;if CHECK_STACK then ds_TestStack .&#xA;if encoder &amp;= NULL&#xA;    ds_OutputDebugString(&#x27;avcodec_find_encoder failed&#x27;, TRUE)&#xA;    stop(&#x27;Could not find encoder&#x27;)&#xA;    exit&#xA;end&#xA;do VerifyEncoder&#xA;ds_OutputDebugString(&#x27;avcodec_find_encoder OK&#x27;, TRUE)&#xA;&#xA;! avformat_new_stream *******************************************************************************************&#xA;if CHECK_STACK then ds_SaveStack .&#xA;stream &amp;= avformat_new_stream(formater_ctxt, encoder)&#xA;if CHECK_STACK then ds_TestStack .&#xA;if stream &amp;= NULL &#xA;    ds_OutputDebugString(&#x27;avformat_new_stream failed&#x27;, TRUE)&#xA;    stop(&#x27;Could not create new stream&#x27;)&#xA;    exit&#xA;end&#xA;do VerifyStream&#xA;stream.id = formater_ctxt.nb_streams-1&#xA;ds_OutputDebugString(&#x27;avformat_new_stream OK&#x27;, TRUE)&#xA;&#xA;! avcodec_alloc_context3 *******************************************************************************************&#xA;if CHECK_STACK then ds_SaveStack .&#xA;encoder_ctxt &amp;= avcodec_alloc_context3(encoder)&#xA;if CHECK_STACK then ds_TestStack .&#xA;if encoder_ctxt &amp;= NULL &#xA;    ds_OutputDebugString(&#x27;avcodec_alloc_context3 failed&#x27;, TRUE)&#xA;    stop(&#x27;Could not allocate video codec context&#x27;)&#xA;    exit&#xA;end&#xA;do VerifyEncoderContext&#xA;ds_OutputDebugString(&#x27;avcodec_alloc_context3 OK&#x27;, TRUE)&#xA;&#xA;! Video settings *******************************************************************************************&#xA;do InitVideoSettings&#xA;&#xA;assert(AV_CODEC_FLAG_GLOBAL_HEADER = bshift(1, 22), &#x27;Check AV_CODEC_FLAG_GLOBAL_HEADER&#x27;)&#xA;if band(formater.flags, AVFMT_GLOBALHEADER)&#xA;   encoder_ctxt.flags = bor(encoder_ctxt.flags, AV_CODEC_FLAG_GLOBAL_HEADER) !avctx->flags |= AV_CODEC_FLAG_GLOBAL_HEADER;&#xA;end&#xA;&#xA;! avcodec_open2 *******************************************************************************************&#xA;if CHECK_STACK then ds_SaveStack .&#xA;Result = avcodec_open2(encoder_ctxt, encoder, 0)&#xA;if CHECK_STACK then ds_TestStack .&#xA;if Result &lt; 0&#xA;    ds_OutputDebugString(&#x27;avcodec_open2 failed.  Result=&#x27; &amp; Result, TRUE)&#xA;    stop(&#x27;Could not open codec&#x27;)&#xA;    exit&#xA;end&#xA;ds_OutputDebugString(&#x27;avcodec_open2 OK&#x27;, TRUE)&#xA;&#xA;! av_frame_alloc *******************************************************************************************&#xA;if CHECK_STACK then ds_SaveStack .&#xA;frame &amp;= av_frame_alloc();&#xA;if CHECK_STACK then ds_TestStack .&#xA;if frame &amp;= NULL&#xA;    ds_OutputDebugString(&#x27;av_frame_alloc failed&#x27;, TRUE)&#xA;    stop(&#x27;Could not allocate video frame&#x27;)&#xA;    exit&#xA;end&#xA;do VerifyFrame&#xA;frame.format = encoder_ctxt.pix_fmt&#xA;frame.width = encoder_ctxt.width&#xA;frame.height = encoder_ctxt.height&#xA;ds_OutputDebugString(&#x27;av_frame_alloc OK&#x27;, TRUE)&#xA;&#xA;! av_frame_get_buffer *******************************************************************************************&#xA;if CHECK_STACK then ds_SaveStack .&#xA;Result = av_frame_get_buffer(frame, 32)&#xA;if CHECK_STACK then ds_TestStack .&#xA;if Result &lt; 0&#xA;    ds_OutputDebugString(&#x27;av_frame_get_buffer failed&#x27;, TRUE)&#xA;    stop(&#x27;Could not allocate video frame buffer Error = &#x27; &amp; Result)&#xA;    exit&#xA;end&#xA;do VerifyFrameBuffer&#xA;ds_OutputDebugString(&#x27;av_frame_get_buffer OK&#x27;, TRUE)&#xA;&#xA;!frame->data offset=0  Array[8] of *int8_t&#xA;UseData0 &amp;= (frame.data[1])&#xA;UseData1 &amp;= (frame.data[2])&#xA;UseData2 &amp;= (frame.data[3])&#xA;&#xA;if CHECK_STACK then ds_SaveStack .&#xA;Result = avcodec_parameters_from_context(stream.codecpar, encoder_ctxt);&#xA;if CHECK_STACK then ds_TestStack .&#xA;if Result &lt; 0&#xA;    ds_OutputDebugString(&#x27;avcodec_parameters_from_context failed&#x27;, TRUE)&#xA;    stop(&#x27;Could not initialize stream parameters&#x27;)&#xA;    exit&#xA;end&#xA;ds_OutputDebugString(&#x27;avcodec_parameters_from_context OK&#x27;, TRUE)&#xA;&#xA;! av_dump_format *******************************************************************************************&#xA;ds_OutputDebugString(&#x27;before call to av_dump_format  file_name=&#x27; &amp; file_name, TRUE)&#xA;av_dump_format(formater_ctxt, 0, file_name, 1)&#xA;

    &#xA;&#xA;

    I get a crash at last line - call to av_dump_format()

    &#xA;&#xA;

    If I comment this code then I get a crash on the very next lib call :

    &#xA;&#xA;

        ! avio_open *******************************************************************************************&#xA;if not(band(formater.flags, AVFMT_NOFILE)) &#xA;    ds_OutputDebugString(&#x27;before call to avio_open  file_name=&#x27; &amp; file_name, TRUE)&#xA;    ThisInt &amp;= address(formater_ctxt.pb)&#xA;    Result = avio_open(ThisInt, file_name, AVIO_FLAG_WRITE)&#xA;

    &#xA;&#xA;

    Strangely if I comment the setup call to av_log_set_callback(my_log_callback) then the crash moves down to the next lib call : avformat_write_header

    &#xA;