video-editing

Understanding/controlling MLT melt slideshow?

断了今生、忘了曾经 提交于 2019-12-02 10:17:32
Consider the following bash script (on Ubuntu 18.04, melt 6.6.0), which uses melt to make a slideshow and play it locally in a window (SDL consumer), mostly copied from https://mltframework.org/blog/making_nice_slideshows/ ( edit: I'm aware that's its possible to specify files individually as in https://superuser.com/questions/833232/create-video-with-5-images-with-fadein-out-effect-in-ffmpeg/834035#834035 - but that approach seems to scale images during transition, and takes quite a while to "render" before playing in SDL window, while this one has nearly instant playback): echo " description

Video Editing issues in iOS

廉价感情. 提交于 2019-12-02 06:24:45
问题 I am currently working on an iOS app which merges desired number of videos. Once the user taps the button to merge the videos, the videos are joined and then played using AVPlayer as: CMTime nextClipStartTime = kCMTimeZero; NSInteger i; CMTime transitionDuration = CMTimeMake(1, 1); // Default transition duration is one second. // Add two video tracks and two audio tracks. AVMutableCompositionTrack *compositionVideoTracks[2]; AVMutableCompositionTrack *compositionAudioTracks[2];

ffmpeg: concat videos and images

跟風遠走 提交于 2019-11-30 20:26:05
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) video2.mp4: 16:44 I have tried a few things, but I always end up with the same problem: the video is 23:20

iOS Video Editing - Is it possible to merge (side by side not one after other) two video files into one using iOS 4 AVFoundation classes?

给你一囗甜甜゛ 提交于 2019-11-28 16:45:39
I know you could merge multiple clips and create a single video by appending one after other using AVFoundation classes- AVURLAsset, AVMutableComposition, AVMutableCompositionTrack etc. There are apps like 'Video-Joiner' that do that. What I want to do is to juxtaposition 2 videos. My app idea - SelfInterviewer please don't steal :) First I record video 1 using front facing camera standing left to the frame. Then video 2 standing to the right. In video 1 ask a question and in video 2 I answer. When I merge, it should appear like I am being interviewed by myself. I am almost sure its not

Compress a video on client side web [closed]

孤街醉人 提交于 2019-11-28 13:36:16
I have to upload a video from front-end web to my Django back-end. I need to compress the video before to upload it. So, I need some libraries (for example javascript libraries) to use on client-side (browser) to compress the video and call my ajax function to upload it. Is possible this? Can we suggest me something like javascript libraries to make this? I found this project. It is a conversion of FFMPEG decoder in javascript language. So you can use it to work images, video and audio files without upload file to server. Homepage: https://bgrins.github.io/videoconverter.js/ GitHub: https:/

How can I add overlay text on a video, then re-encode it?

谁都会走 提交于 2019-11-27 18:26:04
I want to edit video from my iOS application. I want some text on the source video for language subtitles. I then want to save video with that text overlaid. text not just only display purpose. but when i open edited video it show updated video. Is this possible in an iOS application? If so, how? Chaitali Jain - (void)addAnimation { NSString *filePath = [[NSBundle mainBundle] pathForResource:videoName ofType:ext]; AVURLAsset* videoAsset = [[AVURLAsset alloc]initWithURL:[NSURL fileURLWithPath:filePath] options:nil]; AVMutableComposition* mixComposition = [AVMutableComposition composition];

How to extract time-accurate video segments with ffmpeg?

会有一股神秘感。 提交于 2019-11-27 11:22:26
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, but there are some black frames at the beginning and end of the clip, which I can't have -- it has to

iOS Video Editing - Is it possible to merge (side by side not one after other) two video files into one using iOS 4 AVFoundation classes?

依然范特西╮ 提交于 2019-11-27 09:55:00
问题 I know you could merge multiple clips and create a single video by appending one after other using AVFoundation classes- AVURLAsset, AVMutableComposition, AVMutableCompositionTrack etc. There are apps like 'Video-Joiner' that do that. What I want to do is to juxtaposition 2 videos. My app idea - SelfInterviewer please don't steal :) First I record video 1 using front facing camera standing left to the frame. Then video 2 standing to the right. In video 1 ask a question and in video 2 I answer

Cutting the videos based on start and end time using ffmpeg

别来无恙 提交于 2019-11-26 21:12:25
I tried to cut the video using the start and end time of the video by using the following command ffmpeg -ss 00:00:03 -t 00:00:08 -i movie.mp4 -acodec copy -vcodec copy -async 1 cut.mp4 By using the above command i want to cut the video from 00:00:03 to 00:00:08 . But it is not cutting the video between those times instead of that it is cutting the video with first 11 seconds. can anyone help me how resolve this? Edit 1: I have tried to cut by using the following command which is suggested by mark4o ffmpeg -i movie.mp4 -ss 00:00:03 -t 00:00:08 -async 1 cut.mp4 But it was shown the following

How can I add overlay text on a video, then re-encode it?

狂风中的少年 提交于 2019-11-26 19:26:11
问题 I want to edit video from my iOS application. I want some text on the source video for language subtitles. I then want to save video with that text overlaid. text not just only display purpose. but when i open edited video it show updated video. Is this possible in an iOS application? If so, how? 回答1: - (void)addAnimation { NSString *filePath = [[NSBundle mainBundle] pathForResource:videoName ofType:ext]; AVURLAsset* videoAsset = [[AVURLAsset alloc]initWithURL:[NSURL fileURLWithPath:filePath]