Add some logs

The h264 file which saved by encoder cannot play. It should play in vlc, catch the warning or error info.