AnsweredAssumed Answered

how to play rtsp on imx6 successfully?

Question asked by jake lin on Apr 19, 2015
Latest reply on Apr 23, 2015 by jake lin

when I start playing rtsp in 1 minute, the streaming will stop,

there are logs as following,

E/BufferQueue( 1157): [ScreenshotClient] dequeueBuffer: can't dequeue multiple buffers without setting the buffer count

D/dalvikvm( 1157): GC_FOR_ALLOC freed 852K, 24% free 4704K/6120K, paused 37ms, total 37ms

I/InputDispatcher( 1157): Dropping event because there is no touched window.

I/InputDispatcher( 1157): Dropping event because there is no touched window.

E/BufferQueue(  959): [com.android.launcher/com.android.launcher2.Launcher] dequeueBuffer: can't dequeue multiple buffers without setting the buffer count

W/InputMethodManagerService( 1157): Starting input on non-focused client com.android.internal.view.IInputMethodClient$Stub$Proxy@419fc158 (uid=10061 pid=2710)

W/audio_hw_primary(  963): [start_output_stream_primary] out->device[0x2] pcm_device[0x2]

W/audio_hw_primary(  963): [start_output_stream_primary] [ESAI]card 0, port 0 device 0x2

W/audio_hw_primary(  963): [start_output_stream_primary] [ESAI]rate 44100, channel 2 period_size 0xc0

I/ActivityManager( 1157): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.example.androidmediaplayer/.MainActivity} from pid 1488

E/BufferQueue( 1157): [ScreenshotClient] dequeueBuffer: can't dequeue multiple buffers without setting the buffer count

E/BufferQueue(  959): [com.example.androidmediaplayer/com.example.androidmediaplayer.MainActivity] dequeueBuffer: can't dequeue multiple buffers without setting the buffer count

I/OMXPlayer(  963): LEVEL: 1 FUNCTION: prepare LINE: 445

I/OMXPlayer(  963): failed to open file: /data/system/audio_pass_through_pref.

I/OMXPlayer(  963): Loading content: rtsp://10.14.1.89:8554/

I/OMXPlayer(  963): --

I/OMXPlayer(  963): Sending:

I/OMXPlayer(  963): OPTIONS rtsp://10.14.1.89:8554/ RTSP/1.0

I/OMXPlayer(  963): CSeq: 1

I/OMXPlayer(  963):

I/OMXPlayer(  963):

I/OMXPlayer(  963): line='RTSP/1.0 200 OK'

I/OMXPlayer(  963): line='Server: VLC/2.1.5'

I/OMXPlayer(  963): line='Content-Length: 0'

I/OMXPlayer(  963): line='Cseq: 1'

I/OMXPlayer(  963): line='Public: DESCRIBE,SETUP,TEARDOWN,PLAY,PAUSE,GET_PARAMETER'

I/OMXPlayer(  963): line=''

I/OMXPlayer(  963): --

I/OMXPlayer(  963): Sending:

I/OMXPlayer(  963): DESCRIBE rtsp://10.14.1.89:8554/ RTSP/1.0

I/OMXPlayer(  963): Accept: application/sdp

I/OMXPlayer(  963): CSeq: 2

I/OMXPlayer(  963):

I/OMXPlayer(  963):

I/OMXPlayer(  963): line='RTSP/1.0 200 OK'

I/OMXPlayer(  963): line='Server: VLC/2.1.5'

I/OMXPlayer(  963): line='Date: Mon, 20 Apr 2015 07:42:41 GMT'

I/OMXPlayer(  963): line='Content-Type: application/sdp'

I/OMXPlayer(  963): line='Content-Base: rtsp://10.14.1.89:8554/'

I/OMXPlayer(  963): line='Content-Length: 682'

I/OMXPlayer(  963): line='Cache-Control: no-cache'

I/OMXPlayer(  963): line='Cseq: 2'

I/OMXPlayer(  963): line=''

I/OMXPlayer(  963): DESCRIBE return: v=0

I/OMXPlayer(  963): o=- 15627258099156370692 15627258099156370692 IN IP4 MR12-JackLin

I/OMXPlayer(  963): s=Unnamed

I/OMXPlayer(  963): i=N/A

I/OMXPlayer(  963): c=IN IP4 0.0.0.0

I/OMXPlayer(  963): t=0 0

I/OMXPlayer(  963): a=tool:vlc 2.1.5

I/OMXPlayer(  963): a=recvonly

I/OMXPlayer(  963): a=type:broadcast

I/OMXPlayer(  963): a=charset:UTF-8

I/OMXPlayer(  963): a=control:rtsp://10.14.1.89:8554/

I/OMXPlayer(  963): m=audio 0 RTP/AVP 96

I/OMXPlayer(  963): b=RR:0

I/OMXPlayer(  963): a=rtpmap:96 mpeg4-generic/48000/2

I/OMXPlayer(  963): a=fmtp:96 streamtype=5; profile-level-id=15; mode=AAC-hbr; config=119056e500; SizeLength=13; IndexLength=3; IndexDeltaLength=3; Profile=1;

I/OMXPlayer(  963): a=control:rtsp://10.14.1.89:8554/trackID=8

I/OMXPlayer(  963): m=video 0 RTP/AVP 96

I/OMXPlayer(  963): b=RR:0

I/OMXPlayer(  963): a=rtpmap:96 H264/90000

I/OMXPlayer(  963): a=fmtp:96 packetization-mode=1;profile-level-id=640029;sprop-parameter-sets=Z2QAKazZgFAFuwEQAAA+kAALuAjxgxmg,aOl7LIs=;

I/OMXPlayer(  963): a=control:rtsp://10.14.1.89:8554/trackID=9

I/OMXPlayer(  963):

I/OMXPlayer(  963): --

I/OMXPlayer(  963): Sending:

I/OMXPlayer(  963): SETUP rtsp://10.14.1.89:8554/trackID=8 RTSP/1.0

I/OMXPlayer(  963): Transport: RTP/AVP/UDP;unicast;client_port=5012-5013

I/OMXPlayer(  963): CSeq: 3

I/OMXPlayer(  963):

I/OMXPlayer(  963):

I/OMXPlayer(  963): line='RTSP/1.0 200 OK'

I/OMXPlayer(  963): line='Server: VLC/2.1.5'

I/OMXPlayer(  963): line='Date: Mon, 20 Apr 2015 07:42:41 GMT'

I/OMXPlayer(  963): line='Transport: RTP/AVP/UDP;unicast;client_port=5012-5013;server_port=56042-56043;ssrc=31609A08;mode=play'

I/OMXPlayer(  963): line='Session: ac713ff296404154;timeout=60'

I/OMXPlayer(  963): line='Content-Length: 0'

I/OMXPlayer(  963): line='Cache-Control: no-cache'

I/OMXPlayer(  963): line='Cseq: 3'

I/OMXPlayer(  963): line=''

I/OMXPlayer(  963): --

I/OMXPlayer(  963): Sending:

I/OMXPlayer(  963): SETUP rtsp://10.14.1.89:8554/trackID=9 RTSP/1.0

I/OMXPlayer(  963): Transport: RTP/AVP/UDP;unicast;client_port=5014-5015

I/OMXPlayer(  963): CSeq: 4

I/OMXPlayer(  963): Session: ac713ff296404154

I/OMXPlayer(  963):

I/OMXPlayer(  963):

I/OMXPlayer(  963): line='RTSP/1.0 200 OK'

I/OMXPlayer(  963): line='Server: VLC/2.1.5'

I/OMXPlayer(  963): line='Date: Mon, 20 Apr 2015 07:42:41 GMT'

I/OMXPlayer(  963): line='Transport: RTP/AVP/UDP;unicast;client_port=5014-5015;server_port=56043-56044;ssrc=4BFBC99F;mode=play'

I/OMXPlayer(  963): line='Session: ac713ff296404154;timeout=60'

I/OMXPlayer(  963): line='Content-Length: 0'

I/OMXPlayer(  963): line='Cache-Control: no-cache'

I/OMXPlayer(  963): line='Cseq: 4'

I/OMXPlayer(  963): line=''

I/OMXPlayer(  963): --

I/OMXPlayer(  963): Sending:

I/OMXPlayer(  963): PLAY rtsp://10.14.1.89:8554/ RTSP/1.0

I/OMXPlayer(  963): Range: npt=0.000-

I/OMXPlayer(  963): CSeq: 5

I/OMXPlayer(  963): Session: ac713ff296404154

I/OMXPlayer(  963):

I/OMXPlayer(  963):

I/OMXPlayer(  963): line='RTSP/1.0 200 OK'

I/OMXPlayer(  963): line='Server: VLC/2.1.5'

I/OMXPlayer(  963): line='Date: Mon, 20 Apr 2015 07:42:41 GMT'

I/OMXPlayer(  963): line='RTP-Info: url=rtsp://10.14.1.89:8554/trackID=8;seq=42943;rtptime=3704817612, url=rtsp://10.14.1.89:8554/trackID=9;seq=14903;rtptime=1577823902'

I/OMXPlayer(  963): line='Range: npt=17774.009584-'

I/OMXPlayer(  963): line='Session: ac713ff296404154;timeout=60'

I/OMXPlayer(  963): line='Content-Length: 0'

I/OMXPlayer(  963): line='Cache-Control: no-cache'

I/OMXPlayer(  963): line='Cseq: 5'

I/OMXPlayer(  963): line=''

I/OMXPlayer(  963): VideoRender role: video_render.surface

I/OMXPlayer(  963): nPreCacheSize = 262144

I/OMXPlayer(  963): range_start_offset:853152460, pts:853153452

I/OMXPlayer(  963): range_start_offset:1599660863, pts:1599667070

I/vpu-lib (  963): <gpu> alloc handle: 0x439b2fe8, paddr: 0x73645000, vaddr: 0x44441000

I/vpu-lib (  963): <gpu> alloc handle: 0x40ecdfc0, paddr: 0x73663000, vaddr: 0x4445f000

I/vpu-lib (  963): <gpu> alloc handle: 0x4346c928, paddr: 0x7379d000, vaddr: 0x44599000

I/vpu-lib (  963): Product Info: i.MX6Q/D/S

I/vpu-lib (  963): <gpu> alloc handle: 0x4173f4b0, paddr: 0x1d800000, vaddr: 0x53bf2000

I/vpu-lib (  963): <gpu> alloc handle: 0x40020f08, paddr: 0x74c90000, vaddr: 0x45a8c000

I/vpu-lib (  963): bitstreamMode 1, chromaInterleave 1, mapType 0, tiled2LinearEnable 0

W/vpu-lib (  963): VPU iram is less than needed, some parts don't use iram

I/vpu-lib (  963): <gpu> free handle: 0x439b2fe8, paddr: 0x73645000, vaddr: 0x44441000

I/vpu-lib (  963): <gpu> free handle: 0x40ecdfc0, paddr: 0x73663000, vaddr: 0x4445f000

I/vpu-lib (  963): <gpu> free handle: 0x4346c928, paddr: 0x7379d000, vaddr: 0x44599000

I/Choreographer( 2710): Skipped 49 frames!  The application may be doing too much work on its main thread.

I/vpu-lib (  963): <gpu> alloc handle: 0x515d4d70, paddr: 0x1a800000, vaddr: 0x55354000

I/OMXPlayer(  963): start player.

I/ActivityManager( 1157): Displayed com.example.androidmediaplayer/.MainActivity: +1s18ms

I/AudioFlinger(  963): [frameworks/av/services/audioflinger/Threads.cpp]***JAKE 2801 BUFFER TIMEOUT: remove(4100) from active list on thread 0x40d01008

W/audio_hw_primary(  963): do_out_standby... 1074358112

I/OMXPlayer(  963): LEVEL: 1 FUNCTION: Start LINE: 804

I/OMXPlayer(  963): Start player timeout.

I/Choreographer( 2710): Skipped 315 frames!  The application may be doing too much work on its main thread.

W/AudioTrack(  963): [frameworks/av/media/libmedia/AudioTrack.cpp]releaseBuffer() track 0x41190c98 name=0x4 disabled, restarting

W/audio_hw_primary(  963): [start_output_stream_primary] out->device[0x2] pcm_device[0x2]

W/audio_hw_primary(  963): [start_output_stream_primary] [ESAI]card 0, port 0 device 0x2

W/audio_hw_primary(  963): [start_output_stream_primary] [ESAI]rate 44100, channel 2 period_size 0xc0

W/MediaPlayer( 2710): info/warning (3, 0)

I/MediaPlayer( 2710): Info (3,0)

I/OMXPlayer(  963): --

I/OMXPlayer(  963): Sending:

I/OMXPlayer(  963): OPTIONS * RTSP/1.0

I/OMXPlayer(  963): CSeq: 6

I/OMXPlayer(  963): Session: ac713ff296404154

I/OMXPlayer(  963):

I/OMXPlayer(  963):

I/OMXPlayer(  963): line='RTSP/1.0 200 OK'

I/OMXPlayer(  963): line='Server: VLC/2.1.5'

I/OMXPlayer(  963): line='Content-Length: 0'

I/OMXPlayer(  963): line='Cseq: 6'

I/OMXPlayer(  963): line='Public: DESCRIBE,SETUP,TEARDOWN,PLAY,PAUSE,GET_PARAMETER'

I/OMXPlayer(  963): line=''

I/OMXPlayer(  963): tsmGetFrmTs:[Tsm_wrapper.c] warning: can't get one valid ts

I/OMXPlayer(  963): [OMXPlayer.cpp]**********Jake OMXPlayer::pause()

I/OMXPlayer(  963): [GMPlayer.cpp]Pause player.

I/AudioFlinger(  963): [frameworks/av/services/audioflinger/Threads.cpp]***JAKE 2801 BUFFER TIMEOUT: remove(4100) from active list on thread 0x40d01008

W/audio_hw_primary(  963): do_out_standby... 1074358112

 

--

 

 

Android 4.3, imx6dl or imx6q

server is vlc 2.1.5

how to solve the problem? thanks.

Outcomes