I've got an app where the user shoots some video, enters a title for it, and picks a music track. I've got the music dubbing working with AVMutableComposition, but the titling is a bad hack -- just a view overlaid on the MPMoviePlayerViewController. And while the user can upload the dubbed video to YouTube, the title of course isn't included.
Are there iOS APIs that will let me access or create raw video frames, so I can either overlay the title on the video, or splice in new frames with the title before the start of the video proper?
For anyone coming along later: see, e.g., How do I export UIImage array as a movie?
Related
I would like to ask about developer policies of Youtube Iframe Player API(https://developers.google.com/youtube/iframe_api_reference).
Our team is currently developing an iOS app including Youtube embedded player.
We would like to check if our use cases below violate the rules for embedded youtube player.
Would it be okay if we use invisible player which we set opacity zero for purpose of getting thumbnail images in video?
Thumnails are taken by invisible player in the way as seeking to specific time and capture view at the time.
The thumnails are solely used for progress bar which consist of sequential images as green box in the below image and each image indicates each parts of video and there is no other purposes.
Images are made and used only in client local environment and not saved in our database.
Additionaly, can we provide the thumbnail extracted in the above method which background is removed?
Would it be possible that we hide below title bar which shows when player paused by adjusting CSS style, view frame size ?
Is there the other way to hide title bar ?
it seems that there are other mobile app services in Korea also using embeded player without titlebar like ‘Cake’ ( https://apps.apple.com/kr/app/cake-케이크-영어회화/id1350420987 )
We are developing feature ‘Metronome’ using BPM(beat per minute). for this, we need to use Audio PCM data in Video. regarding this we are currently examining three cases.
is it allowed to extract audio file from video to get PCM data?
is it allowed to access to device’s audio buffer to get PCM data?
is it allowed to record audio with mobile device to make audio file ?
Is it possible to provide a Metronome function that repeatedly plays a specific sound simultaneously with the audio of the Youtube video?
Would it be okay if we invert embeded player left and right? we plan to provide a mirror mode for user so that they practice dance conveniently.
Is it possible to provide a function that play repeatedly the specific time range (ex. from 00:05 to 00:10)?
Is it possible to provide a function that does not play immediately when the play button is pressed, but counts down for a certain period of time, such as 3 seconds, to play?
on this page, the video at the top of the page does not display an image unlike the video located on the side bar.
When play is pressed, there is no playback problem.
But my visitors may not click on the video thinking it doesn't work.
How can I make it appear?
the original video is here
The javascript code is here
The thumbnail sddefault isn't loading for an unknown reason for video VnWbJbtsyv4. However hqdefault seems to be working. So use https://img.youtube.com/vi/VnWbJbtsyv4/hqdefault.jpg instead of https://img.youtube.com/vi/VnWbJbtsyv4/sddefault.jpg.
Goal:
To add youtube like preview feature when user seeks manually using the player seek bar.
From what I understand so far is that I will have to add "I-Frame only playlist" to my stream to enable trick play but I am not able to figure out how I will be using this to show the preview view on the video player?
Other solutions I considered:
AVAssetImageGenerator: It does not work on streams. Explained here.
This says if my .m3u8 file contains "I-Frame only playlist", AVAssetImageGenerator will start returning the snapshot, but even if it does, generating thumbnails of a complete 1 hour video upfront is just not optimal.
AVPlayerItemVideoOutput This also seems like a very brut force way to approach the problem as I need thumbnails of almost complete video.
Current player implementation:
I have added AVPlayerLayer as a sublayer to my view controller's view and added custom controls on top of it.
I am thinking of using something like this https://github.com/pbs/iframe-playlist-generator to add the I-Frame playlist.
PS: I am new to this, so if I have made any wrong assumption, please let me know.
Also, any links or references to some reading material I can use to dive in deeper are appreciated. Thanks.
I'm trying to build website (for my own, and for practice) that coantian youtube videos, I know there is a possibility to embed YouTube videos, but I want to know if there is another way to embed the videos, I want all the information of the video to appear, just like on the YouTube site itself.
I want sonthing like this
Example of a video embedded in a normal way
And that includes the title of the video, its length, upload date (or how long ago), preview of the video (when hovering with the cursor over the video), and I also do not want the YouTube icon to appear in the middle of the video image in any embedded video (before playing it).
I know some things can be done using the YouTube API (like video title / video length information), or using functions (e.g. preview gif) but it's a bit cumbersome, and in any case it does not solve the problem of having the YouTube icon In the center of the image of the video.
So I want to know if there option to enbed youtube video with all the details, or at least if there option the get of the sign of youtube that show in the center of the video.
Sorry for my English if there are any mistakes. Thanks in advance from everyone.
We are building a TV application with user login and playing videos with search functionality. So we have designed our home screen with catalog template as in the below picture.
https://i.stack.imgur.com/1BWjl.jpg
Our Pending tasks are
1. Playing Videos in overlay with tag.
We are trying to achieve overlay with videofiles in a shelf. An api call result gives a list of videos which has to play in video player. The first item in the array should play in video player and remaining array items should display as overlay in the shelf. On mouse over, video file in overlay, should play in the overlay itself, with the help of tag, just like thumbnail video play. We tried a lot to play a video in overlay with the tag. But we couldn't do that.
A progress bar to be displayed on the current video which is being
playing.
We expected video play with progress bar and overlay on video player, but we got the output as in the link. https://i.stack.imgur.com/gepIo.jpg.
Progress bar is missing and videos inside the overlay are not playing.
Search functionality
End user can be able to search other users. So we have planned search functionality as a separate link. We have implemented search functionality as a separate template. Its working perfectly, but if i add it in the catalog template as a list item, search template is not loading.
Here is the code for the above application.
https://github.com/TVMLBegnr/TVMLApp
Can any one help me on these tasks. I am not finding TVML experienced people. I can even pay for the tasks.