Recherche avancée

Médias (0)

Mot : - Tags -/protocoles

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (34)

  • 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.

  • List of compatible distributions

    26 avril 2011, par

    The table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)

  • Submit enhancements and plugins

    13 avril 2011

    If you have developed a new extension to add one or more useful features to MediaSPIP, let us know and its integration into the core MedisSPIP functionality will be considered.
    You can use the development discussion list to request for help with creating a plugin. As MediaSPIP is based on SPIP - or you can use the SPIP discussion list SPIP-Zone.

Sur d’autres sites (6704)

  • avformat/hls : Fixes overwriting existing #EXT-X-PROGRAM-DATE-TIME value in HLS playlist

    1er décembre 2020, par Vignesh Ravichandran
    avformat/hls : Fixes overwriting existing #EXT-X-PROGRAM-DATE-TIME value in HLS playlist
    

    fix ticket : 8989

    This is is due to the following behavior in the current code :
    1. The initial_prog_date_time gets set to the current local time
    2. The existing playlist (.m3u8) file gets parsed and the segments
    present are added to the variant stream
    3. The new segment is created and added
    4. The existing segments and the new segment are written to the
    playlist file. The initial_prog_date_time from point 1 is used
    for calculating "#EXT-X-PROGRAM-DATE-TIME" for the segments,
    which results in incorrect "#EXT-X-PROGRAM-DATE-TIME" values
    for existing segments
    The following approach fixes this bug :
    1. Add a new variable "discont_program_date_time" of type double
    to HLSSegment struct
    2. Store the "EXT-X-PROGRAM-DATE-TIME" value from the existing
    segments in this variable
    3. When writing to playlist file if "discont_program_date_time"
    is set, then use that value for "EXT-X-PROGRAM-DATE-TIME" else
    use the value present in vs->initial_prog_date_time

    Signed-off-by : Vignesh Ravichandran <vignesh.ravichandran02@gmail.com>
    Signed-off-by : liuqi05 <liuqi05@kuaishou.com>

    • [DH] libavformat/hlsenc.c
  • Get frame time in ffmpeg

    30 mai 2023, par Srv19

    I am trying to make a little video player that has seek bar (with ffmpeg, of course). For that i need function that will, using data from frame and/or packet, get me current time in the video that should be set in seek slider.

    &#xA;

    It should work like this :

    &#xA;

    my_time = get_cur_time()&#xA;seek(my_time &#x2B; 10)&#xA;assert(my_time&#x2B;10 == get_cur_time())&#xA;seek(my_time - 10)&#xA;assert(my_time-10 == get_cur_time())&#xA;

    &#xA;

    I do understand that ffmpeg does not support precise seeking, so equality here means "something reasonably close".

    &#xA;

    What code have i used for this thus far :

    &#xA;

    frame_time = frame->pts * av_q2d(video_dec_ctx->time_base) * 1000;&#xA;

    &#xA;

    where frame is AVFrame and video_dec_ctx is AVCodecContext.

    &#xA;

    And for seeking :

    &#xA;

    int fn = ffmpeg::av_rescale(tsms,fmt_ctx->streams[video_stream->index]->time_base.den,&#xA;                            fmt_ctx->streams[video_stream->index]->time_base.num);&#xA;int frame = fn / 1000;&#xA;&#xA;printf("\t avformat_seek_file to %d\n",frame);&#xA;int flags = AVSEEK_FLAG_FRAME;&#xA;if (frame &lt; this->frame->pts)&#xA;    flags |= AVSEEK_FLAG_BACKWARD;&#xA;if (ffmpeg::av_seek_frame(fmt_ctx, video_stream->index, frame, flags))&#xA;{&#xA;    printf("\nFailed to seek for time %d",frame);&#xA;    return false;&#xA;}&#xA;&#xA;avcodec_flush_buffers(video_dec_ctx);&#xA;int got_frame = 0;&#xA;do&#xA;if (av_read_frame(fmt_ctx, &amp;pkt) >= 0) {&#xA;    decode_packet_ro(&amp;got_frame, 0);&#xA;    av_free_packet(&amp;pkt);&#xA;}&#xA;else&#xA;{&#xA;    read_cache = true;&#xA;    pkt.data = NULL;&#xA;    pkt.size = 0;&#xA;    break;&#xA;}&#xA;while (!(got_frame &amp;&amp; this->frame->pts >= frame));&#xA;

    &#xA;

    The code does forward seeking passably, but after any attempt of backward seeking my second assertion fails. After seeking to previous position, my method of getting time does not return position less that one before seeking. That causes my seek slider to work grossly incorrectly.

    &#xA;

  • FFmpeg for marking time video based on a reference date

    3 août 2016, par Denio Mariz

    I am trying to mark a timestamp in a video using Drawtext filter.
    FFmpeg easily marks timestamps based on localtime, gmtime or even PTS. However, I want to assign a reference time (start time) for the timestamp in order to represent the time the video was recorded (not encoded).

    Reading the documentation, I found that option "basetime" can be used for this purpose. However it seems that is not working or I am missing something.

    The command line I am using is :

    ffmpeg -y -i input.mp4 -filter_complex drawtext="fontfile=/tmp/UbuntuMono-B.ttf: fontsize=36: fontcolor=yellow: box=1: boxcolor=black@0.4: text='Wall Clock Time\: %{gmtime\:%Y-%m-%d %T}': basetime=1456007118" output.mp4

    By using basetime=1456007118", it was expected the start time was set to ’02/20/2016 20:25:18’ since 1456007118 is the UTC time for that time and date :

    date -d '02/20/2016 20:25:18' +"%s" # format MM/DD/AAAA hh:mm:ss
    1456007118

    However, no error is issued by FFMpeg and the video is marked with current GMT, ignoring "basetime" option.

    Any hint ?
    Thanks.

    Complete information about FFmpeg version and output is :

       ffmpeg -y -i /home/denio/Videos/Interstellar_2014_Trailer_4_5.1-1080p-HDTN.mp4 -filter_complex drawtext="fontfile=/tmp/UbuntuMono-B.ttf: fontsize=36: fontcolor=yellow: box=1: boxcolor=black@0.4: text='Wall Clock Time\: %{gmtime\:%Y-%m-%d %T}': basetime=1470226363" /tmp/x.mp4
       ffmpeg version 3.1.1 Copyright (c) 2000-2016 the FFmpeg developers
         built with gcc 5.3.1 (Ubuntu 5.3.1-14ubuntu2.1) 20160413
         configuration: --enable-libxavs --enable-bzlib --enable-libfaac --enable-libfreetype --enable-libfontconfig --enable-libmp3lame --enable-libschroedinger --enable-libspeex --enable-libvorbis --enable-libx264 --enable-libx265 --enable-libxvid --enable-zlib --enable-x11grab --enable-static --enable-pthreads --enable-gpl --enable-nonfree --enable-version3 --disable-ffserver --enable-libgsm --enable-librtmp --enable-libvpx --enable-libschroedinger --enable-libopencore-amrnb --enable-libopenjpeg
         libavutil      55. 28.100 / 55. 28.100
         libavcodec     57. 48.101 / 57. 48.101
         libavformat    57. 41.100 / 57. 41.100
         libavdevice    57.  0.101 / 57.  0.101
         libavfilter     6. 47.100 /  6. 47.100
         libswscale      4.  1.100 /  4.  1.100
         libswresample   2.  1.100 /  2.  1.100
         libpostproc    54.  0.100 / 54.  0.100
       ...
       ...