user11789: 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 :)

user1871: 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.

11789: <p>Which params I can use to obtain a transcode all-i based? No B and P frames?</p>

<p>I know that this is not efficient for compression purposes but this is not my case now.</p>

<p>I guess i have to fiddle a bit with <strong>-x264-params</strong> or <strong>-x265-params</strong> but I don't know the switches to do it :)</p>
 1871: <p>For H264</p>

<pre><code>ffmpeg -i input -c:v libx264 -intra output
</code></pre>

<p>For H265, seems no alias or preset has been set yet</p>

<pre><code>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
</code></pre>

<p>H265 code <s>stolen</s>borrowed from <a href="https://superuser.com/q/935930/114058">here</a>.</p>
