Skip to content

Commit

Permalink
update code
Browse files Browse the repository at this point in the history
  • Loading branch information
liangali committed Jul 1, 2020
1 parent 2635878 commit 6bedfa8
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
21 changes: 21 additions & 0 deletions auto2.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import os
import sys
import convert2

if __name__ == "__main__":
if len(sys.argv) == 2:
videofile = sys.argv[1]
else:
print("ERROR: invalid command line. example: python auto.py inputvideo.264")
exit()

dump_log = 'dump.log'
#dec_cmd = 'ffmpeg -i ' + videofile + ' out_%04d.bmp -y'
#os.system(dec_cmd)

dump_cmd = ' ldecod.exe ' + '>' + dump_log
os.system(dump_cmd)

convert2.execute(dump_log)

print('done')
4 changes: 2 additions & 2 deletions convert2.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ def calc_skip_zeromv(skipflag, zeromv):
def execute(dumpfile):
w, h = get_size(dumpfile)
skipflag, zeromv = parse_dump(dumpfile, w, h)
dump_to_file(skipflag, 'skip')
dump_to_file(zeromv, 'mvinfo')
#dump_to_file(skipflag, 'skip')
#dump_to_file(zeromv, 'mvinfo')
skip_zeromv = calc_skip_zeromv(skipflag, zeromv)
dump_to_file(skip_zeromv, 'skip_zeromv')
return
Expand Down

0 comments on commit 6bedfa8

Please sign in to comment.