1

Topic: faulty durations according to media info

I have realized that Hybrid "went above" 100% during audio encoding again.
After a successfull encode (went to 100% with a correct mpls duration analysing), I then loaded the resulted mkv file into mediainfo, where:

- video duration was correct (1h 36min);
- audio streams' duration was not correct, they were 10 minutes longer than the video's duration (1h 49min);
- PGS streams' duration were not correct also, two times more than the video's (3h);

Any thought?
Now making for you some debug output...:)

2

Re: faulty durations according to media info

Any thought?
Now making for you some debug output...:)

Will ignore this thread until there are any decent infos in it,...

3 (edited by mparade 2017-05-12 19:13:19)

Re: faulty durations according to media info

Selur wrote:

Any thought?
Now making for you some debug output...:)

Will ignore this thread until there are any decent infos in it,...

Hallo,

Some more info:

I stopped the job after the audio encode.
Both audio stream extract and encode finished at around 110%! I assume this is indicated by media info with the difference between 1h 36 (the playlist I want to encode) and 1h 47 (the playlist I do not want to encode). I do not know why Hybrid is mixing a playlist in the procedure which has not been selected in the MPLSSelector. Additionally, I have no clue about, either where the 3h duration of the PGS streams comes from.

4

Re: faulty durations according to media info

ffmpeg reported that 7 or the mpls files might contain a clip:

00007.mpls
00100.mpls
00200.mpls
00201.mpls
00203.mpls
00204.mpls
00210.mpls

mplayer reported 11 title<>length entries:

 1 -> 11.315
 10 -> 1.089
 11 -> 1.089
 12 -> 1.089
 13 -> 1.089
 14 -> 6431.777
 15 -> 909.653
 16 -> 132.270
 17 -> 184.666
 18 -> 184.376
 19 -> 165.685
 2 -> 11.979
 20 -> 24.136
 21 -> 19.691
 22 -> 17.513
 23 -> 44.916
 24 -> 220.102
 25 -> 15.335
 26 -> 15.335
 27 -> 4.356
 3 -> 340.506
 4 -> 50.696
 5 -> 10.890
 6 -> 7.623
 7 -> 5807.609
 8 -> 1.089
 9 -> 1.089

Hybrid created a title <> mpls mapping:

mpls<>title mapping:
 00000 -> 1
 00002 -> 2
 00007 -> 3
 00009 -> 4
 00010 -> 5
 00020 -> 6
 00100 -> 7
 00110 -> 8
 00111 -> 9
 00112 -> 10
 00113 -> 11
 00114 -> 12
 00120 -> 13
 00200 -> 14
 00201 -> 15
 00202 -> 16
 00203 -> 17
 00204 -> 18
 00205 -> 19
 00206 -> 20
 00207 -> 21
 00208 -> 22
 00209 -> 23
 00210 -> 24
 00900 -> 25
 00901 -> 26
 00959 -> 27

Hybrid collected some data:

00007.mpls - 00:05:40.298 - Video: 1920x1080p/H.264; Chapters: 8; Subtitle: 0; vCount: 1; aCount: 0; size: 169.969MB
00100.mpls - 01:36:47.753 - Video: 1920x1080p/H.264; Chapters: 9; Subtitle: 26; vCount: 2; aCount: 11; Audio: eng/DTS-HD, zho/AC3, ces/AC3, heb/AC3, hun/AC3, pol/AC3, por/AC3, rus/AC3, tur/AC3, ukr/AC3, eng/AC3; : 00200.mpls - 01:47:11.086 - Video: 1920x1080p/H.264; Chapters: 9; Subtitle: 26; vCount: 2; aCount: 11; Audio: eng/DTS-HD, zho/AC3, ces/AC3, heb/AC3, hun/AC3, pol/AC3, por/AC3, rus/AC3, tur/AC3, ukr/AC3, eng/AC3; : 00201.mpls - 00:15:09.950 - Video: 1920x1080p/H.264; Chapters: 2; Subtitle: 8; vCount: 1; aCount: 1; Audio: eng/AC3; size: 1319.92MB
00203.mpls - 00:03:04.642 - Video: 1920x1080p/H.264; Chapters: 2; Subtitle: 7; vCount: 1; aCount: 1; Audio: eng/AC3; size: 269.479MB
00204.mpls - 00:03:04.183 - Video: 1920x1080p/H.264; Chapters: 7; Subtitle: 0; vCount: 1; aCount: 1; Audio: eng/AC3; size: 171.035MB
00210.mpls - 00:03:40.470 - Video: 1920x1080p/H.264; Chapters: 2; Subtitle: 0; vCount: 1; aCount: 1; Audio: eng/AC3; size: 305.947MB

Hybrid then limited the titles to  00100.mpls, 00200.mpls, 00201.mpls.
You selected 00100.mpls which contains the following m2ts files:

00008.m2ts size in MB: 283.00000000
00136.m2ts size in MB: 1334.00000000
00137.m2ts size in MB: 256.00000000
00138.m2ts size in MB: 4106.00000000
00139.m2ts size in MB: 105.00000000
00140.m2ts size in MB: 3720.00000000
00141.m2ts size in MB: 81.00000000
00142.m2ts size in MB: 1912.00000000
00143.m2ts size in MB: 136.00000000
00144.m2ts size in MB: 7407.00000000
00145.m2ts size in MB: 87.00000000
00146.m2ts size in MB: 2774.00000000
00147.m2ts size in MB: 160.00000000
00148.m2ts size in MB: 1898.00000000

and Hybrid assumes that the input length is 01:36:47.753

for audio extraction Hybrid used:

"C:\PROGRA~1\Hybrid\ffmpeg.exe" -y -threads 12 -analyzeduration 100M -probesize 100M -i bluray:"D:\BD-50\2D\AZ ORZOK LEGENDAJA\LEGEND_OF_THE_GUARDIANS" -playlist 100 -angle 0 -map 0:1 -vn -sn -acodec copy -map_metadata -1 -metadata handler_name="Hybrid 2017.04.23.1" "C:\Users\BOGRDI~1\AppData\Local\Temp\iId_1_aid_4352_lang_eng_DELAY_-44ms_19_00_18_9910_01.dts"

which finished after 00:02:54.736min and created "C:\Users\BOGRDI~1\AppData\Local\Temp\iId_1_aid_4352_lang_eng_DELAY_-44ms_19_00_18_9910_01.dts" (size: 2962.95 MB)

Then started the audio reencoding using:

"C:\PROGRA~1\Hybrid\ffmpeg.exe" -y -threads 12 -loglevel fatal -i "C:\Users\BOGRDI~1\AppData\Local\Temp\iId_1_aid_4352_lang_eng_DELAY_-44ms_19_00_18_9910_01.dts" -ac 6 -ar 48000 -sample_fmt s32 -f sox - | "C:\PROGRA~1\Hybrid\sox.exe" --multi-threaded --ignore-length --temp "C:\Users\Bogárdi Mátyás\AppData\Local\Temp\19_00_18_991002" --buffer 524288 -S -t sox - -b 16 -t raw - |"C:\PROGRA~1\Hybrid\qaac.exe" --threading --raw --raw-channels 6 --raw-rate 48000 --tvbr 75 - -o "C:\Users\Bogárdi Mátyás\AppData\Local\Temp\iId_1_aid_4352_lang_eng_19_00_18_9910_03.aac"

finished after 00:03:32.492 min and created "C:\Users\Bogárdi Mátyás\AppData\Local\Temp\iId_1_aid_4352_lang_eng_19_00_18_9910_03.aac" (size: 284.27 MB)

Then Hybrid started the indexing of the source, which you stopped.

Thats all I can see at the in the debug output.

=> What is the length of "C:\Users\Bogárdi Mátyás\AppData\Local\Temp\iId_1_aid_4352_lang_eng_19_00_18_9910_03.aac" ? Is it 1h 47 like you suspected or is it 1h 36 like Hybrid assumed?

Cu Selur

5

Re: faulty durations according to media info

Selur wrote:

ffmpeg reported that 7 or the mpls files might contain a clip:

00007.mpls
00100.mpls
00200.mpls
00201.mpls
00203.mpls
00204.mpls
00210.mpls

mplayer reported 11 title<>length entries:

 1 -> 11.315
 10 -> 1.089
 11 -> 1.089
 12 -> 1.089
 13 -> 1.089
 14 -> 6431.777
 15 -> 909.653
 16 -> 132.270
 17 -> 184.666
 18 -> 184.376
 19 -> 165.685
 2 -> 11.979
 20 -> 24.136
 21 -> 19.691
 22 -> 17.513
 23 -> 44.916
 24 -> 220.102
 25 -> 15.335
 26 -> 15.335
 27 -> 4.356
 3 -> 340.506
 4 -> 50.696
 5 -> 10.890
 6 -> 7.623
 7 -> 5807.609
 8 -> 1.089
 9 -> 1.089

Hybrid created a title <> mpls mapping:

mpls<>title mapping:
 00000 -> 1
 00002 -> 2
 00007 -> 3
 00009 -> 4
 00010 -> 5
 00020 -> 6
 00100 -> 7
 00110 -> 8
 00111 -> 9
 00112 -> 10
 00113 -> 11
 00114 -> 12
 00120 -> 13
 00200 -> 14
 00201 -> 15
 00202 -> 16
 00203 -> 17
 00204 -> 18
 00205 -> 19
 00206 -> 20
 00207 -> 21
 00208 -> 22
 00209 -> 23
 00210 -> 24
 00900 -> 25
 00901 -> 26
 00959 -> 27

Hybrid collected some data:

00007.mpls - 00:05:40.298 - Video: 1920x1080p/H.264; Chapters: 8; Subtitle: 0; vCount: 1; aCount: 0; size: 169.969MB
00100.mpls - 01:36:47.753 - Video: 1920x1080p/H.264; Chapters: 9; Subtitle: 26; vCount: 2; aCount: 11; Audio: eng/DTS-HD, zho/AC3, ces/AC3, heb/AC3, hun/AC3, pol/AC3, por/AC3, rus/AC3, tur/AC3, ukr/AC3, eng/AC3; : 00200.mpls - 01:47:11.086 - Video: 1920x1080p/H.264; Chapters: 9; Subtitle: 26; vCount: 2; aCount: 11; Audio: eng/DTS-HD, zho/AC3, ces/AC3, heb/AC3, hun/AC3, pol/AC3, por/AC3, rus/AC3, tur/AC3, ukr/AC3, eng/AC3; : 00201.mpls - 00:15:09.950 - Video: 1920x1080p/H.264; Chapters: 2; Subtitle: 8; vCount: 1; aCount: 1; Audio: eng/AC3; size: 1319.92MB
00203.mpls - 00:03:04.642 - Video: 1920x1080p/H.264; Chapters: 2; Subtitle: 7; vCount: 1; aCount: 1; Audio: eng/AC3; size: 269.479MB
00204.mpls - 00:03:04.183 - Video: 1920x1080p/H.264; Chapters: 7; Subtitle: 0; vCount: 1; aCount: 1; Audio: eng/AC3; size: 171.035MB
00210.mpls - 00:03:40.470 - Video: 1920x1080p/H.264; Chapters: 2; Subtitle: 0; vCount: 1; aCount: 1; Audio: eng/AC3; size: 305.947MB

Hybrid then limited the titles to  00100.mpls, 00200.mpls, 00201.mpls.
You selected 00100.mpls which contains the following m2ts files:

00008.m2ts size in MB: 283.00000000
00136.m2ts size in MB: 1334.00000000
00137.m2ts size in MB: 256.00000000
00138.m2ts size in MB: 4106.00000000
00139.m2ts size in MB: 105.00000000
00140.m2ts size in MB: 3720.00000000
00141.m2ts size in MB: 81.00000000
00142.m2ts size in MB: 1912.00000000
00143.m2ts size in MB: 136.00000000
00144.m2ts size in MB: 7407.00000000
00145.m2ts size in MB: 87.00000000
00146.m2ts size in MB: 2774.00000000
00147.m2ts size in MB: 160.00000000
00148.m2ts size in MB: 1898.00000000

and Hybrid assumes that the input length is 01:36:47.753

for audio extraction Hybrid used:

"C:\PROGRA~1\Hybrid\ffmpeg.exe" -y -threads 12 -analyzeduration 100M -probesize 100M -i bluray:"D:\BD-50\2D\AZ ORZOK LEGENDAJA\LEGEND_OF_THE_GUARDIANS" -playlist 100 -angle 0 -map 0:1 -vn -sn -acodec copy -map_metadata -1 -metadata handler_name="Hybrid 2017.04.23.1" "C:\Users\BOGRDI~1\AppData\Local\Temp\iId_1_aid_4352_lang_eng_DELAY_-44ms_19_00_18_9910_01.dts"

which finished after 00:02:54.736min and created "C:\Users\BOGRDI~1\AppData\Local\Temp\iId_1_aid_4352_lang_eng_DELAY_-44ms_19_00_18_9910_01.dts" (size: 2962.95 MB)

Then started the audio reencoding using:

"C:\PROGRA~1\Hybrid\ffmpeg.exe" -y -threads 12 -loglevel fatal -i "C:\Users\BOGRDI~1\AppData\Local\Temp\iId_1_aid_4352_lang_eng_DELAY_-44ms_19_00_18_9910_01.dts" -ac 6 -ar 48000 -sample_fmt s32 -f sox - | "C:\PROGRA~1\Hybrid\sox.exe" --multi-threaded --ignore-length --temp "C:\Users\Bogárdi Mátyás\AppData\Local\Temp\19_00_18_991002" --buffer 524288 -S -t sox - -b 16 -t raw - |"C:\PROGRA~1\Hybrid\qaac.exe" --threading --raw --raw-channels 6 --raw-rate 48000 --tvbr 75 - -o "C:\Users\Bogárdi Mátyás\AppData\Local\Temp\iId_1_aid_4352_lang_eng_19_00_18_9910_03.aac"

finished after 00:03:32.492 min and created "C:\Users\Bogárdi Mátyás\AppData\Local\Temp\iId_1_aid_4352_lang_eng_19_00_18_9910_03.aac" (size: 284.27 MB)

Then Hybrid started the indexing of the source, which you stopped.

Thats all I can see at the in the debug output.

=> What is the length of "C:\Users\Bogárdi Mátyás\AppData\Local\Temp\iId_1_aid_4352_lang_eng_19_00_18_9910_03.aac" ? Is it 1h 47 like you suspected or is it 1h 36 like Hybrid assumed?

Cu Selur

After checking it is 1h 47 as I suspected and as mediainfo reported (Hybrid mixed the streams of playlist 00100 and 00200).

6

Re: faulty durations according to media info

If you use:

"C:\PROGRA~1\Hybrid\ffmpeg.exe" -y -threads 12 -analyzeduration 100M -probesize 100M -i bluray:"D:\BD-50\2D\AZ ORZOK LEGENDAJA\LEGEND_OF_THE_GUARDIANS" -playlist 200 -angle 0 -map 0:1 -vn -sn -acodec copy -map_metadata -1 -metadata handler_name="Hybrid 2017.04.23.1" "C:\Users\BOGRDI~1\AppData\Local\Temp\audio_playlist_200.dts"

is the length 1h 37?

Also if you disable 'Config->Internals->Extraction->Prefer ffmpeg for extraction form transportstream', Hybrid might use tsMuxeR for the audio extraction, which might behave differently.

Cu Selur

7

Re: faulty durations according to media info

Selur wrote:

If you use:

"C:\PROGRA~1\Hybrid\ffmpeg.exe" -y -threads 12 -analyzeduration 100M -probesize 100M -i bluray:"D:\BD-50\2D\AZ ORZOK LEGENDAJA\LEGEND_OF_THE_GUARDIANS" -playlist 200 -angle 0 -map 0:1 -vn -sn -acodec copy -map_metadata -1 -metadata handler_name="Hybrid 2017.04.23.1" "C:\Users\BOGRDI~1\AppData\Local\Temp\audio_playlist_200.dts"

is the length 1h 37?

Also if you disable 'Config->Internals->Extraction->Prefer ffmpeg for extraction form transportstream', Hybrid might use tsMuxeR for the audio extraction, which might behave differently.

Cu Selur

Result of command line above is attached.

8

Re: faulty durations according to media info

Okay, that is unexpected, seems like playlist 200 and 100 both create 'time=01:47:10.99' files sad