Hi.
I'm trying to open an external RTSP server by using FFMPEG.
FFMPEG connects to RTSP, but then shows the following errors, and the
resulting file is 160 bytes in length:
ffmpeg -i rtsp://192.168.253.101:7070 test.mp4
FFmpeg version SVN-r15995, Copyright (c) 2000-2008 Fabrice Bellard, et al.
configuration: --prefix=/usr --enable-shared --enable-pthreads
libavutil 49.12. 0 / 49.12. 0
libavcodec 52. 6. 0 / 52. 6. 0
libavformat 52.23. 1 / 52.23. 1
libavdevice 52. 1. 0 / 52. 1. 0
built on Dec 4 2008 00:21:30, gcc: 4.1.2 20071124 (Red Hat 4.1.2-42)
Marker bit missing before time_increment
[NULL @ 0x15641810]hmm, seems the headers are not complete, trying to guess
time_increment_bits
[NULL @ 0x15641810]my guess is 16 bits ;)
Marker bit missing before vop_coded
Input #0, rtsp, from 'rtsp://192.168.253.101:7070':
Duration: 37871:16:42.68, start: 4398046.511104, bitrate: N/A
Stream #0.0: Video: mpeg4, yuv420p, 640x480 [PAR 1:1 DAR 4:3], 10.00
tb(r)
Output #0, mp4, to 'test.mp4':
Stream #0.0: Video: mpeg4, yuv420p, 640x480 [PAR 1:1 DAR 4:3], q=2-31,
200 kb/s, 10.00 tb(c)
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop encoding
Marker bit missing before time_increment
[mpeg4 @ 0x15641810]hmm, seems the headers are not complete, trying to guess
time_increment_bits
[mpeg4 @ 0x15641810]my guess is 16 bits ;)
Marker bit missing before vop_coded
frame= 0 fps= 0 q=0.0 size= 0kB time=10000000000.00 bitrate=
0.0kbit
frame= 0 fps= 0 q=0.0 size= 0kB time=10000000000.00 bitrate=
0.0kbit
frame= 0 fps= 0 q=0.0 size= 0kB time=10000000000.00 bitrate=
0.0kbit
frame= 0 fps= 0 q=0.0 size= 0kB time=10000000000.00 bitrate=
0.0kbit
frame= 0 fps= 0 q=0.0 size= 0kB time=10000000000.00 bitrate=
0.0kbit
frame= 0 fps= 0 q=0.0 size= 0kB time=10000000000.00 bitrate=
0.0kbit
[mpeg4 @ 0x15641810]header damaged
Error while decoding stream #0.0
frame= 0 fps= 0 q=0.0 Lsize= 0kB time=10000000000.00 bitrate=
0.0kbits/s
video:0kB audio:0kB global headers:0kB muxing overhead 263.636364%
VLC, with it's Live555 connector, works just fine and shows the video.
In the VLC messages log, FFMPEG shows same warnings (about not complete
headers) and also a lot of "header damaged warnings":
avcodec warning: cannot decode one frame (44 bytes)
avcodec warning: header damaged
([EMAIL PROTECTED])
But it still works.
Any idea why FFMPEG can't handle this stream (while VLC can, using same
libavcodec to decode the stream)?
Thanks in advance.
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user