cmxl / FFmpeg.NET

.NET wrapper for common ffmpeg tasks
MIT License
611 stars 99 forks source link

Support `-pix_fmt` argument #43

Closed acelot closed 3 years ago

acelot commented 4 years ago

This argument is needed to support Android devices. ffmpeg uses h264 (High 4:4:4 Predictive) profile by default and the converted video file is not played on Android devices. I deliberately did not create an Enum with all possible formats, since there are a lot of them and their number depends on the compile flags of ffmpeg.

acelot commented 4 years ago

More info can be found in https://stackoverflow.com/questions/55278867/video-not-playing-on-android-chrome-and-ios-safari