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
  Microphone stream manipulation Talking2442 1 2,682 Nov-19-2023, 02:08 PM
Last Post: palumanic
  EEG stream data with mne and brainfolw PaulC 0 462 Aug-22-2023, 03:17 AM
Last Post: PaulC
  Decoding a serial stream AKGentile1963 7 8,339 Mar-20-2021, 08:07 PM
Last Post: deanhystad
  stream audio from pc to pc floatingshed 2 1,929 Sep-16-2019, 03:45 PM
Last Post: floatingshed
  pi camera stream is upside down delta1071 3 5,682 Sep-11-2019, 11:35 AM
Last Post: metulburr
  Need help to read a gzip stream... pythonchakri 5 4,085 Jun-07-2019, 02:33 AM
Last Post: heiner55
  How to improve the quality of my code? grobattac37 3 2,449 Jan-25-2019, 06:17 PM
Last Post: ichabod801
  Python packages - quality j.crater 8 5,679 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