Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android中ijkplayer支持ffmpeg命令行的功能, #4074

Closed
HadisNZL opened this issue Dec 27, 2024 · 1 comment
Closed

Android中ijkplayer支持ffmpeg命令行的功能, #4074

HadisNZL opened this issue Dec 27, 2024 · 1 comment

Comments

@HadisNZL
Copy link

楼主大人:小白有个问题 比如
String[] cmd = new String[]{"ffmpeg", "-i", inputPath, // 输入文件
// "-c:v", "copy", // 复制视频流
"-c:a", "aac", // 转换音频为 AAC
// "-b:a", "128k", // 设置音频比特率为 128 kbps
outPath // 输出文件路径
};
FFmpegCmd.FFmpegExec(cmd);
直接调用jni桥接的cmd命令就能转码,就行电脑端一点,一个命令就完事了,我有个h265和g711a的mp4视频,我想把g711a转成aac然后跟h265输出mp4,可能功力浅显,ffmpeg内部搞不明白,这样做的好处就是省了再集成ffmpeg,能不能有时间出一期,

@CarGuo
Copy link
Owner

CarGuo commented Dec 29, 2024

不支持,因为就是 ffplay 播放而已,而且在手机上执行转码,会十分耗时

@CarGuo CarGuo closed this as completed Dec 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants