Is it possible to Transcode with an FFMPEG -encoder that is not libx264? I have a few scenarios where I want to use NVEC hardware accelerated encoding . Also transcoding streams to AV1 is desirable too for the network resiliency and lower bandwidth. Currently when I try to use another encoder than libx264 I get an error that says I must use Libx264. Is there a way around this?
In SRS Is it possible to Transcode with an FFMPEG -encoder that is not libx264?
409 views Asked by Walker Keene At
1
SRS wrap the FFmpeg CLI and has a set of limitation about the params, for example, you could only use h.264 not h.265/av1 for video codec, because it simplify the usage of FFmpeg.
For example, the ingester/transcode config is bellow:
It equals to the FFmpeg CLI as demonstrated bellow:
You could find out the CLI in SRS log:
Rather than use the SRS ingest/transcode feature, you could run your FFmpeg CLI with any params you want, please read FFmpeg. It works like this:
Once you start a ffmpeg process, you could use libx265 or av1, to pull stream from SRS and transcode it, then publish it to SRS again.