Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Help] Cut out a part of a video file and add it to another video file
#1
Guys,

So I have two video files, say,1.mp4 and 2.mp4. I want to cut out the beginning of 1.mp4 and then add it to 2.mp4, so that in the end I have 3.mp4 (which is the beginning of 1.mp4 + 2.mp4). Is it possible without re-encoding? Can ffmpeg take care of that? I know with ffmpeg you can cut out certain parts of the video, but not sure if it's not re-encoded after you apply ffmpeg...
Reply
Thanks given by:
#2
AVI demux might let you do this with re encoding - are the two files the same i.e. resolution, frame rate, codec etc?
Reply
Thanks given by: allldu
#3
TMPGEnc Smart Renderer does such things very reliably, but it might reencode a few frames around the cut.
Reply
Thanks given by: allldu
#4
(2020-07-29, 08:55 AM)alleycat Wrote: AVI demux might let you do this with re encoding - are the two files the same i.e. resolution, frame rate, codec etc?
Should be the same, yes.
Reply
Thanks given by:
#5
(2020-07-29, 12:28 PM)allldu Wrote:
(2020-07-29, 08:55 AM)alleycat Wrote: AVI demux might let you do this with re encoding - are the two files the same i.e. resolution, frame rate, codec etc?
Should be the same, yes.

Ok maybe try AVI demux or TMPG Smart Renderer as TomArrow suggested
Reply
Thanks given by: allldu
#6
So neither ffmpeg nor ace3to can do the job?
Reply
Thanks given by:
#7
I don't know about ffmpeg, but there are also other tools that can do it, Google search can find them. Videoredo I think, also I think tsmuxerGUI, and various GUIs for mp4box I think. But the result might not be 100% clean and stable. It's worth a shot though I guess.
Reply
Thanks given by: allldu
#8
It's possible (but tricky) to cut with ffmpeg by using -ss and specifying a timecode (§5.4 in the documentation).  Note that the behavior of -ss differs depending on whether it is placed before or after the input file.  However, if you don't re-encode, the cutting will not be exact because you are limited to seek-points ("key-frames").  It's better to re-encode or use a smart renderer.  If you do use ffmpeg, after you have cut 1.mp4, list it and 2.mp4 in a text file, and then use the -concat option (§20.4 in the documentation) to splice them together and create 3.mp4.
Reply
Thanks given by: allldu


Possibly Related Threads…
Thread Author Replies Views Last Post
  Should audio last (almost) as long as video? pipefan413 10 485 2020-05-29, 10:21 AM
Last Post: pipefan413
  Audio Restoration - Odd Looking File alleycat 2 840 2019-12-04, 09:54 AM
Last Post: alleycat
  Audio - HD video with SD inserts? alleycat 9 1,470 2019-09-06, 05:08 PM
Last Post: TomArrow
  Trouble Importing Video into Adobe Premiere borisanddoris 13 2,677 2019-02-06, 02:47 PM
Last Post: FrankT
  Video editing software FrankT 4 1,741 2018-03-24, 02:41 AM
Last Post: FrankT

Forum Jump:


Users browsing this thread: 1 Guest(s)