Closed Achu2234 closed 2 years ago
Which pytgcalls version?
Which pytgcalls version?
dev13
Which pytgcalls version?
dev13
Try start video without audio. Is the error still exists?
Which pytgcalls version?
dev13
Try start video without audio. Is the error still exists?
ok sir
sir same error
sir same error
Are you using pafy to get video source?
yes
yes
try this temp solution
video = pafy.new('https://www.youtube.com/watch?v=7tNtU5XFwrU') video_source = video.getbest().url for stream in video.streams: if stream.resolution == '1280x720': video_source = stream.url
The main idea is pass only 720p video stream
ok sir
you mean i want to change
youtube_regex = (
r'(https?://)?(www\.)?'
'(youtube|youtu|youtube-nocookie)\.(com|be)/'
'(watch\?v=|embed/|v/|.+\?v=)?([^&=%\?]{11})')
youtube_regex_match = re.match(youtube_regex, video)
if youtube_regex_match:
try:
yt = pafy.new(video)
best = yt.getbest()
video_url = best.url
this to
video = pafy.new('vidio') video_source = video.getbest().url for stream in video.streams: if stream.resolution == '1280x720': videosource = stream.url
When we steram yt lives after some min the error core dumbed coming after yt vidio or media have no problem this issue only when we steram yt live
Url of live : https://youtu.be/JstrU2QnMY0