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

Phantom Scripts phantomscripts at hotmail.com
Fri Apr 5 14:36:29 EEST 2019

Thank you for replying again.

I'm using this video:


mp4 format, size 30MB and resolution 1280x720

- Command Line:

ffmpeg.exe -i SampleVideo_1280x720_30mb.mp4  -vcodec copy -acodec aac -hls_list_size 0 -hls_segment_size 2000000 -f hls SampleVideo_1280x720_30mb.m3u8

- Console output:


- Created files download(m3u8 and TS files):

https://ufile.io/fg8w5 (OR)


this time I used ffplay.exe, and this is the output of the console:


sorry if I forgot to send you more details.

but I hope this is enough.


De: ffmpeg-user <ffmpeg-user-bounces at ffmpeg.org> em nome de Moritz Barsnick <barsnick at gmx.net>
Enviado: Friday, April 5, 2019 4:36:34 AM
Para: FFmpeg user discussions
Assunto: Re: [FFmpeg-user] RES: HLS - command line hls_segment_size creates problems in segments

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:
> 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
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.

ffmpeg-user mailing list
ffmpeg-user at ffmpeg.org

To unsubscribe, visit link above, or email
ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".

More information about the ffmpeg-user mailing list