Python Forum

Full Version: Best Video Quality And Stream
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey! Friends I Am Working For a py File I Want To Get Best Video Quality And Best Audio Stream Using pafy
Any Thoughts?
Here is the code i worked Far
import time
import vlc
import pafy
url = "https://www.youtube.com/watch?v=8JnfIa84TnU&list=RD8JnfIa84TnU&start_radio=1"
video = pafy.new(url)
best = video.getbest()
playurl = best.url
instance = vlc.Instance()
player = instance.media_player_new()
media = instance.media_new(playurl)
media.get_mrl()
player.set_media(media)
player.play()
time.sleep(70)
so, what is your question? what problem do you have and try to resolve?
(Aug-19-2020, 07:54 AM)buran Wrote: [ -> ]so, what is your question? what problem do you have and try to resolve?

I Want TO COmbine Video And Audio Stream Together at their best resolution such as 1920x1080