Skip to content

Add parameter to set startInfo.WorkingDirectory#74

Closed
SunSerega wants to merge 2 commits intocmxl:masterfrom
SunSerega:working_directory_par
Closed

Add parameter to set startInfo.WorkingDirectory#74
SunSerega wants to merge 2 commits intocmxl:masterfrom
SunSerega:working_directory_par

Conversation

@SunSerega
Copy link
Copy Markdown
Contributor

@SunSerega SunSerega commented Jul 7, 2023

I need to execute this command:

ffmpeg -dump_attachment:t "" -i {file}

If I specify anything other than "" as a path - the ffmpeg is going to try and (fail to) save all attachments into the same file.
And %d doesn't seem to be supported here...
The best solution I found is to set the working dir to a new empty folder, so as to not mix the output of this command with other files. But there doesn't seem to be functionality for that in xFFmpeg.Net rn - I don't see startInfo.WorkingDirectory being set anywhere.

@cmxl
Copy link
Copy Markdown
Owner

cmxl commented Oct 26, 2023

There is now an overload for ExecuteAsync where you can pass a workingdirectory.
I will actually consider to make ExecuteAsync with the FFmpegParameters public so it is easier to add further properties to the arguments.

@cmxl cmxl closed this Oct 26, 2023
@SunSerega SunSerega deleted the working_directory_par branch October 26, 2023 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants