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

Problem recording the Audi of a live stream #115

Open
NastyPhoenix opened this issue Jul 31, 2021 · 0 comments
Open

Problem recording the Audi of a live stream #115

NastyPhoenix opened this issue Jul 31, 2021 · 0 comments

Comments

@NastyPhoenix
Copy link

Hello
I try to download this live stream : https://www.france.tv/france-2/direct.html
I do
hlsdl -b -c -u "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:90.0) Gecko/20100101 Firefox/90.0" -h "Referer:https://www.france.tv/france-2/direct.html" -o "France 2 en direct.ts" "https://simulcast.ftven.fr/ZXhwPTE2Mjc3NTEwMjN+YWNsPSUyZip+aG1hYz05NzA3NWQ5OTNhNjkyMmRjYzlkMDBlYTY2ZWY2MGZiYjliNDM0ZTdjODA1ZmFhYzMzYmU1MjUxYWMxNjEwNjY4/simulcast/France_2/hls_fr2/index.m3u8?hdnea=exp=1627730023~acl=%2f*~hmac=22ed69b57700282e0869bce5eb2cee11adb8ee7789937543a6b9c9e2da5e70ef"
but i have no sound only video track.
I try to do
hlsdl -A -c -u "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:90.0) Gecko/20100101 Firefox/90.0" -h "Referer:https://www.france.tv/france-2/direct.html" -o "France 2 en direct.ts" "https://simulcast.ftven.fr/ZXhwPTE2Mjc3NTEwMjN+YWNsPSUyZip+aG1hYz05NzA3NWQ5OTNhNjkyMmRjYzlkMDBlYTY2ZWY2MGZiYjliNDM0ZTdjODA1ZmFhYzMzYmU1MjUxYWMxNjEwNjY4/simulcast/France_2/hls_fr2/index.m3u8?hdnea=exp=1627730023~acl=%2f*~hmac=22ed69b57700282e0869bce5eb2cee11adb8ee7789937543a6b9c9e2da5e70ef"
Terminal Output :
1: Bandwidth: 3151921, Resolution: 1280x720, Codecs: avc1.4d401f,mp4a.40.2
2: Bandwidth: 1752721, Resolution: 960x540, Codecs: avc1.4d401f,mp4a.40.2
3: Bandwidth: 1228022, Resolution: 640x360, Codecs: avc1.42c01e,mp4a.40.2
4: Bandwidth: 586721, Resolution: 384x216, Codecs: avc1.42c01e,mp4a.40.2
5: Bandwidth: 257910, Resolution: 256x144, Codecs: avc1.42c01e,mp4a.40.2
Which Quality should be downloaded? 1
0: Name: Audio Description, Language: qad
1: Name: Version Originale, Language: qaa
2: Name: Francais, Language: fr
Which Language should be downloaded? 2

START media_playlist_get_links
END media_playlist_get_links
START media_playlist_get_links
END media_playlist_get_links
HLS Stream is AES-128 encrypted.
File already exists. Overwrite? (y/n) y
{"d_t":"live"}
Downloading part 25957383
START DOWNLOAD LIST url[https://simulcast.ftven.fr/ZXhwPTE2Mjc3NTEwMjN+YWNsPSUyZip+aG1hYz05NzA3NWQ5OTNhNjkyMmRjYzlkMDBlYTY2ZWY2MGZiYjliNDM0ZTdjODA1ZmFhYzMzYmU1MjUxYWMxNjEwNjY4/simulcast/France_2/hls_fr2/France_2-avc1_2600000=10004.m3u8]
Only the video is downloaded.

I try to add -a options but i think my syntax or my source is incorrect because the following code
hlsdl -c -u "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:90.0) Gecko/20100101 Firefox/90.0" -h "Referer:https://www.france.tv/france-2/direct.html" -o "France 2 en direct.ts" -a "https://simulcast.ftven.fr/ZXhwPTE2Mjc3NTEwMjN+YWNsPSUyZip+aG1hYz05NzA3NWQ5OTNhNjkyMmRjYzlkMDBlYTY2ZWY2MGZiYjliNDM0ZTdjODA1ZmFhYzMzYmU1MjUxYWMxNjEwNjY4/simulcast/France_2/hls_fr2/France_2-mp4a_98400_fra=20000.m3u8" "https://simulcast.ftven.fr/ZXhwPTE2Mjc3NTEwMjN+YWNsPSUyZip+aG1hYz05NzA3NWQ5OTNhNjkyMmRjYzlkMDBlYTY2ZWY2MGZiYjliNDM0ZTdjODA1ZmFhYzMzYmU1MjUxYWMxNjEwNjY4/simulcast/France_2/hls_fr2/index.m3u8?hdnea=exp=1627730023~acl=%2f*~hmac=22ed69b57700282e0869bce5eb2cee11adb8ee7789937543a6b9c9e2da5e70ef" return me this error Error: uri to audio media playlist was set but main playlist is not media playlist.

I can download Audio and Video separately with
hlsdl -b -c -u "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:90.0) Gecko/20100101 Firefox/90.0" -h "Referer:https://www.france.tv/france-2/direct.html" -o "France 2 en directVIDEO.ts" "https://simulcast.ftven.fr/ZXhwPTE2Mjc3NTEwMjN+YWNsPSUyZip+aG1hYz05NzA3NWQ5OTNhNjkyMmRjYzlkMDBlYTY2ZWY2MGZiYjliNDM0ZTdjODA1ZmFhYzMzYmU1MjUxYWMxNjEwNjY4/simulcast/France_2/hls_fr2/France_2-avc1_2600000=10004.m3u8" for the video and
hlsdl -b -c -u "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:90.0) Gecko/20100101 Firefox/90.0" -h "Referer:https://www.france.tv/france-2/direct.html" -o "France 2 en direct.ts" "https://simulcast.ftven.fr/ZXhwPTE2Mjc3NTEwMjN+YWNsPSUyZip+aG1hYz05NzA3NWQ5OTNhNjkyMmRjYzlkMDBlYTY2ZWY2MGZiYjliNDM0ZTdjODA1ZmFhYzMzYmU1MjUxYWMxNjEwNjY4/simulcast/France_2/hls_fr2/France_2-mp4a_98400_fra=20000.m3u8" for the sound
and then join the two tracks with ffmpeg but i need to manually resynchronise the two files.

What i'm doing wrong ?
Thanks in advance and sorry for my poor English (i'm french).
Regards

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

1 participant