Change the read method of ffmpeg from filename to buffer to avoid
passing a filename with incorrect encoding to avformat_open_input.
Increased the size of photo thumbnails a little.