video-processing

Trouble using ffmpeg in c# how to correctly format string to upscale videos?

喜你入骨 提交于 2021-02-11 12:26:36
问题 So I am writing an app in c# to upscale videos to a certain resolution. It uses ffmpeg to do this. What happens is after selecting the video file, and clicking 1080p it creates the directory folder but does not actually write the upscaled video to it. I think I must have a string format issue: private void HD_Click(object sender, EventArgs e) { if (textBox1.Text == null) { MessageBox.Show("You've not selected your video file yet. Please do so before continuing, cheers."); } else { var

Trouble using ffmpeg in c# how to correctly format string to upscale videos?

独自空忆成欢 提交于 2021-02-11 12:26:30
问题 So I am writing an app in c# to upscale videos to a certain resolution. It uses ffmpeg to do this. What happens is after selecting the video file, and clicking 1080p it creates the directory folder but does not actually write the upscaled video to it. I think I must have a string format issue: private void HD_Click(object sender, EventArgs e) { if (textBox1.Text == null) { MessageBox.Show("You've not selected your video file yet. Please do so before continuing, cheers."); } else { var

Detect missing objects in a video

蓝咒 提交于 2021-02-11 12:07:00
问题 I was wondering how can a missing object be detected using something similar to YOLO? Let's say I have the first video capturing a smartphone, keys and a passport. Then I have another video capturing the smartphone and keys only, is it possible to put up a warning stating that there is an object missing? 回答1: Yes. If you are using the python version of AlexeyAB darknet, you can see all the detections in this line: https://github.com/AlexeyAB/darknet/blob/master/darknet_video.py#L81 Then

AWS Elastic Transcoder to extract frames from videos?

丶灬走出姿态 提交于 2021-02-10 12:34:52
问题 As mentionned in a previous question, I'm looking for the best way to extract frames from videos using AWS. I came accross AWS Elastic Transcoder and tried to figure out if I could use it. The only option that could have been interesting is the thumbnails generation, but it is limited to 1 per second and I need all the frames of the video. Do you think there is way to do what I need with Elastic Transcoder ? Thanks 回答1: I don't believe Elastic Transcoder can do what you want. The best

AWS Elastic Transcoder to extract frames from videos?

橙三吉。 提交于 2021-02-10 12:33:28
问题 As mentionned in a previous question, I'm looking for the best way to extract frames from videos using AWS. I came accross AWS Elastic Transcoder and tried to figure out if I could use it. The only option that could have been interesting is the thumbnails generation, but it is limited to 1 per second and I need all the frames of the video. Do you think there is way to do what I need with Elastic Transcoder ? Thanks 回答1: I don't believe Elastic Transcoder can do what you want. The best

OpenCV - Save video segments based on certion condition

时光总嘲笑我的痴心妄想 提交于 2021-02-07 09:26:30
问题 Aim : Detect the motion and save only the motion periods in files with names of the starting time . Now I met the issue about how to save the video to the files with video starting time. What I tested : I tested my program part by part. It seems that each part works well except the saving part. Running status : No error. But in the saving folder, there is no video. If I use a static saving path instead, the video will be saved successfully, but the video will be override by the next video. My

Azure Media Services v3 shared access policy for download link

送分小仙女□ 提交于 2021-01-29 09:16:58
问题 How to secure download links created via Azure Media Services transformation job (and locator)? I'm aware of using AES or DRM encryption for video streams created by Azure Media Services, however, I haven't found any info on how to secure download links. I'm getting my download paths for my streaming locator like: var locator = new StreamingLocator { AssetName = assetName, StreamingPolicyName = PredefinedStreamingPolicy.DownloadAndClearStreaming }; ListPathsResponse paths = await client

Is it possible to fetch some key-frames of a video by using the HTTP Range header

十年热恋 提交于 2021-01-29 08:29:16
问题 I've read the SO problem , and it seems not applying to my specific case. Is it possible to fetch some key-frames of a video from web server by the HTTP Range header? For example, for a 30 seconds duration video, we'd like to analysis the I-frame around 00:00:02, 00:00:15, 00:00:28. I need to analysis the videos from internal web server to detect if there's specific watermarks in it and some other analysis. Since the first I-frame might be invalid sometimes(Logo for example), we were planning

Too High CPU Footprint of OpenCV Text Overlay on FHD Video Stream

北城以北 提交于 2021-01-29 02:33:35
问题 I want to display a FHD live-stream (25 fps) and overlay some (changing) text. For this I essentially use the code below. Basically it is Load frame ( cv::putText skipped here) Display frame if it's a multiple of delay but the code is super super slow compared to e.g. mpv and consumes way to much cpu-time ( cv::useOptimized() == true ). So far delay is my inconvenient fiddle-parameter to somehow make it feasible. delay == 1 results in 180 % CPU usage (full frame-rate) delay == 5 results in 80

Create a series of text clip and concatenate them into a video using moviepy

寵の児 提交于 2021-01-28 19:14:42
问题 In MoviePy there is an api to create a clip from text as well as to concatenate list of clips. I am trying to create a list of clips in a loop and then trying to concatenate them. Problem is every time it creates a video file of 25 seconds only with the last text in a loop. Here is the code for text in a list: try: txt_clip = TextClip(text,fontsize=70,color='white') txt_clip = txt_clip.set_duration(2) clip_list.append(txt_clip) except UnicodeEncodeError: txt_clip = TextClip("Issue with text"