mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 00:31:13 +00:00
Set the payload types for the different payloaders. Maybe this shoulde be
done automatically instead.
This commit is contained in:
parent
1f35c93f0a
commit
f205f8a9d1
1 changed files with 4 additions and 4 deletions
|
@ -145,9 +145,9 @@ gst_rtsp_media_prepare (GstRTSPMedia *media, GstBin *bin)
|
||||||
element = gst_parse_launch ("( "
|
element = gst_parse_launch ("( "
|
||||||
"v4l2src ! video/x-raw-yuv,width=352,height=288,framerate=15/1 ! "
|
"v4l2src ! video/x-raw-yuv,width=352,height=288,framerate=15/1 ! "
|
||||||
"queue ! videorate ! ffmpegcolorspace ! "
|
"queue ! videorate ! ffmpegcolorspace ! "
|
||||||
"x264enc bitrate=300 ! rtph264pay name=pay0 "
|
"x264enc bitrate=300 ! rtph264pay name=pay0 pt=96 "
|
||||||
"alsasrc ! audio/x-raw-int,rate=8000 ! queue ! "
|
"alsasrc ! audio/x-raw-int,rate=8000 ! queue ! "
|
||||||
"amrnbenc ! rtpamrpay name=pay1 "
|
"amrnbenc ! rtpamrpay name=pay1 pt=97 "
|
||||||
")", NULL);
|
")", NULL);
|
||||||
}
|
}
|
||||||
else if (g_str_has_prefix (media->url->abspath, "/h264")) {
|
else if (g_str_has_prefix (media->url->abspath, "/h264")) {
|
||||||
|
@ -179,8 +179,8 @@ gst_rtsp_media_prepare (GstRTSPMedia *media, GstBin *bin)
|
||||||
/* proxy HTTP transcode */
|
/* proxy HTTP transcode */
|
||||||
element = gst_parse_launch ("( uridecodebin "
|
element = gst_parse_launch ("( uridecodebin "
|
||||||
"uri=http://movies.apple.com/movies/fox/maxpayne/maxpayne-tlre_h480.mov name=d "
|
"uri=http://movies.apple.com/movies/fox/maxpayne/maxpayne-tlre_h480.mov name=d "
|
||||||
"d. ! queue ! x264enc bitrate=1800 ! rtph264pay name=pay0 "
|
"d. ! queue ! x264enc bitrate=1800 ! rtph264pay name=pay0 pt=96 "
|
||||||
"d. ! queue ! faac ! rtpmp4gpay name=pay1 )", NULL);
|
"d. ! queue ! faac ! rtpmp4gpay name=pay1 pt=97 )", NULL);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
Loading…
Reference in a new issue