video streaming - RTSP gstreamer pipepline to Android VideoView -


i'm trying construct gstreamer pipeline on panda rtsp video+audio android 4.1.2 app. android app uses:

videoview.setvideourl(uri.parse(":rtsp://...")) 

to view video. on panda i've built gstreamer-0.10 (to working uvch264_src element take h.264 video logitech c920 camera) , using gst-rtsp-server/exmaples/test-launch serve video+audio via:

./test-launch 'uvch264_src do-timestamp=true mode=2 post-previews=false usage-type=1 iframe-period=2000 peak-bitrate=400000 rate-control=qp auto-start=true name=src ! queue ! video/x-h264,width=640,height=480,framerate=30/1,profile=constrained-baseline ! h264parse ! rtph264pay name=pay0 pt=96 \ alsasrc do-timestamp=true device=plughw:2,0 ! audio/x-raw-int,rate=44100 ! queue ! audioconvert ! ffenc_ac3 ! rtpac3pay name=pay1 pt=97' 

i can view stream on vlc (audio isn't in sync), android tablet fails play stream. if remove audio portion of pipeline:

./test-launch 'uvch264_src do-timestamp=true mode=2 post-previews=false usage-type=1 iframe-period=2000 peak-bitrate=400000 rate-control=qp auto-start=true name=src ! queue ! video/x-h264,width=640,height=480,framerate=30/1,profile=constrained-baseline ! h264parse ! rtph264pay name=pay0 pt=96' 

then android app has no problem playing it.

how can encode audio+video pipeline such videoview can play it? need mux audio , video mpeg-ts stream first?


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -