petrkotek/chromecastize

Error when mediainfo doesn't return number of audio channels

pfrenssen opened this issue · 2 comments

I have a few videos using the mp4 container that give an error when using the --stereo option:

Processing: /mnt/videos/testvideo.mp4
- general: MPEG-4 -> mkv
- input video profile: High@L4.1
- video: AVC -> copy
/usr/local/bin/chromecastize.sh: line 179: [: -gt: unary operator expected
- audio: Ogg -> copy
- video length: 02:22:06.744

The file is not converted to stereo. It seems to happen because mediainfo cannot find the number of audio channels.

I have the error when using the latest mediainfo v19.07 but not when I use v18.05.