This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

[BUG] Hybrid fails to extract tx3g subtitles from a mp4 container
#7
I can reproduce the issue.
Will look into it.
One problem: looking at the file in a MPC-HC I see no subtitles for the first subtitle track.
Analyzing the file with MP4Box:
* Movie Info *
        Timescale 600 - 7 tracks
        Computed Duration 00:06:10.411 - Indicated Duration 00:06:10.411
        Fragmented File: no
        File suitable for progressive download (moov before mdat)
        File Brand isom - version 1
                Compatible brands: isom
        Created: GMT Mon Dec 28 20:41:56 2020
        Modified: GMT Mon Dec 28 20:41:56 2020

File has root IOD (9 bytes)
Scene PL 0xff - Graphics PL 0xff - OD PL 0xff
Visual PL: Not part of MPEG-4 Visual profiles (0xfe)
Audio PL: Not part of MPEG-4 audio profiles (0xfe)
No streams included in root OD

Track # 1 Info - TrackID 1 - TimeScale 90000
Media Duration 00:06:10.369 - Indicated Duration 00:06:10.369
Media Info: Language "Undetermined (und)" - Type "vide:avc1" - 8880 samples
Visual Sample Entry Info: width=1918 height=1080 (depth=24 bits)
Visual Track layout: x=0 y=0 width=1918 height=1080
MPEG-4 Config: Visual Stream - ObjectTypeIndication 0x21
AVC/H264 Video - Visual Size 1918 x 1080
        AVC Info: 1 SPS - 1 PPS - Profile High @ Level 4.1
        NAL Unit length bits: 32
        Pixel Aspect Ratio 1:1 - Indicated track size 1918 x 1080
        Chroma format YUV 4:2:0 - Luma bit depth 8 - chroma bit depth 8
        SPS#1 hash: E4541CFCC32BF4EB9EB9A3D26E642B5B4A3B822C
        PPS#1 hash: DB21ED7C621CDEF25CC891200B5A104273B15E6A
Self-synchronized
        RFC6381 Codec Parameters: avc1.640029
        Average GOP length: 83 samples
        Max sample duration: 3754 / 90000

Track # 2 Info - TrackID 2 - TimeScale 48000
Media Duration 00:06:10.410 - Indicated Duration 00:06:10.410
Media Info: Language "Italian (ita)" - Type "soun:mp4a" - 17363 samples
1 UDTA types: name (1)
MPEG-4 Config: Audio Stream - ObjectTypeIndication 0x40
MPEG-4 Audio AAC LC (AOT=2 implicit) - 2 Channel(s) - SampleRate 48000
Synchronized on stream 1
        RFC6381 Codec Parameters: mp4a.40.2
Alternate Group ID 1
        All samples are sync
        Max sample duration: 1024 / 48000

Track # 3 Info - TrackID 3 - TimeScale 48000
Media Duration 00:06:10.410 - Indicated Duration 00:06:10.410
Track is disabled
Media Info: Language "English (eng)" - Type "soun:mp4a" - 17363 samples
1 UDTA types: name (1)
        Surround

MPEG-4 Config: Audio Stream - ObjectTypeIndication 0x40
MPEG-4 Audio AAC LC (AOT=2 implicit) - 6 Channel(s) - SampleRate 48000
Synchronized on stream 1
        RFC6381 Codec Parameters: mp4a.40.2
Alternate Group ID 1
        All samples are sync
        Max sample duration: 1024 / 48000

Track # 4 Info - TrackID 4 - TimeScale 90000
Media Duration 00:06:10.411 - Indicated Duration 00:06:10.411
Media Info: Language "Italian (ita)" - Type "sbtl:tx3g" - 1 samples
Unknown Text Stream
Size 1918 x 60 - Translation X=0 Y=0 - Layer 0
        RFC6381 Codec Parameters: tx3g
Alternate Group ID 3
        All samples are sync
        Max sample duration: 33337053 / 90000

Track # 5 Info - TrackID 5 - TimeScale 90000
Media Duration 00:06:08.259 - Indicated Duration 00:06:08.259
Track is disabled
Media Info: Language "Italian (ita)" - Type "sbtl:tx3g" - 57 samples
Unknown Text Stream
Size 1918 x 60 - Translation X=0 Y=0 - Layer 0
        RFC6381 Codec Parameters: tx3g
Alternate Group ID 3
        All samples are sync
        Max sample duration: 20789730 / 90000

Track # 6 Info - TrackID 6 - TimeScale 90000
Media Duration 00:06:08.335 - Indicated Duration 00:06:08.335
Track is disabled
Media Info: Language "English (eng)" - Type "sbtl:tx3g" - 61 samples
Unknown Text Stream
Size 1918 x 60 - Translation X=0 Y=0 - Layer 0
        RFC6381 Codec Parameters: tx3g
Alternate Group ID 3
        All samples are sync
        Max sample duration: 20789730 / 90000

Track # 7 Info - TrackID 7 - TimeScale 1000
Media Duration 00:05:09.351 - Indicated Duration 00:05:09.351
Track is disabled
Media Info: Language "Undetermined (und)" - Type "text:text" - 3 samples
Unknown Text Stream
Size 0 x 0 - Translation X=0 Y=0 - Layer 0
        RFC6381 Codec Parameters: text
        All samples are sync
        Max sample duration: 205497 / 1000

Calling:
MP4Box.exe c:\Users\Selur\Desktop\x-files-08x01001.mp4 -srt 4 -out "e:\Output\test.srt"
Produces an empty output. (extracting the other streams works fine)
-> I'll look into Hybrid not freezing on extraction, but if the output is empty Hybrid will complain. Smile

Cu Selur
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply


Messages In This Thread
RE: Hybrid fails to extract tx3g subtitles from a mp4 container - by Selur - 29.12.2020, 08:51

Forum Jump:


Users browsing this thread: 3 Guest(s)