[FFmpeg-user] [ffmpeg-user] Hi, does anyone konw how to use rtsp in ffmpeg

Wei Gao highgod0401 at gmail.com
Mon May 13 13:55:17 CEST 2013


2013/5/13 Wei Gao <highgod0401 at gmail.com>

>
>
>
> 2013/5/13 Andrew Sinclair <ajsinclair at gmail.com>
>
>> Try generating it as an mp4 as live555 will likely need something like
>> that
>> to convert to RTSP as probably can't handle raw h264 assuming that is what
>> your .h264 is.
>>
>> I don't use live555 but a simple mp4 works fine in either DSS or Wowza
>> e.g.
>> here is the Wowza sample file:
>> ffplay rtsp://cj.sinclairmediatech.com/vod/sample.mp4
>> ffplay version N-51554-g1c0d8f2 Copyright (c) 2003-2013 the FFmpeg
>> developers
>>   built on Apr  7 2013 18:35:14 with llvm-gcc 4.2.1 (LLVM build
>> 2336.11.00)
>>   configuration: --enable-libx264 --enable-libfaac --enable-nonfree
>> --enable-gpl
>>   libavutil      52. 24.100 / 52. 24.100
>>   libavcodec     55.  2.100 / 55.  2.100
>>   libavformat    55.  1.100 / 55.  1.100
>>   libavdevice    55.  0.100 / 55.  0.100
>>   libavfilter     3. 49.100 /  3. 49.100
>>   libswscale      2.  2.100 /  2.  2.100
>>   libswresample   0. 17.102 /  0. 17.102
>>   libpostproc    52.  2.100 / 52.  2.100
>> Input #0, rtsp, from 'rtsp://cj.sinclairmediatech.com/vod/sample.mp4':
>>   Metadata:
>>     title           : sample.mp4
>>   Duration: 00:09:56.46, start: 0.000000, bitrate: N/A
>>     Stream #0:0: Audio: aac, 48000 Hz, stereo, fltp
>>     Stream #0:1: Video: h264 (Constrained Baseline), yuv420p, 424x240, 24
>> fps, 24 tbr, 90k tbn, 48 tbc
>>   24.06 A-V: -0.025 fd=   1 aq=   20KB vq=   66KB sq=    0B f=1/1
>>
> thanks yes, can you try 1920x1080?
> Thanks
>
>>
>>
>> Hi, I set the log level to debug and found that all errors are as follow
code:

if (h->cabac.bytestream > h->cabac.bytestream_end + 2 )
                av_log(h->avctx, AV_LOG_DEBUG, "bytestream overread %td\n",
h->cabac.bytestream_end - h->cabac.bytestream);
            if (ret < 0 || h->cabac.bytestream > h->cabac.bytestream_end +
4) {
                av_log(h->avctx, AV_LOG_ERROR,
                       "error while decoding MB %d %d, bytestream (%td)\n",
                       h->mb_x, h->mb_y,
                       h->cabac.bytestream_end - h->cabac.bytestream);
                er_add_slice(h, h->resync_mb_x, h->resync_mb_y, h->mb_x,
                                h->mb_y, ER_MB_ERROR);
                return -1;
            }

[h264 @ 004bf7c0] bytestream overread -26=   98KB sq=    0B f=50/154
[h264 @ 004bf7c0] error while decoding MB 47 51, bytestream (-26)
[h264 @ 004bf7c0] concealing 2042 DC, 2042 AC, 2042 MV errors in I frame

it seems that decode I frame error


More information about the ffmpeg-user mailing list