Recherche avancée

Médias (3)

Mot : - Tags -/image

Autres articles (25)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

Sur d’autres sites (3762)

  • libavfilter/vf_fps : Add more fate tests

    16 février 2018, par Calvin Walton
    libavfilter/vf_fps : Add more fate tests
    

    These tests cover specific rounding behaviour, to ensure that I don't
    introduce any regressions with the rewritten "activate" callback based
    fps filter.

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

    • [DH] tests/fate/filter-video.mak
    • [DH] tests/ref/fate/filter-fps-down
    • [DH] tests/ref/fate/filter-fps-down-eof-pass
    • [DH] tests/ref/fate/filter-fps-down-round-down
    • [DH] tests/ref/fate/filter-fps-down-round-up
    • [DH] tests/ref/fate/filter-fps-up
    • [DH] tests/ref/fate/filter-fps-up-round-down
    • [DH] tests/ref/fate/filter-fps-up-round-up
  • Am I missing a timeout param in FFMPEG ?

    5 mai 2020, par Dave Stein

    I'm running an ffmpeg command like this :

    &#xA;&#xA;

    ffmpeg -loglevel quiet -report -timelimit 15 -timeout 10 -protocol_whitelist file,http,https,tcp,tls,crypto -i ${inputFile} -vframes 1 ${outputFile} -y

    &#xA;&#xA;

    This is running in an AWS Lambda function. My Lambda timeout is at 30 seconds. For some reason I am getting "Task timed out" messages still. I should note I log before and after the command, so I know it's timing out during this task.

    &#xA;&#xA;

    Update

    &#xA;&#xA;

    In terms of the entire lambda execution I do the following :

    &#xA;&#xA;

      &#xA;
    • Invoke a lambda to get an access token. This lambda makes on API request. It has a timeout of 5 seconds. The max time was 660MS for one request.

    • &#xA;

    • Make another API request to verify data. The max time was 1.6 seconds.

    • &#xA;

    • Run FFMPEG

    • &#xA;

    &#xA;&#xA;

    timelimit is supposed to Exit after ffmpeg has been running for duration seconds in CPU user time.. Theoretically this shouldn't run more than 15 seconds then, plus maybe 2-3 more before the other requests.

    &#xA;&#xA;

    timeout is probably superfluous here. There were a lot of definitions for it in the manual, but I think that was mainly waiting on input ? Either way, I'd think timelimit would cover my bases.

    &#xA;&#xA;

    Update 2

    &#xA;&#xA;

    I checked my debug log and saw this :

    &#xA;&#xA;

    Reading option &#x27;-timelimit&#x27; ... matched as option &#x27;timelimit&#x27; (set max runtime in seconds) with argument &#x27;15&#x27;.&#xA;Reading option &#x27;-timeout&#x27; ... matched as AVOption &#x27;timeout&#x27; with argument &#x27;10&#x27;.&#xA;

    &#xA;&#xA;

    Seems both options are supported by my build

    &#xA;&#xA;

    Update 2

    &#xA;&#xA;

    I have updated my code with a lot of logs. I definitively see the FFMPEG command as the last thing that executes, before stalling out for the 30 second timeout

    &#xA;&#xA;

    Update 3&#xA;I can reproduce the behavior by pointing at a track instead of full manifest. I have set the command to this :

    &#xA;&#xA;

    ffmpeg -loglevel debug -timelimit 5 -timeout 5  -i &#x27;https://streamprod-eastus-streamprodeastus-usea.streaming.media.azure.net/0c495135-95fa-48ec-a258-4ba40262e1be/23ab167b-9fec-439e-b447-d355ff5705df.ism/QualityLevels(200000)/Manifest(video,format=m3u8-aapl)&#x27; -vframes 1 temp.jpg -y

    &#xA;&#xA;

    A few things here :

    &#xA;&#xA;

      &#xA;
    1. I typically point at the actual manifest (not the track), and things usually run much faster
    2. &#xA;

    3. I have lowered the timelimit and timeout to 5. Despite this, when i run a timer, the command runs for 15 seconds every time. It outputs a bunch of errors, likely due to this being track rather than full manifest, and then spits out the desired image.
    4. &#xA;

    &#xA;&#xA;

    The full output is at https://gist.github.com/DaveStein/b3803f925d64dd96cd45ae9db5e5a4d0

    &#xA;

  • ffmpeg itsoffset doesnt apply offset to mp4

    26 juillet 2019, par brux

    The following command mixes an mp4 and an mp3 together, keeping the audio from the mp4.

    ffmpeg -i video.mp4 -i audio.mp3 -map 0:v -c:v copy -filter_complex '[0:a][1:a]amix[aout]' -map '[aout]' -shortest out.mp4

    The command works as expected.

    Now I want to offset the mp4 file (both the audio and video stream of the mp4) so that there is a delay of 500ms at the start of the mp4, here is my command :

    ffmpeg -itsoffset 00:00:00.500 -i video.mp4 -i audio.mp3 -map 0:v -c:v copy -filter_complex '[0:a][1:a]amix[aout]' -map '[aout]' -shortest out.mp4

    This doesnt work as expected, the output doesnt have the expected delay of 500ms at the start of the mp4 streams. It appears the output is just the same as the first command I ran.

    The version of ffmpeg I am using is :

    ffmpeg version n4.0-39-gda39990

    Here are the files I’m using :

    video.mp4

    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/video.mp4':
         Metadata:
           major_brand     : mp42
           minor_version   : 0
           compatible_brands: isommp42
           creation_time   : 2019-07-26T03:28:49.000000Z
           com.android.version: 8.0.0
         Duration: 00:00:07.64, start: 0.000000, bitrate: 20534 kb/s
           Stream #0:0(eng): Video: h264 (avc1 / 0x31637661), yuvj420p(pc, smpte170m), 1920x1080, 20966 kb/s, SAR 1:1 DAR 16:9, 29.70 fps, 29.75 tbr, 90k tbn, 180k tbc (default)
           Metadata:
             rotate          : 270
             creation_time   : 2019-07-26T03:28:49.000000Z
             handler_name    : VideoHandle
           Side data:
             displaymatrix: rotation of 90.00 degrees
           Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 96 kb/s (default)
           Metadata:
             creation_time   : 2019-07-26T03:28:49.000000Z
             handler_name    : SoundHandle

    audio.mp3

    Input #0, mp3, from '/storage/emulated/0/audio.mp3':
         Metadata:
           album           : Sunflower (Spider-Man: Into the Spider-Verse) - Single
           composer        : Louis Bell, Carter Lang, Austin Richard Post, Billy Walsh &amp; Khalif Malik Ibin Shaman Brown
           genre           : Hip-Hop/Rap
           copyright       : This Compilation ℗ 2018 Republic Records, a division of UMG Recordings, Inc.
           title           : Sunflower (Spider-Man: Into the Spider-Verse)
           artist          : Post Malone &amp; Swae Lee
           album_artist    : Post Malone &amp; Swae Lee
           track           : 01/01
           TYER            : 2018-10-18T07:00:00Z
         Duration: 00:02:38.07, start: 0.000000, bitrate: 325 kb/s
           Stream #0:0: Audio: mp3, 44100 Hz, stereo, fltp, 320 kb/s
           Stream #0:1: Video: mjpeg, yuvj444p(pc, bt470bg/unknown/unknown), 1400x1400 [SAR 300:300 DAR 1:1], 90k tbr, 90k tbn, 90k tbc
           Metadata:
             comment         : Cover (front)