Make ffmpeg support generic data stream