[Cin] megapile 12 (freebsd, ffmpeg 5, dynamic build, opencv trim)

Andrew Randrianasulu randrianasulu at gmail.com
Mon May 2 21:51:49 CEST 2022


does this patch fix 0ch issue without breaking other cases?

$ git diff bdwrite.C
diff --git a/cinelerra-5.1/cinelerra/bdwrite.C
b/cinelerra-5.1/cinelerra/bdwrite.C
index 1017c169..cebee789 100644
--- a/cinelerra-5.1/cinelerra/bdwrite.C
+++ b/cinelerra-5.1/cinelerra/bdwrite.C
@@ -2639,6 +2639,8 @@ int media_info::scan()
       break; }
     case AVMEDIA_TYPE_AUDIO: {
       s->coding_type = bd_coding_type(codec_id);
+ if (st->codecpar->channels == 0) // truehd + 0ch core ac3
+ break;
       s->format = bd_audio_format(st->codecpar->channels);
       s->rate = bd_audio_rate(st->codecpar->sample_rate);
       strcpy((char*)s->lang, "eng");
$



On Monday, May 2, 2022, Andrew Randrianasulu <randrianasulu at gmail.com>
wrote:

>
>
> On Monday, May 2, 2022, Phyllis Smith <phylsmith2017 at gmail.com> wrote:
>
>> Andrew, what other software has to be installed to get Truehd to work?
>> Andrea does not get the error I do so there must be something additional
>> that has to be installed.  We need to know for documentation.
>>
>
> i tried with tsmuxer, but I guess bdwrite need some more logic to deal
> with it too...
>
>
> without bdwrite we do not have burnable bluray disk image, just stream
> alone (some modern players play those anyway..)
>
>
>> On Mon, May 2, 2022 at 12:42 PM Andrew Randrianasulu <
>> randrianasulu at gmail.com> wrote:
>>
>>> well, this is not exactly what we hoped for.. in this case.
>>>
>>> sorry TWO issues going on
>>>
>>> 1) tsmuxer choke on ffmpeg's lpcm as encoded without ONE MORE PATCH..
>>>
>>> 2) truehd encoder in ffmoeg may trip bdwrite...
>>>
>>> for truehd encoder you need to either uncomment line in bdcreate.C {with
>>> truehd profile, in /* */ pair..} or manually choose audio when batch render
>>> window come up...
>>>
>>> On Monday, May 2, 2022, Andrea paz <gamberucci.andrea at gmail.com> wrote:
>>>
>>>> > can you confirm it contain trueHD audio (run mediainfo)?
>>>>
>>>> ffprobe:
>>>> Stream #0:1[0x1100](ita): Audio: pcm_bluray ([128][0][0][0] / 0x0080),
>>>> 48000 Hz, stereo, s16, 1536 kb/s
>>>>
>>>> mediainfo:
>>>> Audio
>>>> ID                                       : 4352 (0x1100)
>>>> Menu ID                                  : 1 (0x1)
>>>> Format                                   : PCM
>>>> Format settings                          : Big / Signed
>>>> Muxing mode                              : Blu-ray
>>>> Codec ID                                 : 128
>>>> Duration                                 : 38 s 240 ms
>>>> Bit rate mode                            : Constant
>>>> Bit rate                                 : 1 536 kb/s
>>>> Channel(s)                               : 2 channels
>>>> Channel layout                           : L R
>>>> Sampling rate                            : 48.0 kHz
>>>> Bit depth                                : 16 bits
>>>> Stream size                              : 7.00 MiB (16%)
>>>> Language                                 : Italian
>>>>
>>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20220502/27bf5a20/attachment-0001.htm>


More information about the Cin mailing list