-1

My goal is to import a video and export individual files for each cut. I've read through a number of threads on the site, and this question was most helpful in coming to a solution.

ffmpeg -y -i testing.mp4 -vf yadif \
   -c:v libx264 -profile:v high -preset:v fast \
   -x264opts min-keyint=15:keyint=1000:scenecut=40 -b:v 2000k \
   -an \
   -f segment -segment_format mp4 -segment_time 1 -segment_format_options movflags=faststart \
   output%05d.mp4

Unfortunately, the result isn't working for me. The first outputted segment plays, but the following cuts appear to be unplayable .mp4s (in preview, quicktime player, premiere, VLC—all black or blank screens). I'd love to ask for all of your expertise!

Screenshot of the resulting .mp4s

And logged output.

As I mentioned in the title, I'd love to have a v2 that creates gif versions of each clip. As I understand, scenecut is an x264 option that might not work for .gifs. It's a secondary question, but will I be able to concatenate a .gif conversion to the end of this scenecut process?

Thanks!

  • What do you mean by, "each subsequent .mp4s appear to be empty"? Show the complete log from your command. You can add -t 10 for a short test duration so you don't have to encode the whole thing. – llogan Sep 25 '18 at 18:00
  • @LordNeckbeard thanks for your questions. I've made some edits to the post! – Kyle Billings Sep 25 '18 at 23:26
  • Still not sure what you mean by "empty". Is your player just not playing them? Which player? – llogan Sep 25 '18 at 23:33
  • @LordNeckbeard apologies—added a bit more clarification. – Kyle Billings Sep 29 '18 at 17:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.