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

https://sample-videos.com/video123/mp4/720/big_buck_bunny_720p_30mb.mp4

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:

https://pastebin.com/B7tgTGp8

- Created files download(m3u8 and TS files):

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

https://mega.nz/#!wscHyAxS!pKj4RjVBFCwe3tjbaSoJUly_im72h6ZrIncF4_ex100





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

https://pastebin.com/aSRnuyJF





sorry if I forgot to send you more details.

but I hope this is enough.



Thx





________________________________
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
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
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user at ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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


More information about the ffmpeg-user mailing list