alfg / alfg/ffmpeg-commander

[suggestion] Add option for 2-pass in windows shell

Aperta
#28 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
enhancement
Lingua principale
TypeScript
Stelle
1.1k
Fork
111
Merge medio
21m
PR unite (30g)
8

Descrizione

Currently the 2-pass command only works in linux systems. I'd like to suggest an option to select Windows shell for the 2-pass script. It would work like so:
Replace the `/dev/null` with the Windows equivalent `NUL` virtual path ([see this SO answer](https://stackoverflow.com/a/27773642/4526052)). ffmpeg asks for permission to overwrite this file, so an always overwrite flag on the first pass would be wonderful.

Also in PowerShell, the bash `&&` operator does not work. The equivalent `-and` operator messes with the pipes, so the best alternative I could find is this:
```powershell
ffmpeg -i input.mp4 -pass 1 -f mp4 -y nul; if ($?) { ffmpeg -i input.mp4 -pass 2 utput.mp4 }
```
NOTE: Not sure how this would look in command-prompt (cmd.exe). This would only work on powershell

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.