[FFmpeg-user] RES: HLS - command line hls_segment_size creates problems in segments

Moritz Barsnick barsnick at gmx.net
Fri Apr 5 10:36:34 EEST 2019


On Fri, Apr 05, 2019 at 01:28:35 +0000, Phantom Scripts wrote:
> thanks for answering Carl Eugen, but I think you do not understand.

Still, if you think there's an issue with how ffmpeg is encoding your
video, please provide the actual command line used and the command's
complete, uncut console output.

There may be useful information in there, and it might help us to
reproduce the issue.

Which BugBuckBunny video are you using as input? (In case we want to
reproduce.)

> but there is a problem during the vĂ­deo.
> in this link:
> http://phantsc.rf.gd/AAA/Bbb.html
> contains an hls player, which contains the files I created with the mentioned command,
> touch play in the video and look at the second 7, for some milleseconds the video and audio 'hangs'
> this happens in the whole video, when it is from a segment to a new segment.

Have you tried in a different player? (I understand well that this is
HTML5, so the browser is the player.) I was trying to let ffmpeg play
this stream, and I figured out that the HLS URL seems to be
http://phantsc.rf.gd/AAA/SampleVideo_1280x720_30mb/SampleVideo_1280x720_30mb.m3u8,
but I get a 403 on that link, even if I try with "Referer:" and
"Cookie:" headers. What a convoluted piece of JavasScript obfuscation
"sh*t" (sorry) - this is just to prevent the video to be seen in
anything else but the browser window?

In a Wireshark trace (thank you, obfuscation!), I can see that the m3u8
contains:

#EXTM3U
#EXT-X-VERSION:4
#EXT-X-TARGETDURATION:10
#EXT-X-MEDIA-SEQUENCE:0
#EXTINF:8.400000,
#EXT-X-BYTERANGE:1662108 at 0
SampleVideo_1280x720_30mb0.ts
#EXTINF:4.560000,
#EXT-X-BYTERANGE:383896 at 0
SampleVideo_1280x720_30mb1.ts

So I assume the issue with the stalling picture occurs in the first
segment named SampleVideo_1280x720_30mb0.ts? Can you just provide a
(downloadable!) link to this segment?



> I need to use '-hls_segment_size' to set a maximum size of segment files
> and use '-hls_time' to set the seconds for byte-ranges in the m3u8 file.

But that's not part of your issue, right? Are you assuming it is? You
provided so much information around this fact that it was hard to
understand your actual issue.

Thanks,
Moritz


More information about the ffmpeg-user mailing list