chrippa / livestreamer

Command-line utility that extracts streams from various services and pipes them into a video player of choice. No longer maintained, use streamlink or youtube-dl instead.
http://livestreamer.io/
BSD 2-Clause "Simplified" License
3.88k stars 580 forks source link

[stream.hds][error] #840

Open ghost opened 9 years ago

ghost commented 9 years ago
http://tv.sport1.de/player/player.php?id=s332010
http://event01-lh.streaming.sport1.de/z/EVENT01_1@140378/manifest.f4m?start=1428425700&end=1428432060&start=1428473725&hdnea=st=1428474625~exp=1428474925~acl=/*~hmac=b61778caa1d1e72ad95e5c820ad0262c2402ae56f4dff47ded5bc40ef31a033c&g=QECHMRQHVLPX&hdcore=3.2.0&plugin=jwplayer-3.2.0.1
livestreamer "hds://event01-lh.streaming.sport1.de/z/EVENT01_1@140378/manifest.f4m?start=1428425700&end=1428432060&start=1428473725&hdnea=st=1428474625~exp=1428474925~acl=/*~hmac=b61778caa1d1e72ad95e5c820ad0262c2402ae56f4dff47ded5bc40ef31a033c&g=QECHMRQHVLPX&hdcore=3.2.0&plugin=jwplayer-3.2.0.1 pvswf=http://tv.sport1.de/player/jw66/AkamaiAdvancedJWStreamProvider3201.swf" best -o 01.flv -l debug
[cli][info] Found matching plugin stream for URL hds://event01-lh.streaming.sport1.de/z/EVENT01_1@140378/manifest.f4m?start=1428425700&end=1428432060&start=1428473725&hdnea=st=1428474625~exp=1428474925~acl=/*~hmac=b61778caa1d1e72ad95e5c820ad0262c2402ae56f4dff47ded5bc40ef31a033c&g=QECHMRQHVLPX&hdcore=3.2.0&plugin=jwplayer-3.2.0.1 pvswf=http://tv.sport1.de/player/jw66/AkamaiAdvancedJWStreamProvider3201.swf
[cli][info] Available streams: 1328k, 2628k (best), 340k (worst), 640k
[cli][info] Opening stream: 2628k (hds)
[stream.hds][debug] Updating bootstrap
[stream.hds][debug] Current timestamp: 1428432036.3
[stream.hds][debug] Current segment: -1
[stream.hds][debug] Current fragment: 238070951
[stream.hds][debug] First fragment: 238070951
[stream.hds][debug] Last fragment: 238072006
[stream.hds][debug] End fragment: 238072006
[stream.hds][debug] Adding fragment 1-238070951 to queue
[cli][debug] Pre-buffering 8192 bytes
[stream.hds][debug] Adding fragment 1-238070952 to queue
[stream.hds][debug] Adding fragment 1-238070953 to queue
[stream.hds][debug] Adding fragment 1-238070954 to queue
[stream.hds][debug] Adding fragment 1-238070955 to queue
[stream.hds][debug] Adding fragment 1-238070956 to queue
[stream.hds][debug] Adding fragment 1-238070957 to queue
[stream.hds][debug] Adding fragment 1-238070958 to queue
[stream.hds][debug] Adding fragment 1-238070959 to queue
[stream.hds][debug] Adding fragment 1-238070960 to queue
[stream.hds][debug] Adding fragment 1-238070961 to queue
[stream.hds][debug] Adding fragment 1-238070962 to queue
[stream.hds][debug] Adding fragment 1-238070963 to queue
[stream.hds][debug] Adding fragment 1-238070964 to queue
[stream.hds][debug] Adding fragment 1-238070965 to queue
[stream.hds][debug] Adding fragment 1-238070966 to queue
[stream.hds][debug] Adding fragment 1-238070967 to queue
[stream.hds][debug] Adding fragment 1-238070968 to queue
[stream.hds][debug] Adding fragment 1-238070969 to queue
[stream.hds][debug] Adding fragment 1-238070970 to queue
[stream.hds][debug] Adding fragment 1-238070971 to queue
[stream.hds][debug] Adding fragment 1-238070972 to queue
[stream.hds][error] Failed to open fragment 1-238070951: Unable to open URL: http://event01-lh.streaming.sport1.de/z/EVENT01_1@140378/2500_da5243ad0f7f768b-p_Seg1-Frag238070951 (404 Client Error: NotFound)
[stream.hds][error] Failed to open fragment 1-238070951: Unable to open URL: http://event01-lh.streaming.sport1.de/z/EVENT01_1@140378/2500_da5243ad0f7f768b-p_Seg1-Frag238070951 (404 Client Error: NotFound)
[stream.hds][error] Failed to open fragment 1-238070951: Unable to open URL: http://event01-lh.streaming.sport1.de/z/EVENT01_1@140378/2500_da5243ad0f7f768b-p_Seg1-Frag238070951 (404 Client Error: NotFound)
[stream.hds][debug] Adding fragment 1-238070973 to queue
[stream.hds][error] Failed to open fragment 1-238070952: Unable to open URL: http://event01-lh.streaming.sport1.de/z/EVENT01_1@140378/2500_da5243ad0f7f768b-p_Seg1-Frag238070952 (404 Client Error: NotFound)
[stream.hds][error] Failed to open fragment 1-238070952: Unable to open URL: http://event01-lh.streaming.sport1.de/z/EVENT01_1@140378/2500_da5243ad0f7f768b-p_Seg1-Frag238070952 (404 Client Error: NotFound)
[stream.hds][error] Failed to open fragment 1-238070952: Unable to open URL: http://event01-lh.streaming.sport1.de/z/EVENT01_1@140378/2500_da5243ad0f7f768b-p_Seg1-Frag238070952 (404 Client Error: NotFound)
[stream.hds][debug] Adding fragment 1-238070974 to queue

Seg1-Frag238070951:

http://event01-lh.streaming.sport1.de/z/EVENT01_1@140378/2500_da5243ad0f7f768b-p_Seg1-Frag238070951?hdntl=exp=1428573976~acl=%2f*~data=hdntl~hmac=255769e6d459bdbf5f3ca954f961d3a8532a8bb1bdba09ac6d81531bd96ec01f&start=1428425700&end=1428432060&start=1428486665&als=0,3,NaN,1,0,NaN,0,0,0,15,f,0,6336.35,f,s,OBNBREOOSYNJ,3.2.0,15&hdcore=3.2.0&plugin=jwplayer-3.2.0.1
ghost commented 9 years ago

hi you can use hls protocol change hds >>hlsvariant manifest.f4m >>> master.m3u8 and /z/ >>> /i/

livestreamer "hlsvariant://event01-lh.streaming.sport1.de/i/EVENT01_1@140378/master.m3u8?start=1428425700&end="1428432060&start=142897031&hdnea=st=1428497931~exp=1428498231~acl=/*~hmac=7fb73"6e119530b3d8dab5aa2b58ccd664c06932aeaf9eeee471d949d5ceb682&g=WJIFDHBKGSHN&hdcor"e=3.2.0&plugin=jwplayr-3.2.0.1"  best -o Rhein-Neckar-Löwen-MT-Melsungen.ts
livestreamer "hlsvariant://event01-lh.streaming.sport1.de/i/EVENT01_1@140378/master.m3u8?start=1428425700&end="1428432060&start=142897031&hdnea=st=1428497931~exp=1428498231~acl=/*~hmac=7fb73"6e119530b3d8dab5aa2b58ccd664c06932aeaf9eeee471d949d5ceb682&g=WJIFDHBKGSHN&hdcor"e=3.2.0&plugin=jwplayr-3.2.0.1"  best -o Rhein-Neckar-Löwen-MT-Melsungen.ts
[cli][info] Found matching plugin stream for URL hlsvariant://event01-lh.streaming.sport1.de/i/EVENT01_1@140378/master.m3u8?start=1428425700&end=1428432060&start=1428497031&hdnea=st=1428497931~exp=1428498231~acl=/*~hmac=7fb736e119530b3d8dab5aa2b5b8ccd664c06932aeaf9eeee471d949d5ceb682&g=WJIFDHBKGSHN&hdcore=3.2.0&plugin=jwplayer-3.2.0.1
[cli][info] Available streams: 216p (worst), 288p, 360p, 576p (best)
[cli][info] Opening stream: 576p (hls)
[download][..-Löwen-MT-Melsungen.ts] Written 2.02 GB (41m52s @ 939.5 KB/s)      
[cli][info] Stream ended

vlcdeutch

ghost commented 9 years ago

It seems like I've found the solution to this problem:

--http-query-param
livestreamer "hds://event08-lh.streaming.sport1.de/z/EVENT08_1@140371/manifest.f4m?start=1428949615&hdnea=st=1428950515~exp=1428950815~acl=/*~hmac=cc2db9a8ff919ee9b63b5c83ce785d85f6d536605eb492a8b6b7da39abf8c110&g=XRWHMVDCZOXB&hdcore=3.2.0&plugin=jwplayer-3.2.0.1 pvswf=http://tv.sport1.de/player/jw66/AkamaiAdvancedJWStreamProvider3201.swf" best -o 01.flv --http-query-param "hdntl=exp=1429036967~acl=%2f*~data=hdntl~hmac=c58f93742bcb791c6b80288444f94b96c0baf34f7de5c843c9f1a2028ac1e8a0&start=1428949615&als=0,3,NaN,2,0,NaN,0,0,0,16,f,0,936,t,s,XRWHMVDCZOXB,3.2.0,16&hdcore=3.2.0&plugin=jwplayer-3.2.0.1"
ghost commented 9 years ago

It's not working anymore. Seems that the query parameters for each fragment are not passed correctly.

http://tv.sport1.de/player/player.php?id=s820320
livestreamer "hds://event01-lh.streaming.sport1.de/z/EVENT01_1@140378/manifest.f4m?start=1429725600&end=1429732680&start=1430040728&hdnea=st=1430041628~exp=1430041928~acl=/*~hmac=1f01ad2597e12cd449befdceda65efdaecfb87f85027c9ffc07d6a18a136ab1a&g=KCODVTUFGPJR&hdcore=3.2.0&plugin=jwplayer-3.2.0.1 pvswf=http://tv.sport1.de/player/jw66/AkamaiAdvancedJWStreamProvider3201.swf" best -o 01.flv --http-query-param "hdntl=exp=1430128037~acl=%2f*~data=hdntl~hmac=91a8f861dcf99da4efcb08e2fda22b8c142c568e426c764ad3a2f9d6b3a560c5&start=1429725600&end=1429732680&start=1430040728&als=0,3,NaN,1,0,NaN,0,0,0,17,f,0,7080,f,s,KCODVTUFGPJR,3.2.0,17&hdcore=3.2.0&plugin=jwplayer-3.2.0.1" -l debug
[cli][info] Found matching plugin stream for URL hds://event01-lh.streaming.sport1.de/z/EVENT01_1@140378/manifest.f4m?start=1429725600&end=1429732680&start=1430040728&hdnea=st=1430041628~exp=1430041928~acl=/*~hmac=1f01ad2597e12cd449befdceda65efdaecfb87f85027c9ffc07d6a18a136ab1a&g=KCODVTUFGPJR&hdcore=3.2.0&plugin=jwplayer-3.2.0.1 pvswf=http://tv.sport1.de/player/jw66/AkamaiAdvancedJWStreamProvider3201.swf
[cli][info] Available streams: 1328k, 2628k (best), 340k (worst), 640k
[cli][info] Opening stream: 2628k (hds)
[stream.hds][debug] Updating bootstrap
[stream.hds][debug] Current timestamp: 1429732680.0
[stream.hds][debug] Current segment: -1
[stream.hds][debug] Current fragment: 238287601
[stream.hds][debug] First fragment: 238287601
[stream.hds][debug] Last fragment: 238288780
[stream.hds][debug] End fragment: 238288781
[cli][debug] Pre-buffering 8192 bytes
[stream.hds][debug] Adding fragment 1-238287601 to queue
[stream.hds][debug] Adding fragment 1-238287602 to queue
[stream.hds][debug] Adding fragment 1-238287603 to queue
[stream.hds][debug] Adding fragment 1-238287604 to queue
[stream.hds][debug] Adding fragment 1-238287605 to queue
[stream.hds][debug] Adding fragment 1-238287606 to queue
[stream.hds][debug] Adding fragment 1-238287607 to queue
[stream.hds][debug] Adding fragment 1-238287608 to queue
[stream.hds][debug] Adding fragment 1-238287609 to queue
[stream.hds][debug] Adding fragment 1-238287610 to queue
[stream.hds][debug] Adding fragment 1-238287611 to queue
[stream.hds][debug] Adding fragment 1-238287612 to queue
[stream.hds][debug] Adding fragment 1-238287613 to queue
[stream.hds][debug] Adding fragment 1-238287614 to queue
[stream.hds][debug] Adding fragment 1-238287615 to queue
[stream.hds][debug] Adding fragment 1-238287616 to queue
[stream.hds][debug] Adding fragment 1-238287617 to queue
[stream.hds][debug] Adding fragment 1-238287618 to queue
[stream.hds][debug] Adding fragment 1-238287619 to queue
[stream.hds][debug] Adding fragment 1-238287620 to queue
[stream.hds][debug] Adding fragment 1-238287621 to queue
[stream.hds][debug] Adding fragment 1-238287622 to queue
[stream.hds][error] Failed to open fragment 1-238287601: Unable to open URL: http://event01-lh.streaming.sport1.de/z/EVENT01_1@140378/2500_6c1a59edfde7853f-p_Seg1-Frag238287601 (404 Client Error: NotFound)
[stream.hds][error] Failed to open fragment 1-238287601: Unable to open URL: http://event01-lh.streaming.sport1.de/z/EVENT01_1@140378/2500_6c1a59edfde7853f-p_Seg1-Frag238287601 (404 Client Error: NotFound)
[stream.hds][error] Failed to open fragment 1-238287601: Unable to open URL: http://event01-lh.streaming.sport1.de/z/EVENT01_1@140378/2500_6c1a59edfde7853f-p_Seg1-Frag238287601 (404 Client Error: NotFound)

Seg1-Frag238287601 [Firefox]:

http://event01-lh.streaming.sport1.de/z/EVENT01_1@140378/2500_6c1a59edfde7853f-p_Seg1-Frag238287601?hdntl=exp=1430128037~acl=%2f*~data=hdntl~hmac=91a8f861dcf99da4efcb08e2fda22b8c142c568e426c764ad3a2f9d6b3a560c5&start=1429725600&end=1429732680&start=1430040728&als=0,3,NaN,1,0,NaN,0,0,0,17,f,0,7080,f,s,KCODVTUFGPJR,3.2.0,17&hdcore=3.2.0&plugin=jwplayer-3.2.0.1

Seg1-Frag238287601 [Livestreamer]:

GET /z/EVENT01_1@140378/2500_6c1a59edfde7853f-p_Seg1-Frag238287601?hdntl=exp%3D1430128158~acl%3D%2F%2A~data%3Dhdntl~hmac%3Dade1fa255a88b42a67fabbd693b03dcb32cae5e940705309162769b70eb019c2&pvtoken=st%3D0~exp%3D9999999999~acl%3D%2A~data%3D%21PdgQizK0yJCjoS52VFsxgPbFQltWeicJYvdsPHEYofI%3D~hmac%3De01432fc041586470e7fe7d4645882fee837ddaac93744d7ace67246d02248e5 HTTP/1.1..Host: event01-lh.streaming.sport1.de