V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
duhastmich
V2EX  ›  问与答

mp4 文件中间多了一个字节为什么就不能播了?

  •  
  •   duhastmich · 2013-05-25 09:44:30 +08:00 · 2880 次点击
    这是一个创建于 4001 天前的主题,其中的信息可能已经有所发展或是发生改变。
    4 条回复    1970-01-01 08:00:00 +08:00
    ziseyinzi
        1
    ziseyinzi  
       2013-05-25 09:53:22 +08:00
    你用记事本打开了?windows记事本好像会自动加文件头
    duhastmich
        2
    duhastmich  
    OP
       2013-05-25 11:04:18 +08:00
    @ziseyinzi 下载文件的时候wget -c 追加到一个同名文件了,文件太大不想重来,于是重新下载了开头一点,想把2个文件拼接起来,用head 和tail 蛮有意思的

    head -c50312 video.mp4 > output
    tail -c+50313 video-head.mp4 >> output

    第一次用了2个50312, 多了一个字节,就播不了
    duhastmich
        3
    duhastmich  
    OP
       2013-05-25 11:06:34 +08:00
    文件名颠倒了。。 上面一个是后来下载的,下面一个是损坏的
    kinreven
        4
    kinreven  
       2013-05-25 22:03:09 +08:00
    如果完全不能播放,说明你已经损坏了MP4的头结构(moov atom).
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3264 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 00:32 · PVG 08:32 · LAX 17:32 · JFK 20:32
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.