Opened 10 years ago
Closed 9 years ago
#3159 closed defect (invalid)
-y Overwrite output files without asking is not working with CreateProcess
Reported by: | sgan | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | ffmpeg |
Version: | unspecified | Keywords: | win |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
Summary of the bug: On windows (7/64), when I execute ffmpeg.exe with CreateProcess, ffmpeg "-y" option is not working. Ffmpeg ask for overwrite confirmation.
With ShellExecuteEx, everything is working fine.
How to reproduce:
ffmpeg.exe -y -i F:\1.wav -map_channel 0.0.0 left.wav -map_channel 0.0.1 right.wav Play 2 times this function. ffmpeg version built on Aug 8 2013 21:37:55 with gcc 4.7.3 (GCC)
STARTUPINFO StartInfo;
PROCESS_INFORMATION ProcInfo;
ZeroMemory(&StartInfo, sizeof(STARTUPINFO));
StartInfo.dwFlags=STARTF_USESHOWWINDOW;
StartInfo.wShowWindow=SW_NORMAL;
BOOL bRes=CreateProcess(WS_PathNameffmpeg.c_bstr(), WS_CommandLine.c_bstr(),
NULL, NULL, true, 0, NULL, WS_DestDir.c_bstr(), &StartInfo, &ProcInfo);
Attachments (2)
Change History (5)
by , 10 years ago
Attachment: | ffmpeg-20131121-151234.log added |
---|
by , 10 years ago
Attachment: | overwrite.jpg added |
---|
comment:1 by , 10 years ago
Keywords: | win added; overwrite -y createprocess removed |
---|
comment:2 by , 9 years ago
comment:3 by , 9 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
Your command line has -y as the first argument, where ffmpeg
should be.
Please fix this -- it is preventing good use in batch jobs.