video-thumbnails

Getting a thumbnail of a *.mov video IOS

。_饼干妹妹 提交于 2019-12-17 17:52:26
问题 I want to get a thumbnail of videos (*.mov) which taken with iPhone/iPAD. I am trying to use AVFoundation library for this and getting this error: couldn't generate thumbnail, error:Error Domain=AVFoundationErrorDomain Code=-11822 "Cannot Open" UserInfo=0x15d90a30 {NSLocalizedDescription=Cannot Open, NSLocalizedFailureReason=This media format is not supported.} Code: NSArray *paths=NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentDir=[paths

How to display the videos url in thumbnails?

本小妞迷上赌 提交于 2019-12-12 17:14:37
问题 I'm facing problem in showing videos in thumbnails.. From the database video link is retrieved and stored in string array. I want to display the array of videos in thumbnails grid view. How to implement this? Its possible to display? Can anyone help me? Thanks a lot in advance. I tried this.... vid = new ArrayList<String>(new ArrayList<String>(vid)); runOnUiThread(new Runnable() { public void run() { setContentView(R.layout.gallery); GridView grd = (GridView)findViewById(R.id.gridView1); grd

How to force high quality thumbnails for YouTube Player API iframe Embeds?

半世苍凉 提交于 2019-12-09 10:51:18
问题 The thumbnails looked fine for over a year, but suddenly became blurry. The thumbnail that appears on page load looks correct, but anytime a new thumbnail is displayed using 'player.cueVideoById', it looks very blurry. There is no mention in the documentation of how to control the thumbnail quality (only video quality settings, such as 'setPlaybackQuality' are available). The documentation: https://developers.google.com/youtube/iframe_api_reference How can I force high quality thumbnail

How do i get thumbnail of a video in android

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-06 15:56:35
问题 i want some help in creating thumbnail of a video being recorded from my android phone and i have get this code from this Link, and i modified this part of the code to generate the thumbnail but somehow the thumbnail is not being generated , so any help will be appreciated. @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); if (resultCode == RESULT_OK && requestCode == VIDEO_CAPTURED) { videoFileUri

I want to display a videothumbnail image of a video from url in my uiimageview for iphone

安稳与你 提交于 2019-12-06 09:05:12
问题 Is it possible to get the first image frame of a video and display it in uiimageview . My video is saved in the server. i need to call the url to play the video 回答1: An example: NSURL *videoURl = [NSURL fileURLWithPath:videoPath]; AVURLAsset *asset = [[AVURLAsset alloc] initWithURL:videoURl options:nil]; AVAssetImageGenerator *generate = [[AVAssetImageGenerator alloc] initWithAsset:asset]; generate.appliesPreferredTrackTransform = YES; NSError *err = NULL; CMTime time = CMTimeMake(1, 60);

iOS Swift : Error Domain=NSOSStatusErrorDomain Code=-12792?

╄→гoц情女王★ 提交于 2019-12-06 05:29:54
I'm trying to get video thumbnails with the following code: let asset = AVAsset(URL: url) let imageGenerator = AVAssetImageGenerator(asset: asset) imageGenerator.appliesPreferredTrackTransform = true do { let cgImage = try imgGenerator.copyCGImageAtTime(CMTimeMake(1, 30), actualTime: nil) let uiImage = UIImage(CGImage: cgImage) imageview.image = uiImage } catch let error as NSError { print("Image generation failed with error \(error)") } Sometimes it works and sometime it doesn't showing the following error: Error Domain=AVFoundationErrorDomain Code=-11800 "The operation could not be completed

Creating thumbnail from video file returns null bitmap

徘徊边缘 提交于 2019-12-05 22:27:03
问题 I send an intent to launch the video camera PackageManager pm = getPackageManager(); if(pm.hasSystemFeature(PackageManager.FEATURE_CAMERA)){ Intent video = new Intent(MediaStore.ACTION_VIDEO_CAPTURE); File tempDir= new File(Environment.getExternalStoragePublicDirectory( Environment.DIRECTORY_PICTURES), "BCA"); if(!tempDir.exists()) { if(!tempDir.mkdir()){ Toast.makeText(this, "Please check SD card! Image shot is impossible!", Toast.LENGTH_SHORT).show(); } } String timeStamp = new

Create Video Thumbnail of All Files in a Directory via FFmpeg and PHP

自古美人都是妖i 提交于 2019-12-05 08:06:09
问题 I have searched all over the Google and StackOverFlow, but still did not find a solution for this. I want to generate video thumbnail of all mp4 video files in a directory and name the thumbnails as "filename.mp4".jpg I have ffmpeg and ffmpeg-php installed on my server. I also succeeded in creating thumbnails of one file at a time. So this is the situation, I have a directory named uploads which has lots of mp4 videos. Now, when I run the script, thumbnail of size 100x100 shoud be created

How do i get thumbnail of a video in android

和自甴很熟 提交于 2019-12-04 23:24:43
i want some help in creating thumbnail of a video being recorded from my android phone and i have get this code from this Link , and i modified this part of the code to generate the thumbnail but somehow the thumbnail is not being generated , so any help will be appreciated. @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); if (resultCode == RESULT_OK && requestCode == VIDEO_CAPTURED) { videoFileUri = data.getData(); if (videoFileUri != null) { Bitmap image= ThumbnailUtils.createVideoThumbnail

I want to display a videothumbnail image of a video from url in my uiimageview for iphone

会有一股神秘感。 提交于 2019-12-04 12:08:03
Is it possible to get the first image frame of a video and display it in uiimageview . My video is saved in the server. i need to call the url to play the video An example: NSURL *videoURl = [NSURL fileURLWithPath:videoPath]; AVURLAsset *asset = [[AVURLAsset alloc] initWithURL:videoURl options:nil]; AVAssetImageGenerator *generate = [[AVAssetImageGenerator alloc] initWithAsset:asset]; generate.appliesPreferredTrackTransform = YES; NSError *err = NULL; CMTime time = CMTimeMake(1, 60); CGImageRef imgRef = [generate copyCGImageAtTime:time actualTime:NULL error:&err]; UIImage *img = [[UIImage