Closed mylselgan closed 1 year ago
It's working here. What happens if you add
print("**** the url is '#{url}'")
to show the url?
yes it prints
**** the url is 'https://manifest.googlevideo.com/api/manifest/hls_playlist/expire/1695505000/ei/CAYPZcqcHKuM_9EPg8aAmAU/ip/38.45.64.217/id/qvQs9pBxxBI.5/itag/91/source/yt_live_broadcast/requiressl/yes/ratebypass/yes/live/1/sgoap/gir%3Dyes%3Bitag%3D139/sgovp/gir%3Dyes%3Bitag%3D160/hls_chunk_host/rr2---sn-vgqsknzy.googlevideo.com/playlist_duration/30/manifest_duration/30/spc/UWF9f4j-g0WHlWEOFnwdt62fOEhjfQ0/vprv/1/playlist_type/DVR/mh/v6/mm/44/mn/sn-vgqsknzy/ms/lva/mv/u/mvi/2/pl/25/dover/11/pacing/0/keepalive/yes/fexp/24007246/beids/24350018/mt/1695481891/sparams/expire,ei,ip,id,itag,source,requiressl,ratebypass,live,sgoap,sgovp,playlist_duration,manifest_duration,spc,vprv,playlist_type/sig/AOq0QJ8wRAIgOO8--T7iRqgLt1cbhqVItsmkcClP8X9-cWiVxzdIbYYCIG9k82K_A5xdLBseoYNuWZ1CiR2Zjkk8EStnJ7MX1uxD/lsparams/hls_chunk_host,mh,mm,mn,ms,mv,mvi,pl/lsig/AG3C_xAwRQIhANTB2WGd3oAmCsmCsYgD5FkqLZW1nVN0uPozoZrceIQ7AiBW2qLi4JsIbk8ZKai78gmNS0AzCU5pLrhXe5_EupMffw%3D%3D/playlist/index.m3u8
but
url = "https://manifest.googlevideo.com/api/manifest/hls_playlist/expire/1695505000/ei/CAYPZcqcHKuM_9EPg8aAmAU/ip/38.45.64.217/id/qvQs9pBxxBI.5/itag/91/source/yt_live_broadcast/requiressl/yes/ratebypass/yes/live/1/sgoap/gir%3Dyes%3Bitag%3D139/sgovp/gir%3Dyes%3Bitag%3D160/hls_chunk_host/rr2---sn-vgqsknzy.googlevideo.com/playlist_duration/30/manifest_duration/30/spc/UWF9f4j-g0WHlWEOFnwdt62fOEhjfQ0/vprv/1/playlist_type/DVR/mh/v6/mm/44/mn/sn-vgqsknzy/ms/lva/mv/u/mvi/2/pl/25/dover/11/pacing/0/keepalive/yes/fexp/24007246/beids/24350018/mt/1695481891/sparams/expire,ei,ip,id,itag,source,requiressl,ratebypass,live,sgoap,sgovp,playlist_duration,manifest_duration,spc,vprv,playlist_type/sig/AOq0QJ8wRAIgOO8--T7iRqgLt1cbhqVItsmkcClP8X9-cWiVxzdIbYYCIG9k82K_A5xdLBseoYNuWZ1CiR2Zjkk8EStnJ7MX1uxD/lsparams/hls_chunk_host,mh,mm,mn,ms,mv,mvi,pl/lsig/AG3C_xAwRQIhANTB2WGd3oAmCsmCsYgD5FkqLZW1nVN0uPozoZrceIQ7AiBW2qLi4JsIbk8ZKai78gmNS0AzCU5pLrhXe5_EupMffw%3D%3D/playlist/index.m3u8"
s = input.ffmpeg(url)
output()
successfully outputs audio to the icecast but not the first example with process.read
Hi @mylselgan,
Try input.ffmpeg(string.trim(url))
. I think the culprit is a newline symbol at the end of the URL.
By the way, 2.1.4 and 2.2.1 work well without trimming the spaces.
Thanks, Works fine with input.ffmpeg(string.trim(url))
What is streamlink? I never tried before. I use liquidsoap to convert YouTube live link to audio only radio service. Will streamlink useful for me in this case?
Hi @mylselgan,
Try
input.ffmpeg(string.trim(url))
. I think the culprit is a newline symbol at the end of the URL. By the way, 2.1.4 and 2.2.1 work well without trimming the spaces.Offtopic Did you try streamlink?
The streamlink is a piece of software designed to pull live streaming sources. Mostly, I use it to watch and record streams or dump VODs from various platforms.
@smimram, I think the version of ffmpeg from debian:10 and ubuntu:20.04 can't handle the newline symbol in the link or something. Is it necessary to trim the string on the liquidsoap side?
Has the problem been resolved in version ffmpeg=1.1.8
? If so, we can close this issue.
Describe the bug The function process.read is not working as expected.
To Reproduce
Expected behavior the process.read should return a m3u8 URL because the command
/usr/local/bin/yt-dlp --no-warnings -f 91/worstvideo -g 'https://www.youtube.com/watch?v=gCNeDWCI0vo'
returns the m3u8 URL in the terminalVersion details Virtualization: kvm Operating System: Debian GNU/Linux 10 (buster) (same issue with Ubuntu 20.04LTS also.) Kernel: Linux 4.19.0-5-amd64 Architecture: x86-64
Install method Installed via opam LOG