[FFmpeg-user] Error when opening RTSP with AAC

Stas Oskin stas.oskin at gmail.com
Thu Jul 7 19:52:16 CEST 2011


Hi.

I'm trying to open a stream from camera, and getting following error:
ffmpeg -i rtsp://192.168.1.1 -vcodec copy -acodec copy -f rtsp rtsp://
127.0.0.1/streamer.sdp

[rtsp @ 0x1ae0a0a0] Estimating duration from bitrate, this may be inaccurate

Seems stream 0 codec frame rate differs from container frame rate: 1000.00
(1000/1) -> 10.10 (1000/99)
Input #0, rtsp, from 'rtsp://192.168.1.1':
  Metadata:
    title           : RTSP server
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #0.0: Video: mpeg4, yuv420p, 320x240 [PAR 1:1 DAR 4:3], 10.10
tbr, 30k tbn, 1k tbc
    Stream #0.1: Audio: aac, 8000 Hz, stereo, s16
[rtsp @ 0x1ae08640] method SETUP failed: 412 Precondition Failed
Output #0, rtsp, to 'rtsp://127.0.0.1/streamer.sdp':
  Metadata:
    title           : RTSP server
    encoder         : Lavf52.109.0
    Stream #0.0: Video: mpeg4, yuv420p, 320x240 [PAR 1:1 DAR 4:3], q=2-31,
90k tbn, 1k tbc
    Stream #0.1: Audio: libfaac, 8000 Hz, stereo
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Could not write header for output file #0 (incorrect codec parameters ?)

Once the audio disabled all working fine.

Any idea why this happens?

Thanks.


More information about the ffmpeg-user mailing list