}
- 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);
+ switch(avctx->sample_fmt) {
+ case AV_SAMPLE_FMT_S16:
+ avctx->bits_per_coded_sample = 16;
-+ frame_size = 120;
++ frame_size = 240;
+ quant =1;
+ break;
+ case AV_SAMPLE_FMT_S32:
+ avctx->bits_per_coded_sample = 24;
-+ frame_size = 180;
++ frame_size = 360;
+ quant =3;
+ break;
+ default:
freq = 1;
break;
case 96000:
-+ frame_size *= 2;
++ //frame_size *= 2;
freq = 4;
break;
case 192000:
- freq = 5;
- break;
-+ frame_size *= 4;
++ //frame_size *= 4;
+ freq = 5;
+ break;
+ default:
- case AV_SAMPLE_FMT_S16:
- avctx->bits_per_coded_sample = 16;
- quant = 1;
-+ frame_size *= avctx->channels;
++ //frame_size *= avctx->channels;
+
+ switch (avctx->channel_layout) {
+ case AV_CH_LAYOUT_MONO: