Python Forum
Best Video Quality And Stream
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Best Video Quality And Stream
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 = ""
video =
best = video.getbest()
playurl = best.url
instance = vlc.Instance()
player = instance.media_player_new()
media = instance.media_new(playurl)
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

(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

Possibly Related Threads…
Thread Author Replies Views Last Post
  Microphone stream manipulation Talking2442 0 69 Jan-07-2021, 07:36 PM
Last Post: Talking2442
  When piping a FFMPEG stream to PyAudio, I get a "click" on every loop klehman 0 1,062 Dec-15-2019, 04:22 AM
Last Post: klehman
  stream audio from pc to pc floatingshed 2 509 Sep-16-2019, 03:45 PM
Last Post: floatingshed
  pi camera stream is upside down delta1071 3 1,391 Sep-11-2019, 11:35 AM
Last Post: metulburr
  Need help to read a gzip stream... pythonchakri 5 1,463 Jun-07-2019, 02:33 AM
Last Post: heiner55
  How to improve the quality of my code? grobattac37 3 788 Jan-25-2019, 06:17 PM
Last Post: ichabod801
  Stream Data to Text or CSV format ekq378 0 890 Nov-16-2018, 06:32 PM
Last Post: ekq378
  speech converstions on live audio stream raady07 1 1,839 Jun-05-2018, 11:53 AM
Last Post: buran
  converting array of things to byte stream to send bigjoey 2 1,196 Feb-27-2018, 12:56 PM
Last Post: bigjoey
  Python packages - quality j.crater 8 2,757 Mar-13-2017, 08:58 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

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