

Subtitle("C:\Downloads\Video\Do you want him.flv", font="Arial", size=24, text_color=$ff0000, align=3) Open the file in a media player that will frame by frame advance (potplayer my favorite but MPC-HC works)and play an AVISynth file with data such as: DirectShowSource(("C:\Downloads\Video\Do you want him.flv"), Pixel_Type="yuy2").Crop(0,0,-0,-0) You may visit and checkout examples in README. You could also explore other options using medipack -h medipack -help t TIME, -time TIME clip duration in format hh:mm:ss or mm:ss e END, -end END end time for cuting in format hh:mm:ss or mm:ss Start time for cuting in format hh:mm:ss or mm:ss h, -help show this help message and exit You can view options of trim subcommand as: medipack trim -h Medipack trim input.mp4 -s 01:04 -t 13:04 -o output.mp4 You can achieve trimming your video using these commands: medipack trim input.mp4 -s 01:04 -e 14:08 -o output.mp4 Medipack is a very simple command-line app as a wrapper over ffmpeg. You'll have to replace orginalfile and newfile with actual file names, the later is the name of the file that is created to hold the cut out part.įor reference see and "7. Say that you want to cut out a part starting at 00:00:30 into the original file with a 5 seconds length and that it shouldn't be re-encoded (if you want to re-encode it you'll have to replace copy with audio and video codecs, for a list of available codecs issue ffmpeg -formats -E), then you issue: ffmpeg -ss 00:00:30 -i orginalfile -t 00:00:05 -vcodec copy -acodec copy newfile You'll have to replace orginalfile and newfile with actual file names, the latter is the name of the file that is created to hold the cut-out part. Say that you want to cut out a part starting at 00:00:30 into the original file with a 5 seconds length and that it shouldn't be reencoded (if you want to re-encode it you'll have to replace copy with audio and video codecs, for a list of available audio codecs issue mencoder -oac help, for a list of available video codecs issue mencoder -ovc help), then you issue: mencoder -ss 00:30:00 -endpos 00:00:05 -oac pcm -ovc copy originalfile -o newfile If you explain what you are actually trying to achieve we can give a more accurate answer.This can be done using mencoder or ffmpeg. The result is often overly complicated with a suboptimal output when the actual solution is usually much simpler. Trying to copy settings is almost always an example of the XY problem.įor example, a user may want to copy settings to get a video to play on a particular device. I am the author but I don't recommend doing this. See example at ffmpeg: transcode using same codec and params as input. Perhaps that will achieve what you are trying to do. Stream copyīut you can stream copy (re-mux) instead of encode which is like a copy and paste: ffmpeg -i input.mkv -map 0 -c copy output.mkv But it has no such feature to automatically copy all of the encoding settings from the input to the output.

When encoding ffmpeg will automatically attempt to copy some settings (width, height, frame rate, sample rate, channel layout, pixel format, etc).
