justdan96 / tsMuxer

tsMuxer is a transport stream muxer for remuxing/muxing elementary streams, EVO/VOB/MPG, MKV/MKA, MP4/MOV, TS, M2TS to TS to M2TS. Supported video codecs H.264/AVC, H.265/HEVC, VC-1, MPEG2. Supported audio codecs AAC, AC3 / E-AC3(DD+), DTS/ DTS-HD.
Apache License 2.0
853 stars 144 forks source link

"Reading buffer overflow. " for relatively long media? #589

Closed Randrianasulu closed 2 years ago

Randrianasulu commented 2 years ago

We still trying to integrate tsmuxer into Cinelerra-gg

We run into (non-fatal, resulting iso still plays in two standalone players) warning.

Appimage https://cinelerra-gg.org/download/testing/cin-x86_64.AppImage

Files - bd.m2ts, bd.meta, bd.iso, and bbb-1920x1080-cfg06.mkv test file - are at: https://cinelerra-gg.org/download/testing/tsmuxer_problem_files.tar (1.6GB)

output: tsMuxeR version 2.6.16-dev. github.com/justdan96/tsMuxer Decoding H264 stream (track 1): Profile: High@4.1 Resolution: 1920:1080i Frame rate: 29.97 H.264 muxing fps is not set. Get fps from stream. Value: 29.97 0.0% complete Decoding LPCM stream (track 2): Bitrate: 4608Kbps Sample Rate: 48KHz Channels: 5.1 Bits per sample: 16bit 18.2% complete Finalize ISO disk Reading buffer overflow. Possible container streams are not syncronized. Please, verify stream fps. File name: /tmp/bd_20220427-090605/bd.m2ts

(not sure why version just 2.6.16-dev - it was self-compiled but not by me from tsmuxer-master.zip... )

shorter test clips (1 and 1:30 min) do not produce such warning...

edit: tsmuxer was compiled at April 24

jcdr428 commented 2 years ago

@Randrianasulu are you sure that the fps is not forced to a framerate different from 29.97 in the mkv container ?

Randrianasulu commented 2 years ago

On Thursday, April 28, 2022, jcdr428 @.***> wrote:

@Randrianasulu https://github.com/Randrianasulu are you sure that the fps is not forced to a framerate different from 29.97 in the mkv container ?

in theory fps should be already interpolated from source media to project fps... but our branch of Cinelerra does not handle variable fps sources. Is there easy way to detect this fact with ffprobe/mediainfo?

— Reply to this email directly, view it on GitHub https://github.com/justdan96/tsMuxer/issues/589#issuecomment-1112175036, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJSS7TNUHCMLKX4IFQD2XADVHJ42BANCNFSM5UQYU6AQ . You are receiving this because you were mentioned.Message ID: @.***>

jcdr428 commented 2 years ago

@Randrianasulu in Mediainfo, the first paragraph is the container info, the second is the h264 stream info. Could you please check whether they report different fps values.

Randrianasulu commented 2 years ago

mediainfo bbb-1920x1080-cfg06.mkv General Unique ID : 126197960465771856333181809182337182035 (0x5EF0D7D547FBEF0F163C451D6130A953) Complete name : bbb-1920x1080-cfg06.mkv Format : Matroska Format version : Version 4 File size : 152 MiB Duration : 10 min 34 s Overall bit rate : 2 012 kb/s Encoded date : UTC 2014-04-28 08:01:55 Writing application : mkvmerge v6.8.0 ('Theme for Great Cities') 64bit built on Mar 5 2014 14:50:33 Writing library : libebml v1.3.0 + libmatroska v1.4.1

Video ID : 1 Format : HEVC Format/Info : High Efficiency Video Coding Format profile : Main Codec ID : V_MPEGH/ISO/HEVC Duration : 10 min 34 s Width : 1 920 pixels Height : 1 080 pixels Display aspect ratio : 16:9 Frame rate mode : Constant Frame rate : 60.000 FPS Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Language : English Default : Yes Forced : No

Audio ID : 2 Format : AAC LC Format/Info : Advanced Audio Codec Low Complexity Codec ID : A_AAC-2 Duration : 10 min 34 s Channel(s) : 6 channels Channel layout : C L R Ls Rs LFE Sampling rate : 48.0 kHz Frame rate : 46.875 FPS (1024 SPF) Compression mode : Lossy Default : Yes Forced : No

(from my x86 machine)

I guess our internal conversion 60->29.97 might be problematic....

On Thursday, April 28, 2022, jcdr428 @.***> wrote:

@Randrianasulu https://github.com/Randrianasulu in Mediainfo, the first paragraph is the container info, the second is the h264 stream info. Could you please check whether they report different fps values.

— Reply to this email directly, view it on GitHub https://github.com/justdan96/tsMuxer/issues/589#issuecomment-1112308275, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJSS7TLOMTRDX56QGARDIJLVHKKCPANCNFSM5UQYU6AQ . You are receiving this because you were mentioned.Message ID: @.***>

Randrianasulu commented 2 years ago

m2ts file as encoded by Cinelerra-gg (real input for tsmuxer where it chokes) shows up as

mediainfo bd.m2ts General ID : 1 (0x1) Complete name : bd.m2ts Format : BDAV Format/Info : Blu-ray Video File size : 1.14 GiB Duration : 10 min 33 s Overall bit rate mode : Variable Overall bit rate : 15.4 Mb/s

Video ID : 4113 (0x1011) Menu ID : 1 (0x1) Format : AVC Format/Info : Advanced Video Codec Format profile : @.** Format settings : CABAC / 3 Ref Frames Format settings, CABAC : Yes Format settings, Reference frames : 3 frames Codec ID : 27 Duration : 10 min 34 s Bit rate mode : Variable Bit rate : 10 000 kb/s Maximum bit rate : 40.0 Mb/s Width : 1 920 pixels Height : 1 080 pixels Display aspect ratio : 16:9 Frame rate : 29.970 (30000/1001) FPS Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : MBAFF Scan type, store method : Interleaved fields Scan order : Top Field First Bits/(PixelFrame) : 0.161 Stream size : 771 MiB (66%) Writing library : x264 core 164 Encoding settings : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=8 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=6 / lookahead_threads=1 / sliced_threads=0 / slices=4 / nr=0 / decimate=1 / interlaced=tff / bluray_compat=1 / constrained_intra=0 / bframes=2 / b_pyramid=1 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=0 / keyint=25 / keyint_min=1 / scenecut=40 / intra_refresh=0 / rc_lookahead=25 / rc=abr / mbtree=1 / bitrate=10000 / ratetol=1.0 / qcomp=0.60 / qpmin=3 / qpmax=33 / qpstep=4 / vbv_maxrate=40000 / vbv_bufsize=30000 / nal_hrd=vbr / filler=0 / ip_ratio=1.40 / aq=1:1.00 Color range : Limited Color primaries : BT.709 Transfer characteristics : BT.709 Matrix coefficients : BT.709

Audio ID : 4352 (0x1100) Menu ID : 1 (0x1) Format : PCM Format settings : Big / Signed Muxing mode : Blu-ray Codec ID : 128 Duration : 10 min 34 s Bit rate mode : Constant Bit rate : 4 608 kb/s Channel(s) : 6 channels Channel layout : L R C Ls Rs LFE Sampling rate : 48.0 kHz Bit depth : 16 bits Stream size : 349 MiB (30%) Language : Russian

because there is no way to store 60 fps video on standard Blu-ray disk? (need to look into this)

On Thursday, April 28, 2022, Andrew Randrianasulu @.***> wrote:

mediainfo bbb-1920x1080-cfg06.mkv General Unique ID : 126197960465771856333181809182337182035 ( 0x5EF0D7D547FBEF0F163C451D6130A953) Complete name : bbb-1920x1080-cfg06.mkv Format : Matroska Format version : Version 4 File size : 152 MiB Duration : 10 min 34 s Overall bit rate : 2 012 kb/s Encoded date : UTC 2014-04-28 08:01:55 Writing application : mkvmerge v6.8.0 ('Theme for Great Cities') 64bit built on Mar 5 2014 14:50:33 Writing library : libebml v1.3.0 + libmatroska v1.4.1

Video ID : 1 Format : HEVC Format/Info : High Efficiency Video Coding Format profile : Main Codec ID : V_MPEGH/ISO/HEVC Duration : 10 min 34 s Width : 1 920 pixels Height : 1 080 pixels Display aspect ratio : 16:9 Frame rate mode : Constant Frame rate : 60.000 FPS Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Language : English Default : Yes Forced : No

Audio ID : 2 Format : AAC LC Format/Info : Advanced Audio Codec Low Complexity Codec ID : A_AAC-2 Duration : 10 min 34 s Channel(s) : 6 channels Channel layout : C L R Ls Rs LFE Sampling rate : 48.0 kHz Frame rate : 46.875 FPS (1024 SPF) Compression mode : Lossy Default : Yes Forced : No

(from my x86 machine)

I guess our internal conversion 60->29.97 might be problematic....

On Thursday, April 28, 2022, jcdr428 @.***> wrote:

@Randrianasulu https://github.com/Randrianasulu in Mediainfo, the first paragraph is the container info, the second is the h264 stream info. Could you please check whether they report different fps values.

— Reply to this email directly, view it on GitHub https://github.com/justdan96/tsMuxer/issues/589#issuecomment-1112308275, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJSS7TLOMTRDX56QGARDIJLVHKKCPANCNFSM5UQYU6AQ . You are receiving this because you were mentioned.Message ID: @.***>

jcdr428 commented 2 years ago

@Randrianasulu I confirm, Blu-Ray is not compatible with 60 fps.

Randrianasulu commented 2 years ago

if I demux audio out of ts container with

ffmpeg -i bd.m2ts -c:v none -c:a pcm_s16le bd.wav

and use this in meta file as sound source muxing completes to 100%.

I see there is 192Mb buffer in metademuxer.cpp - does ts demuxer/lpcm demuxer tandem try to decode full (365 mb) audio stream in our case and thus fail?

I tried to increase this buffer to 256 mb but this not fixed issue.. and setting it to 25-50-100 gb obviously not an answer...

jcdr428 commented 2 years ago

@ValZapod correct, the UHD could be converted to 1080p hevc instead of avc, and muxed as Blu-ray.

jcdr428 commented 2 years ago

@Randrianasulu the warning is not linked to the buffer size, it is linked to the PTS gap.

Randrianasulu commented 2 years ago

well, increasing MAX_DEMUX_NUFFER_SIZE to 512 mb fixes issue with this (10 min long!) stream... does this ring a bell?

@.***:/mnt/sdb2/tmp/bd_20220429-080325$ bd.sh ++ dirname ./bd.sh

===

diff --git a/tsMuxer/metaDemuxer.cpp b/tsMuxer/metaDemuxer.cpp index 2827cbe..71b6bc8 100644 --- a/tsMuxer/metaDemuxer.cpp +++ b/tsMuxer/metaDemuxer.cpp @@ -36,7 +36,7 @@

using namespace std;

-const static int MAX_DEMUX_BUFFER_SIZE = 1024 1024 192; +const static int MAX_DEMUX_BUFFER_SIZE = 1024 1024 512; const static int MIN_READED_BLOCK = 16384;

METADemuxer::METADemuxer(const BufferedReaderManager& readManager)

===

On Friday, April 29, 2022, jcdr428 @.***> wrote:

@Randrianasulu https://github.com/Randrianasulu the warning is not linked to the buffer size, it is linked to the PTS gap.

— Reply to this email directly, view it on GitHub https://github.com/justdan96/tsMuxer/issues/589#issuecomment-1113262779, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJSS7TKCWVQB6GTQCGIVTH3VHPCS5ANCNFSM5UQYU6AQ . You are receiving this because you were mentioned.Message ID: @.***>

jcdr428 commented 2 years ago

@Randrianasulu with a 192 MB buffer, an overflow basically means that, having read a video frame, tsMuxer has to read the equivalent of 1 million 192-byte packets before finding the corresponding audio frame with the same presentation time: this is already very large and the sign of totally desynchronized streams. You need to revise your 60fps HEVC to 29.97pfs AVC transcoding.

Randrianasulu commented 2 years ago

On Monday, May 2, 2022, jcdr428 @.***> wrote:

@Randrianasulu https://github.com/Randrianasulu with a 192 MB buffer, an overflow basically means that, having read a video frame, tsMuxer has to read the equivalent of 1 million 192-byte packets before finding the corresponding audio frame with the same presentation time: this is already very large and the sign of totally desynchronized streams. You need to revise your 60fps HEVC to 29.97pfs AVC transcoding.

well, for some reason it worked with ac3 audio...

may be our ffmpeg patches to blame, but without them ffmpeg's mpegts output even with m2ts option not recognized by Bluray players...

do you know by chance where I can find pre-cut m2ts with 5.1 lpcm sound for more testing?

Reply to this email directly, view it on GitHub https://github.com/justdan96/tsMuxer/issues/589#issuecomment-1115070099, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJSS7TNG7SAWTHMFJMFJNODVH7VHVANCNFSM5UQYU6AQ . You are receiving this because you were mentioned.Message ID: @.***>

Randrianasulu commented 2 years ago

@jcdr428 ah found some..

http://streams.videolan.org/issues/8526/

at least 00064.m2ts muxes ok...

so, I guess ffmpeg's mpegts muxer to blame...

Randrianasulu commented 2 years ago

interesting enough encoding sample with ffmpeg git result in same overflow....

sample:

wget -c http://streams.videolan.org/issues/8526/00064.m2ts

ffmpeg command

/home/guest/ffmpeg/ffmpeg -i 00064.m2ts -c:v copy -c:a pcm_bluray -mpegts_m2ts_mode 1 00064-1.m2ts

{posted to wrong issue..}

Randrianasulu commented 2 years ago
<opy -c:a pcm_bluray -mpegts_m2ts_mode 1 00064-1.m2ts
ffmpeg version git-2022-05-02-b67572c Copyright (c) 2000-2022 the FFmpeg developers
  built with gcc 11.2.0 (GCC)
  configuration:
  libavutil      57. 24.101 / 57. 24.101
  libavcodec     59. 27.100 / 59. 27.100
  libavformat    59. 23.100 / 59. 23.100
  libavdevice    59.  6.100 / 59.  6.100
  libavfilter     8. 37.100 /  8. 37.100
  libswscale      6.  6.100 /  6.  6.100
  libswresample   4.  6.100 /  4.  6.100
Input #0, mpegts, from '00064.m2ts':
  Duration: 00:03:18.70, start: 600.000000, bitrate: 37427 kb/s
  Program 1
  Stream #0:0[0x1011]: Video: h264 (High) (HDMV / 0x564D4448), yuv420p(tv, bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 59.94 tbr, 90k tbn
  Stream #0:1[0x1100]: Audio: pcm_bluray (HDMV / 0x564D4448), 48000 Hz, 7.1, s16, 6144 kb/s
File '00064-1.m2ts' already exists. Overwrite? [y/N] y
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (pcm_bluray (native) -> pcm_bluray (native))
Press [q] to stop, [?] for help
Output #0, mpegts, to '00064-1.m2ts':
  Metadata:
    encoder         : Lavf59.23.100
  Stream #0:0: Video: h264 (High) (HDMV / 0x564D4448), yuv420p(tv, bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 29.97 fps, 59.94 tbr, 90k tbn
  Stream #0:1: Audio: pcm_bluray, 48000 Hz, 7.1, s16, 128 kb/s
    Metadata:
      encoder         : Lavc59.27.100 pcm_bluray
frame=    1 fps=0.0 q=-1.0 size=       0kB time=00:00:00.00 bitrate=N/Aframe=   97 fps=0.0 q=-1.0 size=    6144kB time=00:00:01.56 bitrate=320frame=  661 fps=649 q=-1.0 size=   49152kB time=00:00:10.97 bitrate=366frame= 1275 fps=839 q=-1.0 size=   96256kB time=00:00:21.22 bitrate=371frame= 1762 fps=872 q=-1.0 size=  133376kB time=00:00:29.34 bitrate=372frame= 2277 fps=904 q=-1.0 size=  172288kB time=00:00:37.93 bitrate=372frame= 2757 fps=913 q=-1.0 size=  208896kB time=00:00:45.94 bitrate=372frame= 3223 fps=915 q=-1.0 size=  244224kB time=00:00:53.72 bitrate=372frame= 3659 fps=909 q=-1.0 size=  277760kB time=00:01:00.99 bitrate=373frame= 4049 fps=895 q=-1.0 size=  307456kB time=00:01:07.50 bitrate=373frame= 4140 fps=817 q=-1.0 size=  314368kB time=00:01:09.01 bitrate=373frame= 4218 fps=754 q=-1.0 size=  320256kB time=00:01:10.32 bitrate=373frame= 4393 fps=719 q=-1.0 size=  335104kB time=00:01:13.24 bitrate=374frame= 4441 fps=672 q=-1.0 size=  337408kB time=00:01:14.04 bitrate=373frame= 4656 fps=655 q=-1.0 size=  354048kB time=00:01:17.62 bitrate=373frame= 4793 fps=630 q=-1.0 size=  364032kB time=00:01:19.91 bitrate=373frame= 4879 fps=599 q=-1.0 size=  370688kB time=00:01:21.34 bitrate=373frame= 5069 fps=586 q=-1.0 size=  385024kB time=00:01:24.51 bitrate=373frame= 5181 fps=566 q=-1.0 size=  393984kB time=00:01:26.38 bitrate=373frame= 5315 fps=547 q=-1.0 size=  403968kB time=00:01:28.62 bitrate=373frame= 5333 fps=521 q=-1.0 size=  405248kB time=00:01:28.92 bitrate=373frame= 5353 fps=498 q=-1.0 size=  407296kB time=00:01:29.25 bitrate=373frame= 5357 fps=472 q=-1.0 size=  407296kB time=00:01:29.32 bitrate=373frame= 5377 fps=453 q=-1.0 size=  408576kB time=00:01:29.65 bitrate=373frame= 5401 fps=435 q=-1.0 size=  410624kB time=00:01:30.05 bitrate=373frame= 5461 fps=423 q=-1.0 size=  415232kB time=00:01:31.05 bitrate=373frame= 5491 fps=408 q=-1.0 size=  417280kB time=00:01:31.55 bitrate=373frame= 5504 fps=391 q=-1.0 size=  418304kB time=00:01:31.77 bitrate=373frame= 5658 fps=386 q=-1.0 size=  430080kB time=00:01:34.34 bitrate=373frame= 5669 fps=372 q=-1.0 size=  430592kB time=00:01:34.52 bitrate=373frame= 5689 fps=361 q=-1.0 size=  432384kB time=00:01:34.86 bitrate=373frame= 5820 fps=358 q=-1.0 size=  442368kB time=00:01:37.04 bitrate=373frame= 5914 fps=351 q=-1.0 size=  449536kB time=00:01:38.61 bitrate=373frame= 5921 fps=341 q=-1.0 size=  450048kB time=00:01:38.73 bitrate=373frame= 5939 fps=331 q=-1.0 size=  451328kB time=00:01:39.03 bitrate=373frame= 5961 fps=321 q=-1.0 size=  453120kB time=00:01:39.39 bitrate=373frame= 5981 fps=313 q=-1.0 size=  454656kB time=00:01:39.73 bitrate=373frame= 6015 fps=306 q=-1.0 size=  457472kB time=00:01:40.30 bitrate=373frame= 6047 fps=300 q=-1.0 size=  459520kB time=00:01:40.83 bitrate=373frame= 6061 fps=291 q=-1.0 size=  461056kB time=00:01:41.06 bitrate=373frame= 6101 fps=284 q=-1.0 size=  463616kB time=00:01:41.73 bitrate=373frame= 6141 fps=279 q=-1.0 size=  466944kB time=00:01:42.40 bitrate=373frame= 6169 fps=271 q=-1.0 size=  468992kB time=00:01:42.86 bitrate=373frame= 6192 fps=265 q=-1.0 size=  471040kB time=00:01:43.25 bitrate=373frame= 6252 fps=262 q=-1.0 size=  475648kB time=00:01:44.25 bitrate=373frame= 6587 fps=270 q=-1.0 size=  500736kB time=00:01:49.84 bitrate=373frame= 7168 fps=288 q=-1.0 size=  545024kB time=00:01:59.53 bitrate=373frame= 7901 fps=312 q=-1.0 size=  601088kB time=00:02:11.76 bitrate=373frame= 8628 fps=334 q=-1.0 size=  656384kB time=00:02:23.89 bitrate=373frame= 9385 fps=356 q=-1.0 size=  713984kB time=00:02:36.52 bitrate=373frame= 9941 fps=370 q=-1.0 size=  756480kB time=00:02:45.79 bitrate=373frame=10301 fps=376 q=-1.0 size=  783872kB time=00:02:51.80 bitrate=373frame=10411 fps=373 q=-1.0 size=  792320kB time=00:02:53.64 bitrate=373frame=10608 fps=373 q=-1.0 size=  807168kB time=00:02:56.92 bitrate=373frame=10665 fps=368 q=-1.0 size=  811520kB time=00:02:57.87 bitrate=373frame=10853 fps=368 q=-1.0 size=  825856kB time=00:03:01.01 bitrate=373frame=10929 fps=365 q=-1.0 size=  831488kB time=00:03:02.28 bitrate=373frame=11177 fps=366 q=-1.0 size=  850944kB time=00:03:06.41 bitrate=373frame=11363 fps=364 q=-1.0 size=  864768kB time=00:03:09.52 bitrate=373frame=11561 fps=365 q=-1.0 size=  879872kB time=00:03:12.82 bitrate=373frame=11721 fps=363 q=-1.0 size=  892160kB time=00:03:15.49 bitrate=373frame=11760 fps=359 q=-1.0 size=  895232kB time=00:03:16.14 bitrate=373frame=11910 fps=362 q=-1.0 Lsize=  907446kB time=00:03:18.70 bitrate=37412.2kbits/s speed=6.04x
video:718070kB audio:149064kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 4.648884%
guest@slax:/mnt/sdb2/tmp$ cat bd.sh
#!/bin/bash -ex
sdir=`dirname $0`
dir=`cd "$sdir"; pwd`
PATH=$PATH:/root/cinelerra/cinelerra-5.1/bin
mkdir -p $dir/udfs
sz=`du -cb $dir/bd.m2ts* | tail -1 | sed -e 's/[        ].*//'`
blks=$((sz/2048 + 4096))
rm -f $dir/bd.udfs
if [ -f $dir/bd.meta ]; then
#sed -i "s|bd.m2ts|$dir/bd.m2ts|g" $dir/bd.meta
tsmuxer $dir/bd.meta $dir/bd.iso
mv $dir/bd.iso $dir/bd.udfs
else
mkudffs -b 2048 $dir/bd.udfs $blks
mount -t udf -o loop $dir/bd.udfs $dir/udfs
bdwrite $dir/udfs $dir/bd.m2ts*
umount $dir/udfs
fi
echo To burn bluray, load writable media and run:
echo for WORM: growisofs -dvd-compat -Z /dev/bd=$dir/bd.udfs
echo for RW:   dd if=$dir/bd.udfs of=/dev/bd bs=2048000
kill $$

guest@slax:/mnt/sdb2/tmp$ cat bd.meta
MUXOPT --blu-ray --hdmv-descriptors
V_MPEG4/ISO/AVC, /mnt/sdb2/tmp/00064-1.m2ts, track=4113, contSPS
A_LPCM, /mnt/sdb2/tmp/00064-1.m2ts, track=4352

guest@slax:/mnt/sdb2/tmp$ ./bd.sh
++ dirname ./bd.sh
+ sdir=.
++ cd .
++ pwd
+ dir=/mnt/sdb2/tmp
+ PATH=/usr/local/bin:/usr/bin:/bin:/usr/X11R7/bin:/usr/games:/usr/lib/java/bin:/bin:/opt/kde3/bin:.:/root/cinelerra/cinelerra-5.1/bin
+ mkdir -p /mnt/sdb2/tmp/udfs
++ tail -1
++ sed -e 's/[  ].*//'
++ du -cb '/mnt/sdb2/tmp/bd.m2ts*'
du: ���������� �������� ������ � '/mnt/sdb2/tmp/bd.m2ts*': ��� ������ ����� ��� ��������
+ sz=0
+ blks=4096
+ rm -f /mnt/sdb2/tmp/bd.udfs
+ '[' -f /mnt/sdb2/tmp/bd.meta ']'
+ tsmuxer /mnt/sdb2/tmp/bd.meta /mnt/sdb2/tmp/bd.iso
tsMuxeR version git-631be21. github.com/justdan96/tsMuxer
Decoding H264 stream (track 1): Profile: High@4.1  Resolution: 1920:1080i  Frame rate: 29.97
H.264 muxing fps is not set. Get fps from stream. Value: 29.97
B-pyramid level 2 detected. Shift DTS to 3 frames
5.7% complete
Finalize ISO disk
Reading buffer overflow. Possible container streams are not syncronized. Please, verify stream fps. File name: /mnt/sdb2/tmp/00064-1.m2ts
guest@slax:/mnt/sdb2/tmp$

from ssh session to x86 laptop...

Randrianasulu commented 2 years ago

fix already there

https://git.ffmpeg.org/gitweb/ffmpeg.git/blobdiff/b67572c7c707d508b15ce0543519208cf5d1fcfb..a84b95dc08da1174b4477e6250077bf22bb543b0:/libavcodec/pcm-blurayenc.c

Randrianasulu commented 2 years ago

I think this one can be closed (not tsmuxer bug).

Sorry for two not your bugs in row!

jcdr428 commented 2 years ago

Well, there are less and less issues coming from tsMuxer. At least it shows that tsMuxer becomes robust !

Closing.