[FFmpeg-devel] RTSP H.264/AAC problem

Martin Storsjö martin
Thu Nov 18 15:36:15 CET 2010


On Thu, 18 Nov 2010, aviad rozenhek wrote:

> I am not able to decode the following stream:
> rtsp://mobile.rayv.com:80/live/rayv2demo
> does RTSP support wowza, H.264 and AAC ?

Playing this url with ffplay works just fine for me.

> here is the commandline i am using using the following commandline:
> 
> >ffmpeg -i rtsp://mobile.rayv.com:80/live/rayv2demo c:\media\test.mp4
> 
> FFmpeg version SVN-r25762, Copyright (c) 2000-2010 the FFmpeg developers
>   built on Nov 18 2010 04:07:17 with gcc 4.4.2
>   configuration: --enable-gpl --enable-version3 --enable-libgsm
> --enable-pthreads --enable-libvorbis
>  --enable-libtheora --enable-libspeex --enable-libmp3lame
> --enable-libopenjpeg --enable-libschroedin
> ger --enable-libopencore_amrwb --enable-libopencore_amrnb --enable-libvpx
> --disable-decoder=libvpx -
> -arch=x86 --enable-runtime-cpudetect --enable-libxvid --enable-libx264
> --extra-libs='-lx264 -lpthrea
> d' --enable-librtmp --extra-libs='-lrtmp -lpolarssl -lws2_32 -lwinmm'
> --target-os=mingw32 --enable-a
> visynth --cross-prefix=i686-mingw32- --cc='ccache i686-mingw32-gcc'
> --enable-memalign-hack
>   libavutil     50.33. 0 / 50.33. 0
>   libavcore      0.13. 0 /  0.13. 0
>   libavcodec    52.96. 0 / 52.96. 0
>   libavformat   52.84. 0 / 52.84. 0
>   libavdevice   52. 2. 2 / 52. 2. 2
>   libavfilter    1.62. 0 /  1.62. 0
>   libswscale     0.12. 0 /  0.12. 0
> [rtsp @ 0166bd60] Could not find codec parameters (Audio: aac, stereo, s16)
> [rtsp @ 0166bd60] Estimating duration from bitrate, this may be inaccurate
> Input #0, rtsp, from 'rtsp://mobile.rayv.com:80/live/rayv2demo':
>   Metadata:
>     title           : WowzaMediaServer
>   Duration: N/A, bitrate: N/A
>     Stream #0.0: Audio: aac, stereo, s16
>     Stream #0.1: Video: h264, yuv420p, 416x320, 90k tbr, 90k tbn, 90k tbc
> File 'c:\media\test.mp4' already exists. Overwrite ? [y/N] y
> [buffer @ 02ac0ec0] w:416 h:320 pixfmt:yuv420p
> [mpeg4 @ 02aadfa0] timebase not supported by mpeg 4 standard
> Output #0, mp4, to 'c:\media\test.mp4':
>     Stream #0.0: Video: mpeg4, yuv420p, 416x320, q=2-31, 200 kb/s, 90k tbn,
> 90k tbc
>     Stream #0.1: Audio: aac, stereo, s16, 64 kb/s
> Stream mapping:
>   Stream #0.1 -> #0.0
>   Stream #0.0 -> #0.1
> Error while opening encoder for output stream #0.0 - maybe incorrect
> parameters such as bit_rate, ra
> te, width or height

It's a bit harder to know what the problem is if you try to do both 
decoding and encoding at once, but the line

>     Stream #0.0: Audio: aac, stereo, s16

above makes it look like it didn't detect the stream properly. It works 
just fine in ffplay for me though, so I don't really know off-hand what 
the problem is.

// Martin



More information about the ffmpeg-devel mailing list