Opened 5 years ago

Closed 4 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 5 years ago.
overwrite.jpg (130.7 KB) - added by sgan 5 years ago.

Download all attachments as: .zip

Change History (5)

Changed 5 years ago by sgan

Changed 5 years ago by sgan

comment:1 Changed 5 years ago by cehoyos

  • Keywords win added; overwrite -y createprocess removed

comment:2 Changed 4 years ago by pszalapski

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

comment:3 Changed 4 years ago by 11rcombs

  • Resolution set to invalid
  • Status changed from new to closed

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

Note: See TracTickets for help on using tickets.