Module Expr Str Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias Import alias Import alias ClassDef bases body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad Str Str Str Str NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr SubscriptLoad Call AttributeLoad SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Index Num attr AttributeLoad NameLoad attr Index Num Assign AttributeStore NameLoad attr SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Index Num Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr orelse Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad Call NameLoad Call NameLoad AttributeLoad NameLoad attr BinOpAdd Call NameLoad AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr Call NameLoad Call NameLoad Call NameLoad AttributeLoad NameLoad attr BinOpAdd BinOpAdd Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr ListLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If BoolOpAnd UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad Str attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict If UnaryOpNot AttributeLoad NameLoad attr body Assign NameStore Str Assign NameStore ListLoad Str For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpMod BinOpMod Str AttributeLoad NameLoad attr NameLoad For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpMod BinOpMod Str AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad orelse Assign NameStore Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr While NameLoad body Assign NameStore ListLoad Str For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod BinOpMod Str AttributeLoad NameLoad attr NameLoad For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpMod BinOpMod Str AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index BinOpMod NameLoad Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore ListLoad Str Expr Call AttributeLoad NameLoad attr ListLoad Str Str Expr Call AttributeLoad NameLoad attr ListLoad Str Expr Call AttributeLoad NameLoad attr ListLoad NameLoad Expr Call AttributeLoad NameLoad attr ListLoad Str Expr Call AttributeLoad NameLoad attr ListLoad Str Expr Call AttributeLoad NameLoad attr ListLoad Str Str Expr Call AttributeLoad NameLoad attr ListLoad Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad Str Expr Call AttributeLoad NameLoad attr ListLoad Str Str Expr Call AttributeLoad NameLoad attr ListLoad Str Str Expr Call AttributeLoad NameLoad attr ListLoad Str Str Expr Call AttributeLoad NameLoad attr ListLoad Str Expr Call AttributeLoad NameLoad attr ListLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr ListLoad If UnaryOpNot AttributeLoad NameLoad attr body Assign NameStore Str If NameLoad body Print Call NameLoad NameLoad Num For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad Str attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad orelse Assign NameStore Str If NameLoad body Print Call NameLoad NameLoad Num Print Call NameLoad AttributeLoad NameLoad attr Num Assign NameStore Str For NameStore AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr BinOpMod NameLoad NameLoad Assign NameStore Call AttributeLoad Str attr AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body If CompareIs AttributeLoad NameLoad attr NameLoad body Return NameLoad orelse For NameStore AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad Str attr NameLoad NameLoad If NameLoad body Print Call NameLoad NameLoad Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore ListLoad NameLoad FunctionDef arguments args NameParam defaults body Expr Str If BoolOpOr CompareEq SubscriptLoad NameLoad Index Num NameLoad UnaryOpNot Call NameLoad NameLoad body Assign SubscriptStore NameLoad Index Num NameLoad orelse Assign NameStore SubscriptLoad NameLoad Index Num Return NameLoad decorator_list For NameStore AttributeLoad NameLoad attr body Assign NameStore ListLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Assign NameStore Num Assign NameStore Num For NameStore SubscriptLoad NameLoad Slice Num body AugAssignAdd NameStore Num AugAssignAdd NameStore Num If CompareLt NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad NameLoad Index NameLoad orelse Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num If CompareGt NameLoad BinOpMult AttributeLoad NameLoad attr Num body Assign NameStore Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Num Assign NameStore ListLoad Str Expr Call AttributeLoad NameLoad attr ListLoad Str Expr Call AttributeLoad NameLoad attr ListLoad Str Expr Call AttributeLoad NameLoad attr ListLoad Str NameLoad Expr Call AttributeLoad NameLoad attr ListLoad Str NameLoad Expr Call AttributeLoad NameLoad attr ListLoad Str Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr ListLoad Str Str Expr Call AttributeLoad NameLoad attr ListLoad Str Str Expr Call AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr Print Call AttributeLoad Str attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Num Assign NameStore Call NameLoad BinOpAdd Call NameLoad AttributeLoad NameLoad attr Num Assign NameStore BinOpDiv NameLoad NameLoad Assign NameStore BinOpMod Str NameLoad If UnaryOpNot AttributeLoad NameLoad attr body Assign NameStore Call NameLoad AttributeLoad NameLoad attr For TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad Str attr NameLoad AttributeLoad NameLoad attr NameLoad NameLoad If NameLoad body Print Call NameLoad NameLoad Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad keyword NameLoad orelse Assign NameStore Call NameLoad AttributeLoad NameLoad attr While NameLoad body Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad AttributeLoad NameLoad attr NameLoad NameLoad If NameLoad body Print Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A 
 python-moshion - Datamoshing Motion
 (c) 2014 Robert Moggach, Fabio Piparo and contributors
 Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php

 core.py
  
 moshion is a command line interface to ffmpeg used to datamosh two
 video sequences to purposely create encoding artifacts.

 N/A sys N/A os N/A glob N/A copy N/A subprocess pymosh Index pymosh.mpeg4 is_iframe util IS_TTY HR hilite N/A sequence N/A readline Moshion N/A N/A __init__ N/A N/A self inseq moshseq start end outdir moshstart bitrate keyframe threshold interval avionly uber N/A None 8000 999 100000000 9 False False N/A N/A N/A self uber uber N/A N/A self inseq N/A N/A N/A os path normpath N/A N/A inseq replace \ N/A os sep N/A N/A self filebase N/A N/A N/A N/A N/A N/A N/A self inseq split . N/A 0 split N/A os sep N/A -1 N/A N/A self fileext N/A N/A N/A N/A self inseq split . N/A -1 N/A N/A self moshseq N/A N/A N/A os path normpath N/A N/A moshseq replace \ N/A os sep N/A N/A self start N/A int start N/A N/A self end N/A int end N/A N/A self avionly avionly N/A N/A moshstart None N/A N/A N/A self moshstart N/A int N/A self start N/A N/A N/A self moshstart N/A int moshstart N/A N/A self input_frame_list N/A list N/A range N/A int N/A self start N/A N/A int N/A self end 1 N/A N/A self mosh_frame_list N/A list N/A range N/A int N/A self moshstart N/A N/A N/A int N/A self moshstart N/A len N/A self input_frame_list 1 N/A N/A self bitrate bitrate N/A N/A self keyframe keyframe N/A N/A self threshold threshold N/A N/A self interval interval N/A N/A self outdir N/A N/A N/A os path normpath N/A N/A outdir replace \ N/A os sep N/A N/A self to_mosh N/A N/A N/A self moshed N/A N/A N/A N/A N/A N/A os path isdir N/A self outdir N/A N/A N/A N/A os makedirs N/A self outdir 493 N/A N/A self outfiledir N/A N/A N/A os path join N/A self outdir N/A self fileext N/A N/A N/A N/A N/A N/A os path isdir N/A self outfiledir N/A N/A self avionly N/A N/A N/A N/A os makedirs N/A self outfiledir 493 N/A outfilename N/A N/A {2}{0}{1}_moshed.%04d.{2} format N/A os sep N/A self filebase N/A self fileext N/A N/A self outseq N/A N/A N/A os path join N/A self outdir outfilename N/A N/A self file_list_dict N/A N/A self get_file_list_dict N/A N/A N/A self write_file_list N/A get_file_list_dict N/A N/A self N/A N/A N/A files N/A N/A N/A N/A self uber N/A N/A file_list_name frame_list.txt N/A file_list N/A ffconcat version 1.0 N/A frame N/A self input_frame_list N/A N/A N/A N/A file_list append N/A N/A file %s N/A self inseq frame N/A frame N/A self mosh_frame_list N/A N/A N/A N/A file_list append N/A N/A file %s N/A self moshseq frame N/A N/A files N/A file_list_name file_list N/A N/A file_list_name frame_list.%04d.txt N/A uber_frame_list N/A list N/A self input_frame_list N/A uber_frame_list N/A N/A file_list N/A ffconcat version 1.0 N/A frame uber_frame_list N/A N/A N/A N/A file_list append N/A N/A file %s N/A self inseq frame N/A frame N/A self mosh_frame_list N/A N/A N/A N/A file_list append N/A N/A file %s N/A self moshseq frame N/A N/A files N/A N/A file_list_name N/A N/A uber_frame_list pop file_list N/A files N/A write_file_list N/A N/A self N/A N/A N/A N/A ffile flist N/A N/A N/A self file_list_dict iteritems N/A N/A file_path N/A N/A N/A os path join N/A self outdir ffile N/A out_file N/A file file_path w N/A N/A N/A out_file write N/A N/A join flist N/A N/A N/A out_file close N/A get_encode_opts N/A N/A self list_file avi N/A N/A N/A opts N/A ffmpeg N/A N/A N/A opts extend N/A -safe 0 N/A N/A N/A opts extend N/A -i N/A N/A N/A opts extend N/A list_file N/A N/A N/A opts extend N/A -nostdin N/A N/A N/A opts extend N/A -hide_banner N/A N/A N/A opts extend N/A -pattern_type sequence N/A N/A N/A opts extend N/A -g N/A self keyframe N/A N/A N/A opts extend N/A -sc_threshold N/A self threshold N/A N/A N/A opts extend N/A -an N/A N/A N/A opts extend N/A -vf fps=25 N/A N/A N/A opts extend N/A -vcodec libxvid N/A N/A N/A opts extend N/A -f avi N/A N/A N/A opts extend N/A -y N/A N/A N/A opts extend N/A avi N/A opts N/A write_movie N/A N/A self N/A N/A N/A N/A self to_mosh N/A N/A N/A N/A self uber N/A N/A msg 

Creating initial movie

 N/A IS_TTY N/A N/A N/A hilite msg 7 N/A N/A key value N/A N/A N/A self file_list_dict iteritems N/A N/A list_file N/A N/A N/A os path join N/A self outdir key N/A avi_filename N/A N/A {0}.avi format N/A self filebase N/A N/A N/A N/A self to_mosh append avi_filename N/A avi N/A N/A N/A os path join N/A self outdir avi_filename N/A N/A N/A subprocess call N/A N/A self get_encode_opts list_file avi close_fds True N/A N/A msg 

Creating initial movies

 N/A IS_TTY N/A N/A N/A hilite msg 7 N/A N/A hilite N/A self input_frame_list 30 N/A file_list_name frame_list.%04d.txt N/A frame N/A self input_frame_list N/A N/A list_file N/A N/A N/A os path join N/A self outdir N/A file_list_name frame N/A avi_filename N/A N/A {0}_fr{1}.avi format N/A self filebase N/A %04d frame N/A N/A N/A N/A self to_mosh append avi_filename N/A avi N/A N/A N/A os path join N/A self outdir avi_filename N/A N/A N/A subprocess call N/A N/A self get_encode_opts list_file avi close_fds True N/A mosh N/A N/A self N/A N/A N/A N/A N/A self to_mosh None N/A N/A False N/A N/A avi_filename N/A self to_mosh N/A N/A moshed_avi_filename N/A N/A avi_filename replace .avi _moshed.avi N/A msg N/A N/A {0}Creating moshed movie:
{1}{0} format HR moshed_avi_filename N/A IS_TTY N/A N/A N/A hilite msg 15 N/A input_avi N/A N/A N/A os path join N/A self outdir avi_filename N/A moshed_avi N/A N/A N/A os path join N/A self outdir moshed_avi_filename N/A f N/A Index input_avi N/A buf N/A None process_frame N/A N/A frame N/A N/A N/A Process a frame, holding onto one P-frame at a time,
          which is used to replace any I-frames encountered. N/A N/A N/A N/A buf N/A 0 None N/A N/A is_iframe frame N/A N/A N/A buf N/A 0 frame N/A N/A frame N/A buf N/A 0 N/A frame N/A N/A stream N/A f video N/A N/A newstream N/A N/A N/A N/A newstream append N/A stream N/A 0 N/A ix 0 N/A jx 0 N/A i N/A stream N/A 1 N/A N/A ix 1 N/A jx 1 N/A N/A ix N/A self interval N/A N/A N/A N/A newstream append N/A process_frame N/A stream N/A jx N/A N/A N/A N/A newstream append N/A newstream N/A -1 N/A N/A ix N/A N/A self interval 2 N/A N/A ix 0 N/A N/A N/A stream replace newstream N/A N/A N/A f rebuild N/A N/A N/A f write moshed_avi N/A N/A N/A N/A self moshed append moshed_avi_filename N/A get_export_opts N/A N/A self seekto_str fcount moshed_avi N/A N/A N/A framerate 25.0 N/A opts N/A ffmpeg N/A N/A N/A opts extend N/A -nostdin N/A N/A N/A opts extend N/A -hide_banner N/A N/A N/A opts extend N/A -i moshed_avi N/A N/A N/A opts extend N/A -ss seekto_str N/A N/A N/A opts extend N/A -frames:v N/A str fcount N/A N/A N/A opts extend N/A -vf fps=25 N/A N/A N/A opts extend N/A -f image2 N/A N/A N/A opts extend N/A N/A self outseq N/A N/A N/A join opts N/A opts N/A write_sequence N/A N/A self N/A N/A N/A framerate 25.0 N/A seekto_frame N/A float N/A N/A len N/A self input_frame_list 1.0 N/A seekto_secs N/A seekto_frame framerate N/A seekto_str N/A %05.2f seekto_secs N/A N/A N/A self uber N/A N/A fcount N/A len N/A self input_frame_list N/A N/A key fname N/A enumerate N/A self moshed N/A N/A msg N/A N/A {0}Exporting {2} frame image sequence from {3}: {1}{0} format HR N/A self outseq fcount fname N/A IS_TTY N/A N/A N/A hilite msg 11 N/A avi N/A N/A N/A os path join N/A self outdir fname N/A N/A N/A subprocess call N/A N/A self get_export_opts seekto_str fcount avi close_fds True N/A N/A uber_frame_list N/A list N/A self moshed N/A uber_frame_list N/A N/A fcount N/A len uber_frame_list N/A fname N/A N/A uber_frame_list pop 0 N/A avi N/A N/A N/A os path join N/A self outdir fname N/A msg N/A N/A {0}Exporting {2} frame image sequence from {3}: {1}{0} format HR N/A self outseq fcount fname N/A IS_TTY N/A N/A N/A hilite msg 11 N/A N/A N/A subprocess call N/A N/A self get_export_opts seekto_str fcount avi close_fds True N/A do_full_mosh N/A N/A self N/A N/A N/A N/A N/A self write_movie N/A N/A N/A self mosh N/A N/A N/A self write_sequence N/A N/A