<div dir="ltr">Hello all,<div><br></div><div>I am trying to write an "external recorder". I think I have the code working, for at least one channel.</div><div><br></div><div>I can start on one channel, but I don't seem to be able to change channels:</div><div>2016-08-01 21:48:24.370456 E  SH(/home/mrawji/recorder/record.sh): Programmer Error, attempted to add a listener which is already being listened to.<br></div><div><div><br></div></div><div>Mythbackend logs:</div><div><PLAY CHANNEL 2></div><div><div>2016-08-01 22:13:05.969135 N  ApplyRecordRecGroupChange: LiveTV to LiveTV (2)</div><div>2016-08-01 22:13:05.969857 I  TVRec[1]: TuningNewRecorder - CreateRecorder()</div><div>2016-08-01 22:13:05.971848 E  RecBase[1](/home/mrawji/recorder/record.sh): SetStrOption(...recordingtype): Option not in profile.</div><div>2016-08-01 22:13:05.971860 E  RecBase[1](/home/mrawji/recorder/record.sh): SetIntOption(...recordmpts): Option not in profile.</div><div><br></div></div><div><HERE, EVERYTHING IS PLAYING FINE IN MYTHFRONTEND></div><div><br></div><div><CHANGE TO CHANNEL 1></div><div><div>2016-08-01 22:13:19.128611 I  TVRec[1]: TuningFrequency</div><div>2016-08-01 22:13:19.150666 N  AutoExpire: CalcParams(): Max required Free Space: 2.0 GB w/freq: 15 min</div><div>2016-08-01 22:13:19.152354 W  LoadFromProgram(): SQL contains LIMIT clause, caller should be updated to use limit parameter instead</div><div>2016-08-01 22:13:19.185962 N  ApplyRecordRecGroupChange: LiveTV to LiveTV (2)</div><div>2016-08-01 22:13:19.217122 E  SH(/home/mrawji/recorder/record.sh): Programmer Error, attempted to add a listener which is already being listened to.</div><div>2016-08-01 22:13:23.191216 N  AutoExpire: CalcParams(): Max required Free Space: 2.0 GB w/freq: 15 min</div></div><div><br></div><div>For every channel, I recreate a new MPEG-TS using ffmpeg. I am using the same stream_id for all the channels, since each TS only has a single program in it. Would that be causing the error?</div><div><br></div><div><div>~$ mythbackend --version</div><div>Please attach all output as a file in bug reports.</div><div>MythTV Version : v0.28-46-ge5ce273</div><div>MythTV Branch : fixes/0.28</div><div>Network Protocol : 88</div><div>Library API : 0.28.20160309-1</div><div>QT Version : 5.5.1</div><div>Options compiled in:</div><div> linux profile use_hidesyms using_alsa using_oss using_pulse using_pulseoutput using_backend using_bindings_perl using_bindings_python using_bindings_php using_crystalhd using_dvb using_firewire using_frontend using_hdhomerun using_vbox using_ceton using_hdpvr using_ivtv using_joystick_menu using_libcec using_libcrypto using_libdns_sd using_libfftw3 using_libxml2 using_lirc using_mheg using_opengl using_opengl_video using_opengl_themepainter using_qtwebkit using_qtscript using_qtdbus using_sdl using_taglib using_v4l2 using_x11 using_xrandr using_xv using_profiletype using_bindings_perl using_bindings_python using_bindings_php using_freetype2 using_mythtranscode using_opengl using_vaapi using_vdpau using_ffmpeg_threads using_mheg using_libass using_libxml2</div></div><div><br></div><div><br></div><div>Thanks!</div><div>Marc</div></div>