[FFmpeg-user] RES: HLS - command line hls_segment_size creates problems in segments
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
> but there is a problem during the vídeo.
> in this link:
> 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
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
#EXT-X-BYTERANGE:1662108 at 0
#EXT-X-BYTERANGE:383896 at 0
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.
More information about the ffmpeg-user