Here is the context : I call blender by the command line like so : blender -b -P myscript.py
In the python script i am doing something simple, i add a movie strip with no sound and then print orignal size of the video:
bpy.ops.sequencer.movie_strip_add({'area': area},filepath='/tmp/file.mp4',frame_start=1, channel=1)
active_strip = bpy.context.scene.sequence_editor.active_strip
print(active_strip.elements[0].orig_height)
print(active_strip.elements[0].orig_width)
The problem is that i always get 0 for both height and width which is not the original dimension of the video.
When i execute this inside blender python console i get the right original dimensions.
Any ideas why it does'nt work by the command line?
Thanks