Cannot get HLS/HTML5

197 views
Skip to first unread message

Massimiliano Ritossa

unread,
Jun 20, 2013, 6:10:14 AM6/20/13
to mists...@googlegroups.com
Hi all,
i'm trying to re-streaming an a/v signal from an AXIS encoder. I setup the mistserver: run MistController, enabled all protocols (HTTP on port 80 and RTMP on port 1935) except TS.
I set a SOURCE in "Stream" with "push://mistserver-ip-address" and started ffmpeg in this way:

ffmpeg ffmpeg -i rtsp://source-ip-address -qmax 2 -r 25 -f flv rtmp://mistserver-ip-address/play/streamname

Testing at the link http://wiki.mistserver.com/index.php?title=StreamTester, Progressive, Dynamic and RTMP are ok, they're working, but Smooth (both of them, but i don't mind at all) and HLS doesn't.
Downloaded index.m3u8 file with wget and this is its content:

#EXTM3U
#EXT-X-MEDIA-SEQUENCE:0
#EXT-X-TARGETDURATION:30

Nothing else.

I also tried to setup TS protocol, but neither it works.
What i'm doing wrong?? Maybe i must also convert source streaming into a mpeg2 stream?
Please keep in mind it's a live streaming...
Thanks!

   MAx

Jaron Vietor

unread,
Jun 20, 2013, 7:52:42 AM6/20/13
to mists...@googlegroups.com
Hello Max,

ffmpeg will by default re-encode your video to VP6, which doesn't work over HLS or HSS.
Try adding the "-vcodec copy" option to your ffmpeg commandline (and optionally also "-acodec copy"), to make sure ffmpeg won't modify the encoded video and/or audio.
I'm assuming your encoder delivers the video in H264/AAC format, as that is the only codec combination that will enable HLS.

Regards,
Jaron





--
You received this message because you are subscribed to the Google Groups "Mistserver.org" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mistserver+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Massimiliano Ritossa

unread,
Jun 21, 2013, 6:14:52 AM6/21/13
to mists...@googlegroups.com
You're right! Great!

By the way, I found that Progressive, Dynamic and RTMP are all synchronized, but HLS has a little delay. Is it normal??

And, i think it's a little bug: if i set HTTP protocol port "80", i cannot have a preview with the "embed" link. And links to both "embed info URL" and "embed embed URL" are blank pages. 
I'm using last version, 1.1.2 (libmist 5.1.2).

Thanks.

Jaron Vietor

unread,
Jun 21, 2013, 6:34:56 AM6/21/13
to mists...@googlegroups.com
Hello Max,

Yes. HLS requires at least ~10 seconds of buffer to function properly on most Apple devices. Unfortunately, this makes it impossible to not have a delay.
We plan to allow this buffering time to be changed manually in the future - but note that setting it to a lower value will most likely break compatibility with some devices.

Thanks for the bug report - I'll pass it on to the developer responsible so it can get fixed.

Regards,
Jaron


Reply all
Reply to author
Forward
0 new messages