0

In this link After merge videos, the duration is too long - ffmpeg user Gyan has provided a solution shown below

ffmpeg -i intro.mp4 -s hd720 -r 30000/1001 -video_track_timescale 30k -c:a copy newintro.mp4

As the ffmpeg command above did what I was struggling to do, I am eager to learn more. Pointers in that direction will help. Thanks.

user1955215
  • 733
  • 2
  • 11
  • 31
  • Is there any way I could have posted this question such that the person who had provided the original solution (Gyan) would have got alerted to it. – user1955215 Sep 05 '20 at 01:40

1 Answers1

0

ffmpeg
-i intro.mp4 <-- input option and argument (url)
-s hd720 <-- video scaling; hd720 is code for 1280x720. See all codes at http://ffmpeg.org/ffmpeg-utils.html#Video-size
-r 30000/1001 <-- set output framerate. This is a rational number; exact representation of 29.97
-video_track_timescale 30k <-- set the timescale of the video stream; only applies to MP4 and MOV family of formats.
-c:a copy <-- any audio in output will be copied from source, won't be recompressed. Can only work if source audio codec is supported in output format.
newintro.mp4 <-- output url, in this case, a MP4 filename.

Gyan
  • 85,394
  • 9
  • 169
  • 201