syonip/flutter_fbstorage_video_upload

it gives very bad quality?

divyanshurawat opened this issue · 2 comments

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

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.

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