Answer the question
In order to leave comments, you need to log in
Why does ffmpeg always log command line options?
Some terribly clumsy debugging of ffmpeg in php via shell_exec.
Simple working mp3 ripping code
FFREPORT=file=ff%t.log:level=16 ffmpeg -y -i '/tmp/phpuloL1U' -acodec copy '/home/test.mp3' &
>/dev/null 2>/dev/null
to turn off stdout, then the same thing is written to the log, and for some reason: Answer the question
In order to leave comments, you need to log in
Only write BugReport:
idx = locate_option(argc, argv, options, "report");
if ((env = getenv("FFREPORT")) || idx) {
init_report(env);
// Код ниже сбрасывает параметры командной строки невзирая ни на что. Главное что бы файл смог открыться
if (report_file) {
int i;
fprintf(report_file, "Command line:\n");
for (i = 0; i < argc; i++) {
dump_argument(argv[i]);
fputc(i < argc - 1 ? ' ' : '\n', report_file);
}
fflush(report_file);
}
}
Maybe it's written in the source code like this: command line parameters are always in the log.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question