works for png or jpg frames adding support for linear pcm stereo/mono 16/8bit with variable (16k default) bitrate sampling