bug fixing and writing AVPacket into output file
- fixed memory bug
- fixed ffmpeg version conflict
- began to implement file output