tangyxgit / FFmpegVideo

android ffmpeg小视频功能
68 stars 17 forks source link

请教一下视频合成问题 #6

Open zcjWj opened 6 years ago

zcjWj commented 6 years ago

大佬,我运行了你的demo然后按照你的写法写了一个demo,但是出现在视频和音频合成的时候,合成的结果只是1秒的视频,原视频大概是6秒左右,我的ffempeg so文件不是用的你的,

tangyxgit commented 6 years ago

我的demo合成正常吗?另外一般这种情况就是视频或者音频其一的文件出现了格式不支持的情况。具体看看ts文件格式。

发送自我的三星盖乐世智能手机。

-------- 原始信息 -------- 由: zcjWj notifications@github.com 日期: 2018/10/11 16:30 (GMT+08:00) 收件人: tangyxgit/FFmpegVideo FFmpegVideo@noreply.github.com 抄送: Subscribed subscribed@noreply.github.com 主题: [tangyxgit/FFmpegVideo] 请教一下视频合成问题 (#6)

大佬,我运行了你的demo然后按照你的写法写了一个demo,但是出现在视频和音频合成的时候,合成的结果只是1秒的视频,原视频大概是6秒左右,我的ffempeg so文件不是用的你的,

― You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/tangyxgit/FFmpegVideo/issues/6, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AKUgcO3E_QVB2SYQBtRUQvAPAl_jJWgRks5ujwGXgaJpZM4XXCGv.

zcjWj commented 6 years ago

你的demo合成正常-不知道问题出在哪里,按照您代码写的,就是不行,会不会是so文件的问题?

tangyxgit commented 6 years ago

你的so是自己生成的吗?我在介绍文档写了的,我demo的so文件只适合当前demo,因为我是直接在项目下用jni弄出来的,其中有包名限制的。

发送自我的三星盖乐世智能手机。

-------- 原始信息 -------- 由: zcjWj notifications@github.com 日期: 2018/10/11 16:34 (GMT+08:00) 收件人: tangyxgit/FFmpegVideo FFmpegVideo@noreply.github.com 抄送: GalaxyYx tangyx@live.com, Comment comment@noreply.github.com 主题: Re: [tangyxgit/FFmpegVideo] 请教一下视频合成问题 (#6)

你的demo合成正常-不知道问题出在哪里,按照您代码写的,就是不行,会不会是so文件的问题?

― You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/tangyxgit/FFmpegVideo/issues/6#issuecomment-428868972, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AKUgcHplXJ7nLGeTmFEfas9fpq6mgZ__ks5ujwKrgaJpZM4XXCGv.

zcjWj commented 6 years ago

ffempeg可执行文件是自己生成的,就是在jni下 ndk-build,但是最开始编译ffempeg生成的libffmpeg.so 是用的别人的--是不是这里的问题

tangyxgit commented 6 years ago

别人的我就不太清楚了,因为编译的脚本可以根据自己的项目需求设置支持。如果没有设置你需要的格式支持,肯定是不行的

发送自我的三星盖乐世智能手机。

-------- 原始信息 -------- 由: zcjWj notifications@github.com 日期: 2018/10/11 16:39 (GMT+08:00) 收件人: tangyxgit/FFmpegVideo FFmpegVideo@noreply.github.com 抄送: GalaxyYx tangyx@live.com, Comment comment@noreply.github.com 主题: Re: [tangyxgit/FFmpegVideo] 请教一下视频合成问题 (#6)

ffempeg可执行文件是自己生成的,就是在jni下 ndk-build,但是最开始编译ffempeg生成的libffmpeg.so 是用的别人的--是不是这里的问题

― You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/tangyxgit/FFmpegVideo/issues/6#issuecomment-428870341, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AKUgcN7Bs8_Lv18f8KbIGBU0J9w6tENiks5ujwOsgaJpZM4XXCGv.

zcjWj commented 6 years ago

好的 那我按照你的文档去重新编译一下 ,可能还会请教你一些问题,麻烦你了大佬

tangyxgit commented 6 years ago

我的demo下的so是比较大的,基本上支持目前主流格式,是为了演示写的,实际上根据自己项目选择需要支持的格式,可以减小so文件大小。

发送自我的三星盖乐世智能手机。

-------- 原始信息 -------- 由: zcjWj notifications@github.com 日期: 2018/10/11 16:43 (GMT+08:00) 收件人: tangyxgit/FFmpegVideo FFmpegVideo@noreply.github.com 抄送: GalaxyYx tangyx@live.com, Comment comment@noreply.github.com 主题: Re: [tangyxgit/FFmpegVideo] 请教一下视频合成问题 (#6)

好的 那我按照你的文档去重新编译一下 ,可能还会请教你一些问题,麻烦你了大佬

― You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/tangyxgit/FFmpegVideo/issues/6#issuecomment-428871784, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AKUgcBMC3iyBap9oUQV_sb31FHGlYDucks5ujwS3gaJpZM4XXCGv.

zcjWj commented 6 years ago

好的 谢谢

zcjWj commented 6 years ago

image 大佬 我编译的时候出现这个是什么原因啊