duplicating a stream after encoding
Posted: 13 Apr 2018 16:53
Hi,
I would like to provide 2 live streams with 2 different resolutions (720p and 480p) from 1 single input (with resolution = 1080p).
I wonder if it's possible to duplicate the input stream after having it encoded.
Something like that:
The goal is to achieve the following pipeline:
input(1080p) -> downscaling to 720p -> h264 encoding -> downscaling to 480p
One of the streams would be output directly after h264 encoding, while the second stream would be output after being downscaled further to 480p.
Do you know if it's possible? And, is it a good idea?
Best regards,
Cyrille
I would like to provide 2 live streams with 2 different resolutions (720p and 480p) from 1 single input (with resolution = 1080p).
I wonder if it's possible to duplicate the input stream after having it encoded.
Something like that:
Code: Select all
'#transcode{vfilter=canvas{width=1080,height=720},vcodec=h264,venc=x264{profile=baseline,level=3,preset=ultrafast,tune=zerolatency,keyint=50},acodec=aac,ab=128,channels=2,samplerate=44100}:#duplicate{dst="rtp{sdp=rtsp://:9090/kodi720.sdp}",dst="#transcode{vfilter=canvas{width=852,height=480}}:rtp{sdp=rtsp://:9090/kodi480.sdp}"'
input(1080p) -> downscaling to 720p -> h264 encoding -> downscaling to 480p
One of the streams would be output directly after h264 encoding, while the second stream would be output after being downscaled further to 480p.
Do you know if it's possible? And, is it a good idea?
Best regards,
Cyrille