gpt4 book ai didi

iphone ios 示例 ffplay main.c --> FFmpeg.c 更改和输入参数,以下错误请指教

转载 作者:行者123 更新时间:2023-12-04 23:34:22 26 4
gpt4 key购买 nike

FFmpeg主c源

int main(int argc, char **argv)
{

int flags, i;
argv[1] = "-i";
argv[2] = "ipod-library://item/item.mp3?id=1218551163727305907";
//argv[2] = "mon.mp3";

argv[3] = "-acodec";
argv[4] = "libfaac";
argv[5] = "-ac";
argv[6] = "2";
argv[7] = "-ar";
argv[8] = "44100";
argv[9] = "-ab";
argv[10] = "128k";
argv[11] = "output.aac";
argv[3] = "-vn";
argv[4] = "-acodec";
argv[5] = "libfaac";
argv[6] = "-ac";
argv[7] = "2";
argv[8] = "-ar";
argv[9] = "44100";
argv[10] = "-ab";
argv[11] = "128k";
argv[12] = "output.aac";
// argv[14] = "rtsp://video.bouygtel.fr/50400/tf1.sdp";
argc += 12;

错误:ipod-library://item/item.mp3?id=1218551163727305907:没有这样的文件或目录
而如果
argv[2] = "mon.mp3"; ---> mon.mp3: 没有这样的文件或目录

请指教。

最佳答案

您必须指定文件的完整路径。如果它在您的资源中,它将类似于:[[NSBundle mainBundle] pathForResource:@"mon" ofType:@"mp3"];
问候,
亚历山大

关于iphone ios 示例 ffplay main.c --> FFmpeg.c 更改和输入参数,以下错误请指教,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5742049/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com