Solved! re-write certain part of .mp4 file using ffmpeg

Dec 24, 2018
3
0
10
0
Hello There,
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 (mins:sec) 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.

Appreciate your help.
 

USAFRet

Splendid
Moderator
Any current video editor can do this.

Video A
1 minute slice of Video B

Split Video A at the point where you want the 1 minute slice to begin.
Trim the needed time from it
Add in the Video B 1 minute time slice.
Render.

No matter what tool you use, at some point there is going to be a "temporary". Whether it be in RAM, or actually writing a file.
 

TerryLaze

Commendable
May 9, 2016
116
0
1,710
38
No you will have to cut this one minute out of the existing file,no need to re code so it should only take as long as it takes to copy this amount of data,and then join the new minute to this new file.

You could do this with a linux command that is available on windows and is called DD
but you should be aware that messing this up will break your video(and possibly your whole system if you mess up big enough) and it is super easy to mess this up.
https://unix.stackexchange.com/questions/146922/is-dd-able-to-overwrite-parts-of-a-file
 
Dec 24, 2018
3
0
10
0


Thanks. But now a days backups are so common with snapshot and everything around. I am fine with experimenting. In regular files, we use to program to "seek " to specific position in file (In this case seek is time based), then read one minute full file in buffer and come back to this file to overwrite at above position and close the file. Something should be possible. Thanks again for your time.


 

USAFRet

Splendid
Moderator
Any current video editor can do this.

Video A
1 minute slice of Video B

Split Video A at the point where you want the 1 minute slice to begin.
Trim the needed time from it
Add in the Video B 1 minute time slice.
Render.

No matter what tool you use, at some point there is going to be a "temporary". Whether it be in RAM, or actually writing a file.
 
Dec 24, 2018
3
0
10
0


Thanks. Yes in RAM it should be fine.. I mean writing GBs of file for a need to rewrite less then 100mb doesn't seem logical.
Please can you advise doing this using command line?
 

USAFRet

Splendid
Moderator


Commandline? I'd have to do a lot of investigation and experimentation.

Personally, I'd just use a video editor like Hitfilm Express.
https://fxhome.com/express
Free and easy.
 
Thread starter Similar threads Forum Replies Date
M Apps General Discussion 2
H Apps General Discussion 3
A Apps General Discussion 1
Y Apps General Discussion 1
L Apps General Discussion 5
O Apps General Discussion 1
V Apps General Discussion 1
M Apps General Discussion 9
S Apps General Discussion 2
A Apps General Discussion 1
P Apps General Discussion 1
L Apps General Discussion 3
A Apps General Discussion 1
T Apps General Discussion 1
Y Apps General Discussion 1
I Apps General Discussion 2
C Apps General Discussion 3
K Apps General Discussion 4
A Apps General Discussion 6
O Apps General Discussion 1
Similar threads
Write a menu driven program which has following options 1. Factorial 2. Prime or not 3. Odd or even. 4. Exit. Once the menu
Write a program in C++ using classes and function overloading, to calculate volume of Cube, Cuboid and a Cylinder, the program
Write a C program that computes and prints out an approximate number of primes not exceeding a given number, x .
Write a program to calculate commission for the input valu of sales amount
Could you please help me write a cpp code for an assignment I have in school for juice
how to write a calculator program that will ask the user if he/she wann continue using loop
Write basic statement of To add values of X and Y in Z
Does anyone know if there is software to write mkv files to an UHD blu ray?
online4. Write the program to declare Single dimensional array that stores (5) integer values and perform following operations
Write a program for a multiple choice survey.
1st question : 210 points. Write a program to simulate a keyboard with given keys and their operation. You need to print the f
I turned in an assignment late because MyWritingLab took awhile to process my temp access code
palindrome is a word, phrase, or sequence that reads the same backwards as forwards. Given a palindrome write a program to pri
Write a C++ program to help the Administration of a football league to manipulate the list of players registered in different
write a program to create a frame by creating an object to the subclass of an frame class
1. Write a program that outputs the greatest common divisor of two positive integers. For example, if you input two positive
How to remove write protect from photos already on computer
AutoHotKey Script writing for n00bs.
3. Write a C# application that asks the user to input ‘A’ and ‘B’ and prints the sum of squares of all even numbers be
How do I configure Superspeed SuperCache for faster write speeds? And Should I have a RAMDISK as well?

ASK THE COMMUNITY