Second set of 50 GPL attribution for CV-Contributors added
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / bdcreate.C
index 61362cfc26be5fad4ccc28931ad76bb861b9f4f6..cc6b40b76d5e07320daeb0c8ecce9be64b7d8a86 100644 (file)
 #include <errno.h>
 #if !defined(__FreeBSD__)
 #include <sys/stat.h>
+#if !defined(__NetBSD__)
 #include <sys/statfs.h>
+#endif
 #else
 #include <sys/param.h>
 #include <sys/mount.h>
 #endif
 
+#if defined(__NetBSD__)
+#include <sys/statvfs.h>
+#ifndef statfs
+#define statfs statvfs
+#endif
+#endif
+
 // BD Creation
 
 // selected by timezone
@@ -347,12 +356,14 @@ int CreateBD_Thread::create_bd_jobs(ArrayList<BatchRenderJob*> *jobs, const char
        }
 
 
-       fprintf(fp,"MUXOPT --blu-ray --hdmv-descriptors\n");
+       fprintf(fp,"MUXOPT --blu-ray --hdmv-descriptors --auto-chapters=5\n");
        fprintf(fp,"V_MPEG4/ISO/AVC, bd.m2ts, track=4113\n");
        if(!strcmp(use_profile, "bluray.m2ts"))
        fprintf(fp,"A_AC3, bd.m2ts, track=4352\n");
        if(!strcmp(use_profile, "bluray_lpcm.m2ts"))
        fprintf(fp,"A_LPCM, bd.m2ts, track=4352\n");
+       if(!strcmp(use_profile, "bluray_truehd.m2ts"))
+       fprintf(fp,"A_MLP, bd.m2ts, track=4352\n");
        fprintf(fp,"\n");
        fclose(fp);
 
@@ -962,6 +973,7 @@ void CreateBD_GUI::update()
        need_wide_audio->set_value(thread->use_wide_audio);
        need_labeled->set_value(thread->use_labeled);
        need_farmed->set_value(thread->use_farmed);
+       need_tsmuxer->set_value(thread->use_tsmuxer);
 }
 
 int CreateBD_Thread::
@@ -1011,6 +1023,7 @@ option_presets()
        use_wide_audio = 0;
        use_labeled = 0;
        use_farmed = 0;
+       use_tsmuxer = 0;
 
        if( !mwindow->edl ) return 1;
 
@@ -1219,6 +1232,7 @@ CreateBD_Profile::CreateBD_Profile(CreateBD_GUI *gui, int x, int y)
  : BC_PopupTextBox(gui, 0, 0, x, y, xS(170),yS(50))
 {
        this->gui = gui;
+       strcpy(gui->thread->use_profile, "bluray.m2ts");
 }
 
 CreateBD_Profile::~CreateBD_Profile()