Fix issue #9
Use an err function

instead of print sys.stderr
Minor changes and comment
Merge branch 'Gu1--master'

Fix bug with recent version of rtmpdump