希望这些步骤能帮助你解决“ffplay could not initialize sdl - no available video device”错误。如果问题依旧存在,请继续深入调查或寻求专业支持。
"ffplay command not found":这个错误表示ffplay命令未找到。解决方法是确保FFmpeg已正确安装,并且ffplay命令在系统的可执行路径中。如果未安装FFmpeg,请按照官方文档进行安装。 "Could not initialize SDL - No available video device":这个错误表示SDL(Simple DirectMedia Layer)初始化失败,无可用的视频设备。解决方法...
fdk-aac, sdl2, ffmpeg, 把bin, 库都放到开发板上,ffplay后报错Could not initialize SDL - No ...
1.ubuntu环境下安装ffplay,执行命令出现 Could not initialize SDL - No available video device (Did you set the DISPLAY variable?) 2.按照export DISPLAY=:0.0设置环境变量 执行ffplay不会报错,界面会卡在图中位置 慕码人9398109 2020-04-14 18:11:33 源自:1- 1198 分享 收起 1回答 李超 2020-04-14 19...
//1. SDL_Init flags = SDL_INIT_VIDEO | SDL_INIT_AUDIO | SDL_INIT_TIMER; if (SDL_Init (flags)) { av_log(NULL, AV_LOG_FATAL, "Could not initialize SDL - %s\n", SDL_GetError()); av_log(NULL, AV_LOG_FATAL, "(Did you set the DISPLAY variable?)\n"); exit(1); } //2...
SDL_getenv("SDL_AUDIO_ALSA_SET_BUFFER_SIZE")) SDL_setenv("SDL_AUDIO_ALSA_SET_BUFFER_SIZE","1", 1); } if (display_disable) flags &= ~SDL_INIT_VIDEO; //1.SDL的初始化 if (SDL_Init (flags)) { av_log(NULL, AV_LOG_FATAL, "Could not initialize SDL - %s\n", SDL_GetError(...
intmain()printf("InitializingSDL.\n");/*鲁玫炉Video脱Audio*/ if(SDL_Init(SDL_INIT_VIDEO|SDL_INIT_AUDIO)==-1)printf("CouldnotinitializeSDL:%s.\n",SDL_GetError()); exit(-1);printf("SDLinitialized.\n"); printf("QuitingSDL.\n"); ...
printf("Could not initialize SDL - %s\n", SDL_GetError());return-1; } screen_w = pCodecCtx->width; screen_h = pCodecCtx->height;//SDL 2.0 Support for multiple windowsscreen = SDL_CreateWindow("Simplest ffmpeg player's Window", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, ...
SDL_setenv("SDL_AUDIO_ALSA_SET_BUFFER_SIZE","1", 1); } if(display_disable) flags &= ~SDL_INIT_VIDEO;//1.SDL的初始化 if(SDL_Init (flags)) { av_log(NULL, AV_LOG_FATAL,"Could not initialize SDL - %s\n", SDL_GetError());...
(NULL, AV_LOG_FATAL, "Could not initialize SDL - %s\n", SDL_GetError()); av_log(NULL, AV_LOG_FATAL, "(Did you set the DISPLAY variable?)\n"); exit(1); } SDL_EventState(SDL_SYSWMEVENT, SDL_IGNORE); SDL_EventState(SDL_USEREVENT, SDL_IGNORE); av_init_packet(&flush_pkt); ...