@@ -75,7 +75,7 @@ GstFlowReturn on_new_sample(GstElement* sink, gpointer data, UINT64 trackid)
75
75
pRtcRtpTransceiver = pSampleStreamingSession -> pVideoRtcRtpTransceiver ;
76
76
frame .presentationTs = pSampleStreamingSession -> videoTimestamp ;
77
77
frame .decodingTs = frame .presentationTs ;
78
- pSampleStreamingSession -> videoTimestamp += SAMPLE_VIDEO_FRAME_DURATION ; // assume video fps is 30
78
+ pSampleStreamingSession -> videoTimestamp += SAMPLE_VIDEO_FRAME_DURATION ; // assume video fps is 25
79
79
}
80
80
status = writeFrame (pRtcRtpTransceiver , & frame );
81
81
if (status != STATUS_SRTP_NOT_READY_YET && status != STATUS_SUCCESS ) {
@@ -146,13 +146,13 @@ PVOID sendGstreamerAudioVideo(PVOID args)
146
146
case SAMPLE_STREAMING_VIDEO_ONLY :
147
147
if (pSampleConfiguration -> useTestSrc ) {
148
148
pipeline = gst_parse_launch (
149
- "videotestsrc is-live=TRUE ! queue ! videoconvert ! video/x-raw,width=1280,height=720,framerate=30 /1 ! "
149
+ "videotestsrc is-live=TRUE ! queue ! videoconvert ! video/x-raw,width=1280,height=720,framerate=25 /1 ! "
150
150
"x264enc bframes=0 speed-preset=veryfast bitrate=512 byte-stream=TRUE tune=zerolatency ! "
151
151
"video/x-h264,stream-format=byte-stream,alignment=au,profile=baseline ! appsink sync=TRUE emit-signals=TRUE name=appsink-video" ,
152
152
& error );
153
153
} else {
154
154
pipeline = gst_parse_launch (
155
- "autovideosrc ! queue ! videoconvert ! video/x-raw,width=1280,height=720,framerate=[30/1,10000000/333333] ! "
155
+ "autovideosrc ! queue ! videoconvert ! video/x-raw,width=1280,height=720,framerate=25/1 ! "
156
156
"x264enc bframes=0 speed-preset=veryfast bitrate=512 byte-stream=TRUE tune=zerolatency ! "
157
157
"video/x-h264,stream-format=byte-stream,alignment=au,profile=baseline ! appsink sync=TRUE emit-signals=TRUE name=appsink-video" ,
158
158
& error );
@@ -161,7 +161,7 @@ PVOID sendGstreamerAudioVideo(PVOID args)
161
161
162
162
case SAMPLE_STREAMING_AUDIO_VIDEO :
163
163
if (pSampleConfiguration -> useTestSrc ) {
164
- pipeline = gst_parse_launch ("videotestsrc is-live=TRUE ! queue ! videoconvert ! video/x-raw,width=1280,height=720,framerate=30 /1 ! "
164
+ pipeline = gst_parse_launch ("videotestsrc is-live=TRUE ! queue ! videoconvert ! video/x-raw,width=1280,height=720,framerate=25 /1 ! "
165
165
"x264enc bframes=0 speed-preset=veryfast bitrate=512 byte-stream=TRUE tune=zerolatency ! "
166
166
"video/x-h264,stream-format=byte-stream,alignment=au,profile=baseline ! appsink sync=TRUE "
167
167
"emit-signals=TRUE name=appsink-video audiotestsrc is-live=TRUE ! "
@@ -170,7 +170,7 @@ PVOID sendGstreamerAudioVideo(PVOID args)
170
170
& error );
171
171
} else {
172
172
pipeline =
173
- gst_parse_launch ("autovideosrc ! queue ! videoconvert ! video/x-raw,width=1280,height=720,framerate=[30/1,10000000/333333] ! "
173
+ gst_parse_launch ("autovideosrc ! queue ! videoconvert ! video/x-raw,width=1280,height=720,framerate=25/1 ! "
174
174
"x264enc bframes=0 speed-preset=veryfast bitrate=512 byte-stream=TRUE tune=zerolatency ! "
175
175
"video/x-h264,stream-format=byte-stream,alignment=au,profile=baseline ! appsink sync=TRUE emit-signals=TRUE "
176
176
"name=appsink-video autoaudiosrc ! "
0 commit comments