[Ffmpeg-devel] Play MPEG4 via rtsp will cause crash ?

Liu.Akewart at iac.com.tw Liu.Akewart
Wed Dec 7 11:00:40 CET 2005


Hi :

	I wrote a simple test file for testing ffmpeg streaming mode via rtsp. 
Remote server is helix server and support .3gp file streaming. And while I try to 
play the 3GPP flle vai rtsp , it finally got a crush. I just wondered if the MPEG4 
streaming is ready for now ?( I modified rtsp.c and add MIME support for AMR_NB)

	I do some compare withe local file decoding and found our decoder need
'mp4v' tag for init the mpeg4 decoder, but if the file comes with the rtsp , it won't got 
'mp4v' data , just come the frame datas in 'mdat'. Here is the log:

# ./fftest rtsp://10.22.2.6/dongfengpo.3gp
Register all codecs
MIME type: MP4V-ES
MIME type: AMR
[rtsp @ 0x10909c]hello state=0
[rtsp @ 0x10909c]hello state=1
[NULL @ 0x140ed0]RTP: PT=60: bad cseq 000b expected=0001
Video : 176X144 Format:0 Codec: 12 FN:0 SID:0
Audio : fs:8000 ch:1 Codec:73728 FN:0 SID:1
Duration: -9223372036854775808
Packet SID:0 PTS:0 DTS:0 SIZE:547
[mpeg4 @ 0x140ed0]warning: first frame is no keyframe
V: decoded 547 bytes
Outputing RGB File...Done.
Packet SID:0 PTS:40000 DTS:40000 SIZE:159
V: decoded 159 bytes
Outputing RGB File...Done.
Packet SID:0 PTS:80000 DTS:80000 SIZE:262
V: decoded 262 bytes
Outputing RGB File...Done.
Packet SID:0 PTS:120000 DTS:120000 SIZE:3808
V: decoded 3808 bytes
Outputing RGB File...Done.
Packet SID:0 PTS:160000 DTS:160000 SIZE:527
V: decoded 527 bytes
Outputing RGB File...Done.
[amr_nb @ 0x140ed0]RTP: PT=61: bad cseq 0002 expected=0001
Packet SID:1 PTS:-9223372036854775808 DTS:-9223372036854775808 SIZE:801
A:decoded 803 bytes with 16640 out and 527 source data
[mpeg4 @ 0x140ed0]hmm, seems the headers arnt complete, trying to guess time_increment_bits
[mpeg4 @ 0x140ed0]my guess is 1 bits ;)
[mpeg4 @ 0x140ed0]Error, header damaged or not MPEG4 header (qscale=0)
Packet SID:0 PTS:200000 DTS:200000 SIZE:251
[mpeg4 @ 0x140ed0]picture size invalid (4294443008x0)
V: decoded -1 bytes
Marker bit missing before vop_coded
Packet SID:0 PTS:240000 DTS:240000 SIZE:64
[mpeg4 @ 0x140ed0]picture size invalid (4294443008x0)
V: decoded -1 bytes
Marker bit missing before vop_coded
Packet SID:0 PTS:280000 DTS:280000 SIZE:226
[mpeg4 @ 0x140ed0]picture size invalid (4294443008x0)
V: decoded -1 bytes
Marker bit missing before vop_coded
[mpeg4 @ 0x140ed0]Error, header damaged or not MPEG4 header (qscale=0)
Packet SID:0 PTS:320000 DTS:320000 SIZE:201
[mpeg4 @ 0x140ed0]picture size invalid (4294443008x0)
V: decoded -1 bytes
Marker bit missing before vop_coded
[mpeg4 @ 0x140ed0]Error, header damaged or not MPEG4 header (qscale=0)
Packet SID:0 PTS:360000 DTS:360000 SIZE:181
[mpeg4 @ 0x140ed0]picture size invalid (4294443008x0)
V: decoded -1 bytes
Packet SID:0 PTS:400000 DTS:400000 SIZE:164
[mpeg4 @ 0x140ed0]picture size invalid (4294443008x0)
V: decoded -1 bytes
Packet SID:0 PTS:440000 DTS:440000 SIZE:116
[mpeg4 @ 0x140ed0]picture size invalid (4294443008x0)
V: decoded -1 bytes
[mpeg4 @ 0x140ed0]Error, header damaged or not MPEG4 header (qscale=0)
Packet SID:0 PTS:480000 DTS:480000 SIZE:406
[mpeg4 @ 0x140ed0]picture size invalid (4294443008x0)
V: decoded -1 bytes
Packet SID:1 PTS:-9223372036854775808 DTS:-9223372036854775808 SIZE:801
A:decoded 803 bytes with 16640 out and -1 source data
[mpeg4 @ 0x140ed0]hmm, seems the headers arnt complete, trying to guess time_increment_bits
[mpeg4 @ 0x140ed0]my guess is 1 bits ;)
[mpeg4 @ 0x140ed0]Error, header damaged or not MPEG4 header (qscale=0)
Packet SID:0 PTS:520000 DTS:520000 SIZE:154
[mpeg4 @ 0x140ed0]picture size invalid (65528x4294443008)
V: decoded -1 bytes
Marker bit missing before vop_coded
Packet SID:0 PTS:560000 DTS:560000 SIZE:335
[mpeg4 @ 0x140ed0]picture size invalid (65528x4294443008)
V: decoded -1 bytes

	Best regards
				-akewart





More information about the ffmpeg-devel mailing list