请选择 进入手机版 | 继续访问电脑版

ChinaFFmpeg

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 9965|回复: 6

[Max OSX] 分离视频流

[复制链接]
发表于 2019-9-10 16:05:06 | 显示全部楼层 |阅读模式
分离一个h265文件视频流时报这个错,是什么原因呢?
命令:
[AppleScript] 纯文本查看 复制代码
ffmpeg -i 2.mp4 -vcodec copy -an -bsf hevc_mp4toannexb -f hevc output.hevc



报错:
2.mp4: corrupt input packet in stream 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fda6b003400] stream 0, offset 0x1162d8: partial file
2.mp4: Invalid data found when processing input

回复

使用道具 举报

 楼主| 发表于 2019-9-10 16:14:19 | 显示全部楼层
用的抖音的视频,用ffplay播放后面也会报错,停止播放

ffplay version N-92374-gd96ae9d5ea Copyright (c) 2003-2018 the FFmpeg developers
  built with Apple LLVM version 10.0.0 (clang-1000.11.45.5)
  configuration: --prefix= --enable-static --enable-shared
  libavutil      56. 23.101 / 56. 23.101
  libavcodec     58. 39.100 / 58. 39.100
  libavformat    58. 22.100 / 58. 22.100
  libavdevice    58.  6.100 / 58.  6.100
  libavfilter     7. 43.100 /  7. 43.100
  libswscale      5.  4.100 /  5.  4.100
  libswresample   3.  4.100 /  3.  4.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '2.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2mp41
    encoder         : Lavf58.12.100
    comment         : vid:v0200fda0000bg38i2b82vu8opv87qgg
  Duration: 00:00:22.64, start: 0.000000, bitrate: 402 kb/s
    Stream #0:0(und): Video: hevc (Main) (hvc1 / 0x31637668), yuv420p(tv, progressive), 576x1024, 1232 kb/s, 30 fps, 30 tbr, 15360 tbn, 15360 tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fc84883f600] stream 1, offset 0x116165: partial file
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fc84883f600] stream 0, offset 0x1162d8: partial file
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fc84883f600] stream 1, offset 0x11642a: partial file
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fc84883f600] stream 1, offset 0x116593: partial file
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fc84883f600] stream 0, offset 0x116710: partial file
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fc84883f600] stream 1, offset 0x11689e: partial file
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fc84883f600] stream 0, offset 0x116a1f: partial file
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fc84883f600] stream 1, offset 0x1172bc: partial file
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fc84883f600] stream 0, offset 0x117423: partial file
回复 支持 反对

使用道具 举报

发表于 2019-9-10 17:47:14 | 显示全部楼层
留个下载链接
回复 支持 反对

使用道具 举报

 楼主| 发表于 2019-9-10 18:29:09 | 显示全部楼层
https://pan.baidu.com/s/15_mYxER_Ru6fjmC8lGkaeQ  

抖音的地址(需要模拟手机端参数)
https://aweme.snssdk.com/aweme/v ... device_type=iPhone9,2&iid=73930963647&idfa=665A82BE-3F80-4A3E-B8E3-CE4ADD6A358F
回复 支持 反对

使用道具 举报

 楼主| 发表于 2019-9-10 18:32:04 | 显示全部楼层
https://pan.baidu.com/s/1pQPnkuuJSmsb7qnka5uPrA
原视频有22s 用ffplay均到5秒就停止了
回复 支持 反对

使用道具 举报

发表于 2019-9-10 18:37:35 | 显示全部楼层


QuickTime 播到五秒钟的时候画面卡住不动啊,百度网盘里面直接播放也是显示五秒钟

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
回复 支持 反对

使用道具 举报

 楼主| 发表于 2019-9-11 10:01:46 | 显示全部楼层
是的  但vlc和抖音播放器播放是25s,所以觉得奇怪
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|Archiver|ChinaFFmpeg

GMT+8, 2024-4-19 07:10 , Processed in 0.050734 second(s), 16 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表