Opened 7 years ago

Closed 6 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


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)

ZeroMemory?(&StartInfo?, sizeof(STARTUPINFO));


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

Download all attachments as: .zip

Change History (5)

Changed 7 years ago by sgan

Changed 7 years ago by sgan

comment:1 Changed 7 years ago by cehoyos

  • Keywords win added; overwrite -y createprocess removed

comment:2 Changed 6 years ago by pszalapski

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

comment:3 Changed 6 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.