def _show_clip_info(data): clip, track, item_id, x = data width = clip.get("width") height = clip.get("height") if clip.media_type == appconsts.IMAGE: graphic_img = Image.open(clip.path) width, height = graphic_img.size size = str(width) + " x " + str(height) l_frames = clip.clip_out - clip.clip_in + 1 # +1 out inclusive length = utils.get_tc_string(l_frames) mark_in = utils.get_tc_string(clip.clip_in) mark_out = utils.get_tc_string(clip.clip_out + 1) # +1 out inclusive video_index = clip.get_int("video_index") audio_index = clip.get_int("audio_index") long_video_property = "meta.media." + str(video_index) + ".codec.long_name" long_audio_property = "meta.media." + str(audio_index) + ".codec.long_name" vcodec = clip.get(str(long_video_property)) acodec = clip.get(str(long_audio_property)) if vcodec == None: vcodec = _("N/A") if acodec == None: acodec = _("N/A") dialogs.clip_properties_dialog( (mark_in, mark_out, length, size, clip.path, vcodec, acodec))
def _show_clip_info(data): clip, track, item_id, x = data width = clip.get("width") height = clip.get("height") if clip.media_type == appconsts.IMAGE: graphic_img = Image.open(clip.path) width, height = graphic_img.size size = str(width) + " x " + str(height) l_frames = clip.clip_out - clip.clip_in + 1 # +1 out inclusive length = utils.get_tc_string(l_frames) mark_in = utils.get_tc_string(clip.clip_in) mark_out = utils.get_tc_string(clip.clip_out + 1) # +1 out inclusive video_index = clip.get_int("video_index") audio_index = clip.get_int("audio_index") long_video_property = "meta.media." + str(video_index) + ".codec.long_name" long_audio_property = "meta.media." + str(audio_index) + ".codec.long_name" vcodec = clip.get(str(long_video_property)) acodec = clip.get(str(long_audio_property)) if vcodec == None: vcodec = _("N/A") if acodec == None: acodec = _("N/A") dialogs.clip_properties_dialog((mark_in, mark_out, length, size, clip.path, vcodec, acodec))
def _show_clip_info(data): clip, track, item_id, x = data width = clip.get("width") height = clip.get("height") size = str(width) + " x " + str(height) l_frames = clip.clip_out - clip.clip_in + 1 # +1 out inclusive length = utils.get_tc_string(l_frames) video_index = clip.get_int("video_index") audio_index = clip.get_int("audio_index") long_video_property = "meta.media." + str(video_index) + ".codec.long_name" long_audio_property = "meta.media." + str(audio_index) + ".codec.long_name" vcodec = clip.get(str(long_video_property)) acodec = clip.get(str(long_audio_property)) dialogs.clip_properties_dialog((length, size, clip.path, vcodec, acodec))
def _show_clip_info(data): clip, track, item_id, x = data width = clip.get("width") height = clip.get("height") size = str(width) + " x " + str(height) l_frames = clip.clip_out - clip.clip_in + 1 # +1 out inclusive length = utils.get_tc_string(l_frames) video_index = clip.get_int("video_index") audio_index = clip.get_int("audio_index") long_video_property = "meta.media." + str(video_index) + ".codec.long_name" long_audio_property = "meta.media." + str(audio_index) + ".codec.long_name" vcodec = clip.get(str(long_video_property)) acodec = clip.get(str(long_audio_property)) dialogs.clip_properties_dialog((length, size, clip.path, vcodec, acodec))