mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-03 14:08:56 +00:00
docs: update old gstreamer-sdk media urls
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4406>
This commit is contained in:
parent
ac83e121a7
commit
bbb0a30f32
32 changed files with 54 additions and 54 deletions
|
@ -38,7 +38,7 @@ public class Tutorial4 extends Activity implements SurfaceHolder.Callback, OnSee
|
|||
private int desired_position; // Position where the users wants to seek to
|
||||
private String mediaUri; // URI of the clip being played
|
||||
|
||||
private final String defaultMediaUri = "https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.ogv";
|
||||
private final String defaultMediaUri = "https://gstreamer.freedesktop.org/data/media/sintel_trailer-480p.ogv";
|
||||
|
||||
// Called when the activity is first created.
|
||||
@Override
|
||||
|
|
|
@ -44,7 +44,7 @@ public class Tutorial5 extends Activity implements SurfaceHolder.Callback, OnSee
|
|||
private int desired_position; // Position where the users wants to seek to
|
||||
private String mediaUri; // URI of the clip being played
|
||||
|
||||
private final String defaultMediaUri = "https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.ogv";
|
||||
private final String defaultMediaUri = "https://gstreamer.freedesktop.org/data/media/sintel_trailer-480p.ogv";
|
||||
|
||||
static private final int PICK_FILE_CODE = 1;
|
||||
private String last_folder;
|
||||
|
|
|
@ -17,7 +17,7 @@ tutorial_main (int argc, char *argv[])
|
|||
/* Build the pipeline */
|
||||
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",
|
||||
NULL);
|
||||
|
||||
/* Start playing */
|
||||
|
|
|
@ -80,7 +80,7 @@ tutorial_main (int argc, char *argv[])
|
|||
/* Build the pipeline */
|
||||
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",
|
||||
NULL);
|
||||
bus = gst_element_get_bus (pipeline);
|
||||
|
||||
|
|
|
@ -130,7 +130,7 @@ tutorial_main (int argc, char *argv[])
|
|||
/* Build the pipeline */
|
||||
data.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",
|
||||
NULL);
|
||||
|
||||
/* Add a keyboard watch so we get notified of keystrokes */
|
||||
|
|
|
@ -73,7 +73,7 @@ tutorial_main (int argc, char *argv[])
|
|||
/* Build the GStreamer pipeline */
|
||||
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",
|
||||
NULL);
|
||||
|
||||
/* Instantiate the Clutter sink */
|
||||
|
|
|
@ -57,7 +57,7 @@ tutorial_main (int argc, char *argv[])
|
|||
|
||||
/* Set the URI to play */
|
||||
g_object_set (data.source, "uri",
|
||||
"https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm",
|
||||
"https://gstreamer.freedesktop.org/data/media/sintel_trailer-480p.webm",
|
||||
NULL);
|
||||
|
||||
/* Connect to the pad-added signal */
|
||||
|
|
|
@ -45,7 +45,7 @@ tutorial_main (int argc, char *argv[])
|
|||
|
||||
/* Set the URI to play */
|
||||
g_object_set (data.playbin, "uri",
|
||||
"https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm",
|
||||
"https://gstreamer.freedesktop.org/data/media/sintel_trailer-480p.webm",
|
||||
NULL);
|
||||
|
||||
/* Start playing */
|
||||
|
|
|
@ -402,7 +402,7 @@ tutorial_main (int argc, char *argv[])
|
|||
|
||||
/* Set the URI to play */
|
||||
g_object_set (data.playbin, "uri",
|
||||
"https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm",
|
||||
"https://gstreamer.freedesktop.org/data/media/sintel_trailer-480p.webm",
|
||||
NULL);
|
||||
|
||||
/* Connect to interesting signals in playbin */
|
||||
|
|
|
@ -190,7 +190,7 @@ tutorial_main (int argc, char **argv)
|
|||
CustomData data;
|
||||
GError *err = NULL;
|
||||
gchar *uri =
|
||||
"https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm";
|
||||
"https://gstreamer.freedesktop.org/data/media/sintel_trailer-480p.webm";
|
||||
|
||||
/* if a URI was provided, use it instead of the default one */
|
||||
if (argc > 1) {
|
||||
|
|
|
@ -57,7 +57,7 @@ tutorial_main (int argc, char *argv[])
|
|||
|
||||
/* Set the URI to play */
|
||||
g_object_set (data.playbin, "uri",
|
||||
"https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_cropped_multilingual.webm",
|
||||
"https://gstreamer.freedesktop.org/data/media/sintel_cropped_multilingual.webm",
|
||||
NULL);
|
||||
|
||||
/* Set flags to show Audio and Video but ignore Subtitles */
|
||||
|
|
|
@ -57,12 +57,12 @@ tutorial_main (int argc, char *argv[])
|
|||
|
||||
/* Set the URI to play */
|
||||
g_object_set (data.playbin, "uri",
|
||||
"https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.ogv",
|
||||
"https://gstreamer.freedesktop.org/data/media/sintel_trailer-480p.ogv",
|
||||
NULL);
|
||||
|
||||
/* Set the subtitle URI to play and some font description */
|
||||
g_object_set (data.playbin, "suburi",
|
||||
"https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer_gr.srt",
|
||||
"https://gstreamer.freedesktop.org/data/media/sintel_trailer_gr.srt",
|
||||
NULL);
|
||||
g_object_set (data.playbin, "subtitle-font-desc", "Sans, 18", NULL);
|
||||
|
||||
|
|
|
@ -145,7 +145,7 @@ tutorial_main (int argc, char *argv[])
|
|||
/* Build the pipeline */
|
||||
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",
|
||||
NULL);
|
||||
bus = gst_element_get_bus (pipeline);
|
||||
|
||||
|
|
|
@ -136,7 +136,7 @@ tutorial_main (int argc, char *argv[])
|
|||
/* Build the pipeline */
|
||||
data.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",
|
||||
NULL);
|
||||
|
||||
/* Add a keyboard watch so we get notified of keystrokes */
|
||||
|
|
|
@ -18,7 +18,7 @@ tutorial_main (int argc, char *argv[])
|
|||
/* Build the pipeline */
|
||||
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",
|
||||
NULL);
|
||||
|
||||
/* Create the elements inside the sink bin */
|
||||
|
|
|
@ -18,7 +18,7 @@ Gst.init(sys.argv[1:])
|
|||
|
||||
# build the pipeline
|
||||
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"
|
||||
)
|
||||
|
||||
# start playing
|
||||
|
|
|
@ -66,7 +66,7 @@
|
|||
media_width = 320;
|
||||
media_height = 240;
|
||||
|
||||
uri = @"https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.ogv";
|
||||
uri = @"https://gstreamer.freedesktop.org//media/sintel_trailer-480p.ogv";
|
||||
|
||||
gst_backend = [[GStreamerBackend alloc] init:self videoView:video_view];
|
||||
|
||||
|
|
|
@ -164,7 +164,7 @@ static NSString *CellIdentifier = @"CellIdentifier";
|
|||
|
||||
// Non-existing entries (to debug error reporting facilities)
|
||||
[entries addObject:@"http://non-existing.org/Non_Existing_Server"];
|
||||
[entries addObject:@"https://www.freedesktop.org/software/gstreamer-sdk/data/media/Non_Existing_File"];
|
||||
[entries addObject:@"https://gstreamer.freedesktop.org//data/media/Non_Existing_File"];
|
||||
|
||||
self->onlineEntries = entries;
|
||||
}
|
||||
|
|
|
@ -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 String mediaUri; // URI of the clip being played
|
||||
|
||||
private final String defaultMediaUri = "https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-368p.ogv";
|
||||
private final String defaultMediaUri = "https://gstreamer.freedesktop.org/data/media/sintel_trailer-368p.ogv";
|
||||
|
||||
// Called when the activity is first created.
|
||||
@Override
|
||||
|
|
|
@ -139,7 +139,7 @@ int main(int argc, char *argv[]) {
|
|||
}
|
||||
|
||||
/* Set the URI to play */
|
||||
g_object_set (data.source, "uri", "https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm", NULL);
|
||||
g_object_set (data.source, "uri", "https://gstreamer.freedesktop.org/data/media/sintel_trailer-480p.webm", NULL);
|
||||
|
||||
/* Connect to the pad-added signal */
|
||||
g_signal_connect (data.source, "pad-added", G_CALLBACK (pad_added_handler), &data);
|
||||
|
@ -323,7 +323,7 @@ just leave this branch (converter + sink) unlinked, until later on.
|
|||
|
||||
``` c
|
||||
/* Set the URI to play */
|
||||
g_object_set (data.source, "uri", "https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm", NULL);
|
||||
g_object_set (data.source, "uri", "https://gstreamer.freedesktop.org/data/media/sintel_trailer-480p.webm", NULL);
|
||||
```
|
||||
|
||||
We set the URI of the file to play via a property, just like we did in
|
||||
|
|
|
@ -144,7 +144,7 @@ stream out of a
|
|||
demuxer:
|
||||
|
||||
```
|
||||
gst-launch-1.0 souphttpsrc location=https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm ! matroskademux name=d d.video_0 ! matroskamux ! filesink location=sintel_video.mkv
|
||||
gst-launch-1.0 souphttpsrc location=https://gstreamer.freedesktop.org/data/media/sintel_trailer-480p.webm ! matroskademux name=d d.video_0 ! matroskamux ! filesink location=sintel_video.mkv
|
||||
```
|
||||
|
||||
This fetches a media file from the internet using `souphttpsrc`, which
|
||||
|
@ -162,7 +162,7 @@ new matroska file with the video. If we wanted to keep only the
|
|||
audio:
|
||||
|
||||
```
|
||||
gst-launch-1.0 souphttpsrc location=https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm ! matroskademux name=d d.audio_0 ! vorbisparse ! matroskamux ! filesink location=sintel_audio.mka
|
||||
gst-launch-1.0 souphttpsrc location=https://gstreamer.freedesktop.org/data/media/sintel_trailer-480p.webm ! matroskademux name=d d.audio_0 ! vorbisparse ! matroskamux ! filesink location=sintel_audio.mka
|
||||
```
|
||||
|
||||
The `vorbisparse` element is required to extract some information from
|
||||
|
@ -188,7 +188,7 @@ Consider the following
|
|||
pipeline:
|
||||
|
||||
```
|
||||
gst-launch-1.0 souphttpsrc location=https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm ! matroskademux ! filesink location=test
|
||||
gst-launch-1.0 souphttpsrc location=https://gstreamer.freedesktop.org/data/media/sintel_trailer-480p.webm ! matroskademux ! filesink location=test
|
||||
```
|
||||
|
||||
This is the same media file and demuxer as in the previous example. The
|
||||
|
@ -202,7 +202,7 @@ previous sub-section, or by using **Caps
|
|||
Filters**:
|
||||
|
||||
```
|
||||
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
|
||||
gst-launch-1.0 souphttpsrc location=https://gstreamer.freedesktop.org/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
|
||||
|
@ -222,7 +222,7 @@ producing for a particular pipeline, run `gst-launch-1.0` as usual, with the
|
|||
Play a media file using `playbin` (as in [](tutorials/basic/hello-world.md)):
|
||||
|
||||
```
|
||||
gst-launch-1.0 playbin uri=https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm
|
||||
gst-launch-1.0 playbin uri=https://gstreamer.freedesktop.org/data/media/sintel_trailer-480p.webm
|
||||
```
|
||||
|
||||
A fully operation playback pipeline, with audio and video (more or less
|
||||
|
@ -230,7 +230,7 @@ the same pipeline that `playbin` will create
|
|||
internally):
|
||||
|
||||
```
|
||||
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
|
||||
gst-launch-1.0 souphttpsrc location=https://gstreamer.freedesktop.org/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
|
||||
|
@ -240,7 +240,7 @@ with a different codec, and puts them back together in an Ogg container
|
|||
it).
|
||||
|
||||
```
|
||||
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.
|
||||
gst-launch-1.0 uridecodebin uri=https://gstreamer.freedesktop.org/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
|
||||
|
@ -249,7 +249,7 @@ output caps. The output caps are set by the Caps Filter to
|
|||
320x200.
|
||||
|
||||
```
|
||||
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
|
||||
gst-launch-1.0 uridecodebin uri=https://gstreamer.freedesktop.org/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
|
||||
|
@ -386,10 +386,10 @@ Let's see an
|
|||
example:
|
||||
|
||||
```
|
||||
gst-discoverer-1.0 https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm -v
|
||||
gst-discoverer-1.0 https://gstreamer.freedesktop.org/data/media/sintel_trailer-480p.webm -v
|
||||
|
||||
Analyzing https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm
|
||||
Done discovering https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm
|
||||
Analyzing https://gstreamer.freedesktop.org/data/media/sintel_trailer-480p.webm
|
||||
Done discovering https://gstreamer.freedesktop.org/data/media/sintel_trailer-480p.webm
|
||||
Topology:
|
||||
container: video/webm
|
||||
audio: audio/x-vorbis, channels=(int)2, rate=(int)48000
|
||||
|
|
|
@ -34,11 +34,11 @@ source pads as streams are found in the
|
|||
media.
|
||||
|
||||
``` bash
|
||||
gst-launch-1.0 uridecodebin uri=https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm ! videoconvert ! autovideosink
|
||||
gst-launch-1.0 uridecodebin uri=https://gstreamer.freedesktop.org/data/media/sintel_trailer-480p.webm ! videoconvert ! autovideosink
|
||||
```
|
||||
|
||||
``` bash
|
||||
gst-launch-1.0 uridecodebin uri=https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm ! audioconvert ! autoaudiosink
|
||||
gst-launch-1.0 uridecodebin uri=https://gstreamer.freedesktop.org/data/media/sintel_trailer-480p.webm ! audioconvert ! autoaudiosink
|
||||
```
|
||||
|
||||
### `decodebin`
|
||||
|
@ -52,7 +52,7 @@ offers as many source pads as streams are found in the
|
|||
media.
|
||||
|
||||
``` bash
|
||||
gst-launch-1.0 souphttpsrc location=https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm ! decodebin ! autovideosink
|
||||
gst-launch-1.0 souphttpsrc location=https://gstreamer.freedesktop.org/data/media/sintel_trailer-480p.webm ! decodebin ! autovideosink
|
||||
```
|
||||
|
||||
## File input/output
|
||||
|
@ -88,7 +88,7 @@ the [libsoup](https://wiki.gnome.org/Projects/libsoup) library. Set the URL to r
|
|||
property.
|
||||
|
||||
``` bash
|
||||
gst-launch-1.0 souphttpsrc location=https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm ! decodebin ! autovideosink
|
||||
gst-launch-1.0 souphttpsrc location=https://gstreamer.freedesktop.org/data/media/sintel_trailer-480p.webm ! decodebin ! autovideosink
|
||||
```
|
||||
|
||||
## Test media generation
|
||||
|
@ -175,7 +175,7 @@ video sinks are capable of performing scaling
|
|||
operations.
|
||||
|
||||
``` bash
|
||||
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
|
||||
gst-launch-1.0 uridecodebin uri=https://gstreamer.freedesktop.org/data/media/sintel_trailer-480p.webm ! videoscale ! video/x-raw,width=178,height=100 ! videoconvert ! autovideosink
|
||||
```
|
||||
|
||||
## Audio adapters
|
||||
|
@ -205,7 +205,7 @@ do not fear to use it
|
|||
generously.
|
||||
|
||||
``` bash
|
||||
gst-launch-1.0 uridecodebin uri=https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm ! audioresample ! audio/x-raw,rate=4000 ! audioconvert ! autoaudiosink
|
||||
gst-launch-1.0 uridecodebin uri=https://gstreamer.freedesktop.org/data/media/sintel_trailer-480p.webm ! audioresample ! audio/x-raw,rate=4000 ! audioconvert ! autoaudiosink
|
||||
```
|
||||
|
||||
### `audiorate`
|
||||
|
|
|
@ -35,7 +35,7 @@ The recovered information includes codec descriptions, stream topology
|
|||
audio language).
|
||||
|
||||
As an example, this is the result
|
||||
of discovering https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel\_trailer-480p.webm
|
||||
of discovering https://gstreamer.freedesktop.org/data/media/sintel\_trailer-480p.webm
|
||||
|
||||
Duration: 0:00:52.250000000
|
||||
Tags:
|
||||
|
@ -249,7 +249,7 @@ static void on_finished_cb (GstDiscoverer *discoverer, CustomData *data) {
|
|||
int main (int argc, char **argv) {
|
||||
CustomData data;
|
||||
GError *err = NULL;
|
||||
gchar *uri = "https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm";
|
||||
gchar *uri = "https://gstreamer.freedesktop.org/data/media/sintel_trailer-480p.webm";
|
||||
|
||||
/* if a URI was provided, use it instead of the default one */
|
||||
if (argc > 1) {
|
||||
|
|
|
@ -127,7 +127,7 @@ int main(int argc, char *argv[]) {
|
|||
memset (&data, 0, sizeof (data));
|
||||
|
||||
/* Build the pipeline */
|
||||
pipeline = gst_parse_launch ("playbin uri=https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm", NULL);
|
||||
pipeline = gst_parse_launch ("playbin uri=https://gstreamer.freedesktop.org/data/media/sintel_trailer-480p.webm", NULL);
|
||||
bus = gst_element_get_bus (pipeline);
|
||||
|
||||
/* Start playing */
|
||||
|
|
|
@ -79,7 +79,7 @@ int main(int argc, char *argv[]) {
|
|||
}
|
||||
|
||||
/* Set the URI to play */
|
||||
g_object_set (data.playbin, "uri", "https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm", NULL);
|
||||
g_object_set (data.playbin, "uri", "https://gstreamer.freedesktop.org/data/media/sintel_trailer-480p.webm", NULL);
|
||||
|
||||
/* Start playing */
|
||||
ret = gst_element_set_state (data.playbin, GST_STATE_PLAYING);
|
||||
|
|
|
@ -417,7 +417,7 @@ int main(int argc, char *argv[]) {
|
|||
}
|
||||
|
||||
/* Set the URI to play */
|
||||
g_object_set (data.playbin, "uri", "https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm", NULL);
|
||||
g_object_set (data.playbin, "uri", "https://gstreamer.freedesktop.org/data/media/sintel_trailer-480p.webm", NULL);
|
||||
|
||||
/* Connect to interesting signals in playbin */
|
||||
g_signal_connect (G_OBJECT (data.playbin), "video-tags-changed", (GCallback) tags_cb, &data);
|
||||
|
@ -527,7 +527,7 @@ int main(int argc, char *argv[]) {
|
|||
}
|
||||
|
||||
/* Set the URI to play */
|
||||
g_object_set (data.playbin, "uri", "https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm", NULL);
|
||||
g_object_set (data.playbin, "uri", "https://gstreamer.freedesktop.org/data/media/sintel_trailer-480p.webm", NULL);
|
||||
```
|
||||
|
||||
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_height = 240;
|
||||
|
||||
uri = @"https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-368p.ogv";
|
||||
uri = @"https://gstreamer.freedesktop.org/data/media/sintel_trailer-368p.ogv";
|
||||
|
||||
gst_backend = [[GStreamerBackend alloc] init:self videoView:video_view];
|
||||
}
|
||||
|
|
|
@ -153,7 +153,7 @@ int main(int argc, char *argv[]) {
|
|||
" 'Q' to quit\n");
|
||||
|
||||
/* Build the pipeline */
|
||||
data.pipeline = gst_parse_launch ("playbin uri=https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm", NULL);
|
||||
data.pipeline = gst_parse_launch ("playbin uri=https://gstreamer.freedesktop.org/data/media/sintel_trailer-480p.webm", NULL);
|
||||
|
||||
/* Add a keyboard watch so we get notified of keystrokes */
|
||||
#ifdef G_OS_WIN32
|
||||
|
|
|
@ -62,7 +62,7 @@ int main(int argc, char *argv[]) {
|
|||
gst_init (&argc, &argv);
|
||||
|
||||
/* Build the pipeline */
|
||||
pipeline = gst_parse_launch ("playbin uri=https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm", NULL);
|
||||
pipeline = gst_parse_launch ("playbin uri=https://gstreamer.freedesktop.org/data/media/sintel_trailer-480p.webm", NULL);
|
||||
|
||||
/* Create the elements inside the sink bin */
|
||||
equalizer = gst_element_factory_make ("equalizer-3bands", "equalizer");
|
||||
|
|
|
@ -108,7 +108,7 @@ int main(int argc, char *argv[]) {
|
|||
}
|
||||
|
||||
/* Set the URI to play */
|
||||
g_object_set (data.playbin, "uri", "https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_cropped_multilingual.webm", NULL);
|
||||
g_object_set (data.playbin, "uri", "https://gstreamer.freedesktop.org/data/media/sintel_cropped_multilingual.webm", NULL);
|
||||
|
||||
/* Set flags to show Audio and Video but ignore Subtitles */
|
||||
g_object_get (data.playbin, "flags", &flags, NULL);
|
||||
|
@ -409,7 +409,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()`:
|
||||
|
||||
``` c
|
||||
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);
|
||||
g_object_set (data.playbin, "uri", "https://gstreamer.freedesktop.org/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.
|
||||
|
|
|
@ -177,7 +177,7 @@ int main(int argc, char *argv[]) {
|
|||
data.buffering_level = 100;
|
||||
|
||||
/* Build the pipeline */
|
||||
pipeline = gst_parse_launch ("playbin uri=https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm", NULL);
|
||||
pipeline = gst_parse_launch ("playbin uri=https://gstreamer.freedesktop.org/data/media/sintel_trailer-480p.webm", NULL);
|
||||
bus = gst_element_get_bus (pipeline);
|
||||
|
||||
/* Set the download flag */
|
||||
|
|
|
@ -93,10 +93,10 @@ int main(int argc, char *argv[]) {
|
|||
}
|
||||
|
||||
/* Set the URI to play */
|
||||
g_object_set (data.playbin, "uri", "https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.ogv", NULL);
|
||||
g_object_set (data.playbin, "uri", "https://gstreamer.freedesktop.org/data/media/sintel_trailer-480p.ogv", NULL);
|
||||
|
||||
/* Set the subtitle URI to play and some font description */
|
||||
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, "suburi", "https://gstreamer.freedesktop.org/data/media/sintel_trailer_gr.srt", NULL);
|
||||
g_object_set (data.playbin, "subtitle-font-desc", "Sans, 18", NULL);
|
||||
|
||||
/* Set flags to show Audio, Video and Subtitles */
|
||||
|
@ -303,7 +303,7 @@ review only the changes.
|
|||
|
||||
``` c
|
||||
/* Set the subtitle URI to play and some font description */
|
||||
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, "suburi", "https://gstreamer.freedesktop.org/data/media/sintel_trailer_gr.srt", NULL);
|
||||
g_object_set (data.playbin, "subtitle-font-desc", "Sans, 18", NULL);
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue