Python Forum
Best Video Quality And Stream
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Best Video Quality And Stream
#1
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)
Reply
#2
so, what is your question? what problem do you have and try to resolve?
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#3
(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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  EEG stream data with mne and brainfolw PaulC 0 990 Aug-22-2023, 03:17 AM
Last Post: PaulC
  Decoding a serial stream AKGentile1963 7 12,911 Mar-20-2021, 08:07 PM
Last Post: deanhystad
  Microphone stream manipulation Talking2442 0 3,832 Jan-07-2021, 07:36 PM
Last Post: Talking2442
  stream audio from pc to pc floatingshed 2 2,597 Sep-16-2019, 03:45 PM
Last Post: floatingshed
  pi camera stream is upside down delta1071 3 7,065 Sep-11-2019, 11:35 AM
Last Post: metulburr
  Need help to read a gzip stream... pythonchakri 5 5,303 Jun-07-2019, 02:33 AM
Last Post: heiner55
  How to improve the quality of my code? grobattac37 3 3,240 Jan-25-2019, 06:17 PM
Last Post: ichabod801
  Python packages - quality j.crater 8 7,259 Mar-13-2017, 08:58 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020