[FFmpeg-user] ffmpeg script to deal with RTSP (UNCLASSIFIED)
Wunder, Greg P CTR (US)
greg.p.wunder.ctr at mail.mil
Thu Apr 18 17:02:31 CEST 2013
Classification: UNCLASSIFIED
Caveats: NONE
My infrastructure is setup such that I am running on a CentOS 6.x 64bit image with FFMPEG 0.10.2.
I am attempting to deal with 2 problems:
1) Time-out and restart of RTSP video source
2) Errors in RTSP video source
My script is as follows: ffmpeg -i "rtsp://192.168.12.3/myFeed" -f flv -an "rtmp://192.168.12.33/live/myFeed"
For #1, every thirty minutes the feed get reset as the video is written off to disk which I have no control over.
How can I have the script wait during this period and then pick-up the feed again rather than manually restart the script?
For #2 I get the following stdout/stderr at runtime causing the feed to have issues (accessing the original RTSP feed with VLC it looks good, but RTMP from the FFMPEG script it does not).
RTMP is hosted via Adobe Media Server 5.0.1.
[h264 @ 0x1f63ba0] concealing 799 DC, 799 AC, 799 MV errors
[h264 @ 0x1fbfe40] illegal short term buffer state detected
[h264 @ 0x1fbfe40] concealing 750 DC, 750 AC, 750 MV errors
[h264 @ 0x201c0c0] left block unavailable for requested intra4x4 mode -1 at 23 7
[h264 @ 0x201c0c0] error while decoding MB 23 7
[h264 @ 0x201c0c0] P sub_mb_type 4 out of range at 15 22
[h264 @ 0x201c0c0] error while decoding MB 15 22
[h264 @ 0x201c0c0] concealing 726 DC, 726 AC, 726 MV errors
[h264 @ 0x2078340] illegal short term buffer state detected
[h264 @ 0x2078340] left block unavailable for requested intra mode at 30 18
[h264 @ 0x2078340] error while decoding MB 30 18
[h264 @ 0x2078340] concealing 379 DC, 379 AC, 379 MV errors
frame= 5413 fps= 15 q=31.0 size= 11191kB time=00:06:13.17 bitrate= 245.7kbits/concealing 750 DC, 750 AC, 750 MV errors
[h264 @ 0x1c848e0] top block unavailable for requested intra mode at 0 15
[h264 @ 0x1c848e0] error while decoding MB 0 15
[h264 @ 0x1c848e0] P sub_mb_type 6 out of range at 7 22
[h264 @ 0x1c848e0] error while decoding MB 7 22
[h264 @ 0x1c848e0] concealing 727 DC, 727 AC, 727 MV errors
[h264 @ 0x1c84dc0] illegal short term buffer state detected
[h264 @ 0x1c84dc0] mb_type 791 in P slice too large at 30 18
[h264 @ 0x1c84dc0] error while decoding MB 30 18
[h264 @ 0x1c84dc0] top block unavailable for requested intra mode at 23 22
[h264 @ 0x1c84dc0] error while decoding MB 23 22
[h264 @ 0x1c84dc0] concealing 509 DC, 509 AC, 509 MV errors
[h264 @ 0x1eab960] mb_type 31 in P slice too large at 30 18
[h264 @ 0x1eab960] error while decoding MB 30 18
[h264 @ 0x1eab960] top block unavailable for requested intra mode at 34 21
[h264 @ 0x1eab960] error while decoding MB 34 21
[h264 @ 0x1f07a80] concealing 750 DC, 750 AC, 750 MV errors
[h264 @ 0x1eab960] top block unavailable for requested intra4x4 mode -1 at 21 27
[h264 @ 0x1eab960] error while decoding MB 21 27
[h264 @ 0x1eab960] concealing 483 DC, 483 AC, 483 MV errors
[h264 @ 0x1f63ba0] mb_type 346 in P slice too large at 10 11
[h264 @ 0x1f63ba0] error while decoding MB 10 11
[h264 @ 0x1f63ba0] top block unavailable for requested intra mode at 26 24
[h264 @ 0x1f63ba0] error while decoding MB 26 24
[h264 @ 0x1f63ba0] concealing 811 DC, 811 AC, 811 MV errors
[h264 @ 0x1fbfe40] illegal short term buffer state detected
[h264 @ 0x1fbfe40] top block unavailable for requested intra mode at 30 18
[h264 @ 0x1fbfe40] error while decoding MB 30 18
[h264 @ 0x1fbfe40] mb_type 33 in P slice too large at 28 24
[h264 @ 0x1fbfe40] error while decoding MB 28 24
[h264 @ 0x1fbfe40] concealing 467 DC, 467 AC, 467 MV errors
[h264 @ 0x201c0c0] concealing 750 DC, 750 AC, 750 MV errors
[h264 @ 0x2078340] mb_type 121 in P slice too large at 10 11
[h264 @ 0x2078340] error while decoding MB 10 11
[h264 @ 0x2078340] top block unavailable for requested intra mode at 0 25
[h264 @ 0x2078340] error while decoding MB 0 25
[h264 @ 0x2078340] concealing 802 DC, 802 AC, 802 MV errors
[h264 @ 0x1c83a40] illegal short term buffer state detected
[h264 @ 0x1c83a40] top block unavailable for requested intra mode at 30 18
[h264 @ 0x1c83a40] error while decoding MB 30 18
[h264 @ 0x1c83a40] negative number of zero coeffs at 19 21
[h264 @ 0x1c83a40] error while decoding MB 19 21
[h264 @ 0x1c83a40] P sub_mb_type 6 out of range at 12 27
[h264 @ 0x1c83a40] error while decoding MB 12 27
frame= 5420 fps= 15 q=31.0 size= 11208kB time=00:06:13.64 bitrate= 245.7kbits/concealing 486 DC, 486 AC, 486 MV errors
Thanks for any help you can be.
Greg
Classification: UNCLASSIFIED
Caveats: NONE
More information about the ffmpeg-user
mailing list