Hi cats,
please consider this commandline:
I need to trim video so that out.mp4 is the rangeCode:ffmpeg.exe -y -i AUDIOinput.wav -i VIDEOinput.avi -c:v libx264 -profile:v high -level:v 4.1 -pix_fmt yuv420p -g 33 -bf 2 -vf yadif,colormatrix=bt709:bt601 -crf 18 -c:a libmp3lame -b:a 320k -aspect 16:9 out.mp4
from 33 seconds
to 38 minutes and 04 seconds
of the original video and audio input that have duration of 1hour and 15 minutes
How can I do? thanks
		
			+ Reply to Thread
			
		
		
		
			
	
	
				Results 1 to 8 of 8
			
		- 
	
- 
	You can not trim a cat since it does not have hair. 
 You can trim a lion but I do not suggest you try it.
 
 You know sometimes it helps that you find a solution for yourself, or atleast attempt it, rather than let others do the work for you. It took me 10 secs (not being a ffmeg user) to determine how to do this.
- 
	-ss 00:00:33 -t 00:37:31 Got my retirement plans all set. Looks like I only have to work another 5 years after I die........
- 
	
- 
	MATH for cats! 
 
 -t is start time
 -d is duration
 
 If you start at 00:00:33 (ie. 33 seconds) and you add 37 min, 31 sec, you get 38 min 04 sec
 
 
 -vf trim with start_frame , end_frameand can I set frames in place of times?
 
 Note end_frame is the 1st frame that is dropped (excludes, not inclusive like avisyth trim())
 
 https://ffmpeg.org/ffmpeg-filters.html#trim
- 
	Hi , 
 
 ===
 MATH for cats!
 
 -t is start time
 -d is duration
 ===
 
 You are wrong !!!
 
 -ss for start time
 -t for the time of the video
 
 Cheers .JE SUIS CHARLIE !!!
- 
	alternatively to -ss and -t 
 
 https://www.ffmpeg.org/ffmpeg-all.html#trim
 https://www.ffmpeg.org/ffmpeg-all.html#atrim
Similar Threads
- 
  Batch trim using FFMPEGBy taonas in forum EditingReplies: 4Last Post: 25th Feb 2021, 11:17
- 
  FFmpeg Runtime error / FFmpeg git-df82454 32-bit Static (2012-10-03)By MashedPotatoes in forum Newbie / General discussionsReplies: 5Last Post: 6th Oct 2012, 18:22
- 
  H.264 TS -> MKV, AviSynth+DGAVCDecode+ffmpeg, trim recording + delay audio?By Matchay in forum Video ConversionReplies: 3Last Post: 28th Jun 2012, 06:13
- 
  FFmpeg on Win only - FAQ can ffmpeg realize screen captureBy feelart in forum Capturing and VCRReplies: 1Last Post: 14th Feb 2012, 05:11
- 
  AVI TrimBy drgt in forum Newbie / General discussionsReplies: 6Last Post: 13th Nov 2010, 05:36


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