Problem beim Start ffmpeg in c #
-
15-11-2019 - |
Frage
Ich nenne FFMPEG über den Prozessstartinfo in meiner C # -Anwendung. Ich kann jedoch nicht weiter den Fehler bekommen;
Datei für Preset 'verlustless_slow' nicht gefunden
hier ist mein c # -code; generasacodicetagpre.
Jetzt habe ich meine Presets in den Ordner gesetzt
c: \ Benutzer \ weea \ .ffmpeg
und enthalten diese in die Windows-Pfad-Benutzervariable nach Hause.Dies funktioniert gut, wenn FFMPEG aus der Befehlszeile ausgeführt wird, jedoch fehlschlägt, wenn die Befehle in meiner C # -Anwendung ausgegeben werden, warum!?Vielen Dank für jede Hilfe ...!
Auch von Anmerkungs, ich führe den Service als "Netzwerkservice".
Lösung
In situations like this I always start up the procmon tool which can show you all the file operations of your application. You can set up a filter based on the name of the preset file and see where ffmpeg is trying to locate it.
Andere Tipps
Setting the HOME variable looks good here.
The only thing I see is that in the code you set HOME to be @"C:\Users\wonea.ffmpeg" and in the text you mention the file is at : C:\Users\wonea.ffmpeg
Is one of these a typo?