mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
Replace gstreamer.com uri with freedesktop
This commit is contained in:
parent
880317a38b
commit
9b4b5a7f58
17 changed files with 38 additions and 38 deletions
|
@ -9,7 +9,7 @@ int main(int argc, char *argv[]) {
|
||||||
gst_init (&argc, &argv);
|
gst_init (&argc, &argv);
|
||||||
|
|
||||||
/* Build the pipeline */
|
/* Build the pipeline */
|
||||||
pipeline = gst_parse_launch ("playbin uri=http://docs.gstreamer.com/media/sintel_trailer-480p.webm", NULL);
|
pipeline = gst_parse_launch ("playbin uri=https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm", NULL);
|
||||||
|
|
||||||
/* Start playing */
|
/* Start playing */
|
||||||
gst_element_set_state (pipeline, GST_STATE_PLAYING);
|
gst_element_set_state (pipeline, GST_STATE_PLAYING);
|
||||||
|
|
|
@ -86,7 +86,7 @@ public class Tutorial4 extends Activity implements SurfaceHolder.Callback, OnSee
|
||||||
private int desired_position; // Position where the users wants to seek to
|
private int desired_position; // Position where the users wants to seek to
|
||||||
private String mediaUri; // URI of the clip being played
|
private String mediaUri; // URI of the clip being played
|
||||||
|
|
||||||
private final String defaultMediaUri = "http://docs.gstreamer.com/media/sintel_trailer-368p.ogv";
|
private final String defaultMediaUri = "https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-368p.ogv";
|
||||||
|
|
||||||
// Called when the activity is first created.
|
// Called when the activity is first created.
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -132,7 +132,7 @@ int main(int argc, char *argv[]) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Set the URI to play */
|
/* Set the URI to play */
|
||||||
g_object_set (data.source, "uri", "http://docs.gstreamer.com/media/sintel_trailer-480p.webm", NULL);
|
g_object_set (data.source, "uri", "https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm", NULL);
|
||||||
|
|
||||||
/* Connect to the pad-added signal */
|
/* Connect to the pad-added signal */
|
||||||
g_signal_connect (data.source, "pad-added", G_CALLBACK (pad_added_handler), &data);
|
g_signal_connect (data.source, "pad-added", G_CALLBACK (pad_added_handler), &data);
|
||||||
|
@ -309,7 +309,7 @@ just leave this branch (converter + sink) unlinked, until later on.
|
||||||
|
|
||||||
``` c
|
``` c
|
||||||
/* Set the URI to play */
|
/* Set the URI to play */
|
||||||
g_object_set (data.source, "uri", "http://docs.gstreamer.com/media/sintel_trailer-480p.webm", NULL);
|
g_object_set (data.source, "uri", "https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm", NULL);
|
||||||
```
|
```
|
||||||
|
|
||||||
We set the URI of the file to play via a property, just like we did in
|
We set the URI of the file to play via a property, just like we did in
|
||||||
|
|
|
@ -147,7 +147,7 @@ stream out of a
|
||||||
demuxer:
|
demuxer:
|
||||||
|
|
||||||
```
|
```
|
||||||
gst-launch-1.0 souphttpsrc location=http://docs.gstreamer.com/media/sintel_trailer-480p.webm ! matroskademux name=d d.video_00 ! matroskamux ! filesink location=sintel_video.mkv
|
gst-launch-1.0 souphttpsrc location=https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm ! matroskademux name=d d.video_00 ! matroskamux ! filesink location=sintel_video.mkv
|
||||||
```
|
```
|
||||||
|
|
||||||
This fetches a media file from the internet using `souphttpsrc`, which
|
This fetches a media file from the internet using `souphttpsrc`, which
|
||||||
|
@ -165,7 +165,7 @@ new matroska file with the video. If we wanted to keep only the
|
||||||
audio:
|
audio:
|
||||||
|
|
||||||
```
|
```
|
||||||
gst-launch-1.0 souphttpsrc location=http://docs.gstreamer.com/media/sintel_trailer-480p.webm ! matroskademux name=d d.audio_00 ! vorbisparse ! matroskamux ! filesink location=sintel_audio.mka
|
gst-launch-1.0 souphttpsrc location=https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm ! matroskademux name=d d.audio_00 ! vorbisparse ! matroskamux ! filesink location=sintel_audio.mka
|
||||||
```
|
```
|
||||||
|
|
||||||
The `vorbisparse` element is required to extract some information from
|
The `vorbisparse` element is required to extract some information from
|
||||||
|
@ -191,7 +191,7 @@ Consider the following
|
||||||
pipeline:
|
pipeline:
|
||||||
|
|
||||||
```
|
```
|
||||||
gst-launch-1.0 souphttpsrc location=http://docs.gstreamer.com/media/sintel_trailer-480p.webm ! matroskademux ! filesink location=test
|
gst-launch-1.0 souphttpsrc location=https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm ! matroskademux ! filesink location=test
|
||||||
```
|
```
|
||||||
|
|
||||||
This is the same media file and demuxer as in the previous example. The
|
This is the same media file and demuxer as in the previous example. The
|
||||||
|
@ -205,7 +205,7 @@ previous sub-section, or by using **Caps
|
||||||
Filters**:
|
Filters**:
|
||||||
|
|
||||||
```
|
```
|
||||||
gst-launch-1.0 souphttpsrc location=http://docs.gstreamer.com/media/sintel_trailer-480p.webm ! matroskademux ! video/x-vp8 ! matroskamux ! filesink location=sintel_video.mkv
|
gst-launch-1.0 souphttpsrc location=https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm ! matroskademux ! video/x-vp8 ! matroskamux ! filesink location=sintel_video.mkv
|
||||||
```
|
```
|
||||||
|
|
||||||
A Caps Filter behaves like a pass-through element which does nothing and
|
A Caps Filter behaves like a pass-through element which does nothing and
|
||||||
|
@ -225,7 +225,7 @@ producing for a particular pipeline, run `gst-launch-1.0` as usual, with the
|
||||||
Play a media file using `playbin` (as in [](sdk-basic-tutorial-hello-world.md)):
|
Play a media file using `playbin` (as in [](sdk-basic-tutorial-hello-world.md)):
|
||||||
|
|
||||||
```
|
```
|
||||||
gst-launch-1.0 playbin uri=http://docs.gstreamer.com/media/sintel_trailer-480p.webm
|
gst-launch-1.0 playbin uri=https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm
|
||||||
```
|
```
|
||||||
|
|
||||||
A fully operation playback pipeline, with audio and video (more or less
|
A fully operation playback pipeline, with audio and video (more or less
|
||||||
|
@ -233,7 +233,7 @@ the same pipeline that `playbin` will create
|
||||||
internally):
|
internally):
|
||||||
|
|
||||||
```
|
```
|
||||||
gst-launch-1.0 souphttpsrc location=http://docs.gstreamer.com/media/sintel_trailer-480p.webm ! matroskademux name=d ! queue ! vp8dec ! videoconvert ! autovideosink d. ! queue ! vorbisdec ! audioconvert ! audioresample ! autoaudiosink
|
gst-launch-1.0 souphttpsrc location=https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm ! matroskademux name=d ! queue ! vp8dec ! videoconvert ! autovideosink d. ! queue ! vorbisdec ! audioconvert ! audioresample ! autoaudiosink
|
||||||
```
|
```
|
||||||
|
|
||||||
A transcoding pipeline, which opens the webm container and decodes both
|
A transcoding pipeline, which opens the webm container and decodes both
|
||||||
|
@ -243,7 +243,7 @@ with a different codec, and puts them back together in an Ogg container
|
||||||
it).
|
it).
|
||||||
|
|
||||||
```
|
```
|
||||||
gst-launch-1.0 uridecodebin uri=http://docs.gstreamer.com/media/sintel_trailer-480p.webm name=d ! queue ! theoraenc ! oggmux name=m ! filesink location=sintel.ogg d. ! queue ! audioconvert ! audioresample ! flacenc ! m.
|
gst-launch-1.0 uridecodebin uri=https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm name=d ! queue ! theoraenc ! oggmux name=m ! filesink location=sintel.ogg d. ! queue ! audioconvert ! audioresample ! flacenc ! m.
|
||||||
```
|
```
|
||||||
|
|
||||||
A rescaling pipeline. The `videoscale` element performs a rescaling
|
A rescaling pipeline. The `videoscale` element performs a rescaling
|
||||||
|
@ -252,7 +252,7 @@ output caps. The output caps are set by the Caps Filter to
|
||||||
320x200.
|
320x200.
|
||||||
|
|
||||||
```
|
```
|
||||||
gst-launch-1.0 uridecodebin uri=http://docs.gstreamer.com/media/sintel_trailer-480p.webm ! queue ! videoscale ! video/x-raw-yuv,width=320,height=200 ! videoconvert ! autovideosink
|
gst-launch-1.0 uridecodebin uri=https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm ! queue ! videoscale ! video/x-raw-yuv,width=320,height=200 ! videoconvert ! autovideosink
|
||||||
```
|
```
|
||||||
|
|
||||||
This short description of `gst-launch-1.0` should be enough to get you
|
This short description of `gst-launch-1.0` should be enough to get you
|
||||||
|
@ -389,10 +389,10 @@ Let's see an
|
||||||
example:
|
example:
|
||||||
|
|
||||||
```
|
```
|
||||||
gst-discoverer-1.0 http://docs.gstreamer.com/media/sintel_trailer-480p.webm -v
|
gst-discoverer-1.0 https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm -v
|
||||||
|
|
||||||
Analyzing http://docs.gstreamer.com/media/sintel_trailer-480p.webm
|
Analyzing https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm
|
||||||
Done discovering http://docs.gstreamer.com/media/sintel_trailer-480p.webm
|
Done discovering https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm
|
||||||
Topology:
|
Topology:
|
||||||
container: video/webm
|
container: video/webm
|
||||||
audio: audio/x-vorbis, channels=(int)2, rate=(int)48000
|
audio: audio/x-vorbis, channels=(int)2, rate=(int)48000
|
||||||
|
|
|
@ -34,11 +34,11 @@ source pads as streams are found in the
|
||||||
media.
|
media.
|
||||||
|
|
||||||
``` bash
|
``` bash
|
||||||
gst-launch-1.0 uridecodebin uri=http://docs.gstreamer.com/media/sintel_trailer-480p.webm ! videoconvert ! autovideosink
|
gst-launch-1.0 uridecodebin uri=https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm ! videoconvert ! autovideosink
|
||||||
```
|
```
|
||||||
|
|
||||||
``` bash
|
``` bash
|
||||||
gst-launch-1.0 uridecodebin uri=http://docs.gstreamer.com/media/sintel_trailer-480p.webm ! audioconvert ! autoaudiosink
|
gst-launch-1.0 uridecodebin uri=https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm ! audioconvert ! autoaudiosink
|
||||||
```
|
```
|
||||||
|
|
||||||
### `decodebin`
|
### `decodebin`
|
||||||
|
@ -52,7 +52,7 @@ offers as many source pads as streams are found in the
|
||||||
media.
|
media.
|
||||||
|
|
||||||
``` bash
|
``` bash
|
||||||
gst-launch-1.0 souphttpsrc location=http://docs.gstreamer.com/media/sintel_trailer-480p.webm ! decodebin ! autovideosink
|
gst-launch-1.0 souphttpsrc location=https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm ! decodebin ! autovideosink
|
||||||
```
|
```
|
||||||
|
|
||||||
## File input/output
|
## File input/output
|
||||||
|
@ -88,7 +88,7 @@ the [libsoup](https://wiki.gnome.org/Projects/libsoup) library. Set the URL to r
|
||||||
property.
|
property.
|
||||||
|
|
||||||
``` bash
|
``` bash
|
||||||
gst-launch-1.0 souphttpsrc location=http://docs.gstreamer.com/media/sintel_trailer-480p.webm ! decodebin ! autovideosink
|
gst-launch-1.0 souphttpsrc location=https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm ! decodebin ! autovideosink
|
||||||
```
|
```
|
||||||
|
|
||||||
## Test media generation
|
## Test media generation
|
||||||
|
@ -175,7 +175,7 @@ video sinks are capable of performing scaling
|
||||||
operations.
|
operations.
|
||||||
|
|
||||||
``` bash
|
``` bash
|
||||||
gst-launch-1.0 uridecodebin uri=http://docs.gstreamer.com/media/sintel_trailer-480p.webm ! videoscale ! video/x-raw,width=178,height=100 ! videoconvert ! autovideosink
|
gst-launch-1.0 uridecodebin uri=https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm ! videoscale ! video/x-raw,width=178,height=100 ! videoconvert ! autovideosink
|
||||||
```
|
```
|
||||||
|
|
||||||
## Audio adapters
|
## Audio adapters
|
||||||
|
@ -205,7 +205,7 @@ do not fear to use it
|
||||||
generously.
|
generously.
|
||||||
|
|
||||||
``` bash
|
``` bash
|
||||||
gst-launch-1.0 uridecodebin uri=http://docs.gstreamer.com/media/sintel_trailer-480p.webm ! audioresample ! audio/x-raw-float,rate=4000 ! audioconvert ! autoaudiosink
|
gst-launch-1.0 uridecodebin uri=https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm ! audioresample ! audio/x-raw-float,rate=4000 ! audioconvert ! autoaudiosink
|
||||||
```
|
```
|
||||||
|
|
||||||
### `audiorate`
|
### `audiorate`
|
||||||
|
|
|
@ -81,7 +81,7 @@ in [Basic tutorial 10: GStreamer tools])
|
||||||
|
|
||||||
``` c
|
``` c
|
||||||
/* Build the pipeline */
|
/* Build the pipeline */
|
||||||
pipeline = gst_parse_launch ("playbin uri=http://docs.gstreamer.com/media/sintel_trailer-480p.webm", NULL);
|
pipeline = gst_parse_launch ("playbin uri=https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm", NULL);
|
||||||
```
|
```
|
||||||
|
|
||||||
This line is the heart of this tutorial, and exemplifies **two** key
|
This line is the heart of this tutorial, and exemplifies **two** key
|
||||||
|
|
|
@ -30,7 +30,7 @@ The recovered information includes codec descriptions, stream topology
|
||||||
audio language).
|
audio language).
|
||||||
|
|
||||||
As an example, this is the result
|
As an example, this is the result
|
||||||
of discovering http://docs.gstreamer.com/media/sintel\_trailer-480p.webm
|
of discovering https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel\_trailer-480p.webm
|
||||||
|
|
||||||
Duration: 0:00:52.250000000
|
Duration: 0:00:52.250000000
|
||||||
Tags:
|
Tags:
|
||||||
|
@ -244,7 +244,7 @@ static void on_finished_cb (GstDiscoverer *discoverer, CustomData *data) {
|
||||||
int main (int argc, char **argv) {
|
int main (int argc, char **argv) {
|
||||||
CustomData data;
|
CustomData data;
|
||||||
GError *err = NULL;
|
GError *err = NULL;
|
||||||
gchar *uri = "http://docs.gstreamer.com/media/sintel_trailer-480p.webm";
|
gchar *uri = "https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm";
|
||||||
|
|
||||||
/* if a URI was provided, use it instead of the default one */
|
/* if a URI was provided, use it instead of the default one */
|
||||||
if (argc > 1) {
|
if (argc > 1) {
|
||||||
|
|
|
@ -173,7 +173,7 @@ int main(int argc, char *argv[]) {
|
||||||
" 'Q' to quit\n");
|
" 'Q' to quit\n");
|
||||||
|
|
||||||
/* Build the pipeline */
|
/* Build the pipeline */
|
||||||
data.pipeline = gst_parse_launch ("playbin uri=http://docs.gstreamer.com/media/sintel_trailer-480p.webm", NULL);
|
data.pipeline = gst_parse_launch ("playbin uri=https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm", NULL);
|
||||||
|
|
||||||
/* Add a keyboard watch so we get notified of keystrokes */
|
/* Add a keyboard watch so we get notified of keystrokes */
|
||||||
#ifdef G_OS_WIN32
|
#ifdef G_OS_WIN32
|
||||||
|
|
|
@ -122,7 +122,7 @@ int main(int argc, char *argv[]) {
|
||||||
memset (&data, 0, sizeof (data));
|
memset (&data, 0, sizeof (data));
|
||||||
|
|
||||||
/* Build the pipeline */
|
/* Build the pipeline */
|
||||||
pipeline = gst_parse_launch ("playbin uri=http://docs.gstreamer.com/media/sintel_trailer-480p.webm", NULL);
|
pipeline = gst_parse_launch ("playbin uri=https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm", NULL);
|
||||||
bus = gst_element_get_bus (pipeline);
|
bus = gst_element_get_bus (pipeline);
|
||||||
|
|
||||||
/* Start playing */
|
/* Start playing */
|
||||||
|
|
|
@ -75,7 +75,7 @@ int main(int argc, char *argv[]) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Set the URI to play */
|
/* Set the URI to play */
|
||||||
g_object_set (data.playbin, "uri", "http://docs.gstreamer.com/media/sintel_trailer-480p.webm", NULL);
|
g_object_set (data.playbin, "uri", "https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm", NULL);
|
||||||
|
|
||||||
/* Start playing */
|
/* Start playing */
|
||||||
ret = gst_element_set_state (data.playbin, GST_STATE_PLAYING);
|
ret = gst_element_set_state (data.playbin, GST_STATE_PLAYING);
|
||||||
|
|
|
@ -413,7 +413,7 @@ int main(int argc, char *argv[]) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Set the URI to play */
|
/* Set the URI to play */
|
||||||
g_object_set (data.playbin, "uri", "http://docs.gstreamer.com/media/sintel_trailer-480p.webm", NULL);
|
g_object_set (data.playbin, "uri", "https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm", NULL);
|
||||||
|
|
||||||
/* Connect to interesting signals in playbin */
|
/* Connect to interesting signals in playbin */
|
||||||
g_signal_connect (G_OBJECT (data.playbin), "video-tags-changed", (GCallback) tags_cb, &data);
|
g_signal_connect (G_OBJECT (data.playbin), "video-tags-changed", (GCallback) tags_cb, &data);
|
||||||
|
@ -523,7 +523,7 @@ int main(int argc, char *argv[]) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Set the URI to play */
|
/* Set the URI to play */
|
||||||
g_object_set (data.playbin, "uri", "http://docs.gstreamer.com/media/sintel_trailer-480p.webm", NULL);
|
g_object_set (data.playbin, "uri", "https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm", NULL);
|
||||||
```
|
```
|
||||||
|
|
||||||
Standard GStreamer initialization and playbin pipeline creation, along
|
Standard GStreamer initialization and playbin pipeline creation, along
|
||||||
|
|
|
@ -169,7 +169,7 @@ this view is collapsed by default. Click here to expand…
|
||||||
media_width = 320;
|
media_width = 320;
|
||||||
media_height = 240;
|
media_height = 240;
|
||||||
|
|
||||||
uri = @"http://docs.gstreamer.com/media/sintel_trailer-368p.ogv";
|
uri = @"https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-368p.ogv";
|
||||||
|
|
||||||
gst_backend = [[GStreamerBackend alloc] init:self videoView:video_view];
|
gst_backend = [[GStreamerBackend alloc] init:self videoView:video_view];
|
||||||
}
|
}
|
||||||
|
|
|
@ -148,7 +148,7 @@ int main(int argc, char *argv[]) {
|
||||||
" 'Q' to quit\n");
|
" 'Q' to quit\n");
|
||||||
|
|
||||||
/* Build the pipeline */
|
/* Build the pipeline */
|
||||||
data.pipeline = gst_parse_launch ("playbin uri=http://docs.gstreamer.com/media/sintel_trailer-480p.webm", NULL);
|
data.pipeline = gst_parse_launch ("playbin uri=https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm", NULL);
|
||||||
|
|
||||||
/* Add a keyboard watch so we get notified of keystrokes */
|
/* Add a keyboard watch so we get notified of keystrokes */
|
||||||
#ifdef G_OS_WIN32
|
#ifdef G_OS_WIN32
|
||||||
|
|
|
@ -57,7 +57,7 @@ int main(int argc, char *argv[]) {
|
||||||
gst_init (&argc, &argv);
|
gst_init (&argc, &argv);
|
||||||
|
|
||||||
/* Build the pipeline */
|
/* Build the pipeline */
|
||||||
pipeline = gst_parse_launch ("playbin uri=http://docs.gstreamer.com/media/sintel_trailer-480p.webm", NULL);
|
pipeline = gst_parse_launch ("playbin uri=https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm", NULL);
|
||||||
|
|
||||||
/* Create the elements inside the sink bin */
|
/* Create the elements inside the sink bin */
|
||||||
equalizer = gst_element_factory_make ("equalizer-3bands", "equalizer");
|
equalizer = gst_element_factory_make ("equalizer-3bands", "equalizer");
|
||||||
|
|
|
@ -107,7 +107,7 @@ int main(int argc, char *argv[]) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Set the URI to play */
|
/* Set the URI to play */
|
||||||
g_object_set (data.playbin, "uri", "http://docs.gstreamer.com/media/sintel_cropped_multilingual.webm", NULL);
|
g_object_set (data.playbin, "uri", "https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_cropped_multilingual.webm", NULL);
|
||||||
|
|
||||||
/* Set flags to show Audio and Video but ignore Subtitles */
|
/* Set flags to show Audio and Video but ignore Subtitles */
|
||||||
g_object_get (data.playbin, "flags", &flags, NULL);
|
g_object_get (data.playbin, "flags", &flags, NULL);
|
||||||
|
@ -408,7 +408,7 @@ We have set all these properties one by one, but we could have all of
|
||||||
them with a single call to `g_object_set()`:
|
them with a single call to `g_object_set()`:
|
||||||
|
|
||||||
``` c
|
``` c
|
||||||
g_object_set (data.playbin, "uri", "http://docs.gstreamer.com/media/sintel_cropped_multilingual.webm", "flags", flags, "connection-speed", 56, NULL);
|
g_object_set (data.playbin, "uri", "https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_cropped_multilingual.webm", "flags", flags, "connection-speed", 56, NULL);
|
||||||
```
|
```
|
||||||
|
|
||||||
This is why `g_object_set()` requires a NULL as the last parameter.
|
This is why `g_object_set()` requires a NULL as the last parameter.
|
||||||
|
|
|
@ -172,7 +172,7 @@ int main(int argc, char *argv[]) {
|
||||||
data.buffering_level = 100;
|
data.buffering_level = 100;
|
||||||
|
|
||||||
/* Build the pipeline */
|
/* Build the pipeline */
|
||||||
pipeline = gst_parse_launch ("playbin uri=http://docs.gstreamer.com/media/sintel_trailer-480p.webm", NULL);
|
pipeline = gst_parse_launch ("playbin uri=https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm", NULL);
|
||||||
bus = gst_element_get_bus (pipeline);
|
bus = gst_element_get_bus (pipeline);
|
||||||
|
|
||||||
/* Set the download flag */
|
/* Set the download flag */
|
||||||
|
|
|
@ -88,10 +88,10 @@ int main(int argc, char *argv[]) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Set the URI to play */
|
/* Set the URI to play */
|
||||||
g_object_set (data.playbin, "uri", "http://docs.gstreamer.com/media/sintel_trailer-480p.ogv", NULL);
|
g_object_set (data.playbin, "uri", "https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.ogv", NULL);
|
||||||
|
|
||||||
/* Set the subtitle URI to play and some font description */
|
/* Set the subtitle URI to play and some font description */
|
||||||
g_object_set (data.playbin, "suburi", "http://docs.gstreamer.com/media/sintel_trailer_gr.srt", NULL);
|
g_object_set (data.playbin, "suburi", "https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer_gr.srt", NULL);
|
||||||
g_object_set (data.playbin, "subtitle-font-desc", "Sans, 18", NULL);
|
g_object_set (data.playbin, "subtitle-font-desc", "Sans, 18", NULL);
|
||||||
|
|
||||||
/* Set flags to show Audio, Video and Subtitles */
|
/* Set flags to show Audio, Video and Subtitles */
|
||||||
|
@ -298,7 +298,7 @@ review only the changes.
|
||||||
|
|
||||||
``` c
|
``` c
|
||||||
/* Set the subtitle URI to play and some font description */
|
/* Set the subtitle URI to play and some font description */
|
||||||
g_object_set (data.playbin, "suburi", "http://docs.gstreamer.com/media/sintel_trailer_gr.srt", NULL);
|
g_object_set (data.playbin, "suburi", "https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer_gr.srt", NULL);
|
||||||
g_object_set (data.playbin, "subtitle-font-desc", "Sans, 18", NULL);
|
g_object_set (data.playbin, "subtitle-font-desc", "Sans, 18", NULL);
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue