Which params I can use to obtain a transcode all-i based? No B and P frames?

I know that this is not efficient for compression purposes but this is not my case now.

I guess i have to fiddle a bit with -x264-params or -x265-params but I don't know the switches to do it :)


For H264

ffmpeg -i input -c:v libx264 -intra output

For H265, seems no alias or preset has been set yet

ffmpeg -i input -c:v libx265 -x265-params frame-threads=4:keyint=1:ref=1:no-open-gop=1:weightp=0:weightb=0:cutree=0:rc-lookahead=0:bframes=0:scenecut=0:b-adapt=0:repeat-headers=1 output

H265 code stolenborrowed from here.

  • The commands for h265 can be used for h264 as well including some tuning ? Also, can I use frame-threads=1 instead of 4 ? Thanks :) – user3450548 Nov 22 '15 at 10:01
  • Should be no problem, on both counts. – Gyan Nov 22 '15 at 10:08
  • Thank you :) Also I was wondering if repeat-headers=1 is really necessary. – user3450548 Nov 22 '15 at 11:01

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.