Both of them a vcodec property and a acodec property referring to video and audio respectively. Stream Object 1 and Stream Object 2 have progressive set to True implying it is a progressive stream. If you inspect the Stream object, you will notice each object has a boolean property called progressive. The video and audio components will have to be download separately and then merged together using a software. DASH streams are used to download videos in high resolution. A progressive stream has both the video and audio components while a DASH stream only has one of them. There are two types of streams Progressive and Dynamic Adaptive Streaming over HTTP (DASH). We will need to choose one of the streams and use it to download our video/audio. I have also truncated the output since it is pretty long. Step 4: Understanding the Stream Object print(yt.streams) We will be discussing them in the next step. The Youtube Object also has an attribute called streams. This URL can be used by streamlit’s image() function to display an image.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |