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

qt - QML MouseArea onWheel event not working properly when inside QML Scrollview -

java - is not an enclosing class / new Intent Cannot Resolve Constructor -

python - Error importing VideoFileClip from moviepy : AttributeError: 'PermissionError' object has no attribute 'message' -