[Live-devel] openRTSP h264 decoding

Ignacio Rodriguez Torres nacho at vartificial.com
Mon May 30 03:07:06 PDT 2011


Hello, first of all thank you all for maintaining this forum so active

I am using openRTSP to recieve a stream with a .sdp this stream contains
video and audio streams, but I´m only interested in the video, which is
encoded with h264, when i am trying to decode with ffmpeg I obtain NAL
errors.

I also tried to write the stream in a file with FileSink and open it with
vlc or ffmpeg but i obtained the same result,

ffmpeg -i "video-H264-1"
video-H264-1: Unknown format

I saw that H264VideoFileSink put the header 0x00000001 in each frame but
seems that don´t work properly.

I read the FAQ and some post in the mailing list and I saw similar problems
in other persons, Can someone help me?

Thank you very much.


Attached the trace of execution



Opening connection to 10.138.255.8, port 554...
...remote connection opened
Sending request: OPTIONS rtsp://
10.138.255.8/broadcast/mediapro/vivo/goltv/mediapro_vivo_goltv_h264_1.sdpRTSP/1.0
CSeq: 2
User-Agent: ./openRTSP (LIVE555 Streaming Media v2010.12.05)


Received 175 new bytes of response data.
Received a complete OPTIONS response:
RTSP/1.0 200 OK
CSeq: 2
Date: Mon, 30 May 2011 09:55:48 GMT
Public: OPTIONS, DESCRIBE, SETUP, PLAY, PAUSE, TEARDOWN
Server: ERICSSON EMTV 1.0
Via: RTSP/1.0 bgustrnin2


Sending request: DESCRIBE rtsp://
10.138.255.8/broadcast/mediapro/vivo/goltv/mediapro_vivo_goltv_h264_1.sdpRTSP/1.0
CSeq: 3
User-Agent: ./openRTSP (LIVE555 Streaming Media v2010.12.05)
Accept: application/sdp


Received 1024 new bytes of response data.
Received a complete DESCRIBE response:
RTSP/1.0 200 OK
Content-Base: rtsp://
10.138.255.8/broadcast/mediapro/vivo/goltv/mediapro_vivo_goltv_h264_1.sdp/
Content-Language: en-US
Content-Length: 675
Content-Type: application/sdp
CSeq: 3
Date: Mon, 30 May 2011 09:55:49 GMT
Public: OPTIONS, DESCRIBE, SETUP, PLAY, PAUSE, TEARDOWN
Server: ERICSSON EMTV 1.0
Via: RTSP/1.0 bgustrnin2

v=0
o=Ericsson 3515738112 3515738112 IN IP4 10.132.149.44
s=mediapro_vivo_goltv_h264_1.sdp
c=IN IP4 0.0.0.0
t=0 0
a=control:*
m=video 0 RTP/AVP 105
b=AS:222
a=control:streamid=1
a=range:npt=0-
a=Width:integer;320
a=Height:integer;240
a=cliprect:0,0,240,320
a=rtpmap:105 H264/90000
a=fmtp:105 profile-level-id=42E00C;
sprop-parameter-sets=Z0LgDJZUCg/I,aM4BrFCA; packetization-mode=1
a=mpeg4-esid:11
a=3GPP-Adaptation-Support:1
m=audio 0 RTP/AVP 110
b=AS:20
a=control:streamid=2
a=range:npt=0-
a=rtpmap:110 MP4A-LATM/32000/1
a=mpeg4-esid:12
a=fmtp:110
profile-level-id=15;object=2;cpresent=0;config=400028103FC0;SBR-enabled=1
a=3GPP-Adaptation-Support:1

Opened URL "rtsp://
10.138.255.8/broadcast/mediapro/vivo/goltv/mediapro_vivo_goltv_h264_1.sdp",
returning a SDP description:
v=0
o=Ericsson 3515738112 3515738112 IN IP4 10.132.149.44
s=mediapro_vivo_goltv_h264_1.sdp
c=IN IP4 0.0.0.0
t=0 0
a=control:*
m=video 0 RTP/AVP 105
b=AS:222
a=control:streamid=1
a=range:npt=0-
a=Width:integer;320
a=Height:integer;240
a=cliprect:0,0,240,320
a=rtpmap:105 H264/90000
a=fmtp:105 profile-level-id=42E00C;
sprop-parameter-sets=Z0LgDJZUCg/I,aM4BrFCA; packetization-mode=1
a=mpeg4-esid:11
a=3GPP-Adaptation-Support:1
m=audio 0 RTP/AVP 110
b=AS:20
a=control:streamid=2
a=range:npt=0-
a=rtpmap:110 MP4A-LATM/32000/1
a=mpeg4-esid:12
a=fmtp:110
profile-level-id=15;object=2;cpresent=0;config=400028103FC0;SBR-enabled=1
a=3GPP-Adaptation-Support:1

Created receiver for "video/H264" subsession (client ports 38330-38331)
Created receiver for "audio/MP4A-LATM" subsession (client ports 45668-45669)
Sending request: SETUP rtsp://
10.138.255.8/broadcast/mediapro/vivo/goltv/mediapro_vivo_goltv_h264_1.sdp/streamid=1RTSP/1.0
CSeq: 4
User-Agent: ./openRTSP (LIVE555 Streaming Media v2010.12.05)
Transport: RTP/AVP;unicast;client_port=38330-38331


Received 298 new bytes of response data.
Received a complete SETUP response:
RTSP/1.0 200 OK
CSeq: 4
Date: Mon, 30 May 2011 09:55:50 GMT
Public: OPTIONS, DESCRIBE, SETUP, PLAY, PAUSE, TEARDOWN
Server: ERICSSON EMTV 1.0
Session: 1306749349803963000-38658;timeout=80
Transport: RTP/AVP;unicast;client_port=38330-38331;server_port=20150-20151
Via: RTSP/1.0 bgustrnin2


Setup "video/H264" subsession (client ports 38330-38331)
Sending request: SETUP rtsp://
10.138.255.8/broadcast/mediapro/vivo/goltv/mediapro_vivo_goltv_h264_1.sdp/streamid=2RTSP/1.0
CSeq: 5
User-Agent: ./openRTSP (LIVE555 Streaming Media v2010.12.05)
Transport: RTP/AVP;unicast;client_port=45668-45669
Session: 1306749349803963000-38658


Received 287 new bytes of response data.
Received a complete SETUP response:
RTSP/1.0 200 OK
CSeq: 5
Date: Mon, 30 May 2011 09:55:51 GMT
Public: OPTIONS, DESCRIBE, SETUP, PLAY, PAUSE, TEARDOWN
Server: ERICSSON EMTV 1.0
Session: 1306749349803963000-38658
Transport: RTP/AVP;unicast;client_port=45668-45669;server_port=20154-20155
Via: RTSP/1.0 bgustrnin2


Setup "audio/MP4A-LATM" subsession (client ports 45668-45669)
Created output file : "video-H264-1"
Sending request: PLAY rtsp://
10.138.255.8/broadcast/mediapro/vivo/goltv/mediapro_vivo_goltv_h264_1.sdp/RTSP/1.0
CSeq: 6
User-Agent: ./openRTSP (LIVE555 Streaming Media v2010.12.05)
Session: 1306749349803963000-38658
Range: npt=0.000-


Received 555 new bytes of response data.
Received a complete PLAY response:
RTSP/1.0 200 OK
Content-Base: rtsp://
10.138.255.8/broadcast/mediapro/vivo/goltv/mediapro_vivo_goltv_h264_1.sdp/
CSeq: 6
Date: Mon, 30 May 2011 09:55:51 GMT
Public: OPTIONS, DESCRIBE, SETUP, PLAY, PAUSE, TEARDOWN
RTP-Info: url=rtsp://
10.138.255.8/broadcast/mediapro/vivo/goltv/mediapro_vivo_goltv_h264_1.sdp/streamid=1;seq=0;rtptime=1000000,url=rtsp://10.138.255.8/broadcast/mediapro/vivo/goltv/mediapro_vivo_goltv_h264_1.sdp/streamid=2;seq=0;rtptime=1000000
Server: ERICSSON EMTV 1.0
Session: 1306749349803963000-38658
Via: RTSP/1.0 bgustrnin2


Started playing session
Receiving streamed data (signal with "kill -HUP 3638" or "kill -USR1 3638"
to terminate)...
[h264 @ 0x2cf1550] AVC: nal size 1121979542
[h264 @ 0x2cf1550] no
frame!

[h264 @ 0x2cf1550] AVC: nal size
-838751152

[h264 @ 0x2cf1550] no
frame!

[h264 @ 0x2cf1550] AVC: nal size
-2004873472

[h264 @ 0x2cf1550] concealing 300 DC, 300 AC, 300 MV
errors

[h264 @ 0x2cf1550] AVC: nal size -1711143936
[h264 @ 0x2cf1550] concealing 282 DC, 282 AC, 282 MV
errors

[h264 @ 0x2cf1550] AVC: nal size -1711011839
[h264 @ 0x2cf1550] concealing 300 DC, 300 AC, 300 MV
errors

[h264 @ 0x2cf1550] AVC: nal size -1710879743
[h264 @ 0x2cf1550] concealing 300 DC, 300 AC, 300 MV
errors

[h264 @ 0x2cf1550] AVC: nal size -1710747647
[h264 @ 0x2cf1550] concealing 300 DC, 300 AC, 300 MV
errors

[h264 @ 0x2cf1550] AVC: nal size -1710615551
[h264 @ 0x2cf1550] concealing 300 DC, 300 AC, 300 MV
errors

[h264 @ 0x2cf1550] AVC: nal size -1710483455
[h264 @ 0x2cf1550] concealing 300 DC, 300 AC, 300 MV
errors

[h264 @ 0x2cf1550] AVC: nal size -1710351359
[h264 @ 0x2cf1550] concealing 300 DC, 300 AC, 300 MV errors
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20110530/c5883471/attachment-0001.html>


More information about the live-devel mailing list