Skip to content

Commit

Permalink
alaw and audio
Browse files Browse the repository at this point in the history
  • Loading branch information
Consti10 committed Feb 28, 2024
1 parent 8caedd2 commit 1772fa4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion app/videostreaming/gstreamer/gst_video.pri
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ android{
-lgstopengl \
-lgsttcp \
-lgstapp \
#-lgstalaw
-lgstalaw \
-lgstautodetect


# Rest of GStreamer dependencies
Expand Down
6 changes: 3 additions & 3 deletions app/videostreaming/gstreamer/gstrtpaudioplayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ GstRtpAudioPlayer &GstRtpAudioPlayer::instance()

static std::string construct_gstreamer_pipeline(){
std::stringstream ss;
ss<<"audiotestsrc ! autoaudiosink";
//ss<<"audiotestsrc ! autoaudiosink";
//ss<<"udpsrc port=5610 caps=\"application/x-rtp, media=(string)audio, clock-rate=(int)8000, encoding-name=(string)L16, encoding-params=(string)1, channels=(int)1, payload=(int)96\" ! rtpL16depay ! queue ! autoaudiosink sync=false";
//ss<<"udpsrc port=5610 caps=\"application/x-rtp, media=(string)audio, clock-rate=(int)8000, encoding-name=(string)PCMA\"";
//ss<<" ! rtppcmadepay ! audio/x-alaw, rate=8000, channels=1 ! alawdec ! autoaudiosink sync=false";
ss<<"udpsrc port=5610 caps=\"application/x-rtp, media=(string)audio, clock-rate=(int)8000, encoding-name=(string)PCMA\"";
ss<<" ! rtppcmadepay ! audio/x-alaw, rate=8000, channels=1 ! alawdec ! autoaudiosink sync=false";
return ss.str();
}

Expand Down

0 comments on commit 1772fa4

Please sign in to comment.