Hello guest, if you like this forum, why don't you register? https://fanrestore.com/member.php?action=register (December 14, 2021) x


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
  [Help] Video not cutting to exact timestamps in AviDemux Red41804 5 658 2024-10-24, 12:52 PM
Last Post: SHM
  [Help] How to apply delay to a whole video file, not just the video or audio streams? Red41804 7 2,154 2024-02-12, 11:03 AM
Last Post: Hitcher
  [Idea] Correcting field blended video with Topaz Video AI SpaceBlackKnight 3 1,956 2022-11-13, 11:12 PM
Last Post: PDB
  Looking for Video Editing Software Suggestions Doctor M 6 3,075 2022-09-06, 07:58 AM
Last Post: WXM
  Video aliasing FrankT 0 1,537 2022-04-26, 12:15 PM
Last Post: FrankT
  Full length file & timeline lenght do not match Stamper 2 1,905 2021-07-25, 02:53 PM
Last Post: Stamper
  Splitting a video file into multiple parts alexpeden2000 1 2,090 2021-06-11, 07:38 AM
Last Post: schorman
  Should audio last (almost) as long as video? pipefan413 13 8,552 2021-04-07, 12:57 PM
Last Post: pipefan413
  [Help] Tools for syncing subtitles to video NeonBible 6 3,744 2021-03-27, 10:48 AM
Last Post: BusterD
  Odd Aspect Ratio - stretch video? alleycat 14 6,595 2020-12-09, 12:27 PM
Last Post: spoRv

Forum Jump:


Users browsing this thread: 3 Guest(s)