mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-25 11:01:10 +00:00
tutorials: update old gstreamer-sdk media links
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1304>
This commit is contained in:
parent
277cb517cd
commit
db16dca822
10 changed files with 13 additions and 19 deletions
|
@ -8,8 +8,7 @@ fn tutorial_main() {
|
|||
gst::init().unwrap();
|
||||
|
||||
// Build the pipeline
|
||||
let uri =
|
||||
"https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm";
|
||||
let uri = "https://gstreamer.freedesktop.org/data/media/sintel_trailer-480p.webm";
|
||||
let pipeline = gst::parse_launch(&format!("playbin uri={uri}")).unwrap();
|
||||
|
||||
// Start playing
|
||||
|
|
|
@ -11,8 +11,7 @@ fn tutorial_main() -> Result<(), Error> {
|
|||
gst::init()?;
|
||||
|
||||
// Build the pipeline
|
||||
let uri =
|
||||
"https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm";
|
||||
let uri = "https://gstreamer.freedesktop.org/data/media/sintel_trailer-480p.webm";
|
||||
let pipeline = gst::parse_launch(&format!("playbin uri={uri}"))?;
|
||||
|
||||
// Start playing
|
||||
|
|
|
@ -121,8 +121,7 @@ USAGE: Choose one of the following options, then press enter:
|
|||
thread::spawn(move || handle_keyboard(ready_tx));
|
||||
|
||||
// Build the pipeline.
|
||||
let uri =
|
||||
"https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm";
|
||||
let uri = "https://gstreamer.freedesktop.org/data/media/sintel_trailer-480p.webm";
|
||||
let pipeline = gst::parse_launch(&format!("playbin uri={uri}"))?;
|
||||
|
||||
// Start playing.
|
||||
|
|
|
@ -24,8 +24,7 @@ fn tutorial_main() {
|
|||
// Initialize GStreamer
|
||||
gst::init().unwrap();
|
||||
|
||||
let uri =
|
||||
"https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm";
|
||||
let uri = "https://gstreamer.freedesktop.org/data/media/sintel_trailer-480p.webm";
|
||||
|
||||
// Creat the playbin element
|
||||
let playbin = gst::ElementFactory::make("playbin")
|
||||
|
|
|
@ -142,7 +142,7 @@ fn run_discoverer() -> Result<(), Error> {
|
|||
let uri: &str = if args.len() == 2 {
|
||||
args[1].as_ref()
|
||||
} else {
|
||||
"https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm"
|
||||
"https://gstreamer.freedesktop.org/data/media/sintel_trailer-480p.webm"
|
||||
};
|
||||
|
||||
println!("Discovering {uri}");
|
||||
|
|
|
@ -100,8 +100,7 @@ fn tutorial_main() -> Result<(), Error> {
|
|||
// Initialize GStreamer
|
||||
gst::init()?;
|
||||
|
||||
let uri =
|
||||
"https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_cropped_multilingual.webm";
|
||||
let uri = "https://gstreamer.freedesktop.org/data/media/sintel_cropped_multilingual.webm";
|
||||
|
||||
// Create PlayBin element
|
||||
let playbin = gst::ElementFactory::make("playbin")
|
||||
|
|
|
@ -102,10 +102,8 @@ fn tutorial_main() -> Result<(), Error> {
|
|||
// Initialize GStreamer
|
||||
gst::init()?;
|
||||
|
||||
let uri =
|
||||
"https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.ogv";
|
||||
let subtitle_uri =
|
||||
"https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer_gr.srt";
|
||||
let uri = "https://gstreamer.freedesktop.org/data/media/sintel_trailer-480p.ogv";
|
||||
let subtitle_uri = "https://gstreamer.freedesktop.org/data/media/sintel_trailer_gr.srt";
|
||||
|
||||
// Create PlayBin element
|
||||
let playbin = gst::ElementFactory::make("playbin")
|
||||
|
|
|
@ -17,8 +17,7 @@ fn tutorial_main() -> Result<(), Error> {
|
|||
gst::init()?;
|
||||
|
||||
// Build the pipeline
|
||||
let uri =
|
||||
"https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm";
|
||||
let uri = "https://gstreamer.freedesktop.org/data/media/sintel_trailer-480p.webm";
|
||||
let pipeline = gst::ElementFactory::make("playbin")
|
||||
.name("playbin")
|
||||
.property("uri", uri)
|
||||
|
|
|
@ -111,7 +111,8 @@ fn tutorial_main() -> Result<(), Error> {
|
|||
|
||||
// Build the pipeline
|
||||
let pipeline = gst::parse_launch(
|
||||
"playbin uri=https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm")?;
|
||||
"playbin uri=https://gstreamer.freedesktop.org/data/media/sintel_trailer-480p.webm",
|
||||
)?;
|
||||
|
||||
let main_loop = glib::MainLoop::new(None, false);
|
||||
let main_loop_clone = main_loop.clone();
|
||||
|
|
|
@ -10,7 +10,8 @@ fn tutorial_main() -> Result<(), Error> {
|
|||
|
||||
// Build the pipeline
|
||||
let pipeline = gst::parse_launch(
|
||||
"playbin uri=https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm")?;
|
||||
"playbin uri=https://gstreamer.freedesktop.org/data/media/sintel_trailer-480p.webm",
|
||||
)?;
|
||||
|
||||
// Create elements that go inside the sink bin
|
||||
let equalizer = gst::ElementFactory::make("equalizer-3bands")
|
||||
|
|
Loading…
Reference in a new issue