HLS Server not working with apple device

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

HLS Server not working with apple device

David

Hi,

 

I’m using the following pipeline to stream a live camera via HLS.

 

gst-launch-1.0 rtspsrc location="rtsp://10.1.12.216/rtsp_tunnel?h26x=4&line=1&inst=1" ! rtph264depay ! h264parse ! mpegtsmux ! hlssink max-files=5 target-duration=8

 

I have set up IIS on an windows 7 machine as web server for a test bed, and using GStreamer version 1.5.90  win32.

 

I’m able to connect to created playlist and display *.ts files with both android device and windows 10 Edge browser, but for some reason apple devices are not working. Safari shows a video window with a play button but no video. I have tested on both an I-Phone 6 and I-Pad Min 2 both having same results.

 

I’m continuing to research, but looking for direction to explain what I’m missing that will help me to display on apple device.

 

 

Thanks.


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

RE: HLS Server not working with apple device

David

See attachement for output:

gst-launch-1.0  -v -m -t  rtspsrc location="rtsp://10.1.12.216/rtsp_tunnel?h26x=4&line=1&inst=1" ! rtph264depay ! h264parse ! mpegtsmux ! hlssink max-files=5 target-duration=8

 

 

From: David Wells [mailto:[hidden email]]
Sent: Thursday, September 10, 2015 8:32 AM
To: '[hidden email]' <[hidden email]>
Subject: HLS Server not working with apple device

 

Hi,

 

I’m using the following pipeline to stream a live camera via HLS.

 

gst-launch-1.0 rtspsrc location="rtsp://10.1.12.216/rtsp_tunnel?h26x=4&line=1&inst=1" ! rtph264depay ! h264parse ! mpegtsmux ! hlssink max-files=5 target-duration=8

 

I have set up IIS on an windows 7 machine as web server for a test bed, and using GStreamer version 1.5.90  win32.

 

I’m able to connect to created playlist and display *.ts files with both android device and windows 10 Edge browser, but for some reason apple devices are not working. Safari shows a video window with a play button but no video. I have tested on both an I-Phone 6 and I-Pad Min 2 both having same results.

 

I’m continuing to research, but looking for direction to explain what I’m missing that will help me to display on apple device.

 

 

Thanks.


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

gst-Launch.txt (29K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

RE: HLS Server not working with apple device

David
In reply to this post by David

Is there a known issue with gstreamer HLS and safari?

 

From: David Wells [mailto:[hidden email]]
Sent: Thursday, September 10, 2015 11:47 AM
To: '[hidden email]' <[hidden email]>
Subject: RE: HLS Server not working with apple device

 

See attachement for output:

gst-launch-1.0  -v -m -t  rtspsrc location="rtsp://10.1.12.216/rtsp_tunnel?h26x=4&line=1&inst=1" ! rtph264depay ! h264parse ! mpegtsmux ! hlssink max-files=5 target-duration=8

 

 

From: David Wells [mailto:[hidden email]]
Sent: Thursday, September 10, 2015 8:32 AM
To: '[hidden email]' <[hidden email]>
Subject: HLS Server not working with apple device

 

Hi,

 

I’m using the following pipeline to stream a live camera via HLS.

 

gst-launch-1.0 rtspsrc location="rtsp://10.1.12.216/rtsp_tunnel?h26x=4&line=1&inst=1" ! rtph264depay ! h264parse ! mpegtsmux ! hlssink max-files=5 target-duration=8

 

I have set up IIS on an windows 7 machine as web server for a test bed, and using GStreamer version 1.5.90  win32.

 

I’m able to connect to created playlist and display *.ts files with both android device and windows 10 Edge browser, but for some reason apple devices are not working. Safari shows a video window with a play button but no video. I have tested on both an I-Phone 6 and I-Pad Min 2 both having same results.

 

I’m continuing to research, but looking for direction to explain what I’m missing that will help me to display on apple device.

 

 

Thanks.


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

Re: HLS Server not working with apple device

Graham Leggett
On 11 Sep 2015, at 18:07, David Wells <[hidden email]> wrote:

Is there a known issue with gstreamer HLS and safari?


I struggled recently with streaming HLS, I wasn't getting the required packets that indicated metadata like frame rate.

Get hold of mediastreamvalidator from Apple (you need a dev account subscription) and point it at the HLS stream. I recently got some bugs fixed in mediastreamvalidator where it was passing gstreamer streams that Apple devices wouldn't play, it now picks up the problems I had.

Streaming is different to transcoding a single file, as usually the metadata is sent once at the start of the file in the transcoding case, and at regular intervals in the streaming case.

Regards,
Graham
--


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

Re: HLS Server not working with apple device

Olivier Crête-3
Hello,

One problem you may be having is that neither rtph264depay nor
h264parse insert the NAL unit type 9 (AU delimiter) between the AUs in
the H.264 Elementary Stream. This is required to make a valid MPEG-TS
stream, but most decoders will be fined even if it is missing, but it
seems Apple's decoders are more pedantic. In RTP streams, the AUD nal
is entirely useless, as the same information is expressed by the marker
bit, so they are normally not included.

See bug:
https://bugzilla.gnome.org/show_bug.cgi?id=736213

Olivier

On Fri, 2015-09-11 at 23:56 +0200, Graham Leggett wrote:

> On 11 Sep 2015, at 18:07, David Wells <[hidden email]>
> wrote:
>
> > Is there a known issue with gstreamer HLS and safari?
> I struggled recently with streaming HLS, I wasn't getting the
> required packets that indicated metadata like frame rate.
>
> Get hold of mediastreamvalidator from Apple (you need a dev account
> subscription) and point it at the HLS stream. I recently got some
> bugs fixed in mediastreamvalidator where it was passing gstreamer
> streams that Apple devices wouldn't play, it now picks up the
> problems I had.
>
> Streaming is different to transcoding a single file, as usually the
> metadata is sent once at the start of the file in the transcoding
> case, and at regular intervals in the streaming case.
>
> Regards,
> Graham
> --
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
--
Olivier Crête
[hidden email]


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

Re: HLS Server not working with apple device

Olivier Crête-3
In reply to this post by Graham Leggett
Hello,

One problem you may be having is that neither rtph264depay nor
h264parse insert the NAL unit type 9 (AU delimiter) between the AUs in
the H.264 Elementary Stream. This is required to make a valid MPEG-TS
stream, but most decoders will be fined even if it is missing, but it
seems Apple's decoders are more pedantic. In RTP streams, the AUD nal
is entirely useless, as the same information is expressed by the marker
bit, so they are normally not included.

See bug:
https://bugzilla.gnome.org/show_bug.cgi?id=736213

Olivier

On Fri, 2015-09-11 at 23:56 +0200, Graham Leggett wrote:

> On 11 Sep 2015, at 18:07, David Wells <[hidden email]>
> wrote:
>
> > Is there a known issue with gstreamer HLS and safari?
> I struggled recently with streaming HLS, I wasn't getting the
> required packets that indicated metadata like frame rate.
>
> Get hold of mediastreamvalidator from Apple (you need a dev account
> subscription) and point it at the HLS stream. I recently got some
> bugs fixed in mediastreamvalidator where it was passing gstreamer
> streams that Apple devices wouldn't play, it now picks up the
> problems I had.
>
> Streaming is different to transcoding a single file, as usually the
> metadata is sent once at the start of the file in the transcoding
> case, and at regular intervals in the streaming case.
>
> Regards,
> Graham
> --
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
--
Olivier Crête
[hidden email]


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

RE: HLS Server not working with apple device

David
In reply to this post by Graham Leggett

Thank you for the Info Graham.

 

From: gstreamer-devel [mailto:[hidden email]] On Behalf Of Graham Leggett
Sent: Friday, September 11, 2015 4:57 PM
To: Discussion of the development of and with GStreamer <[hidden email]>
Subject: Re: HLS Server not working with apple device

 

On 11 Sep 2015, at 18:07, David Wells <[hidden email]> wrote:

 

Is there a known issue with gstreamer HLS and safari?

 

I struggled recently with streaming HLS, I wasn't getting the required packets that indicated metadata like frame rate.

 

Get hold of mediastreamvalidator from Apple (you need a dev account subscription) and point it at the HLS stream. I recently got some bugs fixed in mediastreamvalidator where it was passing gstreamer streams that Apple devices wouldn't play, it now picks up the problems I had.

 

Streaming is different to transcoding a single file, as usually the metadata is sent once at the start of the file in the transcoding case, and at regular intervals in the streaming case.

 

Regards,

Graham

--

 


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

RE: HLS Server not working with apple device

David
In reply to this post by Olivier Crête-3
Thank you for direction Olivier.

-----Original Message-----
From: gstreamer-devel [mailto:[hidden email]] On Behalf Of Olivier Crête
Sent: Friday, September 11, 2015 7:04 PM
To: Discussion of the development of and with GStreamer <[hidden email]>
Subject: Re: HLS Server not working with apple device

Hello,

One problem you may be having is that neither rtph264depay nor h264parse insert the NAL unit type 9 (AU delimiter) between the AUs in the H.264 Elementary Stream. This is required to make a valid MPEG-TS stream, but most decoders will be fined even if it is missing, but it seems Apple's decoders are more pedantic. In RTP streams, the AUD nal is entirely useless, as the same information is expressed by the marker bit, so they are normally not included.

See bug:
https://bugzilla.gnome.org/show_bug.cgi?id=736213

Olivier

On Fri, 2015-09-11 at 23:56 +0200, Graham Leggett wrote:

> On 11 Sep 2015, at 18:07, David Wells <[hidden email]>
> wrote:
>
> > Is there a known issue with gstreamer HLS and safari?
> I struggled recently with streaming HLS, I wasn't getting the required
> packets that indicated metadata like frame rate.
>
> Get hold of mediastreamvalidator from Apple (you need a dev account
> subscription) and point it at the HLS stream. I recently got some bugs
> fixed in mediastreamvalidator where it was passing gstreamer streams
> that Apple devices wouldn't play, it now picks up the problems I had.
>
> Streaming is different to transcoding a single file, as usually the
> metadata is sent once at the start of the file in the transcoding
> case, and at regular intervals in the streaming case.
>
> Regards,
> Graham
> --
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
--
Olivier Crête
[hidden email]


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

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