I'm using FFmpeg-php to convert videos. When I want to convert a video that has no audio, it gives me an error on these lines:
$srcAB = $ffmpegObj->getAudioBitRate();
$srcAR = $ffmpegObj->getAudioSampleRate();
Is there a way within ffmpeg-php to know if a video has any audio, so I can skip the above lines above and give both $srcAB
and $srcAR
a value of 0?