Download .mp4 video and write it on gallery - ios

i want to download .mp4 videos with progress bar and write it on gallery . I had tried many ways but none of them is working .
I have a direct link for example http://example.mp4 .
Is there any third party or other way.
I had found that one How to download video from url and save it in to document directory in iOS? but none of solution is working

Related

Embeded video shows 'This video isn't available any more'. How to filter?

I am using https://oembed.com to embed youtube videos in my project. I am able to get thumbnails for most of the videos. But for some I am getting link where video is not available and shows 'This video isn't available any more'.
I am using this format 'https://www.youtube.com/oembed?url=${youtubeurl}&format=json'
How can I fix this? Any ways to filter out the videos which are not available?

How to upload video on vine programmatically

In my app , i want to share a video on vine . i search a lot but didn't get proper result for sharing video on vine.
thanks in advance .
Have a look to https://github.com/VineAPI/VineAPI/blob/master/endpoints.md
You need to Login, Upload thumbnail, Upload video, Create post.

Upload slideshow to Youtube

How do I upload a photo slideshow to Youtube using their API?
I could not find it here:
https://developers.google.com/youtube/2.0/developers_guide_protocol_uploading_videos
Looks like there is only API for regular video uploading.
update:
Photo slideshow is the second option for manual video upload. Here: http://www.youtube.com/my_videos_upload
You can attach several photos, add music from predefined list and modify video settings like title, description, etc. It will be converted by Youtube to video internally and published.

create YouTube video slideshow from image and audio inputs

I'd like to upload an audio file to my website, programmatically create an video slideshow using an image already on the server, and then upload that video to YouTube using its API. The website is built on Grails, so a Java solution would be great; Linux command line could also work.
Uploading videos using the YouTube API is working well. I also have no trouble getting avconv or ffmpeg to create videos that will play in, for example, Windows Media Player. This works to make a playable movie:
avconv -i image.jpg -i audio.mp3 video.mpg
However, manually uploading that video to YouTube results in a format error. I can create other files that YouTube will process successfully, but the audio plays back with regular stutters. (A second or so of clear audio, then a brief gap, then some clear audio, ...) For example:
avconv -i image.jpg -i audio.mp3 video.mkv
I have experimented with a variety of output formats and codecs, but all fall into one of those categories: apparent encoding success but YouTube processing failure, or processing success but unacceptable audio playback.
I wonder if anyone can point me in the right direction. I'm open to any solution that will let me solve the basic problem of uploading audio to YouTube via my Grails website without forcing my users to create the video slideshow themselves.
Thanks in advance for any clues.
It is quite easy to create a YouTube slideshow video on iPad. This guide shows the steps.
Adding music, applying transitions, editing photos can all be done there.
I built a pretty similar web service, based on ffmpeg: it's called tovid.io — uploads user-provided mp3 to YouTube as a video, using uploaded image file for a visual track. User uploads mp3 file, an image, then we render a video in the backend, and publish it on YouTube under the user's account.
It is very easy to render an h264 mp4 video following YouTube specs using Linux command line ffmpeg. Let me know if you're interested in our particular command line.

How to save youtube videos with UISaveVideoAtPathToSavedPhotosAlbum?

I am able to save the local video (which I have copied to code) to my
Photo Album with the help of UISaveVideoAtPathToSavedPhotosAlbum.
I want to save the you tube video into the Photo album. Is it possible?
Thanks in advance.
Unfortunately, you can't save YouTube videos locally because of 2 main reasons:
YouTube do not allow users to download videos to local devices.
There is no appropriate API in iOS for this.

Resources