Limit number of transcoded streams based on source video resolution
I want to limit number of published transcoded streams to save server resources. For me it does not makes much sense to upscale live stream of say 480x360 to HD, as this will not give any quality improvement but will have effect on CPU and disk resources usage (live streams are to be recorded). While I solved the recording part with custom stream recorder, it would be more transparent to solve it on transcoder level instead.
onCodecInfoVideo is called when the video codec packet is received. onLiveStreamTranscode will be called when the first packet for the stream is received. If the first packet is the video codec packet then onCodecInfoVideo will be called before onLiveStreamTranscode. If the first packet is some other type of packet then onLiveStreamTranscode will be called first.
The order that packets arrive will be determined by the encoder.