mirror of
https://github.com/FliegendeWurst/ripgrep-all.git
synced 2024-11-24 12:24:56 +00:00
Run cargo fmt
This commit is contained in:
parent
ab500733aa
commit
ec19d0d595
@ -83,10 +83,14 @@ impl WritingFileAdapter for FFmpegAdapter {
|
|||||||
let subtitle_streams = {
|
let subtitle_streams = {
|
||||||
let probe = Command::new("ffprobe")
|
let probe = Command::new("ffprobe")
|
||||||
.args(vec![
|
.args(vec![
|
||||||
"-v", "error", // show all errors
|
"-v",
|
||||||
"-select_streams", "s", // show only subtitle streams
|
"error", // show all errors
|
||||||
"-of", "json", // use json as output format
|
"-select_streams",
|
||||||
"-show_entries", "stream=index", // show index of subtitle streams
|
"s", // show only subtitle streams
|
||||||
|
"-of",
|
||||||
|
"json", // use json as output format
|
||||||
|
"-show_entries",
|
||||||
|
"stream=index", // show index of subtitle streams
|
||||||
])
|
])
|
||||||
.arg("-i")
|
.arg("-i")
|
||||||
.arg(&inp_fname)
|
.arg(&inp_fname)
|
||||||
@ -139,7 +143,8 @@ impl WritingFileAdapter for FFmpegAdapter {
|
|||||||
// extract subtitles
|
// extract subtitles
|
||||||
let mut cmd = Command::new("ffmpeg");
|
let mut cmd = Command::new("ffmpeg");
|
||||||
cmd.arg("-hide_banner")
|
cmd.arg("-hide_banner")
|
||||||
.arg("-loglevel").arg("panic")
|
.arg("-loglevel")
|
||||||
|
.arg("panic")
|
||||||
.arg("-i")
|
.arg("-i")
|
||||||
.arg(&inp_fname)
|
.arg(&inp_fname)
|
||||||
.arg("-map")
|
.arg("-map")
|
||||||
|
Loading…
Reference in New Issue
Block a user