Cut video with ffmpeg

To cut a snippet from a video based on timestamps like 02:52 to 04:20, the best tool is FFmpeg, which is fast, free, and doesn’t re-encode the video (so it keeps original quality if you don’t want re-encoding).

Here’s the command you can run in a terminal or command prompt:

ffmpeg -i "Narcos.1x06.Explosivos.(Spanish.English.Subs).BDRip.1080p.x265-EAC3.by.Legan.mkv" -ss 00:02:52 -to 00:04:20 -c copy output_snippet.mkv

Explanation:

  • -i specifies the input file.
  • -ss 00:02:52 is the start time (hh:mm:ss).
  • -to 00:04:20 is the end time.
  • -c copy tells FFmpeg to copy the streams without re-encoding.
  • output_snippet.mkv is the name of your output file.

Optional Note:

If -ss before -i gives more accurate cuts but slower, and placing it after -i (as above) is fast but might not be frame-exact depending on the codec. You can try both if accuracy is important.

For a social-media-friendly .mp4 output, and especially if you’re okay with a slightly slower but cleaner cut, you should re-encode the snippet to ensure full compatibility and accuracy.

Here’s the recommended FFmpeg command:

ffmpeg -i "Narcos.1x06.Explosivos.(Spanish.English.Subs).BDRip.1080p.x265-EAC3.by.Legan.mkv" -ss 00:02:52 -to 00:04:20 -c:v libx264 -c:a aac -movflags +faststart output_snippet.mp4

Explanation of new parts:

  • -c:v libx264: re-encode video using H.264 (widely supported).
  • -c:a aac: re-encode audio using AAC (social media-friendly).
  • -movflags +faststart: optimizes MP4 for streaming and social media.
  • output_snippet.mp4: your final output file in .mp4 format.

This will cut and convert the snippet cleanly for platforms like Instagram, Twitter, TikTok, etc.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

fareast_mzh

打赏个金币

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值