@@ -57,11 +57,10 @@ std::optional<std::string> VideoRendererBackend::setup(u32 fps, shapes::UPoint s
5757
5858 // TODO(Totto): support audio, that loops the music as in the main game
5959 int ret =
60- execlp (" ffmpeg" , " ffmpeg" , " -loglevel" , " verbose" , " -y" ,
61-
62- " -f" , " rawvideo" , " -pix_fmt" , " rgba" , " -s" , resolution.c_str (), " -r" , framerate.c_str (), " -i" ,
63- " -" , " -c:v" , " libx264" , " -vb" , " 2500k" , " -c:a" , " aac" , " -ab" , " 200k" , " -pix_fmt" , " yuv420p" ,
64- m_destination_path.c_str (), static_cast <char *>(nullptr ));
60+ execlp (" ffmpeg" , " ffmpeg" , " -loglevel" , " verbose" , " -y" , " -f" , " rawvideo" , " -pix_fmt" , " bgra" , " -s" ,
61+ resolution.c_str (), " -r" , framerate.c_str (), " -i" , " -" , " -c:v" , " libx264" , " -vb" , " 2500k" ,
62+ " -c:a" , " aac" , " -ab" , " 200k" , " -pix_fmt" , " yuv420p" , m_destination_path.c_str (),
63+ static_cast <char *>(nullptr ));
6564 if (ret < 0 ) {
6665 std::cerr << " FFMPEG CHILD: could not run ffmpeg as a child process: " << strerror (errno) << " \n " ;
6766 std::exit (1 );
0 commit comments