Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Input .m3u8 stream #620

Open
LuizStSantos opened this issue Apr 25, 2024 · 3 comments
Open

Input .m3u8 stream #620

LuizStSantos opened this issue Apr 25, 2024 · 3 comments

Comments

@LuizStSantos
Copy link

  • OS: Debian 12
  • ffplayout version v0.21.3
  • ffmpeg version 5.1.4-0+deb12u1
  • are you using the current master of ffplayout? yes

Describe the bug

The .m3u8 stream input has a problem with the time bar, such as the scene change time, for example, I put a .m3u8 input from a live stream, the time would be 00:35:30 maximum, but the clip change happens at 00:35 :50

[2024-04-25 13:31:34.84115] [ INFO] Play for 00:28:30.166: http://10.0.0.2:8080/memfs/3722441a-c8ff-4c04-81ad-b54e250fbcf7.m3u8
[2024-04-25 13:31:34.84140] [DEBUG] HLS writer CMD: "ffmpeg -hide_banner -nostats -v level+error -readrate 1 -i http://10.0.0.2:8080/memfs/3722441a-c8ff-4c04-81ad-b54e250fbcf7.m3u8 -t 1710.1655297270045 -filter_complex [0:v:0]null,fade=out:st=1709.1655297270045:d=1.0,null[v];movie=/mnt/dados/logos/logo-CanalSoloFertil-Negativa.png:loop=0,setpts=N/(FRAME_RATE*TB),format=rgba,colorchannelmixer=aa=0.9,fade=out:st=1709.1655297270045:d=1.0:alpha=1,scale=65:65[l];[v][l]overlay=55:45:shortest=1[vout0];[0:a:0]anull,afade=out:st=1709.1655297270045:d=1.0,loudnorm=I=-23:LRA=7:TP=-1:print_format=summary:linear=true:measured_I=-24.7:measured_LRA=8.9:measured_TP=-2.4[aout0] -map [vout0] -map [aout0] -c:v h264_nvenc -aspect 16:9 -r:v 30 -b:v 2200k -maxrate 2700k -bufsize 3100k -profile:v main -preset p4 -level 41 -delay 0 -ar 48000 -b:a 128k -c:a aac -muxdelay 0 -colorspace:v bt709 -color_primaries:v bt709 -color_trc:v bt709 -color_range:v tv -f hls -hls_time 6 -hls_list_size 10 -g 60 -keyint_min 60 -hls_flags iframes_only+append_list+omit_endlist+delete_segments+program_date_time+split_by_time+append_list+round_durations -hls_segment_filename /usr/share/ffplayout/public/live/stream-%v-%01d.ts -master_pl_name playlist.m3u8 /usr/share/ffplayout/public/live/stream_%v.m3u8"
[2024-04-25 13:31:38.65781] [DEBUG] Validation done, in 53.535s, playlist length: 24:00:00.000 ...
[2024-04-25 13:32:24.88260] [DEBUG] Validation done, in 53.501s, playlist length: 24:00:00.000 ...
[2024-04-25 14:00:08.19908] [DEBUG] Delta: -3.264

Already on the bar it is showing as complete, without ending the clip time

And I also had a live entry that got stuck and didn't go to the next clip

[2024-04-25 11:59:20.57639] [ INFO] Play for 00:35:00.000: http://10.0.0.2:8080/memfs/d0a988b4-c85d-4f44-b04b-a21152e8ab3b.m3u8
[2024-04-25 11:59:20.57657] [DEBUG] HLS writer CMD: "ffmpeg -hide_banner -nostats -v level+error -readrate 1.0002794867029046 -i http://10.0.0.2:8080/memfs/d0a988b4-c85d-4f44-b04b-a21152e8ab3b.m3u8 -t 2100 -filter_complex [0:v:0]fps=30,null,null[v];movie=/mnt/dados/logos/logo-CanalSoloFertil-Negativa.png:loop=0,setpts=N/(FRAME_RATE*TB),format=rgba,colorchannelmixer=aa=0.9,fade=out:st=2099:d=1.0:alpha=1,scale=65:65[l];[v][l]overlay=55:45:shortest=1[vout0];[0:a:0]anull,loudnorm=I=-23:LRA=7:TP=-1:print_format=summary:linear=true:measured_I=-24.7:measured_LRA=8.9:measured_TP=-2.4[aout0] -map [vout0] -map [aout0] -c:v h264_nvenc -aspect 16:9 -r:v 30 -b:v 2200k -maxrate 2700k -bufsize 3100k -profile:v main -preset p4 -level 41 -delay 0 -ar 48000 -b:a 128k -c:a aac -muxdelay 0 -colorspace:v bt709 -color_primaries:v bt709 -color_trc:v bt709 -color_range:v tv -f hls -hls_time 6 -hls_list_size 10 -g 60 -keyint_min 60 -hls_flags iframes_only+append_list+omit_endlist+delete_segments+program_date_time+split_by_time+append_list+round_durations -hls_segment_filename /usr/share/ffplayout/public/live/stream-%v-%01d.ts -master_pl_name playlist.m3u8 /usr/share/ffplayout/public/live/stream_%v.m3u8"
[2024-04-25 12:12:32.37067] [ERROR] [Decoder] [h264 @ 0x55c3362c8e40] Invalid level prefix
[2024-04-25 12:12:57.60635] [ERROR] Could not send mail: permanent error (535): 5.7.8 Username and Password not accepted. For more information, go to5.7.8  https://support.google.com/mail/?p=BadCredentials c14-20020a170902b68e00b001e97772524asm8504633pls.234 - gsmtp
[2024-04-25 12:23:49.76973] [ERROR] [Decoder] [h264 @ 0x55c336ab2300] corrupted macroblock 38 41 (total_coeff=-1)

Don't worry about the email, I changed the password

@LuizStSantos LuizStSantos added the bug Something isn't working label Apr 25, 2024
@jb-alvarado
Copy link
Member

That is one of the problem with live sources in playlist, which is why is not officially supported. It is normal that HLS live stream has a delay. There is nothing I can do about it.

@jb-alvarado jb-alvarado removed the bug Something isn't working label Apr 28, 2024
@LuizStSantos
Copy link
Author

That is one of the problem with live sources in playlist, which is why is not officially supported. It is normal that HLS live stream has a delay. There is nothing I can do about it.

I'm going to study a little, to see if I can help you with this, it may take a while but I'll do my best

@jb-alvarado
Copy link
Member

In next Release comes a new status system, maybe that helps a bit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants