Provide a technical strategy/feasibility study. This is research.
The requirement ? We need to figure out how to -:
1. Capture a VERY small amount of video from [url removed, login to view] from within an application.
2. e.g. capture only a 15 second clip from the middle of a youtube video
3. The middle can be defined as S-mm:ss & E-mm:ss Start-time and end-time
4. We cannot use the API - start & end time are unsupported , we need to use a URL.
5. We absolutely cannot download the ENTIRE video first, and then cut it. We need to download a slice. This is a mobile mobile app
Now the hard bit
5. We need to we use a URL like this
[url removed, login to view]
We need to capture JUST that video/audio and output to a file.
This needs to be done inside an application. My initial thoughts were cranking a headless browser with Selenium and somehow capturing the video and Audio.
If this CAN be done with the API even better. But our understanding is it's not supported.
We are looking for some specialist expertise with YouTube
We require a native Android Java function that can recover a very small piece of YouTube video < 20 seconds, and place it in a .mp4 file on the android filesystem. Like this :
fname=Get_vid ( vid_id, start_time mm:ss,end_time mm:ss);
fname=get_vid(v=3CJ6gxJyJDI, 01:32, 01:38)
The application will be running over LTE or 4g. So it is VERY important that we do not download the entire video.
Having done some preliminary research it seems the API does not support this. So we will need to resort to some other technique. We do not really care how complicated or ugly it is (Selenium & a headless browser ) It just needs to work.
As the API seems unusable for this function, we may need to resort to HTML 5, spoofing a browser, are Other tricky Solutions.
This represents the most difficult part of a very large application. So we are keen to get a solution