Skip to content

Commit

Permalink
fixes #4
Browse files Browse the repository at this point in the history
duration of webm containers seem to be only in the format section, not in the vp9 stream itself
  • Loading branch information
0xpr03 committed Jan 17, 2016
1 parent f1585cd commit 4869ba2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/converter.rs
Expand Up @@ -162,7 +162,7 @@ impl<'a> Converter<'a> {
fn run_file_probe(&self, video_file: &str) -> Result<String, DownloadError> {
let mut command = self.create_ffmpeg_base("ffprobe");
command.args(&["-select_streams","0"]);
command.args(&["-show_entries","stream=duration,r_frame_rate"]);
command.args(&["-show_entries","format=duration:stream=r_frame_rate"]);
command.args(&["-of","default=noprint_wrappers=1"]);
command.arg(video_file);

Expand Down

0 comments on commit 4869ba2

Please sign in to comment.