Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2121910
  • 博文数量: 229
  • 博客积分: 7217
  • 博客等级: 上校
  • 技术积分: 3224
  • 用 户 组: 普通用户
  • 注册时间: 2009-02-19 17:23
个人简介

个人主页https://xugaoxiang.com,微信公众号: Dev_Club 或者搜索 程序员Club

文章分类

全部博文(229)

文章存档

2017年(1)

2016年(20)

2015年(23)

2013年(1)

2012年(23)

2011年(68)

2010年(62)

2009年(31)

分类: LINUX

2010-07-07 13:03:33

Mencoder is a free command line video decoding, encoding and filtering tool released under the GNU GPL. It is a close sibling to MPlayer and can convert all the formats that MPlayer understands into a variety of compressed and uncompressed formats using different codecs.Here I use it as the video split and join tool.


1 Split
Split video inputfile.ts from 1:00 minute and the output file is split.ts which last 5 minutes. -oac copy -ovc copy means keep the original audio and video codec.

mencoder -ss 1:00 -endpos 5:00 -oac copy -ovc copy inputfile.ts -o split.ts

2 Join
Join the test1.ts and test2.ts as sum.ts.All video files must have identical fps, resolution, and codec for -ovc copy.

mencoder test1.ts test2.ts -ovc copy -oac copy -o sum.ts

3 Check the available ovc or oac
mencoder -oac help
mencoder -ovc help

4 Other similar tools
KINO
LIVES
AVIDEMUX


Reference
1



djstava
阅读(3211) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~