Conditional: audio file without video?

Questions and answers on how to get the most out of FFAStrans
Post Reply
User avatar
FranceBB
Posts: 28
Joined: Sat Jun 25, 2016 3:43 pm
Location: Chelsea
Contact:

Conditional: audio file without video?

Post by FranceBB » Thu Nov 08, 2018 10:40 pm

Hi,
I'm trying to differentiate a workflow I have in place by setting a conditional that checks whether a file has video and audio or if it's audio only and use a different node.
I know that there's a conditional for videos without audio, but what about audio files without video?

Thank you in advance,
Frank.
Broadcast Encoder

momocampo
Posts: 126
Joined: Thu Jun 08, 2017 12:36 pm

Re: Conditional: audio file without video?

Post by momocampo » Fri Nov 09, 2018 11:36 am

Hello Franck,
It seems quite easy with conditional node, you have to use %i_a_streams% and %i_v_streams% with larger than or egal to check you have more 1 audio stream and more 1 video stream > audio+video.
Then, if you have always video+audio file OR only audio file, you can execute on success when file is video+audio and execute on error if your file is only audio.
I hope it helps.
Cheers.

Benjamin

Post Reply