Pkt->pts = av_rescale_q_rnd(pkt->pts, *time_base, st->time_base, AVRounding(AV_ROUND_NEAR_INF | AV_ROUND_PASS_MINMAX)) * rescale output packet timestamp values from codec to stream timebase */ Static int write_frame(AVFormatContext *fmt_ctx, const AVRational *time_base, AVStream *st, AVPacket *pkt) Static AVPicture src_picture, dst_picture #define STREAM_PIX_FMT AV_PIX_FMT_YUV420P /* default pix_fmt */ #define STREAM_FRAME_RATE 25 /* 25 images/s */ I've tried different values and can get past the exception by setting some contrived values but then the write call fails. The exception looks like it's related to the packet timestamps not being set correctly. I get an "Integer division by zero" exception whenever in the av_interleaved_write_frame function when I try and send a packet. I do only want to send a single H264 bit stream to the wowza server and which it can handle. I have found a few examples and attempted to utilise the relevant bits. I have been able to do the reverse and consume an RTSP stream but I'm having a few issues writing an RTSP stream. In the case of multiple outputs, combinations of and are repeated for each targeted output.įor more information on FFmpeg flags and outputs, please refer to the Recommended links section.I'm attempting to use the ffmpeg libraries to send a video stream from my application to a media server (in this case wowza). Similar to inputs, FFmpeg is capable of providing multiple outputs as well. And finally the specifies the format and container of the output media (streaming/non-streaming). are used to configure the FFmpeg output such as quality, bitrate, format, container etcetera. FFmpeg is capable of reading multiple inputs (streaming/non-streaming) through a single command. refers to one or more input sources specified in the FFmpeg command. refers to special command line parameters that can be used to configure an input being read into FFmpeg. Ffmpeg -i įFmpeg supports various types of streaming and non-streaming media inputs over a wide range of protocols.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |