[FFmpeg-devel] [PATCH] allows for independent codec setting per output video stream

Nicolas George george at nsup.org
Mon Apr 26 19:43:38 EEST 2021


Alexander Solonsky (12021-04-26):
> maybe let's get on the same page what we both think is working and what not.
> I used this simple script:
> ffmpeg -i $1 -map 0:v:0 -c:v:0 libx264 -x264-params "keyint=24:bframes=1"
> -map 0:v:0 -c:v:1 libx264 -x264-params "keyint=72:bframes=3" $2 -y
> to create 2 streams out of 1 with different gop structure. And ffmpeg as it
> is currently produces both streams with keyint=72 and bframes=3. With my
> patch each stream preserves the x264 params set individually. Which script
> you used, that you could get for the similar scenario two different gop
> sized streams?

You specified -x264-params for all streams, it applies to all streams.
You need to use a stream specifier.

For further questions, please ask on the users mailing-lists.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20210426/fd2925de/attachment.sig>


More information about the ffmpeg-devel mailing list