MKV转码为TS

本文档展示了如何使用FFmpeg命令行工具将MKV视频文件转换为TS格式。通过运行`ffmpeg -i 输入文件 -vcodec copy -acodec copy -vbsf h264_mp4toannexb 输出文件.ts`,可以实现无损转换。转换后的TS文件可用ffplay播放,验证了转换成功。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

参考 http://www.shortword.net/blog/2009/12/18/converting-h-264-mpeg4-to-ts-with-ffmpeg/

root@Ubuntu32:/home/zhangbin/streaming/http/segmenter# ffmpeg -i /home/zhangbin/Downloads/testVideos/U.F.O.1080p.BluRay.x264-SONiDO-sample.mkv -vcodec copy -acodec copy -vbsf h264_mp4toannexb ufo1080p.ts

ffmpeg version 1.2 Copyright (c) 2000-2013 the FFmpeg developers
  built on Apr 16 2013 19:40:09 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
  configuration: --prefix=/home/zhangbin/ffmpeg/ffmpegx86/ffmpegHome --enable-gpl --enable-version3 --enable-nonfree --enable-shared --enable-runtime-cpudetect --enable-gray --enable-avresample --enable-x11grab
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

打赏作者

等风来不如迎风去

你的鼓励是我创作的最大动力

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

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

打赏作者

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

抵扣说明:

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

余额充值