ChinaFFmpeg

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 10551|回复: 1

[Android] mp4 视频 倒播后 与原视频拼接时 报错 h264_mp4toannexb

[复制链接]
发表于 2019-7-26 17:19:11 | 显示全部楼层 |阅读模式
[AVBSFContext @ 0xe608e680]
2019-07-26 17:13:44.795 32214-2391/com.boo.clipmax E/mobile-ffmpeg: Codec 'mpeg4' (12) is not supported by the bitstream filter 'h264_mp4toannexb'. Supported codecs are:
2019-07-26 17:13:44.796 32214-2391/com.boo.clipmax E/mobile-ffmpeg: [AVBSFContext @ 0xe608e680]
2019-07-26 17:13:44.796 32214-2391/com.boo.clipmax E/mobile-ffmpeg: h264 (27)
2019-07-26 17:13:44.796 32214-2391/com.boo.clipmax E/mobile-ffmpeg: [AVBSFContext @ 0xe608e680]
2019-07-26 17:13:44.796 32214-2391/com.boo.clipmax E/mobile-ffmpeg: Error initializing bitstream filter: h264_mp4toannexb



命令行:


cmdList.add("-i");
cmdList.add(srcPath);

cmdList.add("-vf");
cmdList.add("reverse");

cmdList.add("-af");
cmdList.add("areverse");

cmdList.add("-preset");
cmdList.add("superfast");

cmdList.add("-vcodec");
cmdList.add("mpeg4");

cmdList.add("-bf");
cmdList.add("0");

cmdList.add("-pix_fmt");
cmdList.add("yuv420p");

cmdList.add("-g");
cmdList.add("30");

cmdList.add("-b:v");
cmdList.add(String.valueOf((int) (2.5f * 854 * 480)));

cmdList.add("-y");
cmdList.add(dstPath);

mp4 转ts 出错 : FFmpeg.execute("-i " + mp4Array.get(i) + " -c copy -bsf:v h264_mp4toannexb -f mpegts -y " + segTs1)

求助 什么 原因 ? 是输出的视频格式有问题吗 ? 怎么处理?
回复

使用道具 举报

发表于 2019-7-26 19:07:10 | 显示全部楼层
cmdList.add("-vcodec");
cmdList.add("mpeg4");

改成

cmdList.add("-vcodec");
cmdList.add("libx264");
回复 支持 反对

使用道具 举报

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

本版积分规则

手机版|Archiver|ChinaFFmpeg

GMT+8, 2024-4-26 09:36 , Processed in 0.048064 second(s), 14 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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