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
830 stars 140 forks source link

Do not append file #815

Open moveman opened 6 months ago

moveman commented 6 months ago

In file system like Goofys and MountPoint for S3, we cannot append file. Hence, we cannot use tsMuxeR there. To overcome this, we should not use append.

moveman commented 2 months ago

Hi, may I know why we need to close and reopen the output file for writting? Thanks.

jcdr428 commented 1 month ago

Hi, may I know why we need to close and reopen the output file for writting? Thanks.

I guess the file is initially in "write" mode only, so needs to be closed and reopened in "write + append" mode.

moveman commented 1 month ago

Why not just write all the things in write mode?

在 2024年5月7日週二 01:33,jcdr428 @.***> 寫道:

Hi, may I know why we need to close and reopen the output file for writting? Thanks.

I guess the file is initially in "write" mode only, so needs to be closed and reopened in "write + append" mode.

— Reply to this email directly, view it on GitHub https://github.com/justdan96/tsMuxer/pull/815#issuecomment-2096561892, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADENXX4CB44ZXG2GFMNNXWLZA65GTAVCNFSM6AAAAABBD4PC2CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJWGU3DCOBZGI . You are receiving this because you authored the thread.Message ID: @.***>