video-editing

How to merge two audio files while retaining correct timings with ffmpeg

旧街凉风 提交于 2019-12-11 15:17:43
问题 Disclaimer: I don't understand ffmpeg and mostly just copy commands I have two webm video files. Their duration is off by about a second. I converted these to mp4 and everything was fine: ffmpeg -acodec libopus -i 1.webm -r 10 -cpu-used 5 -c:v libx264 -crf 20 -c:a aac -strict experimental -loglevel error 1.mp4 I then extracted the audio from each video and everything was fine. By fine, I mean, when I playback the audio files by themselves they match the timings on the original video. I used

Getting Exception while merging two file with ffmpeg

只愿长相守 提交于 2019-12-11 14:35:41
问题 I am trying to merge two mp4 files using ffmpeg command. My input files are not in same encoding so they are not merge with normal command. I have use below command but got exception. Command: - ffmpeg -i File_1.mp4 -i File_2.mp4 -filter_complex "[0:v]setsar=1[0v];[1:v]scale=720:576:force_original_aspect_ratio=decrease,setsar=1,pad=720:576:(ow-iw)/2:(oh-ih)/2[1v];[0v][0:a][1v][1:a]concat=n=2:v=1:a=1[outv][outa]" -map "[outv]" -map "[outa]" -c:v libx264 -crf 23 ffmpeg1.mp4 Exception I have got

Understanding MLT melt mixer luma mix (fade) duration?

拟墨画扇 提交于 2019-12-11 07:57:31
问题 Related to Understanding/controlling MLT melt slideshow?, I am trying to understand how does melt's luma mixer work, especially in context of short (small frame number) durations. For instance, if I use something like this specification tmppics/pic_01.jpg length=6 -mix 2 -mixer luma I would have expected 2 frames of fade of pic_01, then 2 frames full pic_01, then 2 frames of fade again - however, I've both experienced results that are like this, and those that are not. To clarify this, I've

How can I create time gaps in video recordings using newest version of FFMPEG?

ε祈祈猫儿з 提交于 2019-12-11 06:14:18
问题 I am new to the forum so I hope I've formulated this question correctly. I have downloaded newest version of FFMPEG and I would like to use it to modify existing video by inserting time gaps in it. Here is what I mean by time gap. If I have input video that lasts 2 seconds and was recorded at FPS=10, timestamps of its frames would be as follows: 0.1s, 0.2s,0.3s,0.4s, .. 1.7s, 1.8s, 1.9.s, 2s If I would to introduce time gaps, input videos frame would be something like this: 0.1s, 0.2s, 0.9s,

MLT (Media Lovin' Toolkit) Photo Slide Video

大兔子大兔子 提交于 2019-12-11 00:24:39
问题 I'm using MLT from the command line on a series of images. When I run: melt 0.jpg 1.jpg 2.jpg 3.jpg It generates a video where each photo occupies one frame (4 frame long video). I want each photo to occupy 100 frames. I've tried every combination of properties I can think of, such as: melt 0.jpg out=100 1.jpg in=100 out=200 2.jpg in=200 out=300 etc. But the results are not as intended. I've also tried organizing into tracks, and melting from an XML file. At best, I've been able to get the

Adding an Overlay Using FFMPEG With Minimal Re-Encoding

大兔子大兔子 提交于 2019-12-10 14:12:23
问题 FFMPEG is really useful for cutting a part of a video, without re-encoding the video. I know it is also possible to use FFMPEG for adding an Overlay Image to a video, in a certain part of the video (for example from 10secs till 20secs). My question is: If I do this overlaying of an image, will the whole video get re-encoded because of that? Or just the relevant duration will be encoded? Also are there any options that I can use to make the re-encoding minimal? The purpose if of course to keep

PHP Video Editing and Streaming

柔情痞子 提交于 2019-12-10 12:06:25
问题 I am developing online video streaming website on PHP. I need two functionalities: Need to add title/text at bottom of the video dynamically. Need to add background music to video dynamically. Is it possible with PHP or any available open source library? Can anyone guide me or provide links to this type of library ? Thanks. 回答1: Editing video with PHP is an extremely bad idea. This idea very closely approximates impossible. At best you would need to decode the video which would be brutally

how to add text on video in iPhone

 ̄綄美尐妖づ 提交于 2019-12-10 00:25:30
问题 I want to add a text or string ON the video being played by MPMoviePlayerViewController in a way that it becomes part of the video being played. So that, when I post that video on Facebook or Twitter the text must be shown above the video. For this I have tried getting all the frames of the video and then write text on each of those frames and then again make a video of all those frames. But this way, I am getting memory issues and it crashes on the device. - (NSArray*

How to Merge Multiple MP4 Videos files in single file

醉酒当歌 提交于 2019-12-08 05:57:23
问题 I need to merge the multiple MP4 videos file to a single file using java. Can any one tell me how to merge videos. Your help would be appreciated. 回答1: Since you do not mention format it is hard to give advice, but for mp4 this seems to be a good alternative. Even includes example of merging files. Code taken from link: MovieCreator mc = new MovieCreator(); Movie video = mc.build(Channels.newChannel(AppendExample.class.getResourceAsStream("/count-video.mp4"))); Movie audio = mc.build(Channels

How to Merge Multiple MP4 Videos files in single file

本秂侑毒 提交于 2019-12-06 16:31:43
I need to merge the multiple MP4 videos file to a single file using java. Can any one tell me how to merge videos. Your help would be appreciated. Since you do not mention format it is hard to give advice, but for mp4 this seems to be a good alternative. Even includes example of merging files. Code taken from link: MovieCreator mc = new MovieCreator(); Movie video = mc.build(Channels.newChannel(AppendExample.class.getResourceAsStream("/count-video.mp4"))); Movie audio = mc.build(Channels.newChannel(AppendExample.class.getResourceAsStream("/count-english-audio.mp4"))); List videoTracks = video