Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Problem with HLS Streaming (Internet Explorer, Chrome, Firefox)


I use the ffmpeg tool to generate the m3u8 file from the mp4 video, and it generates the five segment files called segment000.ts ~ segment004.ts and the playlist.
But when I use Internet Explorer (Adobe Flash Active X 14) and Chrome, Firefox (Adobe Flash Player 14) to play the m3u8 file, the stream was stopped suddenly while playing, it cannot display the segment004.ts file.
Safari (Mac OSX) is OK.
How can I solve this. Please help...

Here is my playlist.m3u8
-----------
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-MEDIA-SEQUENCE:0
#EXT-X-ALLOW-CACHE:YES
#EXT-X-TARGETDURATION:17
#EXTINF:16.750067,
segment000.ts
#EXTINF:8.341667,
segment001.ts
#EXTINF:8.341667,
segment002.ts
#EXTINF:8.274933,
segment003.ts
#EXTINF:0.300300,
segment004.ts
#EXT-X-ENDLIST
---------

The following is my ffmpeg command line
----
ffmpeg -i video.mp4 -map 0 -codec:v libx264 -codec:a aac -strict -2 -f ssegment -segment_list playlist.m3u8 -segment_list_flags +live -segment_time 10 segment%03d.ts 2>&1

13 Community Answers

Todd

JW Player Support Agent  
0 rated :

Here’s the ffmpeg command I use to make HLS streams:

ffmpeg y -i input.mp4 -pix_fmt yuv420p -vcodec libx264 -acodec libvo_aacenc -r 25 -profile:v baseline -b:v 1500k -maxrate 2000k -force_key_frames 10 -map 0 -flags -global_header -f segment -segment_list playlist.m3u8 -segment_time 10 -segment_format mpeg_ts -segment_list_type m3u8 output%03d.ts

Can you post the URL of your HLS stream here? Or e-mail it to us at support@jwplayer.com ?

nguyenminhtriet

User  
0 rated :

I have just sent you the two e-mails with the following subject.

Problem with HLS Streaming (Internet Explorer, Chrome, Firefox).

Please check.

nguyenminhtriet

User  
0 rated :

Thanks for your command but the stream still stopped after 17 seconds of playing.

Todd

JW Player Support Agent  
0 rated :

I’m starting to think there is some corruption in this video file. Do you have any other videos that you can test with?

nguyenminhtriet

User  
0 rated :

Thanks for your reply.
Please tell me why the following error occurred.
[Error loading preview image: Error #2124]

Todd

JW Player Support Agent  
0 rated :

My guess is there is corruption in that video. Do you have any other videos to test with?

nguyenminhtriet

User  
0 rated :

I sent you another video to test.
Please check your e-mail.
Thank you.

Todd

JW Player Support Agent  
0 rated :

Yes, I just e-mailed you two videos. Please let me know if ffmpeg is able to properly make HLS streams for you.

-Todd

nguyenminhtriet

User  
0 rated :

Thank you.

Your videos and the streams are OK.
My videos also work fine in Safari (Mac OSX), the trouble only occur when playing in flash mode.

Todd

JW Player Support Agent  
0 rated :

Yes, I believe there is something wrong with your videos that is causing problems when our player is using the Flash plugin to display your HLS content. If possible, can you re-encode your original video directly to HLS and see if that resolves your issue?

nguyenminhtriet

User  
0 rated :

Please tell me how to re-encode the original video directly to HLS.

Todd

JW Player Support Agent  
0 rated :

My suggestion would be to use the original video (before it was encoded to MP4) directly in your ffmpeg script.

nguyenminhtriet

User  
0 rated :

Thank you for your suggestion.
I will try

This question has received the maximum number of answers.