Recherche avancée

Médias (1)

Mot : - Tags -/epub

Autres articles (95)

  • 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

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

Sur d’autres sites (5090)

  • ffmpeg - Take Frame Accurate Screenshot

    20 septembre 2019, par mike

    trying to find a way to take frame accurate screenshots with ffmpeg WITHOUT re-encoding the video.

    When I use :

    ffmpeg -ss -i input -vframes 1 -q:v 2 output.jpg

    with -ss being hh:mm:ss.ms, not matter how I specify the milliseconds, it is never frame accurate with this command. it seems to be landing on the nearest keyframe (which is not accurate enough for my application).

    So, my question is :

    Without re-encoding the video (ergo specifying -ss flag AFTER the input) is there any way to pull frame accurate screenshots via ffmpeg ?

    If not, is there another solution on Windows that would allow that via command line ?

    Thanks !


    ffmpeg log report part 1 :

    ffmpeg started on 2018-01-22 at 02:52:59
    Report written to "ffmpeg-20180122-025259.log"
    Command line:
    "D:\\ffmpeg-3.4.1-win64-static\\bin\\ffmpeg.exe" -ss 1:31:25.9885 -i "V:\\Test\\BDMV\\STREAM\\00000.m2ts" -vframes 1 -q:v 2 -report output.jpg
    ffmpeg version N-89674-g57d0c24132 Copyright (c) 2000-2018 the FFmpeg developers
     built with gcc 7.2.0 (GCC)
     configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-amf --enable-cuda --enable-cuvid --enable-d3d11va --enable-nvenc --enable-dxva2 --enable-avisynth --enable-libmfx
     libavutil      56.  7.100 / 56.  7.100
     libavcodec     58.  9.100 / 58.  9.100
     libavformat    58.  3.100 / 58.  3.100
     libavdevice    58.  0.100 / 58.  0.100
     libavfilter     7.  8.100 /  7.  8.100
     libswscale      5.  0.101 /  5.  0.101
     libswresample   3.  0.101 /  3.  0.101
     libpostproc    55.  0.100 / 55.  0.100
    Splitting the commandline.
    Reading option '-ss' ... matched as option 'ss' (set the start time offset) with argument '1:31:25.9885'.
    Reading option '-i' ... matched as input url with argument 'V:\Test\BDMV\STREAM\00000.m2ts'.
    Reading option '-vframes' ... matched as option 'vframes' (set the number of video frames to output) with argument '1'.
    Reading option '-q:v' ... matched as option 'q' (use fixed quality scale (VBR)) with argument '2'.
    Reading option '-report' ... matched as option 'report' (generate a report) with argument '1'.
    Reading option 'output.jpg' ... matched as output url.
    Finished splitting the commandline.
    Parsing a group of options: global .
    Applying option report (generate a report) with argument 1.
    Successfully parsed a group of options.
    Parsing a group of options: input url V:\Test\BDMV\STREAM\00000.m2ts.
    Applying option ss (set the start time offset) with argument 1:31:25.9885.
    Successfully parsed a group of options.
    Opening an input file: V:\Test\BDMV\STREAM\00000.m2ts.
    [NULL @ 000001e53135a680] Opening 'V:\Test\BDMV\STREAM\00000.m2ts' for reading
    [file @ 000001e53135b740] Setting default whitelist 'file,crypto'
    [mpegts @ 000001e53135a680] Format mpegts probed with size=2048 and score=50
    [mpegts @ 000001e53135a680] stream=0 stream_type=1b pid=1011 prog_reg_desc=HDMV
    [mpegts @ 000001e53135a680] stream=1 stream_type=86 pid=1100 prog_reg_desc=HDMV
    [mpegts @ 000001e53135a680] stream=2 stream_type=90 pid=1200 prog_reg_desc=HDMV
    [mpegts @ 000001e53135a680] Before avformat_find_stream_info() pos: 0 bytes read:32768 seeks:0 nb_streams:3
    [mpegts @ 000001e53135a680] parser not found for codec hdmv_pgs_subtitle, packets or times may be invalid.
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [AVBSFContext @ 000001e5313b4380] nal_unit_type: 9, nal_ref_idc: 0
    [AVBSFContext @ 000001e5313b4380] nal_unit_type: 7, nal_ref_idc: 3
    [AVBSFContext @ 000001e5313b4380] nal_unit_type: 8, nal_ref_idc: 3
    [AVBSFContext @ 000001e5313b4380] nal_unit_type: 6, nal_ref_idc: 0
    [AVBSFContext @ 000001e5313b4380] nal_unit_type: 6, nal_ref_idc: 0
    [AVBSFContext @ 000001e5313b4380] nal_unit_type: 5, nal_ref_idc: 3
    [AVBSFContext @ 000001e5313b4380] nal_unit_type: 5, nal_ref_idc: 3
    [AVBSFContext @ 000001e5313b4380] nal_unit_type: 5, nal_ref_idc: 3
    [AVBSFContext @ 000001e5313b4380] nal_unit_type: 5, nal_ref_idc: 3
    [h264 @ 000001e53135c940] nal_unit_type: 9, nal_ref_idc: 0
    [h264 @ 000001e53135c940] nal_unit_type: 7, nal_ref_idc: 3
    [h264 @ 000001e53135c940] nal_unit_type: 8, nal_ref_idc: 3
    [h264 @ 000001e53135c940] nal_unit_type: 6, nal_ref_idc: 0
    [h264 @ 000001e53135c940] nal_unit_type: 6, nal_ref_idc: 0
    [h264 @ 000001e53135c940] nal_unit_type: 5, nal_ref_idc: 3
    [h264 @ 000001e53135c940] nal_unit_type: 5, nal_ref_idc: 3
    [h264 @ 000001e53135c940] nal_unit_type: 5, nal_ref_idc: 3
    [h264 @ 000001e53135c940] nal_unit_type: 5, nal_ref_idc: 3
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] Format yuv420p chosen by get_format().
    [h264 @ 000001e53135c940] Reinit context to 1920x1088, pix_fmt: yuv420p
    [h264 @ 000001e53135c940] no picture
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [h264 @ 000001e53135c940] ct_type:0 pic_struct:0
    [mpegts @ 000001e53135a680] max_analyze_duration 7000000 reached at 7008000 microseconds st:1
    [mpegts @ 000001e53135a680] rfps: 23.916667 0.014415
    [mpegts @ 000001e53135a680] rfps: 23.916667 0.014415
    [mpegts @ 000001e53135a680] rfps: 24.000000 0.002352
    [mpegts @ 000001e53135a680] rfps: 24.000000 0.007275
    [mpegts @ 000001e53135a680] rfps: 48.000000 0.009407
    [mpegts @ 000001e53135a680] rfps: 48.000000 0.013337
    [mpegts @ 000001e53135a680] rfps: 23.976024 0.000000
    [mpegts @ 000001e53135a680] rfps: 23.976024 0.000000
    [mpegts @ 000001e53135a680] rfps: 47.952048 0.000000
    [mpegts @ 000001e53135a680] rfps: 47.952048 0.000000
    [mpegts @ 000001e53135a680] start time for stream 2 is not set in estimate_timings_from_pts
    [mpegts @ 000001e53135a680] Could not find codec parameters for stream 2 (Subtitle: hdmv_pgs_subtitle (pgssub) ([144][0][0][0] / 0x0090)): unspecified size
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    [mpegts @ 000001e53135a680] After avformat_find_stream_info() pos: 0 bytes read:2494608 seeks:2 frames:828
    [NULL @ 000001e53135c940] nal_unit_type: 7, nal_ref_idc: 3
    [NULL @ 000001e53135c940] nal_unit_type: 8, nal_ref_idc: 3
    [NULL @ 000001e53135c940] ct_type:0 pic_struct:0
    [NULL @ 000001e53135c940] nal_unit_type: 7, nal_ref_idc: 3
    [NULL @ 000001e53135c940] nal_unit_type: 8, nal_ref_idc: 3
    [NULL @ 000001e53135c940] nal_unit_type: 7, nal_ref_idc: 3
    [NULL @ 000001e53135c940] nal_unit_type: 8, nal_ref_idc: 3
    [NULL @ 000001e53135c940] ct_type:0 pic_struct:0
    [NULL @ 000001e53135c940] nal_unit_type: 7, nal_ref_idc: 3
    [NULL @ 000001e53135c940] nal_unit_type: 8, nal_ref_idc: 3
    [NULL @ 000001e53135c940] ct_type:0 pic_struct:0
    [NULL @ 000001e53135c940] ct_type:0 pic_struct:0
    [NULL @ 000001e53135c940] nal_unit_type: 7, nal_ref_idc: 3
    [NULL @ 000001e53135c940] nal_unit_type: 8, nal_ref_idc: 3
    [NULL @ 000001e53135c940] ct_type:0 pic_struct:0
    [NULL @ 000001e53135c940] ct_type:0 pic_struct:0
    [NULL @ 000001e53135c940] nal_unit_type: 7, nal_ref_idc: 3
    [NULL @ 000001e53135c940] nal_unit_type: 8, nal_ref_idc: 3
    [NULL @ 000001e53135c940] ct_type:0 pic_struct:0
    [NULL @ 000001e53135c940] ct_type:0 pic_struct:0
    [NULL @ 000001e53135c940] nal_unit_type: 7, nal_ref_idc: 3
    [NULL @ 000001e53135c940] nal_unit_type: 8, nal_ref_idc: 3
    [NULL @ 000001e53135c940] ct_type:0 pic_struct:0
    [NULL @ 000001e53135c940] nal_unit_type: 7, nal_ref_idc: 3
    [NULL @ 000001e53135c940] nal_unit_type: 8, nal_ref_idc: 3
    [NULL @ 000001e53135c940] ct_type:0 pic_struct:0
    [NULL @ 000001e53135c940] nal_unit_type: 7, nal_ref_idc: 3
    [NULL @ 000001e53135c940] nal_unit_type: 8, nal_ref_idc: 3
    [NULL @ 000001e53135c940] ct_type:0 pic_struct:0
    [NULL @ 000001e53135c940] nal_unit_type: 7, nal_ref_idc: 3
    [NULL @ 000001e53135c940] nal_unit_type: 8, nal_ref_idc: 3
    [NULL @ 000001e53135c940] ct_type:0 pic_struct:0
    [NULL @ 000001e53135c940] nal_unit_type: 7, nal_ref_idc: 3
    [NULL @ 000001e53135c940] nal_unit_type: 8, nal_ref_idc: 3
    [NULL @ 000001e53135c940] ct_type:0 pic_struct:0
    [NULL @ 000001e53135c940] nal_unit_type: 7, nal_ref_idc: 3
    [NULL @ 000001e53135c940] nal_unit_type: 8, nal_ref_idc: 3
    [NULL @ 000001e53135c940] ct_type:0 pic_struct:0
    [NULL @ 000001e53135c940] nal_unit_type: 7, nal_ref_idc: 3
    [NULL @ 000001e53135c940] nal_unit_type: 8, nal_ref_idc: 3
    [NULL @ 000001e53135c940] ct_type:0 pic_struct:0
    [NULL @ 000001e53135c940] ct_type:0 pic_struct:0
    Input #0, mpegts, from 'V:\Test\BDMV\STREAM\00000.m2ts':
     Duration: 01:39:08.15, start: 600.000000, bitrate: 25263 kb/s
     Program 1
       Stream #0:0[0x1011], 169, 1/90000: Video: h264 (High) (HDMV / 0x564D4448), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc
       Stream #0:1[0x1100], 659, 1/90000: Audio: dts (DTS-HD MA) ([134][0][0][0] / 0x0086), 48000 Hz, stereo, s16p
       Stream #0:2[0x1200], 0, 1/90000: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
    Successfully opened the file.
  • FFmpeg image to video conversion error : [image2] Opening file for reading

    14 février 2018, par user1690179

    I am running ffmpeg on an AWS Lambda instance. The Lambda function takes an input image and transcodes it into a video segment using ffmpeg :

    ffmpeg -loop 1 -i /tmp/photo-SNRUR7ZS13.jpg -c:v libx264 -t 7.00 -pix_fmt yuv420p -vf scale=1280x720 /tmp/output.mp4

    I am seeing inconsistent behavior where sometimes the output video is shorter than the specified duration. This happens inconsistently to random images. The same exact image sometimes renders correctly, and sometimes is cut short.

    This behavior only happens on Lambda. I am not able to replicate this on my local computer, or on a dedicated EC2 instance with the same environment that runs on lambda.

    I noticed that when the output video is short, the ffmpeg log is different. The main difference are repeated [image2 @ 0x4b11140] Opening '/tmp/photo-2HD2Z3UN3W.jpg' for reading lines. See ffmpeg logs below.

    Normal execution with the correct output video length :

       ffmpeg -loop 1 -i /tmp/photo-SNRUR7ZS13.jpg -c:v libx264 -t 7.00 -pix_fmt yuv420p -vf scale=1280x720 /tmp/video-TMB6RNO0EE.mp4
    ffmpeg version N-89773-g7fcbebbeaf-static https://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2018 the FFmpeg developers
     built with gcc 6.4.0 (Debian 6.4.0-11) 20171206
     configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc-6 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gray --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-librtmp --enable-libsoxr --enable-libspeex --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzimg
     libavutil      56.  7.100 / 56.  7.100
     libavcodec     58.  9.100 / 58.  9.100
     libavformat    58.  3.100 / 58.  3.100
     libavdevice    58.  0.100 / 58.  0.100
     libavfilter     7. 11.101 /  7. 11.101
     libswscale      5.  0.101 /  5.  0.101
     libswresample   3.  0.101 /  3.  0.101
     libpostproc    55.  0.100 / 55.  0.100
    Input #0, image2, from '/tmp/photo-SNRUR7ZS13.jpg':
     Duration: 00:00:00.04, start: 0.000000, bitrate: 18703 kb/s
       Stream #0:0: Video: mjpeg, yuvj444p(pc, bt470bg/unknown/unknown), 687x860 [SAR 200:200 DAR 687:860], 25 fps, 25 tbr, 25 tbn, 25 tbc
    Stream mapping:
     Stream #0:0 -> #0:0 (mjpeg (native) -> h264 (libx264))
    Press [q] to stop, [?] for help
    [swscaler @ 0x5837900] deprecated pixel format used, make sure you did set range correctly
    [libx264 @ 0x51c2340] using SAR=1477/3287
    [libx264 @ 0x51c2340] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
    [libx264 @ 0x51c2340] profile High, level 3.1
    [libx264 @ 0x51c2340] 264 - core 155 r61 b00bcaf - H.264/MPEG-4 AVC codec - Copyleft 2003-2017 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=3 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
    Output #0, mp4, to '/tmp/video-TMB6RNO0EE.mp4':
     Metadata:
       encoder         : Lavf58.3.100
       Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 6183:13760 DAR 687:860], q=-1--1, 25 fps, 12800 tbn, 25 tbc
       Metadata:
         encoder         : Lavc58.9.100 libx264
       Side data:
         cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
    frame=   49 fps=0.0 q=28.0 size=       0kB time=-00:00:00.03 bitrate=N/A speed=N/A    
    frame=   69 fps= 66 q=28.0 size=       0kB time=00:00:00.76 bitrate=   0.5kbits/s speed=0.728x    
    frame=   89 fps= 57 q=28.0 size=       0kB time=00:00:01.56 bitrate=   0.2kbits/s speed=0.998x    
    frame=  109 fps= 53 q=28.0 size=       0kB time=00:00:02.36 bitrate=   0.2kbits/s speed=1.14x    
    frame=  129 fps= 50 q=28.0 size=       0kB time=00:00:03.16 bitrate=   0.1kbits/s speed=1.22x    
    frame=  148 fps= 48 q=28.0 size=       0kB time=00:00:03.92 bitrate=   0.1kbits/s speed=1.27x    
    frame=  168 fps= 47 q=28.0 size=       0kB time=00:00:04.72 bitrate=   0.1kbits/s speed=1.31x    
    No more output streams to write to, finishing.
    frame=  175 fps= 39 q=-1.0 Lsize=      94kB time=00:00:06.88 bitrate= 112.2kbits/s speed=1.54x    
    video:91kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 3.161261%
    Input file #0 (/tmp/photo-SNRUR7ZS13.jpg):
     Input stream #0:0 (video): 176 packets read (16459168 bytes); 176 frames decoded;
     Total: 176 packets (16459168 bytes) demuxed
    Output file #0 (/tmp/video-TMB6RNO0EE.mp4):
     Output stream #0:0 (video): 175 frames encoded; 175 packets muxed (93507 bytes);
     Total: 175 packets (93507 bytes) muxed
    [libx264 @ 0x51c2340] frame I:1     Avg QP:14.33  size: 73084
    [libx264 @ 0x51c2340] frame P:44    Avg QP:14.09  size:   302
    [libx264 @ 0x51c2340] frame B:130   Avg QP:23.31  size:    50
    [libx264 @ 0x51c2340] consecutive B-frames:  0.6%  1.1%  0.0% 98.3%
    [libx264 @ 0x51c2340] mb I  I16..4:  3.3% 84.5% 12.1%
    [libx264 @ 0x51c2340] mb P  I16..4:  0.0%  0.0%  0.0%  P16..4:  3.2%  0.1%  0.0%  0.0%  0.0%    skip:96.7%
    [libx264 @ 0x51c2340] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  0.4%  0.0%  0.0%  direct: 0.0%  skip:99.6%  L0:31.2% L1:68.8% BI: 0.0%
    [libx264 @ 0x51c2340] 8x8 transform intra:84.5% inter:98.8%
    [libx264 @ 0x51c2340] coded y,uvDC,uvAC intra: 95.1% 63.9% 51.6% inter: 0.1% 0.6% 0.0%
    [libx264 @ 0x51c2340] i16 v,h,dc,p: 26% 21%  4% 49%
    [libx264 @ 0x51c2340] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 27% 21%  3%  5%  6%  6%  4%  9%
    [libx264 @ 0x51c2340] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 36% 10%  4%  7%  5%  6%  2%  6%
    [libx264 @ 0x51c2340] i8c dc,h,v,p: 51% 29% 16%  4%
    [libx264 @ 0x51c2340] Weighted P-Frames: Y:0.0% UV:0.0%
    [libx264 @ 0x51c2340] ref P L0: 96.5%  0.0%  3.3%  0.2%
    [libx264 @ 0x51c2340] ref B L0: 42.4% 57.6%
    [libx264 @ 0x51c2340] ref B L1: 97.0%  3.0%
    [libx264 @ 0x51c2340] kb/s:106.08

    Log from a short video :

    ffmpeg -framerate 25 -y -loop 1 -i /tmp/photo-2HD2Z3UN3W.jpg -t 15.00 -filter_complex "[0:v]crop=h=ih:w='if(gt(a,16/9),ih*16/9,iw)':y=0:x='if(gt(a,16/9),(ow-iw)/2,0)'[tmp];[tmp]scale=-1:4000,crop=w=iw:h='min(iw*9/16,ih)':x=0:y='0.17*ih-((t/15.00)*min(0.17*ih,(ih-oh)/6))',trim=duration=15.00[tmp1];[tmp1]zoompan=z='if(lte(pzoom,1.0),1.15,max(1.0,pzoom-0.0005))':x='iw/2-(iw/zoom/2)':y='ih/2-(ih/zoom/2)':d=1,setsar=sar=1:1[animated];[animated]fade=out:st=12.00:d=3.00:c=#000000[animated]" -map "[animated]" -pix_fmt yuv420p -s 1280x720 -y /tmp/video-QB1JCDT021.mp4
    ffmpeg version N-89773-g7fcbebbeaf-static https://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2018 the FFmpeg developers
    built with gcc 6.4.0 (Debian 6.4.0-11) 20171206
    configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc-6 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gray --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-librtmp --enable-libsoxr --enable-libspeex --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzimg
    libavutil 56. 7.100 / 56. 7.100
    libavcodec 58. 9.100 / 58. 9.100
    libavformat 58. 3.100 / 58. 3.100
    libavdevice 58. 0.100 / 58. 0.100
    libavfilter 7. 11.101 / 7. 11.101
    libswscale 5. 0.101 / 5. 0.101
    libswresample 3. 0.101 / 3. 0.101
    libpostproc 55. 0.100 / 55. 0.100
    Input #0, image2, from '/tmp/photo-2HD2Z3UN3W.jpg':
    Duration: 00:00:00.04, start: 0.000000, bitrate: 373617 kb/s
    Stream #0:0: Video: mjpeg, yuvj444p(pc, bt470bg/unknown/unknown), 1936x2592 [SAR 72:72 DAR 121:162], 25 fps, 25 tbr, 25 tbn, 25 tbc
    Stream mapping:
    Stream #0:0 (mjpeg) -> crop
    fade -> Stream #0:0 (libx264)
    Press [q] to stop, [?] for help
    [swscaler @ 0x4d63b40] deprecated pixel format used, make sure you did set range correctly
    [swscaler @ 0x4df7340] deprecated pixel format used, make sure you did set range correctly
    [swscaler @ 0x50e97c0] deprecated pixel format used, make sure you did set range correctly
    [swscaler @ 0x50e97c0] Warning: data is not aligned! This can lead to a speed loss
    [libx264 @ 0x4b17480] using SAR=1/1
    [libx264 @ 0x4b17480] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
    [libx264 @ 0x4b17480] profile High, level 3.1
    [libx264 @ 0x4b17480] 264 - core 155 r61 b00bcaf - H.264/MPEG-4 AVC codec - Copyleft 2003-2017 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=3 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
    Output #0, mp4, to '/tmp/video-QB1JCDT021.mp4':
    Metadata:
    encoder : Lavf58.3.100
    Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 25 fps, 12800 tbn, 25 tbc
    Metadata:
    encoder : Lavc58.9.100 libx264
    Side data:
    cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
    [swscaler @ 0x5bd0380] deprecated pixel format used, make sure you did set range correctly
    debug=1
    cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    [image2 @ 0x4b11140] Opening '/tmp/photo-2HD2Z3UN3W.jpg' for reading
    [AVIOContext @ 0x4b6ecc0] Statistics: 1868086 bytes read, 0 seeks
    [mjpeg @ 0x4b14940] marker=d8 avail_size_in_buf=1868084
    [mjpeg @ 0x4b14940] marker parser used 0 bytes (0 bits)
    [mjpeg @ 0x4b14940] marker=e0 avail_size_in_buf=1868082
    [mjpeg @ 0x4b14940] marker parser used 16 bytes (128 bits)
    [mjpeg @ 0x4b14940] marker=db avail_size_in_buf=1868064
    [mjpeg @ 0x4b14940] index=0
    [mjpeg @ 0x4b14940] qscale[0]: 0
    [mjpeg @ 0x4b14940] marker parser used 67 bytes (536 bits)
    [mjpeg @ 0x4b14940] marker=db avail_size_in_buf=1867995
    [mjpeg @ 0x4b14940] index=1
    [mjpeg @ 0x4b14940] qscale[1]: 1
    [mjpeg @ 0x4b14940] marker parser used 67 bytes (536 bits)
    [mjpeg @ 0x4b14940] marker=c0 avail_size_in_buf=1867926
    [mjpeg @ 0x4b14940] sof0: picture: 1936x2592
    [mjpeg @ 0x4b14940] component 0 1:1 id: 0 quant:0
    [mjpeg @ 0x4b14940] component 1 1:1 id: 1 quant:1
    [mjpeg @ 0x4b14940] component 2 1:1 id: 2 quant:1
    [mjpeg @ 0x4b14940] pix fmt id 11111100
    [mjpeg @ 0x4b14940] marker parser used 17 bytes (136 bits)
    [mjpeg @ 0x4b14940] marker=c4 avail_size_in_buf=1867907
    [mjpeg @ 0x4b14940] class=0 index=0 nb_codes=11
    [mjpeg @ 0x4b14940] marker parser used 30 bytes (240 bits)
    [mjpeg @ 0x4b14940] marker=c4 avail_size_in_buf=1867875
    [mjpeg @ 0x4b14940] class=1 index=0 nb_codes=242
    [mjpeg @ 0x4b14940] marker parser used 82 bytes (656 bits)
    [mjpeg @ 0x4b14940] marker=c4 avail_size_in_buf=1867791
    [mjpeg @ 0x4b14940] class=0 index=1 nb_codes=8
    [mjpeg @ 0x4b14940] marker parser used 27 bytes (216 bits)
    [mjpeg @ 0x4b14940] marker=c4 avail_size_in_buf=1867762
    [mjpeg @ 0x4b14940] class=1 index=1 nb_codes=241
    [mjpeg @ 0x4b14940] marker parser used 51 bytes (408 bits)
    [mjpeg @ 0x4b14940] escaping removed 7149 bytes
    [mjpeg @ 0x4b14940] marker=da avail_size_in_buf=1867709
    [mjpeg @ 0x4b14940] component: 0
    [mjpeg @ 0x4b14940] component: 1
    [mjpeg @ 0x4b14940] component: 2
    [mjpeg @ 0x4b14940] marker parser used 1860559 bytes (14884468 bits)
    [mjpeg @ 0x4b14940] marker=d9 avail_size_in_buf=0
    [mjpeg @ 0x4b14940] decode frame unused 0 bytes
    [swscaler @ 0x5bd42c0] deprecated pixel format used, make sure you did set range correctly
    cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    [image2 @ 0x4b11140] Opening '/tmp/photo-2HD2Z3UN3W.jpg' for reading
    [AVIOContext @ 0x4b6ecc0] Statistics: 1868086 bytes read, 0 seeks
    [mjpeg @ 0x4b14940] marker=d8 avail_size_in_buf=1868084
    [mjpeg @ 0x4b14940] marker parser used 0 bytes (0 bits)
    [mjpeg @ 0x4b14940] marker=e0 avail_size_in_buf=1868082
    [mjpeg @ 0x4b14940] marker parser used 16 bytes (128 bits)
    [mjpeg @ 0x4b14940] marker=db avail_size_in_buf=1868064
    [mjpeg @ 0x4b14940] index=0
    [mjpeg @ 0x4b14940] qscale[0]: 0
    [mjpeg @ 0x4b14940] marker parser used 67 bytes (536 bits)
    [mjpeg @ 0x4b14940] marker=db avail_size_in_buf=1867995
    [mjpeg @ 0x4b14940] index=1
    [mjpeg @ 0x4b14940] qscale[1]: 1
    [mjpeg @ 0x4b14940] marker parser used 67 bytes (536 bits)
    [mjpeg @ 0x4b14940] marker=c0 avail_size_in_buf=1867926
    [mjpeg @ 0x4b14940] sof0: picture: 1936x2592
    [mjpeg @ 0x4b14940] component 0 1:1 id: 0 quant:0
    [mjpeg @ 0x4b14940] component 1 1:1 id: 1 quant:1
    [mjpeg @ 0x4b14940] component 2 1:1 id: 2 quant:1
    [mjpeg @ 0x4b14940] pix fmt id 11111100
    [mjpeg @ 0x4b14940] marker parser used 17 bytes (136 bits)
    [mjpeg @ 0x4b14940] marker=c4 avail_size_in_buf=1867907
    [mjpeg @ 0x4b14940] class=0 index=0 nb_codes=11
    [mjpeg @ 0x4b14940] marker parser used 30 bytes (240 bits)
    [mjpeg @ 0x4b14940] marker=c4 avail_size_in_buf=1867875
    [mjpeg @ 0x4b14940] class=1 index=0 nb_codes=242
    [mjpeg @ 0x4b14940] marker parser used 82 bytes (656 bits)
    [mjpeg @ 0x4b14940] marker=c4 avail_size_in_buf=1867791
    [mjpeg @ 0x4b14940] class=0 index=1 nb_codes=8
    [mjpeg @ 0x4b14940] marker parser used 27 bytes (216 bits)
    [mjpeg @ 0x4b14940] marker=c4 avail_size_in_buf=1867762
    [mjpeg @ 0x4b14940] class=1 index=1 nb_codes=241
    [mjpeg @ 0x4b14940] marker parser used 51 bytes (408 bits)
    [mjpeg @ 0x4b14940] escaping removed 7149 bytes
    [mjpeg @ 0x4b14940] marker=da avail_size_in_buf=1867709
    [mjpeg @ 0x4b14940] component: 0
    [mjpeg @ 0x4b14940] component: 1
    [mjpeg @ 0x4b14940] component: 2
    [mjpeg @ 0x4b14940] marker parser used 1860559 bytes (14884468 bits)
    [mjpeg @ 0x4b14940] marker=d9 avail_size_in_buf=0
    [mjpeg @ 0x4b14940] decode frame unused 0 bytes
    [swscaler @ 0x5bd8200] deprecated pixel format used, make sure you did set range correctly
    cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    ...
    ...
    ...

    As requested, here is a link to the full log. In this log - ffmpeg renders only 323 out of 375 frames.

    The Opening '/tmp/photo-2HD2Z3UN3W.jpg' segment repeats many many times until it finally renders out a short video. Does anyone have insight into why it keeps opening the image file ? This must have something to do with the underlying issue.

  • How to keep transparency when scale webm file with ffmpeg

    5 octobre 2022, par Sonia Kidman

    I'm using ffmpeg to scale my WEBM file, by using below command : 
ffmpeg -i in.webm -c:v libvpx -vf scale=100:100 out.webm
The output has correct resolution as I expected but the problem is transparency become black background.

    



    Could someone give me a solution for this.

    



    Thank you so much.

    



    Below is the log of the operation :

    



    ffmpeg version 3.4 Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 7.2.0 (GCC)
  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-cuda --enable-cuvid --enable-d3d11va --enable-nvenc --enable-dxva2 --enable-avisynth --enable-libmfx
  libavutil      55. 78.100 / 55. 78.100
  libavcodec     57.107.100 / 57.107.100
  libavformat    57. 83.100 / 57. 83.100
  libavdevice    57. 10.100 / 57. 10.100
  libavfilter     6.107.100 /  6.107.100
  libswscale      4.  8.100 /  4.  8.100
  libswresample   2.  9.100 /  2.  9.100
  libpostproc    54.  7.100 / 54.  7.100
Splitting the commandline.
Reading option '-v' ... matched as option 'v' (set logging level) with argument '56'.
Reading option '-i' ... matched as input url with argument 'in.webm'.
Reading option '-c:v' ... matched as option 'c' (codec name) with argument 'libvpx'.
Reading option '-vf' ... matched as option 'vf' (set video filters) with argument 'scale=320:240'.
Reading option 'out.webm' ... matched as output url.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option v (set logging level) with argument 56.
Successfully parsed a group of options.
Parsing a group of options: input url in.webm.
Successfully parsed a group of options.
Opening an input file: in.webm.
[NULL @ 000002387e6322a0] Opening 'in.webm' for reading
[file @ 000002387e632ea0] Setting default whitelist 'file,crypto'
Probing matroska,webm score:100 size:2048
Probing mp3 score:1 size:2048
[matroska,webm @ 000002387e6322a0] Format matroska,webm probed with size=2048 and score=100
st:0 removing common factor 1000000 from timebase
[matroska,webm @ 000002387e6322a0] Before avformat_find_stream_info() pos: 634 bytes read:32768 seeks:0 nb_streams:1
[matroska,webm @ 000002387e6322a0] All info found
[matroska,webm @ 000002387e6322a0] stream 0: start_time: 0.000 duration: -9223372036854776.000
[matroska,webm @ 000002387e6322a0] format: start_time: 0.000 duration: 0.400 bitrate=1432 kb/s
[matroska,webm @ 000002387e6322a0] After avformat_find_stream_info() pos: 34843 bytes read:65536 seeks:0 frames:1
Input #0, matroska,webm, from 'in.webm':
  Metadata:
    ENCODER         : Lavf57.83.100
  Duration: 00:00:00.40, start: 0.000000, bitrate: 1432 kb/s
    Stream #0:0, 1, 1/1000: Video: vp8, 1 reference frame, yuv420p(progressive), 640x480, 0/1, SAR 1:1 DAR 4:3, 10 fps, 10 tbr, 1k tbn, 1k tbc (default)
    Metadata:
      alpha_mode      : 1
      ENCODER         : Lavc57.107.100 libvpx
      DURATION        : 00:00:00.400000000
Successfully opened the file.
Parsing a group of options: output url out.webm.
Applying option c:v (codec name) with argument libvpx.
Applying option vf (set video filters) with argument scale=320:240.
Successfully parsed a group of options.
Opening an output file: out.webm.
[file @ 000002387e658b40] Setting default whitelist 'file,crypto'
Successfully opened the file.
detected 4 logical cores
Stream mapping:
  Stream #0:0 -> #0:0 (vp8 (native) -> vp8 (libvpx))
Press [q] to stop, [?] for help
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    Last message repeated 4 times
[Parsed_scale_0 @ 000002387e718a60] Setting 'w' to value '320'
[Parsed_scale_0 @ 000002387e718a60] Setting 'h' to value '240'
[Parsed_scale_0 @ 000002387e718a60] Setting 'flags' to value 'bicubic'
[Parsed_scale_0 @ 000002387e718a60] w:320 h:240 flags:'bicubic' interl:0
[graph 0 input from stream 0:0 @ 000002387e743b00] Setting 'video_size' to value '640x480'
[graph 0 input from stream 0:0 @ 000002387e743b00] Setting 'pix_fmt' to value '0'
[graph 0 input from stream 0:0 @ 000002387e743b00] Setting 'time_base' to value '1/1000'
[graph 0 input from stream 0:0 @ 000002387e743b00] Setting 'pixel_aspect' to value '1/1'
[graph 0 input from stream 0:0 @ 000002387e743b00] Setting 'sws_param' to value 'flags=2'
[graph 0 input from stream 0:0 @ 000002387e743b00] Setting 'frame_rate' to value '10/1'
[graph 0 input from stream 0:0 @ 000002387e743b00] w:640 h:480 pixfmt:yuv420p tb:1/1000 fr:10/1 sar:1/1 sws_param:flags=2
[format @ 000002387e7fe1e0] compat: called with args=[yuv420p|yuva420p]
[format @ 000002387e7fe1e0] Setting 'pix_fmts' to value 'yuv420p|yuva420p'
[AVFilterGraph @ 000002387e634e60] query_formats: 4 queried, 3 merged, 0 already done, 0 delayed
[Parsed_scale_0 @ 000002387e718a60] w:640 h:480 fmt:yuv420p sar:1/1 -> w:320 h:240 fmt:yuv420p sar:1/1 flags:0x4
[libvpx @ 000002387e657fe0] v1.6.1
[libvpx @ 000002387e657fe0] --prefix=/Users/kyle/software/libvpx/win64/libvpx-1.6.1-win64 --target=x86_64-win64-gcc
[libvpx @ 000002387e657fe0] vpx_codec_enc_cfg
[libvpx @ 000002387e657fe0] generic settings
  g_usage:                      0
  g_threads:                    0
  g_profile:                    0
  g_w:                          320
  g_h:                          240
  g_bit_depth:                  8
  g_input_bit_depth:            8
  g_timebase:                   {1/30}
  g_error_resilient:            0
  g_pass:                       0
  g_lag_in_frames:              0
[libvpx @ 000002387e657fe0] rate control settings
  rc_dropframe_thresh:          0
  rc_resize_allowed:            0
  rc_resize_up_thresh:          60
  rc_resize_down_thresh:        30
  rc_end_usage:                 0
  rc_twopass_stats_in:          0000000000000000(0)
  rc_target_bitrate:            256
[libvpx @ 000002387e657fe0] quantizer settings
  rc_min_quantizer:             4
  rc_max_quantizer:             63
[libvpx @ 000002387e657fe0] bitrate tolerance
  rc_undershoot_pct:            100
  rc_overshoot_pct:             100
[libvpx @ 000002387e657fe0] decoder buffer model
  rc_buf_sz:                    6000
  rc_buf_initial_sz:            4000
  rc_buf_optimal_sz:            5000
[libvpx @ 000002387e657fe0] 2 pass rate control settings
  rc_2pass_vbr_bias_pct:        50
  rc_2pass_vbr_minsection_pct:  0
  rc_2pass_vbr_maxsection_pct:  400
[libvpx @ 000002387e657fe0] keyframing settings
  kf_mode:                      1
  kf_min_dist:                  0
  kf_max_dist:                  128
[libvpx @ 000002387e657fe0] 
[libvpx @ 000002387e657fe0] vpx_codec_enc_cfg
[libvpx @ 000002387e657fe0] generic settings
  g_usage:                      0
  g_threads:                    0
  g_profile:                    0
  g_w:                          320
  g_h:                          240
  g_bit_depth:                  8
  g_input_bit_depth:            8
  g_timebase:                   {1/10}
  g_error_resilient:            0
  g_pass:                       0
  g_lag_in_frames:              25
[libvpx @ 000002387e657fe0] rate control settings
  rc_dropframe_thresh:          0
  rc_resize_allowed:            0
  rc_resize_up_thresh:          60
  rc_resize_down_thresh:        30
  rc_end_usage:                 0
  rc_twopass_stats_in:          0000000000000000(0)
  rc_target_bitrate:            200
[libvpx @ 000002387e657fe0] quantizer settings
  rc_min_quantizer:             4
  rc_max_quantizer:             63
[libvpx @ 000002387e657fe0] bitrate tolerance
  rc_undershoot_pct:            100
  rc_overshoot_pct:             100
[libvpx @ 000002387e657fe0] decoder buffer model
  rc_buf_sz:                    6000
  rc_buf_initial_sz:            4000
  rc_buf_optimal_sz:            5000
[libvpx @ 000002387e657fe0] 2 pass rate control settings
  rc_2pass_vbr_bias_pct:        50
  rc_2pass_vbr_minsection_pct:  0
  rc_2pass_vbr_maxsection_pct:  400
[libvpx @ 000002387e657fe0] keyframing settings
  kf_mode:                      1
  kf_min_dist:                  0
  kf_max_dist:                  128
[libvpx @ 000002387e657fe0] 
[libvpx @ 000002387e657fe0] vpx_codec_control
[libvpx @ 000002387e657fe0]   VP8E_SET_CPUUSED:             1
[libvpx @ 000002387e657fe0]   VP8E_SET_ARNR_MAXFRAMES:      0
[libvpx @ 000002387e657fe0]   VP8E_SET_ARNR_STRENGTH:       3
[libvpx @ 000002387e657fe0]   VP8E_SET_ARNR_TYPE:           3
[libvpx @ 000002387e657fe0]   VP8E_SET_NOISE_SENSITIVITY:   0
[libvpx @ 000002387e657fe0]   VP8E_SET_TOKEN_PARTITIONS:    0
[libvpx @ 000002387e657fe0]   VP8E_SET_STATIC_THRESHOLD:    0
[libvpx @ 000002387e657fe0] Using deadline: 1000000
Output #0, webm, to 'out.webm':
  Metadata:
    encoder         : Lavf57.83.100
    Stream #0:0, 0, 1/1000: Video: vp8 (libvpx), 1 reference frame, yuv420p, 320x240 [SAR 1:1 DAR 4:3], 0/1, q=-1--1, 200 kb/s, 10 fps, 1k tbn, 10 tbc (default)
    Metadata:
      alpha_mode      : 1
      DURATION        : 00:00:00.400000000
      encoder         : Lavc57.107.100 libvpx
    Side data:
      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
Clipping frame in rate conversion by 0.000008
[webm @ 000002387e656880] get_metadata_duration returned: 400000
[webm @ 000002387e656880] Write early duration from metadata = 400
[webm @ 000002387e656880] Writing block at offset 3, size 11223, pts 0, dts 0, duration 100, keyframe 1
[webm @ 000002387e656880] Writing block at offset 11233, size 1288, pts 100, dts 100, duration 100, keyframe 0
[webm @ 000002387e656880] Writing block at offset 12528, size 1504, pts 200, dts 200, duration 100, keyframe 0
[webm @ 000002387e656880] Writing block at offset 14039, size 2481, pts 300, dts 300, duration 100, keyframe 0
[out_0_0 @ 000002387e743d60] EOF on sink link out_0_0:default.
No more output streams to write to, finishing.
[webm @ 000002387e656880] end duration = 400
[webm @ 000002387e656880] stream 0 end duration = 400
frame=    4 fps=0.0 q=0.0 Lsize=      17kB time=00:00:00.30 bitrate= 457.8kbits/s speed=4.45x    
video:16kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 4.413191%
Input file #0 (in.webm):
  Input stream #0:0 (video): 4 packets read (34992 bytes); 4 frames decoded; 
  Total: 4 packets (34992 bytes) demuxed
Output file #0 (out.webm):
  Output stream #0:0 (video): 4 frames encoded; 4 packets muxed (16496 bytes); 
  Total: 4 packets (16496 bytes) muxed
4 frames successfully decoded, 0 decoding errors
[AVIOContext @ 000002387e698c20] Statistics: 14 seeks, 10 writeouts
[AVIOContext @ 000002387cc773e0] Statistics: 71649 bytes read, 0 seeks