Skip to content

Commit

Permalink
measure/perf: fix handling of mp4 streams
Browse files Browse the repository at this point in the history
Fix: #33

Signed-off-by: Dmitry Rogozhkin <dmitry.v.rogozhkin@intel.com>
  • Loading branch information
dvrogozh committed Sep 29, 2020
1 parent 877a353 commit 4c9708a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions measure/performance/MSPerf.py
Original file line number Diff line number Diff line change
Expand Up @@ -1414,8 +1414,9 @@ def execution_time(output_log_handle, message, start,end):
def ffmpegffprobeCheck(output_log_handle, filepath, filename, out_temp_path, debug_verbose, performance_sweeping_table, performance_object_list):
status = True
filename_split = filename.replace('.', '_').split('_')
ffprobe_dump = out_temp_path + "/ffprobe_" + filename_split[0] + ".txt"
ffprobe_cmd = "ffprobe -hide_banner -loglevel panic -show_streams -i " + filepath + filename.rstrip() + " | grep -E '^height=|^r_frame_rate=|^codec_name=' " + " > " + ffprobe_dump
ffprobe_dump = out_temp_path + "/ffprobe_" + filename_split[0] + ".txt"
ffprobe_cmd = "ffprobe -v error -hide_banner -loglevel panic -select_streams v:0 -show_streams "
ffprobe_cmd += "-of default=noprint_wrappers=1 -i " + filepath + filename.rstrip() + " | grep -E '^height=|^r_frame_rate=|^codec_name=' " + " > " + ffprobe_dump
os.system(ffprobe_cmd)
height = encode_bitrate = ffprobe_frame_rate = ffprobe_codec_name = 0
content_supported_codec = ["h264", "hevc"]
Expand Down

0 comments on commit 4c9708a

Please sign in to comment.