Skip to content

Commit 4869ba2

Browse files
committed
fixes #4
duration of webm containers seem to be only in the format section, not in the vp9 stream itself
1 parent f1585cd commit 4869ba2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/converter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ impl<'a> Converter<'a> {
162162
fn run_file_probe(&self, video_file: &str) -> Result<String, DownloadError> {
163163
let mut command = self.create_ffmpeg_base("ffprobe");
164164
command.args(&["-select_streams","0"]);
165-
command.args(&["-show_entries","stream=duration,r_frame_rate"]);
165+
command.args(&["-show_entries","format=duration:stream=r_frame_rate"]);
166166
command.args(&["-of","default=noprint_wrappers=1"]);
167167
command.arg(video_file);
168168

0 commit comments

Comments
 (0)