Simplified pipeline
This commit is contained in:
parent
646bb5d77a
commit
7bb5338c64
1 changed files with 5 additions and 5 deletions
10
src/main.rs
10
src/main.rs
|
@ -15,13 +15,13 @@ fn main() -> eyre::Result<()> {
|
||||||
|
|
||||||
let pipeline = gst::parse_launch(
|
let pipeline = gst::parse_launch(
|
||||||
r#"
|
r#"
|
||||||
filesrc location=/Users/rafael.caricio/video.mkv ! matroskademux name=demuxer
|
uridecodebin name=demuxer uri=file:///Users/rafael.caricio/video.mkv
|
||||||
|
|
||||||
demuxer.video_0 ! decodebin name=video-decoder ! video/x-raw ! transcriberbin name=trans latency=30000
|
demuxer. ! video/x-raw ! transcriberbin name=trans latency=30000
|
||||||
demuxer.audio_0 ! decodebin name=audio-decoder ! audio/x-raw ! trans.sink_audio
|
demuxer. ! audio/x-raw ! trans.sink_audio
|
||||||
|
|
||||||
trans.src_video ! cea608overlay black-background=1 ! autovideosink
|
trans.src_video ! cea608overlay black-background=1 ! autovideosink
|
||||||
trans.src_audio ! autoaudiosink
|
trans.src_audio ! autoaudiosink
|
||||||
|
|
||||||
"#,
|
"#,
|
||||||
)?
|
)?
|
||||||
|
|
Loading…
Reference in a new issue