From: Markus Koschany Date: Sat, 1 Nov 2014 23:57:00 +0000 (+0100) Subject: use avconv X-Git-Tag: archive/raspbian/1.1+git20181118-4+rpi1~1^2^2^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=30ebd3ab8d0b800a91cec14b796425271553f2ab;p=performous.git use avconv Use avconv command instead of ffmpeg because the latter is not available on Debian systems. This should be revisited for Jessie+1. Forwarded: not-needed Gbp-Pq: Name use-avconv.patch --- diff --git a/tools/ss_extract.cc b/tools/ss_extract.cc index 2a94110..6677b8f 100644 --- a/tools/ss_extract.cc +++ b/tools/ss_extract.cc @@ -213,7 +213,7 @@ struct Process { } if (g_mkvcompress) { std::cerr << ">>> Compressing video into video.m4v" << std::endl; - std::string cmd = "ffmpeg -i \"" + (path / "video.mpg").string() + "\" -vcodec libx264 -profile main -crf 25 -threads 0 -metadata album=\"" + song.edition + "\" -metadata author=\"" + song.artist + "\" -metadata comment=\"" + song.genre + "\" -metadata title=\"" + song.title + "\" \"" + (path / "video.m4v\"").string(); + std::string cmd = "avconv -i \"" + (path / "video.mpg").string() + "\" -vcodec libx264 -profile main -crf 25 -threads 0 -metadata album=\"" + song.edition + "\" -metadata author=\"" + song.artist + "\" -metadata comment=\"" + song.genre + "\" -metadata title=\"" + song.title + "\" \"" + (path / "video.m4v\"").string(); std::cerr << cmd << std::endl; if (std::system(cmd.c_str()) == 0) { // FIXME: std::system return value is not portable fs::remove(path / "video.mpg");