DRMStuff / DRMPHP

DRMPHP - Universal DRM Player
2 stars 2 forks source link

streams stopped after a while #1

Open same7n opened 1 year ago

same7n commented 1 year ago

hi, i get this error in the ffmpeg log

[hls @ 0x55e613c9c3c0] Cannot get correct #EXTINF value of segment /var/www/html/download/6TER_HD/stream/00000001.ts, set to default value to 1ms. [hls @ 0x55e613c9c3c0] Cannot get correct #EXTINF value of segment /var/www/html/download/6TER_HD/stream/00000002.ts, set to default value to 1ms. [hls @ 0x55e613c9c3c0] Cannot get correct #EXTINF value of segment /var/www/html/download/6TER_HD/stream/00000003.ts, set to default value to 1ms. [hls @ 0x55e613c9c3c0] Cannot get correct #EXTINF value of segment /var/www/html/download/6TER_HD/stream/00000004.ts, set to default value to 1ms. [hls @ 0x55e613c9c3c0] Cannot get correct #EXTINF value of segment /var/www/html/download/6TER_HD/stream/00000005.ts, set to default value to 1ms. [hls @ 0x55e613c9c3c0] Cannot get correct #EXTINF value of segment /var/www/html/download/6TER_HD/stream/00000006.ts, set to default value to 1ms. [hls @ 0x55e613c9c3c0] Cannot get correct #EXTINF value of segment /var/www/html/download/6TER_HD/stream/00000007.ts, set to default value to 1ms. [hls @ 0x55e613c9c3c0] Skip ('#EXT-X-VERSION:3') [hls @ 0x55e613c9c3c0] Skip ('#EXT-X-ALLOW-CACHE:YES') [hls @ 0x55e613c9c3c0] Cannot get correct #EXTINF value of segment /var/www/html/download/6TER_HD/stream/00000001.ts, set to default value to 1ms. [hls @ 0x55e613c9c3c0] Cannot get correct #EXTINF value of segment /var/www/html/download/6TER_HD/stream/00000002.ts, set to default value to 1ms. [hls @ 0x55e613c9c3c0] Cannot get correct #EXTINF value of segment /var/www/html/download/6TER_HD/stream/00000003.ts, set to default value to 1ms. [hls @ 0x55e613c9c3c0] Cannot get correct #EXTINF value of segment /var/www/html/download/6TER_HD/stream/00000004.ts, set to default value to 1ms. [hls @ 0x55e613c9c3c0] Cannot get correct #EXTINF value of segment /var/www/html/download/6TER_HD/stream/00000005.ts, set to default value to 1ms. [hls @ 0x55e613c9c3c0] Cannot get correct #EXTINF value of segment /var/www/html/download/6TER_HD/stream/00000006.ts, set to default value to 1ms. [hls @ 0x55e613c9c3c0] Cannot get correct #EXTINF value of segment /var/www/html/download/6TER_HD/stream/00000007.ts, set to default value to 1ms. frame= 4031 fps= 25 q=-1.0 size=N/A time=00:02:43.20 bitrate=N/A speed= 1x
[hls @ 0x55e613ce5e00] Opening '/var/www/html/download/6TER_HD/hls/seg000016.ts' for writing [hls @ 0x55e613ce5e00] Opening '/var/www/html/download/6TER_HD/hls/index.m3u8.tmp' for writing [out#0/hls @ 0x55e613e66e40] video:51635kB audio:2608kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown frame= 4032 fps= 25 q=-1.0 Lsize=N/A time=00:02:43.20 bitrate=N/A speed= 1x

after that stream stopped

any solution?

andremxmx commented 1 year ago

i will check it, perhaps your stream work good? not freezing the video every x seconds? or are smoot and well played?

same7n commented 1 year ago

streams work very good no freez but stopped every while and some streams not work well and give me [hls @ 0x78c4280] Non-monotonous DTS in output stream 0:0; previous: 3043860051, current: 3043856451; changing to 3043860052. This may result in incorrect timestamps in the output file. [hls @ 0x78c4280] Non-monotonous DTS in output stream 0:0; previous: 3043860052, current: 3043860051; changing to 3043860053. This may result in incorrect timestamps in the output file.

andremxmx commented 1 year ago

can you try to use N_m3u8DL-R for that???

RE_LIVE_PIPE_OPTIONS=“-c copy -f hls -hls_time 8 -hls_flags append_list+delete_segments -hls_list_size 5 /FOLDER/m3u8/dazn/index.m3u8” ./N_m3u8DL-RE –live-real-time-merge –live-keep-segments false –live-wait-time 2 –thread-count 4 –del-after-done true –tmp-dir temp –live-pipe-mux -sa all -sv best “https://stream.mpd” –key ccccccccccccccc:xxxxxxxxxxxxxxxxxx"

and tellme if work good!

same7n commented 1 year ago

what is N_m3u8DL-R ? is it a mixer different of ffmpeg and how could i use it with the panel?

same7n commented 1 year ago

hi mate when i use your command

RE_LIVE_PIPE_OPTIONS=“-c copy -f hls -hls_time 8 -hls_flags append_list+delete_segments -hls_list_size 5 /var/www/html/download/test/hls/index.m3u8” ./N_m3u8DL-RE –live-real-time-merge –live-keep-segments false –live-wait-time 2 –thread-count 4 –del-after-done true –tmp-dir temp –live-pipe-mux -sa all -sv best “https://link.mpd” -key kid:key

it gives me

Command 'copy' not found, did you mean:

command 'cozy' from snap cozy (1.2.1) command 'copay' from snap copay (12.5.6) command 'opy' from snap opy (latest) command 'mcopy' from deb mtools command 'copyq' from deb copyq command 'fcopy' from deb fai-client command 'rcopy' from deb rdmacm-utils command 'hcopy' from deb hfsutils command 'ropy' from deb libdisorder-tools command 'bcopy' from deb bacula-sd

same7n commented 1 year ago

and when i use this command N_m3u8DL-RE "https://link.mpd" --key kid:key gives me like this

16:07:54.544 INFO : N_m3u8DL-RE (Beta version) 20230628 16:07:54.554 INFO : Loading URL: https://tvela1-dash-movistarplus.emisiondof6.com/dash/tvela1.isml/manifest.mpd 16:07:55.599 INFO : Content Matched: Dynamic Adaptive Streaming over HTTP 16:07:55.600 INFO : Parsing streams... 16:07:55.701 WARN : Writing meta json 16:07:55.712 INFO : Extracted, there are 15 streams, with 12 basic streams, 2 audio streams, 1 subtitle streams 16:07:55.712 INFO : Vid CENC 1920x1080 | 6000 Kbps | v0_101 | avc1.4D4028 | 1201 Segments | ~02h00m06s 16:07:55.712 INFO : Vid CENC 1920x1080 | 6000 Kbps | v0_101_tm | avc1.4D4028 | 1201 Segments | ~02h00m06s 16:07:55.713 INFO : Vid CENC 1280x720 | 3499 Kbps | v1_101 | avc1.4D401F | 1201 Segments | ~02h00m06s 16:07:55.713 INFO : Vid CENC 1280x720 | 3499 Kbps | v1_101_tm | avc1.4D401F | 1201 Segments | ~02h00m06s 16:07:55.713 INFO : Vid CENC 1024x576 | 2000 Kbps | v2_101 | avc1.4D401F | 1201 Segments | ~02h00m06s 16:07:55.713 INFO : Vid CENC 1024x576 | 2000 Kbps | v2_101_tm | avc1.4D401F | 1201 Segments | ~02h00m06s 16:07:55.713 INFO : Vid CENC 640x360 | 1400 Kbps | v3_101 | avc1.4D401E | 1201 Segments | ~02h00m06s 16:07:55.714 INFO : Vid CENC 640x360 | 1400 Kbps | v3_101_tm | avc1.4D401E | 1201 Segments | ~02h00m06s 16:07:55.714 INFO : Vid CENC 640x360 | 699 Kbps | v4_101 | avc1.4D401E | 1201 Segments | ~02h00m06s 16:07:55.714 INFO : Vid CENC 640x360 | 699 Kbps | v4_101_tm | avc1.4D401E | 1201 Segments | ~02h00m06s 16:07:55.714 INFO : Vid CENC 480x270 | 400 Kbps | v5_101 | avc1.4D4015 | 1201 Segments | ~02h00m06s 16:07:55.714 INFO : Vid CENC 480x270 | 400 Kbps | v5_101_tm | avc1.4D4015 | 1201 Segments | ~02h00m06s 16:07:55.715 INFO : Aud CENC v5_201 | 128 Kbps | mp4a.40.2 | spa | 2CH | 1201 Segments | ~02h00m06s 16:07:55.715 INFO : Aud CENC v5_202 | 112 Kbps | mp4a.40.2 | qaa | 2CH | 1201 Segments | ~02h00m06s 16:07:55.715 INFO : Sub webvtt-subtitle_301_888 | srd | wvtt | 1201 Segments | ~02h00m06s Please select what you want to download:

[ ] Basic [X] Vid CENC 1920x1080 | 6000 Kbps | v0_101 | avc1.4D4028 | 1201 Segments | ~02h00m06s [ ] Vid CENC 1920x1080 | 6000 Kbps | v0_101_tm | avc1.4D4028 | 1201 Segments | ~02h00m06s [ ] Vid CENC 1280x720 | 3499 Kbps | v1_101 | avc1.4D401F | 1201 Segments | ~02h00m06s [ ] Vid CENC 1280x720 | 3499 Kbps | v1_101_tm | avc1.4D401F | 1201 Segments | ~02h00m06s [ ] Vid CENC 1024x576 | 2000 Kbps | v2_101 | avc1.4D401F | 1201 Segments | ~02h00m06s [ ] Vid CENC 1024x576 | 2000 Kbps | v2_101_tm | avc1.4D401F | 1201 Segments | ~02h00m06s [ ] Vid CENC 640x360 | 1400 Kbps | v3_101 | avc1.4D401E | 1201 Segments | ~02h00m06s [ ] Vid CENC 640x360 | 1400 Kbps | v3_101_tm | avc1.4D401E | 1201 Segments | ~02h00m06s [ ] Vid *CENC 640x360 | 699 Kbps | v4_101 | avc1.4D401E | 1201 Segments | ~02h00m06s

and after i choose the quality 16:09:19.006 INFO : Parsing streams... 16:09:19.006 WARN : Live stream found 16:09:19.011 INFO : Selected streams: 16:09:19.011 INFO : Vid CENC 1280x720 | 3499 Kbps | v1_101 | avc1.4D401F | 1201 Segments | ~02h00m06s 16:09:19.011 INFO : Aud CENC v5_201 | 128 Kbps | mp4a.40.2 | spa | 2CH | 1201 Segments | ~02h00m06s 16:09:19.011 INFO : Sub webvtt-subtitle_301_888 | srd | wvtt | 1201 Segments | ~02h00m06s 16:09:19.011 WARN : Writing meta json 16:09:19.013 INFO : Save Name: manifest_2023-07-29_16-07-55 16:09:19.014 WARN : set refresh interval to 43 seconds 16:09:19.014 WARN : When enabling real-time decryption, it is recommended to use shaka-packager instead of mp4decrypt 16:09:19.215 WARN : fMP4 is detected, binary merging is automatically enabled 16:09:19.492 WARN : Type: cenc 16:09:19.492 WARN : PSSH(WV): CAESEBT8DjskmkP6pS/GknnnfKsiBDQ1MjE= 16:09:19.493 WARN : KID: 14fc0e3b249a43faa52fc69279e77cab 16:09:19.494 WARN : Reading media info... 16:09:19.496 INFO : [0x65]: Video, h264 (avc1), 1280x720 16:09:19.515 WARN : Type: cenc 16:09:19.515 WARN : PSSH(WV): CAESEBT8DjskmkP6pS/GknnnfKsiBDQ1MjE= 16:09:19.515 WARN : KID: xxxxxxxx 16:09:19.516 WARN : Reading media info... 16:09:19.519 INFO : [0xc9]: Audio, aac (mp4a), 128 kb/s 16:09:19.519 WARN : Reading media info... 16:09:19.520 INFO : [0x2013]: Data, none (wvtt) (default)

Vid 1280x720 | 3499 Kbps 01m30s/01m30s 16/16 Waiting 100% - Aud 128 Kbps | spa | 2CH 01m30s/01m30s 16/16 Waiting 100% - Sub srd | wvtt 01m30s/01m30s 16/16 Waiting 100% -

but i do not know how to play the stream