Skip to content

Instantly share code, notes, and snippets.

@YellowOnion
Created August 27, 2019 14:11
Show Gist options
  • Save YellowOnion/f214289c42a4b9e130136d167074c2d3 to your computer and use it in GitHub Desktop.
Save YellowOnion/f214289c42a4b9e130136d167074c2d3 to your computer and use it in GitHub Desktop.
>ffmpeg -i RedCircle.mkv -frames 1 -vf scale=in_w:in_h:flags=print_info SnapShot.png
ffmpeg version 4.1.4 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 9.1.0 (Rev3, Built by MSYS2 project)
configuration: --prefix=/mingw64 --target-os=mingw32 --arch=x86_64 --disable-debug --disable-static --enable-dxva2 --enable-d3d11va --enable-fontconfig --enable-gnutls --enable-gpl --enable-libaom --enable-libass --enable-libbluray --enable-libcaca --enable-libcelt --enable-libfreetype --enable-libgsm --enable-libmfx --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libspeex --enable-libsrt --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libx265 --enable-libxvid --enable-libvpx --enable-libwebp --enable-openal --enable-libwavpack --enable-pic --enable-postproc --enable-runtime-cpudetect --enable-shared --enable-static --enable-swresample --enable-version3 --enable-zlib --disable-doc
libavutil 56. 22.100 / 56. 22.100
libavcodec 58. 35.100 / 58. 35.100
libavformat 58. 20.100 / 58. 20.100
libavdevice 58. 5.100 / 58. 5.100
libavfilter 7. 40.101 / 7. 40.101
libswscale 5. 3.100 / 5. 3.100
libswresample 3. 3.100 / 3. 3.100
libpostproc 55. 3.100 / 55. 3.100
Input #0, matroska,webm, from 'RedCircle.mkv':
Metadata:
ENCODER : Lavf58.20.100
Duration: 00:00:04.00, start: 0.000000, bitrate: 29 kb/s
Stream #0:0: Video: h264 (High), yuv420p(progressive), 1280x720 [SAR 1:1 DAR 16:9], 24 fps, 24 tbr, 1k tbn, 48 tbc (default)
Metadata:
ENCODER : Lavc58.35.100 libx264
DURATION : 00:00:04.000000000
File 'SnapShot.png' already exists. Overwrite ? [y/N] y
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> png (native))
Press [q] to stop, [?] for help
[swscaler @ 00000197d018b740] bicubic scaler, from yuv420p to rgb24 using MMXEXT
[swscaler @ 00000197d018b740] using unscaled yuv420p -> rgb24 special converter
Output #0, image2, to 'SnapShot.png':
Metadata:
encoder : Lavf58.20.100
Stream #0:0: Video: png, rgb24, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 24 fps, 24 tbn, 24 tbc (default)
Metadata:
DURATION : 00:00:04.000000000
encoder : Lavc58.35.100 png
frame= 1 fps=0.0 q=-0.0 Lsize=N/A time=00:00:00.04 bitrate=N/A speed=1.15x
video:39kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
C:\Users\danie>ffmpeg -i RedCircle.mkv -frames 1 -vf scale=in_w:in_h:flags=print_info -y SnapShot.png
ffmpeg version 4.1.4 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 9.1.0 (Rev3, Built by MSYS2 project)
configuration: --prefix=/mingw64 --target-os=mingw32 --arch=x86_64 --disable-debug --disable-static --enable-dxva2 --enable-d3d11va --enable-fontconfig --enable-gnutls --enable-gpl --enable-libaom --enable-libass --enable-libbluray --enable-libcaca --enable-libcelt --enable-libfreetype --enable-libgsm --enable-libmfx --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libspeex --enable-libsrt --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libx265 --enable-libxvid --enable-libvpx --enable-libwebp --enable-openal --enable-libwavpack --enable-pic --enable-postproc --enable-runtime-cpudetect --enable-shared --enable-static --enable-swresample --enable-version3 --enable-zlib --disable-doc
libavutil 56. 22.100 / 56. 22.100
libavcodec 58. 35.100 / 58. 35.100
libavformat 58. 20.100 / 58. 20.100
libavdevice 58. 5.100 / 58. 5.100
libavfilter 7. 40.101 / 7. 40.101
libswscale 5. 3.100 / 5. 3.100
libswresample 3. 3.100 / 3. 3.100
libpostproc 55. 3.100 / 55. 3.100
Input #0, matroska,webm, from 'RedCircle.mkv':
Metadata:
ENCODER : Lavf58.20.100
Duration: 00:00:04.00, start: 0.000000, bitrate: 29 kb/s
Stream #0:0: Video: h264 (High), yuv420p(progressive), 1280x720 [SAR 1:1 DAR 16:9], 24 fps, 24 tbr, 1k tbn, 48 tbc (default)
Metadata:
ENCODER : Lavc58.35.100 libx264
DURATION : 00:00:04.000000000
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> png (native))
Press [q] to stop, [?] for help
[swscaler @ 000001222a7f5040] bicubic scaler, from yuv420p to rgb24 using MMXEXT
[swscaler @ 000001222a7f5040] using unscaled yuv420p -> rgb24 special converter
Output #0, image2, to 'SnapShot.png':
Metadata:
encoder : Lavf58.20.100
Stream #0:0: Video: png, rgb24, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 24 fps, 24 tbn, 24 tbc (default)
Metadata:
DURATION : 00:00:04.000000000
encoder : Lavc58.35.100 png
frame= 1 fps=0.0 q=-0.0 Lsize=N/A time=00:00:00.04 bitrate=N/A speed=0.955x
video:39kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
@YellowOnion
Copy link
Author

SnapShot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment