|
81 | 81 | long_json_path = Path(temp_dir) / "long_custom_frame_mappings.json" |
82 | 82 | short_json_path = Path(temp_dir) / "short_custom_frame_mappings.json" |
83 | 83 |
|
84 | | -ffprobe_cmd = ["ffprobe", "-i", f"{long_video_path}", "-select_streams", f"v:{stream_index}", "-show_frames", "-show_entries", "frame=pkt_pts,pkt_duration,key_frame", "-of", "json"] |
| 84 | +ffprobe_cmd = ["ffprobe", "-i", f"{long_video_path}", "-select_streams", f"{stream_index}", "-show_frames", "-show_entries", "frame=pts,duration,key_frame", "-of", "json"] |
85 | 85 | ffprobe_result = subprocess.run(ffprobe_cmd, check=True, capture_output=True, text=True) |
86 | 86 | with open(long_json_path, "w") as f: |
87 | 87 | f.write(ffprobe_result.stdout) |
88 | 88 |
|
89 | | -ffprobe_cmd = ["ffprobe", "-i", f"{short_video_path}", "-select_streams", f"v:{stream_index}", "-show_frames", "-show_entries", "frame=pkt_pts,pkt_duration,key_frame", "-of", "json"] |
| 89 | +ffprobe_cmd = ["ffprobe", "-i", f"{short_video_path}", "-select_streams", f"{stream_index}", "-show_frames", "-show_entries", "frame=pts,duration,key_frame", "-of", "json"] |
90 | 90 | ffprobe_result = subprocess.run(ffprobe_cmd, check=True, capture_output=True, text=True) |
91 | 91 | with open(short_json_path, "w") as f: |
92 | 92 | f.write(ffprobe_result.stdout) |
|
0 commit comments