In my fun project, I'm downloading video file from youtube, and writing to a file on local disk. Simultaneously I want to play it. The objective is to cache the file on local disk, so that when I want to see the video again, the app can play it locally, thereby saving bandwidth.
I'm using Python 3.3.1
, PyQt4/Phonon
and LibVLC. So far, I'm able to do the following things:
Given a youtube watch url, I can download the video file and then play it using both PyQt4/Phonon and LibVLC, independently. It is not streaming.
Since LibVLC supports streaming, I'm able to play the given url through streaming.
The second is very close to what I want to do, but since it doesn't save the file on disk, next time I cannot play the same video locally.
I'm looking for some guidelines as to how to proceed from here. In particular, how to play a video from an incomplete file which is still being written into.
I'm completely fine with any API (that does the job) as long as it is:
- Python 3.3.1 (preferably)
- C
- C++.
And I'm looking for alternative approaches also, if my current approach is not correct or makes the problem more difficult than it actually is.
thread1
(which downloads the file) acts as server, andthread2
acts as a client, then maybe I could make it look like streaming and therefore LibVLC would able to play it. Is this approach doable? – ProceedingSince LibVLC supports streaming, I'm able to play the given url through streaming.
today I need to measure QoE/QoS for online video, Can we use VLC library for this purpose, I just need to measure speed of steaming. Can you help me on this, or give me some idea? – Baumannexample.mpg
is corrupt,media_player_new()
couldn't run the file. You may download one .mpg file andvlc.Instance()
that file. Anyways I am not sure that why I didn't add my comment there to your question, Sorry Man..And thanks for replay! :) – BaumannGstTee
. Where should it be located at? Do I need to install anything else? – Proceeding