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)

ffmpeg-20131121-151234.log (3.6 KB ) - added by sgan 10 years ago.
overwrite.jpg (130.7 KB ) - added by sgan 10 years ago.

Download all attachments as: .zip

Change History (5)

by sgan, 10 years ago

Attachment: ffmpeg-20131121-151234.log added

by sgan, 10 years ago

Attachment: overwrite.jpg added

comment:1 by Carl Eugen Hoyos, 10 years ago

Keywords: win added; overwrite -y createprocess removed

comment:2 by Patrick Szalapski, 9 years ago

Please fix this -- it is preventing good use in batch jobs.

comment:3 by Ridley Combs, 9 years ago

Resolution: invalid
Status: newclosed

Your command line has -y as the first argument, where ffmpeg should be.

Note: See TracTickets for help on using tickets.