different idea: output bd.meta conditionally on gui var (set from checkbox), let sh script test for its existence, run tsmuxer conditionally.. seems to work! <div><br></div><div><br><br>On Friday, December 17, 2021, Andrew Randrianasulu <<a href="mailto:randrianasulu@gmail.com">randrianasulu@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I tried to pass variable into<div><br></div><div><br></div><div>class BD_BatchRenderJob : public BatchRenderJob</div><div>{</div><div>public:</div><div> static int get_udfs_mount(char *udfs, char *mopts, char *mntpt)</div><div>;</div><div> BD_BatchRenderJob(Preferences *preferences, int labeled, int fa</div><div>rmed);</div><div> char *create_script(EDL *edl, ArrayList<Indexable *> *idxbls);</div><div> int tsmuxered;</div><div>};</div><div><br></div><div>from </div><div><br></div><div>class CreateBD_Thread : public BC_DialogThread</div><div>{</div><div> static const int64_t BD_SIZE;</div><div> static const int BD_STREAMS, BD_WIDTH, BD_HEIGHT;</div><div> static const double BD_ASPECT_WIDTH, BD_ASPECT_HEIGHT;</div><div> static const double BD_WIDE_ASPECT_WIDTH, BD_WIDE_ASPECT_HEIGHT</div><div>;</div><div> static const int BD_MAX_BITRATE, BD_CHANNELS, BD_WIDE_CHANNELS;</div><div> static const double BD_FRAMERATE, BD_SAMPLERATE, BD_KAUDIO_RATE</div><div>;</div><div> static const int BD_INTERLACE_MODE;</div><div>public:</div><div> CreateBD_Thread(MWindow *mwindow);</div><div> ~CreateBD_Thread();</div><div> void handle_close_event(int result);</div><div> BC_Window* new_gui();</div><div> int option_presets();</div><div> int create_bd_script(const char *path, EDL *edl);</div><div> int create_bd_jobs(ArrayList<<wbr>BatchRenderJob*> *jobs, const char</div><div> *asset_dir);</div><div> int insert_video_plugin(const char *title, KeyFrame *default_ke</div><div>yframe);</div><div> int resize_tracks();</div><div><br></div><div> MWindow *mwindow;</div><div> CreateBD_GUI *gui;</div><div> char asset_title[BCTEXTLEN];</div><div> char tmp_path[BCTEXTLEN];</div><div> char use_profile[BCTEXTLEN];</div><div> int use_deinterlace, use_inverse_telecine;</div><div> int use_scale, use_resize_tracks;</div><div> int use_wide_audio, use_farmed;</div><div> int use_histogram, use_labeled;</div><div> int use_standard;</div><div> int use_tsmuxer;</div><div><br></div><div> int64_t bd_size;</div><div> int bd_width;</div><div> int bd_height;</div><div> double bd_aspect_width;</div><div> double bd_aspect_height;</div><div> double bd_framerate;</div><div> int bd_samplerate;</div><div> int bd_max_bitrate;</div><div> double bd_kaudio_rate;</div><div> int bd_interlace_mode;</div><div> int max_w, max_h;</div><div><br></div><div> BD_BatchRenderJob *batchrender;</div><div>};</div><div><br></div><div>but guess I do something wrong because just calling</div><div>//batchrender->tsmuxered = use_tsmuxer;</div><div><br></div><div>form</div><div><br></div><div>void CreateBD_Thread::handle_close_<wbr>event(int result)</div><div><br></div><div>result in crash (</div><div><br></div><div>NOT WORKING (as far as this functionality is concerned) patchset attached... </div><div><br></div><div><br></div><div><br></div><div><br></div>
</blockquote></div>