alfg / alfg/ffmpeg-commander

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

Offen
#28 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
enhancement
Vorherrschende Sprache
TypeScript
Sterne
1.1k
Forks
111
Ø Merge
21 Min.
Gemergte PRs (30 T.)
8

Beschreibung

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

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.