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

aviad rozenhek aviadr1
Sun Dec 5 10:17:00 CET 2010


On Thu, Nov 18, 2010 at 22:00, Luca Abeni <lucabe72 at email.it> wrote:

> On 18/11/10 17:05, Luca Barbato wrote:
>
>> On 11/18/2010 04:54 PM, aviad rozenhek wrote:
>>
>>> yes, its live 24/7
>>>
>>
>> Now it is.
>>
>> ffmpeg -loglevel debug -i rtsp://mobile.rayv.com:80/live/rayv2demo?tcp
>> -vcodec copy -acodec copy /tmp/dump.mov
>>
> Works fine here, too. Both on TCP and UDP. I also tried transcoding (both
> audio and video) and it works.
>
>
>  PS: trying nut I get
>> av_interleaved_write_frame(): Operation not permitted
>>
>> Looks like that at least we have an issue propagating the error...
>>
> Yes, ffmpeg started producing funny error messages :)
>
> Anyway, I think I know where this one comes from: it's the NUT muxer
> complaining about an invalid (AV_NOPTS_VALUE) pts in the AVPacket. I
> somewhere have a patch printing a more sensible error messages (and
> returning something better than -1), but I never found the time to finalise
> and submit it.
>
>
>
here's my result, still indicating an error in UDP

>ffmpeg -loglevel debug -i rtsp://mobile.rayv.com:80/live/rayv2demo?udpc:\output.mov

FFmpeg version SVN-r25862, Copyright (c) 2000-2010 the FFmpeg developers
  built on Dec  3 2010 04:07:09 with gcc 4.4.2
  configuration: --enable-gpl --enable-version3 --enable-libgsm
--enable-pthread
s --enable-libvorbis --enable-libtheora --enable-libspeex
--enable-libmp3lame --
enable-libopenjpeg --enable-libschroedinger --enable-libopencore_amrwb
--enable-
libopencore_amrnb --enable-libvpx --disable-decoder=libvpx --arch=x86
--enable-r
untime-cpudetect --enable-libxvid --enable-libx264 --extra-libs='-lx264
-lpthrea
d' --enable-librtmp --extra-libs='-lrtmp -lpolarssl -lws2_32 -lwinmm'
--target-o
s=mingw32 --enable-avisynth --cross-prefix=i686-mingw32- --cc='ccache
i686-mingw
32-gcc' --enable-memalign-hack
  libavutil     50.33. 0 / 50.33. 0
  libavcore      0.14. 0 /  0.14. 0
  libavcodec    52.97. 2 / 52.97. 2
  libavformat   52.87. 1 / 52.87. 1
  libavdevice   52. 2. 2 / 52. 2. 2
  libavfilter    1.67. 0 /  1.67. 0
  libswscale     0.12. 0 /  0.12. 0
[rtsp @ 003cc440] SDP:
v=0
o=- 944769310 944769310 IN IP4 127.0.0.1
s=WowzaMediaServer
c=IN IP4 0.0.0.0
t=0 0
a=sdplang:en
a=range:npt=now-
a=control:*
m=audio 0 RTP/AVP 96
a=rtpmap:96 mpeg4-generic/44100/2
a=fmtp:96
profile-level-id=1;mode=AAC-hbr;sizelength=13;indexlength=3;indexdelta
length=3;config=1210
a=control:trackID=1
m=video 0 RTP/AVP 97
a=rtpmap:97 H264/90000
a=fmtp:97
packetization-mode=1;profile-level-id=42C015;sprop-parameter-sets=Z0LA
FZZiA0FNCAAAAwAIAAA+gHixckA=,aMuMsg==
a=cliprect:0,0,320,416
a=framesize:97 416-320
a=control:trackID=2

[rtsp @ 003cc440] audio codec set to: aac
[rtsp @ 003cc440] audio samplerate set to: 44100
[rtsp @ 003cc440] audio channels set to: 2
[rtsp @ 003cc440] video codec set to: h264
[NULL @ 02f31d50] RTP Packetization Mode: 1
[NULL @ 02f31d50] RTP Profile IDC: 42 Profile IOP: c0 Level: 15
[NULL @ 02f31d50] Extradata set to 003cff40 (size: 33)!hello state=0
[rtsp @ 003cc440] Could not find codec parameters (Audio: aac, stereo, s16)
[rtsp @ 003cc440] Estimating duration from bitrate, this may be inaccurate
Input #0, rtsp, from 'rtsp://mobile.rayv.com:80/live/rayv2demo?udp':
  Metadata:
    title           : WowzaMediaServer
  Duration: N/A, bitrate: N/A
    Stream #0.0, 0, 1/44100: Audio: aac, stereo, s16
    Stream #0.1, 0, 1/90000: Video: h264, yuv420p, 416x320, 1/90000, 90k
tbr, 90
k tbn, 90k tbc
File 'c:\output.mov' already exists. Overwrite ? [y/N] y
[buffer @ 02f2f840] w:416 h:320 pixfmt:yuv420p
[mpeg4 @ 02fd3b30] timebase not supported by mpeg 4 standard
Output #0, mov, to 'c:\output.mov':
    Stream #0.0, 0, 1/90000: Video: mpeg4, yuv420p, 416x320, 1/90000,
q=2-31, 20
0 kb/s, 90k tbn, 90k tbc
    Stream #0.1, 0, 1/90000: 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, rate, width or height



More information about the ffmpeg-devel mailing list