duplicating a stream after encoding

About encoding, codec settings, muxers and filter usage
StCyr
Blank Cone
Blank Cone
Posts: 12
Joined: 23 Mar 2018 16:32

duplicating a stream after encoding

Postby StCyr » 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:

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}"'
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

Rémi Denis-Courmont
Developer
Developer
Posts: 15268
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: duplicating a stream after encoding

Postby Rémi Denis-Courmont » 13 Apr 2018 19:59

It is possible but it is a stupid idea, since it will incur a useless extra decoding step before the down-scaling.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

maddhin
New Cone
New Cone
Posts: 3
Joined: 05 Apr 2018 09:37

Re: duplicating a stream after encoding

Postby maddhin » 14 Apr 2018 06:05

It is possible but it is a stupid idea, since it will incur a useless extra decoding step before the down-scaling.
I'm also a total noob trying to get help here, I think it would be more productive if the experienced members give concrete advise on how to do it right instead of bashing (potentially bad) ideas. I personally e.g. have big difficulties understanding how to dublicate a stream and are grateful for every bit and piece of info I can collect to solve my own problem.

Rémi Denis-Courmont
Developer
Developer
Posts: 15268
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: duplicating a stream after encoding

Postby Rémi Denis-Courmont » 14 Apr 2018 08:26

You asked if it was possible, and if it was a good idea. I answered both questions.

But considering your attitude, I will just ignore from now on.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

StCyr
Blank Cone
Blank Cone
Posts: 12
Joined: 23 Mar 2018 16:32

Re: duplicating a stream after encoding

Postby StCyr » 16 Apr 2018 09:21

Hi,

I'm not the person who replied to your answer :-)

Indeed, I had asked 2 questions and you answered both. Thank you.

On the other hand, I'm inline with maddhin when he reports "big difficulties understanding...". Let's try to stay constructive :-)

Best regards,

Cyrille


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 9 guests