I'm trying to use libavformat to read in a live mpeg4 RTSP stream from
an axis IP camera and output it as FLV/h264 to rtmpd. My problem is
that I get a totally bogus framerate for the camera stream (it's live,
so I guess that is to be expected), and when I pass the timebase off
to the output stream it explodes:


initiate_stream input_uri=rtsp://axis1/mpeg4/media.amp
output_uri=tcp://localhost:6666
[rtsp @ 0x4a0c6e0] Estimating duration from bitrate, this may be inaccurate
Input #0, rtsp, from 'rtsp://axis1/mpeg4/media.amp':
  Metadata:
    title           : Media Presentation
  Duration: N/A, start: 0.199200, bitrate: N/A
    Stream #0.0: Video: mpeg4, yuv420p, 1280x720 [PAR 1:1 DAR 16:9],
1k tbr, 90k tbn, 1k tbc
base num: 1 base den: 90000 at
/home/bobo/dev/av-streamer/lib/AV/Streamer/Stream/Video.pm line 132,
<STDIN> line 2.

width: 1280, height: 720, bitrate: 100000, framerate: 0/0, timebase:
1/90000, pixfmt: 0, gopsize: 12
[mpeg4 @ 0x4a058c0] timebase 1/90000 not supported by MPEG 4 standard,
the maximum admitted value for the timebase denominator is 65535
failed to open codec


What's the correct thing to do in this situation? Since it's a live
stream, does the output framerate really matter? Should I just pick a
random value?

Code is at https://github.com/revmischa/av-streamer - mostly in Streamer.xs.


Thanks!
_______________________________________________
libav-api mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-api

Reply via email to