Last active
June 6, 2017 01:36
-
-
Save ryanvgates/c880a0cb804619fd9b188e8c69d7d8cd to your computer and use it in GitHub Desktop.
FFMPEG Slideshow
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ffmpeg -framerate 1/5 -pattern_type glob -i '/home/ryan/Documents/Slide Show for Bob/*.jpg' -c:v libx264 -pix_fmt yuv420p -c:a copy -shortest out.mp4 -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" -y |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
file *.jpg > out.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ryan@ryan-ThinkPad-T430:~/Documents/Slide Show for Bob/video$ ffmpeg -loop 1 -pattern_type glob -i '/home/ryan/Documents/Slide Show for Bob/*.jpg' -c:v libx264 -pix_fmt yuv420p -c:a copy -shortest out.mp4 | |
ffmpeg version 2.8.11-0ubuntu0.16.04.1 Copyright (c) 2000-2017 the FFmpeg developers | |
built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 20160609 | |
configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv | |
WARNING: library configuration mismatch | |
avcodec configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv --enable-version3 --disable-doc --disable-programs --disable-avdevice --disable-avfilter --disable-avformat --disable-avresample --disable-postproc --disable-swscale --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libvo_aacenc --enable-libvo_amrwbenc | |
libavutil 54. 31.100 / 54. 31.100 | |
libavcodec 56. 60.100 / 56. 60.100 | |
libavformat 56. 40.101 / 56. 40.101 | |
libavdevice 56. 4.100 / 56. 4.100 | |
libavfilter 5. 40.101 / 5. 40.101 | |
libavresample 2. 1. 0 / 2. 1. 0 | |
libswscale 3. 1.101 / 3. 1.101 | |
libswresample 1. 2.101 / 1. 2.101 | |
libpostproc 53. 3.100 / 53. 3.100 | |
[mjpeg @ 0x13398a0] Changeing bps to 8 | |
Input #0, image2, from '/home/ryan/Documents/Slide Show for Bob/*.jpg': | |
Duration: 00:00:00.68, start: 0.000000, bitrate: N/A | |
Stream #0:0: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 932x445 [SAR 72:72 DAR 932:445], 25 fps, 25 tbr, 25 tbn, 25 tbc | |
File 'out.mp4' already exists. Overwrite ? [y/N] y | |
[swscaler @ 0x1367300] deprecated pixel format used, make sure you did set range correctly | |
[libx264 @ 0x13ddae0] height not divisible by 2 (932x445) | |
Output #0, mp4, to 'out.mp4': | |
Stream #0:0: Video: h264, none, q=2-31, 128 kb/s, SAR 1:1 DAR 0:0, 25 fps | |
Metadata: | |
encoder : Lavc56.60.100 libx264 | |
Stream mapping: | |
Stream #0:0 -> #0:0 (mjpeg (native) -> h264 (libx264)) | |
Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rename 's/\.JPG$/\.jpg/' *.JPG |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment