tutorials: update old gstreamer-sdk media links

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1304>
This commit is contained in:
Tim-Philipp Müller 2023-08-12 17:48:03 +01:00 committed by Sebastian Dröge
parent 277cb517cd
commit db16dca822
10 changed files with 13 additions and 19 deletions

View file

@ -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

View file

@ -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

View file

@ -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.

View file

@ -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")

View file

@ -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}");

View file

@ -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")

View file

@ -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")

View file

@ -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)

View file

@ -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();

View file

@ -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")