HLS sink supporting multiple bitrates

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

HLS sink supporting multiple bitrates

Andrew Silby-2

Hi Everyone,

 

Firstly, thanks for such a great system as Gstreamer – it’s amazing.

 

I’m trying to use Gstreamer to create multiple bitrates which are then created in the HLS using #EXT-X-STREAM-INF:BANDWIDTH=1280000 etc.

 

My test pipeline currently looks like:

 

gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-h264,width=320,height=240,framerate=5/1  ! avdec_h264 ! tee name=t ! queue ! x264enc bitrate=100 ! h264parse ! mux. t. ! queue ! x264enc bitrate=200 ! h264parse ! mux. t. ! queue ! x264enc bitrate=300 ! h264parse ! mux.  mpegtsmux name=mux ! hlssink

 

But the playlist doesn’t list the bandwidth at all. I assume it’s just not implemented or am I doing something wrong? If it’s not implemented, it would be a nice to have at some point.

 

Cheers,

Andy


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: HLS sink supporting multiple bitrates

Baby Octopus
Administrator
Yes, its unsupported as of now. Please file a bugzilla feature request

There is no way for the muxer to know the audio+video. It should not be difficult to implement that, or may be handle the manifest file within your application(outside of hlssink element)

~BO
Reply | Threaded
Open this post in threaded view
|

Re: HLS sink supporting multiple bitrates

Hemappa

Hi All,


I'm new to this mailing list as well as gstreamer, I have quick question on HLS streams playback, if we use the multiple bit rates on gst-launch, what will be the default bitrate selecting for the playback ?  is it selecting higher bandwidth or lower bandwidth bitrate for playback ?



gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-h264,width=320,height=240,framerate=5/1  ! avdec_h264 ! tee name=t ! queue ! x264enc bitrate=100 ! h264parse ! mux. t. ! queue ! x264enc bitrate=200 ! h264parse ! mux. t. ! queue ! x264enc bitrate=300 ! h264parse ! mux.  mpegtsmux name=mux ! hlssink


I have one more question on using the trick play request,


Could you please let me know how to use the  play rate( 6x, 12x , 30x and  64x)  for fast forward the hls playback using gst-luanch-1.0.


Thanks in advance.


Regards

Hemappa B



From: gstreamer-devel <[hidden email]> on behalf of Baby Octopus <[hidden email]>
Sent: Friday, January 13, 2017 3:46:41 PM
To: [hidden email]
Subject: Re: HLS sink supporting multiple bitrates
 
Yes, its unsupported as of now. Please file a bugzilla feature request

There is no way for the muxer to know the audio+video. It should not be
difficult to implement that, or may be handle the manifest file within your
application(outside of hlssink element)

~BO



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/HLS-sink-supporting-multiple-bitrates-tp4681442p4681443.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Regards,
Hemappa B
Reply | Threaded
Open this post in threaded view
|

Re: HLS sink supporting multiple bitrates

Baby Octopus
Administrator


On Fri, Jan 13, 2017 at 5:09 PM, Hemappa Basappa [via GStreamer-devel] <[hidden email]> wrote:

Hi All,


I'm new to this mailing list as well as gstreamer, I have quick question on HLS streams playback, if we use the multiple bit rates on gst-launch, what will be the default bitrate selecting for the playback ?  is it selecting higher bandwidth or lower bandwidth bitrate for playback ?


It entirely depends on player implementation. HLS standard does not dictate anything on starting bitrate. However, most playesr start with lowest bitrate, and then switch based on bandwidth availability 


gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-h264,width=320,height=240,framerate=5/1  ! avdec_h264 ! tee name=t ! queue ! x264enc bitrate=100 ! h264parse ! mux. t. ! queue ! x264enc bitrate=200 ! h264parse ! mux. t. ! queue ! x264enc bitrate=300 ! h264parse ! mux.  mpegtsmux name=mux ! hlssink


You are muxing 3 different Video elementary stream into a single muxer. This will have one TS stream with 3 video's

For multibitrate, you would need something like  

video1 ! mux1 ! hlssink1 \
video2 ! mux2 ! hlssink2 \
video3 ! mux3 ! hlssink3 

I have one more question on using the trick play request,


Could you please let me know how to use the  play rate( 6x, 12x , 30x and  64x)  for fast forward the hls playback using gst-luanch-1.0.


Thanks in advance.


Regards

Hemappa B



From: gstreamer-devel <[hidden email]> on behalf of Baby Octopus <[hidden email]>
Sent: Friday, January 13, 2017 3:46:41 PM
To: [hidden email]
Subject: Re: HLS sink supporting multiple bitrates
 
Yes, its unsupported as of now. Please file a bugzilla feature request

There is no way for the muxer to know the audio+video. It should not be
difficult to implement that, or may be handle the manifest file within your
application(outside of hlssink element)

~BO



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/HLS-sink-supporting-multiple-bitrates-tp4681442p4681443.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



If you reply to this email, your message will be added to the discussion below:
http://gstreamer-devel.966125.n4.nabble.com/HLS-sink-supporting-multiple-bitrates-tp4681442p4681445.html
To unsubscribe from HLS sink supporting multiple bitrates, click here.
NAML