Recherche avancée

Médias (0)

Mot : - Tags -/auteurs

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

Autres articles (111)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

  • 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

Sur d’autres sites (6489)

  • FFmpeg for marking time video based on a reference date

    29 décembre 2018, 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
    ...
    ...
  • Can't process RTP video stream from Firefox browser or Python based scripts by FFMPEG

    3 avril 2023, par Gentelam.S

    Any time I want to process (forward, analyze, copy, ...) RTP video stream from FF browser or python based scripts by FFMPEG, it "chucks" and can't work with it. Seems to be stream encoding issue.
I have a Janus server where clients join from browsers or anothers services, like Python, then I forward the stream to the URL, where FFMPEG is listening on. There is no issue when I try to process any forwarded stream coming from Chrome based browsers, but the problem occurs when I join from FF or Python.

    


    I run ffmpeg in Ubuntu container.
The command I use :
-loglevel trace -analyzeduration 300M -probesize 300M -protocol_whitelist file,udp,rtp -i port4000.sdp -vf scale=1280:720 -vcodec libx264 -profile:v baseline -preset:v ultrafast -acodec aac -f flv -flvflags no_duration_filesize {{rtmpUrl}}

    


    I used also very simple commands like the following but the result is the same :
ffmpeg -protocol_whitelist file,udp,rtp -i ./SDP/port4000.sdp -c copy -t 10 -y test.mkv

    


    The SDP file I use :

    


    SDP:
v=0
o=- 0 0 IN IP4 127.0.0.1
s=No Name
c=IN IP4 127.0.0.1
t=0 0
a=tool:libavformat 58.29.100
m=video 4000 RTP/AVP 96
b=AS:200
a=rtpmap:96 VP8/90000


    


    The screens below depicts how FFMPEG behaves in case of FF and Chrome (loglevel of ffmpeg set to trace).

    


    Firefox :
enter image description here

    


    Chrome :
enter image description here

    


    enter image description here

    


    enter image description here

    


    enter image description here

    


    It looks like it brokes after the following log : Before avformat_find_stream_info() pos: xxx

    


    (Same problem is if I try to run ffprobe)
Thank you for any suggestion.

    


    As described above, I tried quite a lot of of arguments running ffmpeg, different SDP files but seems to be not enough. I want the stream to be procced properly by FFMEPG.

    


  • hlsenc : add use_localtime_mkdir option to automatically create time-based directory

    3 février 2016, par Johan Ström
    hlsenc : add use_localtime_mkdir option to automatically create time-based directory
    

    Use with -use_localtime, and set -hls_segment_filename to a path which
    contains a subdirectory i.e. /some/path/%Y%m%d/%Y%m%dT%H%M%S-%s.ts
    This will mkdir the %Y%m%d-part of the path if it does not already
    exist.
    In addition, each filename in the playlist output will be prefixed with
    this subdirectory (if playlist and segment shares the same base path).

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

    • [DH] doc/muxers.texi
    • [DH] libavformat/hlsenc.c