android h264 hardware encoding

cee1 fykcee1 at gmail.com
Thu Oct 24 07:49:18 CEST 2013


2013/10/24 yoyosuper8 <yoyosuper8 at yahoo.com>:
> Seeing that udpsink does not work in MCPlayer, I decided to use my own
> version of rtsp-server which uses rtsp-server-1.0 library. When I launch the
> app and the rtsp server starts, it seems to open a port and waits for an
> incoming connection. I use vlc to try to connect to the rtsp server and it
> seems to connect, however, nothing comes up. I get no video, it just sits
> there.
Well, my experience of debugging gst is trying simple pipeline first,
and then try complex case :)

IMHO, try following steps:
1. On android, try a fakesink pipeline, see whether buffers are
regularly generated by the encoder.
2. On android, try a udpsink pipeline, which will send data to an IP
of another machine:
[*] On that machine, to observe whether has data received:
gst-launch-1.0 -v udpsrc uri=udp://0.0.0.0:3057
caps='application/x-rtp,media=(string)video,clock-rate=(int)90000,encoding-name=(string)H264,payload=(int)96,sprop-parameter-sets=(string)\"J0LgH41oBQBbpsgAAAMACAAAAwBAeKEVAA\\=\\=\\,KM4ESSA\\=\"'
! fakesink silent=false

It will print a log message on a received buffer. If no such log
messages, check your firewall settings first.

[*] On that machine, to playback encoded stream:
gst-launch-1.0 -v udpsrc uri=udp://0.0.0.0:3057
caps='application/x-rtp,media=(string)video,clock-rate=(int)90000,encoding-name=(string)H264,payload=(int)96,sprop-parameter-sets=(string)\"J0LgH41oBQBbpsgAAAMACAAAAwBAeKEVAA\\=\\=\\,KM4ESSA\\=\"'
! rtpjitterbuffer latency=10 ! rtph264depay ! avdec_h264 ! videoscale
! autovideosink



-- 
Regards,

- cee1


More information about the gstreamer-devel mailing list