CCExtractor Development

Generate high quality but small in size videos with FFmpeg

We're using FFmpeg to generate small videos from TV recordings. By small we mean that they have been reduced in size (like thumbnails). The process also overlays subtitles. Anyway, it's "working" but the quality is terrible, possibly because of the number of steps.

So you job is to take our samples and our FFmpeg command and optimize it. Make sure it produces the best possible video within the existing constraints. So this task doesn't require programming, but it does require patience and testing.

For testing you can use any video from here: https://drive.google.com/drive/u/1/folders/0B_61ywKPmI0TUUk5LXJPeG1feFE

Our FFmpeg command looks like this: ffmpeg -i 01-BBC1.EastEnders.ts -deinterlace -filter_complex "[0:v]scale=416:-2:flags=lanczos[resized];[resized]split=2[in1][in2];[in1]fps=12[out1];[in2]fps=1/10[out2]" -map [out1] -codec:v libx264 -x264opts keyint=120:min-keyint=120:no-scenecut -f segment -segment_time 10 -segment_start_number 1 -reset_timestamps 1 -segment_listtype m3u8 videos%06d.mp4 -map [out2] images_%06d.jpg

This issue has been around for some time, so we're giving the "hardtask" status, which means bonus points.

Task tags

  • video
  • hardtask
  • ffmpeg

Students who completed this task

Matej Plavevski

Task type

  • assessment Outreach / Research
  • done_all Quality Assurance
close

2017