-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Command never ends when being executed in cmd_lib::spawn_with_output #35
Comments
Seems like the same issue as this one: https://stackoverflow.com/questions/34611742/how-do-i-read-the-output-of-a-child-process-without-blocking-in-rust. If the final output is larger than default kernel pipe size, it will block. |
Thanks for the link. I've read it but still now sure how to handle the issue. Do you have any suggestions? Btw, I just tried the stdlib Command and it completes without any issue. I use the following command.
Since cmd_lib is a wrapper around stdlib |
Yes, the fix should be in cmd_lib. After adding logging support, the generated code will a little different than your above code. I just made some changes, you can check if it fixes your problem. thanks. |
Thanks, it works now. Sorry for the late response. I can't find the issues tab the other day. |
I have a ffmpeg command to process a video file.
ffmpeg -i 4.mp4 -i a2.png -ss 00:00:00 -to 00:01:00 -y -filter_complex "overlay=x=263:y=752" -c:a copy -max_muxing_queue_size 9999 -nostdin testtttt.mp4
It runs very well when being executed in a terminal. But when I run it with
cmd_lib::spawn_with_output
, it never ends and the program just stuck there. This is my program.Is there something I'm doing wrong? Thanks.
The text was updated successfully, but these errors were encountered: