syonip / flutter_fbstorage_video_upload

MIT License
34 stars 30 forks source link

it gives very bad quality? #4

Open divyanshurawat opened 4 years ago

divyanshurawat commented 4 years ago

Everything is very good until we play videos from server. it converts in very bad quality . How do i fix this problem?

syonip commented 4 years ago

Hi @divyanshurawat, The quality is determined by the ffmpeg arguments in the encodeHLS function. Notice there are two bitrates encoded: 365K and 2000K. You can play around with the arguments to get any quality you want. Also notice the -preset ultrafast. If you change it to fast, medium, slow it will improve the quality, but will make the encoding slower. These were just example arguments, you have to find the settings that give you good results in your case. Good luck.

divyanshurawat commented 4 years ago

Thanks i solved this issue. Does it help me to save bandwidth of my server?