video-editing

(FFMPEG) Make areas transparent before overlaying a vid with perspective

老子叫甜甜 提交于 2019-12-24 07:45:51
问题 I'm trying to add perspective to a small video then overlay it on top of an other. So far I can make the video small, add perspective to it and overlay it to an other video. but after applying the perspective filter, the excess areas don't turn transparent, they just stretch out the pixels. the perspective filter doesn't have much documentation but as far as i could find out there was no way of setting the extra pixels to transparent. So I'm guessing ill need to apply some kind of alpha mask,

Lib/API for create small gif from video?

為{幸葍}努か 提交于 2019-12-24 00:58:42
问题 I want to create GIF from the existing Video. I have search for related question but I did not find any link which can help me. I was looking for any library or API that can help me to either create bitmaps from the video then again I will create GIF from that bitmap or directly create GIF from the video. Is there any lib or API to capture sequence of bitmaps from the video? please give me any link for the library or API that can help me to do this. 回答1: Take look on JMF (Java Media Framework

video editing library in IOS

非 Y 不嫁゛ 提交于 2019-12-22 06:36:04
问题 I am looking for a video editing library in IOS. Editing tasks: -> Adding text or marks on top of the video frame. In my application user should be able to select a video from video library and also play the video in a movie player. And user able to pause the video then add some text or marks using free hand. we need to merge added text and marks in this video. 回答1: AVFoundation will do all that and more. The user interface for the app is, of course, up to you. But all the video manipulation

How can I trim a video from Uri, including files that `mp4parser` library can handle, but using Android's framework instead?

时光毁灭记忆、已成空白 提交于 2019-12-22 01:46:45
问题 Background Over the past few days, I've worked on making a customizable, more updated version of a library for video trimming, here (based on this library) The problem While for the most part, I've succeeded making it customizable and even converted all files into Kotlin, it had a major issue with the trimming itself. It assumes the input is always a File, so if the user chooses an item from the apps chooser that returns a Uri, it crashes. The reason for this is not just the UI itself, but

How to add chapters into mp4/mkv file using ffmpeg?

自古美人都是妖i 提交于 2019-12-19 09:56:00
问题 Currently i'm using MKVToolNix for my needs which is fine but i would prefer some CLI also. As far as i know ffmpeg supports chapters management. 回答1: The ffmetadata format allows you to add chapters to a file. Have a look at https://ffmpeg.org/ffmpeg-formats.html#Metadata-1 for an example. 回答2: Sorry maybe I'm not clear, and editing the answer I have messed up worst. I'm not English. Like Alex Zubkov I want add chapters to video with ffmpeg via cmd. The instruction in the page linked by

ffmpeg: concat videos and images

余生颓废 提交于 2019-12-19 02:31:40
问题 I have 2 videos (same resolution, same encoding) files that I want to concat and I want to insert some text for 3 seconds between them, as a splitter. I'm doing this with ffmpeg on Windows. Optional ideas that I would be interested in: avoid reencoding the video in the process having a fade in / fade out at the intersection of each part For now, I made the text as an image (but I am open to other suggestions). Let's say I have: video1.mp4: 6:33 splitter.png (same resolution as video1.mp4)

Dump last frame of video file using ffmpeg/mencoder/transcode et. al

筅森魡賤 提交于 2019-12-18 14:18:15
问题 I'd like to grab the last frame in a video ( .mpg , .avi , whatever) and dump it into an image file ( .jpg , .png , whatever). Toolchain is a modern Linux command-line , so things like mencoder , transcode , ffmpeg &c. Cheers, Bob. 回答1: This isn't a complete solution, but it'll point you along the right path. Use ffprobe -show_streams IN.AVI to get the number of frames in the video input. Then ffmpeg -i IN.AVI -vf "select='eq(n,LAST_FRAME_INDEX)'" -vframes 1 LAST_FRAME.PNG where LAST_FRAME

How to extract time-accurate video segments with ffmpeg?

做~自己de王妃 提交于 2019-12-17 08:27:13
问题 This is not a particularly new question area around here, but I've tried what's been suggested there without much luck. So, my story: I've got a hunk of 15 seconds of straight-from-the-camera.mov video out of which I want to extract a specific chunk, which I can identify by start time and stop time, in seconds. I started by trying to do what I'll call a "copy extraction": to get seconds 9 to 12, ffmpeg -i test.mov -vcodec copy -acodec copy -ss 9 -to 12 test-copy.mov This was a not-bad start,

Change rotation in MediaFormat

一个人想着一个人 提交于 2019-12-12 17:25:02
问题 In Android API 23 MediaFormat.KEY_ROTATION field was introduced. Is there any way to change rotation in MediaFormat on earlier Android versions? 回答1: I found the working solution: MediaFormat mediaformat; // ... mediaformat.setInteger("rotation-degrees", 0) 来源: https://stackoverflow.com/questions/33242851/change-rotation-in-mediaformat

Inserting an image inside a video at particular position via PHP and a video extension

若如初见. 提交于 2019-12-11 16:14:58
问题 What I am trying to do is, placing a small static image on inside a video clip at server side, by making use of PHP. For example, in TV news, you might see the culprit's photo at a corner when the anchor describes about a crime incident. I've tried doing some research. And found the ffmpeg-php extension for PHP. When going through the docs, I couldn't find any ready made methods or classes that would insert a picture at a particular position if we pass the x and y positions like in GD. But