hello i uae ffmpeg to join videos
this command im using
ffmpeg -f concat -i mylist.txt -c copy output.mp4
in mylist.txt i have 4 videos which i want to join in 1 video
file '1.mp4'
file '2.mp4'
file '3.mp4'
file '4.mp4'
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001f6879f2440] Auto-inserting h264_mp4toannexb bitstream filter6x
[mp4 @ 000001f68796ab00] Non-monotonous DTS in output stream 0:0; previous: 83197350, current: 83196000; changing to 83197351. This may result in incorrect timestamps in the output file.
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001f687feb3c0] Auto-inserting h264_mp4toannexb bitstream filter8x
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001f6881f75c0] Auto-inserting h264_mp4toannexb bitstream filter5x
frame=94568 fps=11910 q=-1.0 Lsize= 2187593kB time=00:52:32.26 bitrate=5685.0kbits/s speed= 397x
video:2107210kB audio:75658kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.216478%
quality/size all good but 1 second out of sync in output video
out of sync could be because of this error?
"mp4 @ 000001f68796ab00] Non-monotonous DTS in output stream 0:0; previous: 83197350, current: 83196000; changing to 83197351. This may result in incorrect timestamps in the output file"
any solution?
		
			+ Reply to Thread
			
		
		
		
			
	
	
				Results 1 to 2 of 2
			
		- 
	
- 
	If the sync problem is constant (the sync is 1 second off all through the video) you can add an audio delay or advance (negative delay). 
 
 https://ffmpeg.org/ffmpeg.html (search for itsoffset)
 https://trac.ffmpeg.org/wiki/UnderstandingItsoffset
 
 I don't know how to do this while concatenating but you could do it with a second call to ffmpeg with the output from the first:
 
 Code:ffmpeg -f concat -i mylist.txt -c copy intermediate.mp4 ffmpeg -i intermediate.mp4 -itsoffset 1.00 -i intermediate.mp4 -map 0:v -map 1:a output.mp4 
Similar Threads
- 
  FFMPEG RTMP stream Non-monotonous DTS in output stream 0:1By idavidpintoi in forum Video ConversionReplies: 0Last Post: 5th May 2023, 19:04
- 
  FFmpeg error: non-monotonous DTS in output streamBy Hakunamatata67 in forum Video ConversionReplies: 1Last Post: 30th Jan 2022, 08:07
- 
  ffmpeg throwing “Non-monotonous DTS in output stream”By cwinthrop in forum Video ConversionReplies: 15Last Post: 27th Jun 2019, 12:25
- 
  ffmpeg “Non-monotonous DTS in output stream” concatenating .ts filesBy Wayneos in forum Video ConversionReplies: 21Last Post: 19th Jan 2019, 16:56
- 
  FFMpeg "non-monotonous DTS in output stream" errorBy CursedLemon in forum Video ConversionReplies: 4Last Post: 26th Aug 2018, 10:56


 
		
		 View Profile
				View Profile
			 View Forum Posts
				View Forum Posts
			 Private Message
				Private Message
			 
 
			
			
 Quote
 Quote