V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
mfsw
V2EX  ›  程序员

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

  •  
  •   mfsw · 60 天前 · 770 次点击
    这是一个创建于 60 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

    12 条回复    2024-08-17 17:31:41 +08:00
    kokutou
        1
    kokutou  
       60 天前 via Android
    ffprobe 看看具体格式呗
    wudicgi
        2
    wudicgi  
       60 天前
    我买了 Bandicut, 免费的没找到一个好用的
    Bandicut 就是没有命令行,想自动化只能借助 AutoHotkey 脚本操作 UI
    renmu
        3
    renmu  
       60 天前 via Android
    mkv 就不被浏览器播放器兼容,正确方法就是转为 mp4
    aero99
        4
    aero99  
       60 天前
    mkv 封装格式很正常,要 ffmpeg 转换下
    expy
        5
    expy  
       60 天前
    不支持的格式的 mediainfo 放上来看看。
    expy
        6
    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
        7
    mfsw  
    OP
       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
        8
    mfsw  
    OP
       59 天前
    @expy 是不是需要装森么万能的解码器才能支持 mkv,还是说 losslesscut 原生就支持 mkv.
    expy
        9
    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
        10
    cheng6563  
       59 天前
    ffmpeg 重新封装成 mp4 ,直接拷贝媒体流,不重新编码就不用耗 cpu 资源。
    mfsw
        11
    mfsw  
    OP
       57 天前
    @expy 原来如此,感谢大佬指点.
    mfsw
        12
    mfsw  
    OP
       57 天前
    @cheng6563 我下次试试您的方法. 感谢大佬
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2755 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 14:21 · PVG 22:21 · LAX 07:21 · JFK 10:21
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.