Skip to content
This repository has been archived by the owner on Nov 18, 2022. It is now read-only.

No process is associated with this object when combining streams #25

Closed
itsliamprowse opened this issue May 24, 2020 · 6 comments
Closed
Labels
invalid This doesn't seem right

Comments

@itsliamprowse
Copy link

When downloading video and audio separately, i can see both files get created in the filesystem correctly, however then the DownloadAndProcessMediaStreamsAsync method throws a System.InvalidOperationException: 'No process is associated with this object.'

System.InvalidOperationException: No process is associated with this object.
at System.Diagnostics.Process.EnsureState(State state)
at System.Diagnostics.Process.get_HasExited()
at CliWrap.Internal.ProcessEx.Dispose()
at CliWrap.Command.ExecuteAsync(ProcessEx process, CancellationToken cancellationToken)
at YoutubeExplode.Converter.Internal.FFmpeg.ConvertAsync(String outputFilePath, IReadOnlyList1 inputFilePaths, String format, String preset, Boolean avoidTranscoding, IProgress1 progress, CancellationToken cancellationToken)
at YoutubeExplode.Converter.YoutubeConverter.DownloadAndProcessMediaStreamsAsync(IReadOnlyList1 streamInfos, String filePath, String format, ConversionPreset preset, IProgress1 progress, CancellationToken cancellationToken)

This only started happening in the past few days, nothing has changed, we haven't touched our code since it was last working, videos that worked a few days ago do not work today

@Tyrrrz Tyrrrz added the bug Something isn't working label May 24, 2020
@Tyrrrz
Copy link
Owner

Tyrrrz commented May 24, 2020

Hi.
Does it happen all the time or sporadically?
Does ffmpeg.exe exist in the working directory?

@itsliamprowse
Copy link
Author

huh strange, i deleted the exe and recopied it in and its working now
Thanks :D

@Tyrrrz
Copy link
Owner

Tyrrrz commented May 25, 2020

Hm. Did you notice if the file was corrupted or anything? Really curious why that could be happening.

@itsliamprowse
Copy link
Author

Not that I noticed no, its possible though

@Tyrrrz
Copy link
Owner

Tyrrrz commented May 25, 2020

Okay. Good thing it works now, I guess.

@Tyrrrz Tyrrrz closed this as completed May 25, 2020
@Tyrrrz Tyrrrz added invalid This doesn't seem right and removed bug Something isn't working labels May 25, 2020
@LinuxDoku
Copy link

FYI, we had the same exception. In our case the binary had no execute permission in the docker container. Adding RUN chmod +x some-binary fixed it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

3 participants