danielcardeenas / whatsapp-framework

⚗️Whatsapp python api
1.16k stars 363 forks source link

Better handling of video file streams #242

Closed mikesalmonuk closed 2 years ago

mikesalmonuk commented 5 years ago

MP4 streams could be split into audio and video codec types, and the code was by default checking ffprobeOutput[0] which was possibly the audio codec type, so it couldn't get the video dimensions. A sample MP4 file split into streams looks like https://pastebin.com/tsy5r4QR I've kept the default behaviour so shouldn't break anything, but should handle MP4s that are split streams, like the above pastebin example.