Hello,
I've managed to get segmenter compiled with the latest ffmpeg. I had to do the following
1 - Replace URL_WRONLY with AVIO_FLAG_WRITE
2 - Replace av_open_input_file function with new avformat_open_input
3 - Comment out the If statement for av_set_parameters(oc, NULL) as there doesn't seem to be equivalent for new ffmpeg
4 - Change avcodec_open to avcodec_open2 and added new parameter with NULL value
5 - Change av_write_header to avformat_write_header and added new parameter with NULL value
PROBLEM - When i use eyeZm to stream via h264, I get the following segault -> zmstreamer[12702]: segfault at a0 ip 00007fbad34fe2d7 sp 00007fffccba98c0 error 4 in libavformat.so.55.19.104[7fbad34bf000+161000]
not sure where my issue is.. I can run segmenter via command line with no issues.. This is the command from the zm_xml_log file : Using H264 Pipe Function: nohup zmstreamer -m 2 2> /dev/null | /usr/local/bin/ffmpeg -t 120 -analyzeduration 0 -i - -f mpegts -analyzeduration 0 -acodec copy -vcodec libx264 -b 96k -flags +loop -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8 -subq 5 -trellis 1 -refs 1 -coder 0 -me_range 16 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -bt 16k -rc_eq 'blurCplx^(1-qComp)' -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -level 30 -g 30 -analyzeduration 0 -async 2 - 2> /dev/null | segmenter - 3 ./temp/sample_2 ./temp/stream_2.m3u8 ../ 2> /dev/null & echo $!
any ideas?
Thx!
EyeZM and zmstreamer
Re: EyeZM and zmstreamer
It's actually slightly different/same .. See my previous topic post to see if it will fix the connection refused issue. Had to change a configuration parameter.. I have it streaming fine with mjpeg in the eyeZM, but was trying to get h264 working which leads to a segfault