hlssink

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

hlssink

Jerry Geis-2
Hi all,

I have my pipeline that works for video:
        gst-launch-1.0 -v -e filesrc location=movie.mov \
                ! qtdemux \
                ! h264parse  \
                ! mpegtsmux  \
                ! hlssink playlist-root=http://192/168.1.8/hlssink \
                  location=hlssink.%05d.ts \
                  playlist-location=hlssink/playlist.m3u8

How do I add audio to this?
Thanks,

Jerry

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

Re: hlssink

Arjen Veenhuizen
Try something like this (assuming your audio track is in aac):

gst-launch-1.0 -v -e mpegtsmux name=m  \
	! queue \
        ! hlssink playlist-root=http://192/168.1.8/hlssink \
          location=hlssink.%05d.ts \
          playlist-location=hlssink/playlist.m3u8 \
	filesrc location=movie.mov \
        ! qtdemux name=d \
        ! h264parse  \
	! queue \
	! m. d. \
	! aacparse \
	! queue \
	! m.
Reply | Threaded
Open this post in threaded view
|

Re: hlssink

Jerry Geis-2
In reply to this post by Jerry Geis-2
Thanks Arjen,

The audio did work! 
My issue now is the video does not start at the beginning.
What do I do about that?

Jerry

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

Re: hlssink

Arjen Veenhuizen
Reply | Threaded
Open this post in threaded view
|

Re: hlssink

Jerry Geis-2
In reply to this post by Jerry Geis-2
Hi Arjen,

Even setting max-files=0  the video did not start at 0.
-rw-r--r-- 1 root root 20440300 May 30 07:40 hlssink.00000.ts
-rw-r--r-- 1 root root 20116752 May 30 07:40 hlssink.00001.ts
-rw-r--r-- 1 root root 22469948 May 30 07:40 hlssink.00002.ts
-rw-r--r-- 1 root root 13564576 May 30 07:40 hlssink.00003.ts
-rw-r--r-- 1 root root 21042652 May 30 07:40 hlssink.00004.ts
-rw-r--r-- 1 root root 18131472 May 30 07:40 hlssink.00005.ts
-rw-r--r-- 1 root root 19735488 May 30 07:40 hlssink.00006.ts
-rw-r--r-- 1 root root 24095208 May 30 07:40 hlssink.00007.ts
-rw-r--r-- 1 root root 18546764 May 30 07:40 hlssink.00008.ts
-rw-r--r-- 1 root root 23347908 May 30 07:40 hlssink.00009.ts
-rw-r--r-- 1 root root 26852980 May 30 07:40 hlssink.00010.ts
-rw-r--r-- 1 root root 23873932 May 30 07:40 hlssink.00011.ts
-rw-r--r-- 1 root root 18043112 May 30 07:40 hlssink.00012.ts
-rw-r--r-- 1 root root 20215264 May 30 07:40 hlssink.00013.ts
-rw-r--r-- 1 root root 23425176 May 30 07:40 hlssink.00014.ts
-rw-r--r-- 1 root root  6556500 May 30 07:40 hlssink.00015.ts
-rw-r--r-- 1 root root      516 May 30 07:40 playlist.m3u8
All files are created and save now -


and playlist has
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-ALLOW-CACHE:NO
#EXT-X-MEDIA-SEQUENCE:11
#EXT-X-TARGETDURATION:16

#EXTINF:15.890891075134277,
#EXTINF:15.84918212890625,
#EXTINF:15.390390396118164,
#EXTINF:15.223557472229004,
#EXTINF:8.3833837509155273,


At this point i just desire every file to be listed in playlist and all files remain.

How do I accomplish that? 

Jerry



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

Re: hlssink

Arjen Veenhuizen
OK, gst-inspect-1.0 hlssink shows you the solution:
playlist-length     : Length of HLS playlist. To allow players to conform to section 6.3.3 of the HLS specification, this should be at least 3. If set to 0, the playlist will be infinite. Default: 5
Reply | Threaded
Open this post in threaded view
|

Re: hlssink

Jerry Geis-2
In reply to this post by Jerry Geis-2
Perfect - thanks - playlist-length=0 did the trick.

Jerry

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

Re: hlssink

swadhinsekhar
In reply to this post by Jerry Geis-2
How do u configure your webserver nginx to get the rtmp live stream?



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel