Hi there,
Happy holidays and happy new year.
How do i update existing .mp4 file using ffmpeg (or any other tool for that matter)
I want to overwrite one minute of video from 30:09 (minsec) to 31:09 using another video of one minute.
Is there any ways to achieve WITHOUT creating a new temporary file? Basically would like to update existing file directly to save time that it takes in creating new file and overwriting the original file.
Thanks for your help.
- Max.
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 4 of 4
Thread
-
-
Any programming language with file handling capabilities will let you write into a range of bytes. Or you can use a byte editor such as HxD. The bigger problem is that your replacement must be exactly the same length in bytes, not time, because the MP4 structure is full of length references. And you have to figure out exactly where to put it, respecting such things as GOPs and timestamps.
-
See why is there a need to recalculate anything? All that is needed is to put new video (ONLY) bits EXACTLY at same point where other VIDEO ONLY bits exist to avoid affecting the structure. There is no need of changing any of these header footers anywhere because we are not changing length, and we are not changing any of the quality or any such parameter which would otherwise require header/footer change. No?
-
Because the references might extend beyond the region you indicated. e.g. If you wanted 1min section , there might be some references before and after, so you'd actually have to include a larger segment before and after, up to the previous and next IDR frame(s) . It's a lot more difficult than it seems, and in-place editing is a lot more difficult than using temporary files. Good luck
Similar Threads
-
Split mp4 file into specified size (part1.mp4, part2.mp4 etc.)
By TubeBar in forum EditingReplies: 7Last Post: 1st Feb 2019, 22:41 -
How to upload and get direct .mp4 video link?
By edimmax in forum Video Streaming DownloadingReplies: 0Last Post: 27th Jun 2017, 11:31 -
MKVToolNix GUI - Splitting a file with multiple file parts added to it
By MisterNewb in forum EditingReplies: 5Last Post: 13th Sep 2015, 10:47 -
Direct stream copy for mp4?
By supercain in forum EditingReplies: 56Last Post: 6th May 2014, 12:51 -
I would like to cut this file into its constituent parts
By RBCC in forum Newbie / General discussionsReplies: 4Last Post: 21st Apr 2014, 23:47