Skip to content
This repository has been archived by the owner on Aug 21, 2020. It is now read-only.

Latest commit

 

History

History
20 lines (14 loc) · 777 Bytes

images.md

File metadata and controls

20 lines (14 loc) · 777 Bytes

Images

Keyframes are taking from videos of YouTube playlists associated with Syrian conflict documentation. Accounts are unverified and will also include a few random playlists

Generating your own keyframes

Before extracting features you'll need a directory of images to process. You can use JPG or PNG images. If you have video you'll need to output keyframes.

  • FFMPEG convert video to still frames at 2 FPS: ffmpeg -i my_video.mp4 -r 1/2 still_frames/%05d.jpg
  • Convert a batch of videos:
for f in videos/*.mp4; do
    fn=$(basename "$f" | cut -d. -f1);
    echo "Procedssing: $fn";
    ffmpeg -i videos/$f -r 1/5 "still_frames/$fn"_%05d.jpg;
done