objective c - ffmpeg in cocoa app does not do perfect streaming -


i using ffmpeg 3.1.4 if stream via command line on mac 10.10.5 done properly.

however when compile source code , add library files in cocoa app , try stream errors.

format context created using :

avformat_alloc_output_context2(_avoutputformatcontext, _avoutputformat, "flv", "rtmp://path/swati.flv" 

file opened :

avio_open(&_avoutputformatcontext->pb, cstreamname, avio_flag_write); 

however error received @ :

avformat_write_header(_avoutputformatcontext, null); 

it gives -22 error

any suggestion should do.


Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -