%ffmpeg
channels can't take variable
#2634
Replies: 2 comments 1 reply
-
This is actually a "feature": we use the number of channels in the format to make sure that we have the right number of channels in the source. Of course, we could handle cases like this where the value is constant, but this quickly gets messy (what if Is this really bad for you? We should at least improve the error message... |
Beta Was this translation helpful? Give feedback.
-
thanks for your reply. I am not understanding as I am setting the channel to a valid value, just using a variable to do it. I guess you are saying you disallow using a variable to set the channel to prevent bad source but a user could still mistakenly set the channel wrong by channels=0. I don't agree with hand holding that prevents something that can be very legit. I'd rather see a warning message instead and when it fails, it is entirely my fault for not heeding the warning. And I'll see it in the logs so I know what needs to be fixed without having to write in. Thanks for all your help and the work you put in. |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
Getting an error when I try to use a variable to set channels. Feels like a bug. I apologize is I am writing this wrong.
At line 7, char 0-128:
Expected behavior
I expect the second one to work just like the first since
Version details
Install method
Github release
Beta Was this translation helpful? Give feedback.
All reactions