求指点. LosslessCut,经常提示视频格式不支持,怎么破

60 天前
 mfsw

如题,除了 mp4,不提示之外,甚至连 mkv 格式的视频,都提示我视频不支持,需要转格式才能编辑. 请教下,是需要额外在装什么解码器之类的吗? 感谢指点!!!

770 次点击
所在节点    程序员
12 条回复
kokutou
60 天前
ffprobe 看看具体格式呗
wudicgi
60 天前
我买了 Bandicut, 免费的没找到一个好用的
Bandicut 就是没有命令行,想自动化只能借助 AutoHotkey 脚本操作 UI
renmu
60 天前
mkv 就不被浏览器播放器兼容,正确方法就是转为 mp4
aero99
60 天前
mkv 封装格式很正常,要 ffmpeg 转换下
expy
60 天前
不支持的格式的 mediainfo 放上来看看。
expy
60 天前
LosslessCut uses Chromium's HTML5 video player, and not all FFmpeg supported formats and codecs are natively supported. Generally, the following formats should work: MP4, MOV, WebM, Matroska, OGG and WAV. The following audio codecs: FLAC, MP3, Opus, PCM, Vorbis and AAC. Video codecs: H264, AV1, Theora, VP8, VP9 and H265 (needs hardware decoder).

看说明 mkv 是支持的。
mfsw
59 天前
@expy 大佬请看: 不支持 mkv 的信息
概览
ID : 1 (0x1)
完整名称 : D:\Topaz Video AI 增强 4k\待增强\水浒\水浒传 28 祝家庄下.mkv
格式 : MPEG-TS
文件大小 : 1.04 GiB
时长 : 46 分 7 秒
总体码率模式 : 动态码率 (VBR)
总体码率 : 3 232 kb/s
FileExtension_Invalid : ts m2t m2s m4t m4s tmf ts tp trp ty

视频
ID : 256 (0x100)
菜单 ID : 1 (0x1)
格式 : AVC
格式/信息 : Advanced Video Codec
格式配置 (Profile) : High@L4
格式设置 : CABAC / 4 Ref Frames
格式设置, CABAC : 是
格式设置, 参考帧 : 4 帧
编解码器 ID : 27
时长 : 46 分 7 秒
宽度 : 1 920 像素
高度 : 1 072 像素
画面比例 : 16:9
帧率模式 : 动态帧率 (VFR)
色彩空间 : YUV
色度抽样 : 4:2:0
位深 : 8 位
扫描类型 : 逐行扫描 (连续)
编码函数库 : Provided by www.letv.com :: H.264/MPEG-4 AVC codec -V 1.6.09-20151125

音频
ID : 257 (0x101)
菜单 ID : 1 (0x1)
格式 : AAC LC
格式/信息 : Advanced Audio Codec Low Complexity
格式版本 : Version 4
混流模式 : ADTS
编解码器 ID : 15-2
时长 : 46 分 7 秒
码率模式 : 动态码率 (VBR)
声道数 : 2 声道
声道布局 : L R
采样率 : 44.1 kHz
帧率 : 43.066 FPS (1024 SPF)
压缩模式 : 有损
相对视频的延迟 : -46 毫秒
mfsw
59 天前
@expy 是不是需要装森么万能的解码器才能支持 mkv,还是说 losslesscut 原生就支持 mkv.
expy
59 天前
格式 : MPEG-TS
FileExtension_Invalid : ts m2t m2s m4t m4s tmf ts tp trp ty
你这不是 mkv ,拿 ffmpeg 重新混流成 mp4 再剪吧。

chatgpt:
ffmpeg -i input.ts -c:v copy -c:a copy -bsf:a aac_adtstoasc output.mp4

Explanation:

-i input.ts: Specifies the input file (MPEG-TS).
-c:v copy: Copies the video stream without re-encoding (AVC/H.264).
-c:a copy: Copies the audio stream without re-encoding (AAC).
-bsf:a aac_adtstoasc: Converts the AAC audio stream from ADTS format to a format compatible with MP4.
output.mp4: Specifies the output file in MP4 format.

This command remuxes the streams from the TS container into an MP4 container without altering the content, ensuring that it’s compatible with standard media players.
cheng6563
59 天前
ffmpeg 重新封装成 mp4 ,直接拷贝媒体流,不重新编码就不用耗 cpu 资源。
mfsw
57 天前
@expy 原来如此,感谢大佬指点.
mfsw
57 天前
@cheng6563 我下次试试您的方法. 感谢大佬

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/1064759

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX