Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > General > Audio encoding

Reply
 
Thread Tools Search this Thread Display Modes
Old 3rd February 2009, 22:24   #21  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
The latest version of DGSplit will allow you to specify the start and end of the segment you want. Use segment mode and experiment a bit until you get what you want.
Guest is offline   Reply With Quote
Old 3rd February 2009, 22:32   #22  |  Link
Blue_MiSfit
Derek Prestegard IRL
 
Blue_MiSfit's Avatar
 
Join Date: Nov 2003
Location: Los Angeles
Posts: 5,988
Very cool! The cut segment doesn't play in Media Player Classic (I assume since I split at an arbitrary place), but DGIndex is just fine with it.

[edit]
My first few tries weren't quite right regarding the region I was interested in. However, the final cut shows everything I care about, and even plays in MPC!

Uploading..
[/edit]

~MiSfit
__________________
These are all my personal statements, not those of my employer :)

Last edited by Blue_MiSfit; 3rd February 2009 at 22:38.
Blue_MiSfit is offline   Reply With Quote
Old 3rd February 2009, 22:37   #23  |  Link
madshi
Registered Developer
 
Join Date: Sep 2006
Posts: 9,140
Quote:
Originally Posted by Blue_MiSfit View Post
So, you're saying that because there are missing video frames, the demuxed (or re-encoded) video will go out of sync after the point where the missing frames should have been, because this mux doesn't have the timestamps (pts, right?).
Correct.

But even if you maintain the timestamps it's all bad. The sync is correct then, but the motion still isn't smooth due to those missing video frames.

Quote:
Originally Posted by Blue_MiSfit View Post
I'd be happy to provide it... but unfortunately our licensing agreement with the studio doesn't allow me to do this I'm sorry...
No worries. I was 100% sure that you wouldn't be allowed to do that. I was just kidding...

Quote:
Originally Posted by Blue_MiSfit View Post
I know it's an ugly workaround, but is there any way to extract these timestamps from the program stream, and include them in the mux of a transport stream containing H.264 and re-encoded AC3?
I don't think so. But even if that was possible: Do you really want to work with a clearly broken source? If it was me, I'd slap your encoding house guys left and right and demand a clean source. (That is if the original source coming from the encoding house is really broken, so better make sure it's really their fault before slapping them... ).
madshi is offline   Reply With Quote
Old 3rd February 2009, 22:37   #24  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
Great. Upload it. But we don't need 900MB. Just give us 200MB including a jerky section. We need to see if the timestamps are hosed and frames missing in your source, versus being lost in your process. You'll also be able to tell them exactly what is wrong with their source, assuming it is their source.

Last edited by Guest; 3rd February 2009 at 22:41.
Guest is offline   Reply With Quote
Old 3rd February 2009, 22:46   #25  |  Link
Blue_MiSfit
Derek Prestegard IRL
 
Blue_MiSfit's Avatar
 
Join Date: Nov 2003
Location: Los Angeles
Posts: 5,988
I'm going to upload the whole stupid thing, if you don't mind

This is "the" definitive sample that shows both in and out of sync sections, and was properly sliced apart with your handy tool.

~MiSfit
__________________
These are all my personal statements, not those of my employer :)
Blue_MiSfit is offline   Reply With Quote
Old 3rd February 2009, 22:56   #26  |  Link
Blue_MiSfit
Derek Prestegard IRL
 
Blue_MiSfit's Avatar
 
Join Date: Nov 2003
Location: Los Angeles
Posts: 5,988
Madshi:
Quote:
I don't think so. But even if that was possible: Do you really want to work with a clearly broken source? If it was me, I'd slap your encoding house guys left and right and demand a clean source. (That is if the original source coming from the encoding house is really broken, so better make sure it's really their fault before slapping them... ).
Absolutely. A large, smelly trout is being prepared as we speak. This investigation just makes the fish all the smellier

Thank you both again!

~MiSfit
__________________
These are all my personal statements, not those of my employer :)
Blue_MiSfit is offline   Reply With Quote
Old 3rd February 2009, 23:34   #27  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
Post again when the upload is complete.
Guest is offline   Reply With Quote
Old 3rd February 2009, 23:48   #28  |  Link
Blue_MiSfit
Derek Prestegard IRL
 
Blue_MiSfit's Avatar
 
Join Date: Nov 2003
Location: Los Angeles
Posts: 5,988
http://www.megaupload.com/?d=LOVJ2EK0

There's the link!

~MiSfit
__________________
These are all my personal statements, not those of my employer :)
Blue_MiSfit is offline   Reply With Quote
Old 4th February 2009, 13:03   #29  |  Link
madshi
Registered Developer
 
Join Date: Sep 2006
Posts: 9,140
Same issue as before:

Code:
eac3to v3.06
command line: eac3to meat_cut3.mpg test.mkv
------------------------------------------------------------------------------
MPG, 1 video track, 1 audio track
1: MPEG2, 1080p24 /1.001 (16:9)
2: AC3, 5.1 channels, 640kbps, 48khz, dialnorm: -27dB, -18ms
[v01] Extracting video track number 1...
[a02] Extracting audio track number 2...
[a02] Removing AC3 dialog normalization...
[a02] Applying (E-)AC3 delay...
[a02] A remaining delay of +14ms could not be fixed.
[v01] Muxing video to Matroska...
[a02] Creating file "test - 2 - AC3, 5.1 channels, 640kbps, 48khz.ac3"...
[v01] Video has a gap of 2 frames at playtime 0:01:49.  <WARNING>
[v01] Video has a gap of 2 frames at playtime 0:01:49.  <WARNING>
[v01] Video has a gap of 2 frames at playtime 0:01:49.  <WARNING>
[v01] Video has a gap of 2 frames at playtime 0:01:49.  <WARNING>
[v01] Video has a gap of 2 frames at playtime 0:01:50.  <WARNING>
[v01] Video has a gap of 2 frames at playtime 0:01:50.  <WARNING>
[v01] Video has a gap of 2 frames at playtime 0:01:50.  <WARNING>
[v01] Video has a gap of 2 frames at playtime 0:01:50.  <WARNING>
[v01] Video has a gap of 2 frames at playtime 0:01:51.  <WARNING>
[v01] Video has a gap of 2 frames at playtime 0:01:51.  <WARNING>
[v01] Video has a gap of 2 frames at playtime 0:01:51.  <WARNING>
[v01] Video has a gap of 2 frames at playtime 0:01:51.  <WARNING>
[v01] Video has a gap of 2 frames at playtime 0:01:52.  <WARNING>
[v01] Video has a gap of 2 frames at playtime 0:01:54.  <WARNING>
[v01] Video has a gap of 2 frames at playtime 0:01:57.  <WARNING>
[v01] Video has a gap of 2 frames at playtime 0:02:01.  <WARNING>
[v01] Video has a gap of 2 frames at playtime 0:02:01.  <WARNING>
[v01] The MKV file was created without making use of the gap/overlap information.  <WARNING>
[v01] Please check whether audio is in sync. If it is in sync everything is fine.  <WARNING>
[v01] Otherwise ask eac3to to repeat the muxing. It will then automatically make  <WARNING>
[v01] use of the detailed gap/overlap information.  <WARNING>
Added fps value to MKV header.
Video track 1 contains 3407 frames.
eac3to processing took 32 seconds.
Done.
So unless there's a bug in eac3to your encoding house dropped the ball.
madshi is offline   Reply With Quote
Old 4th February 2009, 21:04   #30  |  Link
Blue_MiSfit
Derek Prestegard IRL
 
Blue_MiSfit's Avatar
 
Join Date: Nov 2003
Location: Los Angeles
Posts: 5,988
Thanks, Madshi.

I've never used the full remux functionality of eac3to before. Our workflow only uses eac3to for the audio track (and we process the video via DGIndex). I assume there's no way for eac3to to look at the video stream if it's only asked to demux audio, correct?

And neuron2 - is there any way for DGIndex to catch errors like these during the indexing phase?

~MiSfit
__________________
These are all my personal statements, not those of my employer :)
Blue_MiSfit is offline   Reply With Quote
Old 4th February 2009, 21:35   #31  |  Link
madshi
Registered Developer
 
Join Date: Sep 2006
Posts: 9,140
Quote:
Originally Posted by Blue_MiSfit View Post
I've never used the full remux functionality of eac3to before. Our workflow only uses eac3to for the audio track (and we process the video via DGIndex). I assume there's no way for eac3to to look at the video stream if it's only asked to demux audio, correct?
eac3to counts the video frames if audio is demuxed, only, but no warnings are shown for video gaps.

I guess I could make the already existing "-check" option complain about video gaps/overlaps (it currently doesn't do that, either). You could then do "eac3to source.mpg -check audio.ac3". That would demux audio and check for video gaps/overlaps at the same time...
madshi is offline   Reply With Quote
Old 4th February 2009, 22:34   #32  |  Link
lexor
Registered User
 
Join Date: Jan 2004
Posts: 849
Quote:
Originally Posted by madshi View Post
eac3to counts the video frames if audio is demuxed, only, but no warnings are shown for video gaps.

I guess I could make the already existing "-check" option complain about video gaps/overlaps (it currently doesn't do that, either). You could then do "eac3to source.mpg -check audio.ac3". That would demux audio and check for video gaps/overlaps at the same time...
would these gaps not be the same as audio gaps?
__________________
Geforce GTX 260
Windows 7, 64bit, Core i7
MPC-HC, Foobar2000
lexor is offline   Reply With Quote
Old 4th February 2009, 22:41   #33  |  Link
Blue_MiSfit
Derek Prestegard IRL
 
Blue_MiSfit's Avatar
 
Join Date: Nov 2003
Location: Los Angeles
Posts: 5,988
Madshi,

If you think it would be useful to others to add that option, I'm all for it

Thanks again,

~MiSfit
__________________
These are all my personal statements, not those of my employer :)
Blue_MiSfit is offline   Reply With Quote
Old 4th February 2009, 22:50   #34  |  Link
madshi
Registered Developer
 
Join Date: Sep 2006
Posts: 9,140
Quote:
Originally Posted by lexor View Post
would these gaps not be the same as audio gaps?
What do you mean?
madshi is offline   Reply With Quote
Old 4th February 2009, 23:53   #35  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
Quote:
Originally Posted by Blue_MiSfit View Post
And neuron2 - is there any way for DGIndex to catch errors like these during the indexing phase?
Not currently. It's a horribly pathological stream and so I don't consider it worth adding anything for that. If you know what you are doing you can parse the timestamps log to detect it.
Guest is offline   Reply With Quote
Old 5th February 2009, 00:14   #36  |  Link
lexor
Registered User
 
Join Date: Jan 2004
Posts: 849
Quote:
Originally Posted by madshi View Post
What do you mean?
This, are these gaps not the same as video gaps? I can't check, this was a cap of a concert and I didn't keep the video, which was atrocious quality, I just have the music. (eac3to fixes it all nice, I'm assuming, output is flawless as far as I can tell)

Code:
command line: "eac3to.exe" input.ac3 output.ac3
------------------------------------------------------------------------------
AC3, 5.1 channels, 0:51:20, 384kbps, 48khz, dialnorm: -27dB
Removing AC3 dialog normalization...
Creating file "output.ac3"...
This track is not clean.  <WARNING>
Audio has a gap of 32ms at playtime 0:00:24.  <WARNING>
Audio has a gap of 32ms at playtime 0:00:39.  <WARNING>
Audio has a gap of 32ms at playtime 0:01:09.  <WARNING>
Audio has a gap of 32ms at playtime 0:01:18.  <WARNING>
Audio has a gap of 32ms at playtime 0:01:19.  <WARNING>
Audio has a gap of 32ms at playtime 0:02:00.  <WARNING>
Audio has a gap of 32ms at playtime 0:02:28.  <WARNING>
Audio has a gap of 32ms at playtime 0:02:42.  <WARNING>
Audio has a gap of 32ms at playtime 0:03:23.  <WARNING>
Audio has a gap of 32ms at playtime 0:03:40.  <WARNING>
Audio has a gap of 32ms at playtime 0:04:14.  <WARNING>
Audio has a gap of 32ms at playtime 0:04:16.  <WARNING>
Audio has a gap of 32ms at playtime 0:04:27.  <WARNING>
Audio has a gap of 32ms at playtime 0:05:24.  <WARNING>
Audio has a gap of 32ms at playtime 0:05:41.  <WARNING>
Audio has a gap of 32ms at playtime 0:07:20.  <WARNING>
Audio has a gap of 32ms at playtime 0:07:54.  <WARNING>
Audio has a gap of 32ms at playtime 0:09:06.  <WARNING>
Audio has a gap of 32ms at playtime 0:09:09.  <WARNING>
Audio has a gap of 32ms at playtime 0:09:34.  <WARNING>
Audio has a gap of 32ms at playtime 0:11:15.  <WARNING>
Audio has a gap of 32ms at playtime 0:12:19.  <WARNING>
Audio has a gap of 32ms at playtime 0:12:34.  <WARNING>
Audio has a gap of 32ms at playtime 0:14:21.  <WARNING>
Audio has a gap of 32ms at playtime 0:15:13.  <WARNING>
Audio has a gap of 32ms at playtime 0:15:31.  <WARNING>
Audio has a gap of 32ms at playtime 0:15:42.  <WARNING>
Audio has a gap of 32ms at playtime 0:16:55.  <WARNING>
Audio has a gap of 32ms at playtime 0:17:24.  <WARNING>
Audio has a gap of 32ms at playtime 0:17:39.  <WARNING>
Audio has a gap of 32ms at playtime 0:17:55.  <WARNING>
Audio has a gap of 32ms at playtime 0:18:07.  <WARNING>
Audio has a gap of 32ms at playtime 0:18:08.  <WARNING>
Audio has a gap of 32ms at playtime 0:18:17.  <WARNING>
Audio has a gap of 32ms at playtime 0:18:20.  <WARNING>
Audio has a gap of 32ms at playtime 0:19:09.  <WARNING>
Audio has a gap of 32ms at playtime 0:19:36.  <WARNING>
Audio has a gap of 32ms at playtime 0:19:56.  <WARNING>
Audio has a gap of 32ms at playtime 0:22:08.  <WARNING>
Audio has a gap of 32ms at playtime 0:22:23.  <WARNING>
Audio has a gap of 32ms at playtime 0:23:36.  <WARNING>
Audio has a gap of 32ms at playtime 0:23:41.  <WARNING>
Audio has a gap of 32ms at playtime 0:23:54.  <WARNING>
Audio has a gap of 32ms at playtime 0:23:54.  <WARNING>
Audio has a gap of 32ms at playtime 0:24:41.  <WARNING>
Audio has a gap of 32ms at playtime 0:24:42.  <WARNING>
Audio has a gap of 32ms at playtime 0:24:49.  <WARNING>
Audio has a gap of 32ms at playtime 0:25:23.  <WARNING>
Audio has a gap of 32ms at playtime 0:26:58.  <WARNING>
Audio has a gap of 32ms at playtime 0:29:13.  <WARNING>
Audio has a gap of 32ms at playtime 0:29:26.  <WARNING>
Audio has a gap of 32ms at playtime 0:29:53.  <WARNING>
Audio has a gap of 32ms at playtime 0:29:57.  <WARNING>
Audio has a gap of 32ms at playtime 0:30:31.  <WARNING>
Audio has a gap of 32ms at playtime 0:30:51.  <WARNING>
Audio has a gap of 32ms at playtime 0:31:25.  <WARNING>
Audio has a gap of 32ms at playtime 0:32:04.  <WARNING>
Audio has a gap of 32ms at playtime 0:32:27.  <WARNING>
Audio has a gap of 32ms at playtime 0:32:41.  <WARNING>
Audio has a gap of 32ms at playtime 0:32:53.  <WARNING>
Audio has a gap of 32ms at playtime 0:33:38.  <WARNING>
Audio has a gap of 32ms at playtime 0:33:43.  <WARNING>
Audio has a gap of 32ms at playtime 0:36:09.  <WARNING>
Audio has a gap of 32ms at playtime 0:36:09.  <WARNING>
Audio has a gap of 32ms at playtime 0:37:39.  <WARNING>
Audio has a gap of 32ms at playtime 0:38:31.  <WARNING>
Audio has a gap of 32ms at playtime 0:38:36.  <WARNING>
Audio has a gap of 32ms at playtime 0:38:56.  <WARNING>
Audio has a gap of 32ms at playtime 0:39:26.  <WARNING>
Audio has a gap of 32ms at playtime 0:40:41.  <WARNING>
Audio has a gap of 32ms at playtime 0:40:42.  <WARNING>
Audio has a gap of 32ms at playtime 0:41:01.  <WARNING>
Audio has a gap of 32ms at playtime 0:41:04.  <WARNING>
Audio has a gap of 32ms at playtime 0:41:59.  <WARNING>
Audio has a gap of 32ms at playtime 0:42:06.  <WARNING>
Audio has a gap of 32ms at playtime 0:42:48.  <WARNING>
Audio has a gap of 32ms at playtime 0:43:13.  <WARNING>
Audio has a gap of 32ms at playtime 0:43:43.  <WARNING>
Audio has a gap of 32ms at playtime 0:44:00.  <WARNING>
Audio has a gap of 32ms at playtime 0:45:18.  <WARNING>
Audio has a gap of 32ms at playtime 0:45:54.  <WARNING>
Audio has a gap of 32ms at playtime 0:46:17.  <WARNING>
Audio has a gap of 32ms at playtime 0:47:33.  <WARNING>
Audio has a gap of 32ms at playtime 0:48:48.  <WARNING>
Audio has a gap of 32ms at playtime 0:49:02.  <WARNING>
Audio has a gap of 32ms at playtime 0:49:27.  <WARNING>
Audio has a gap of 32ms at playtime 0:50:08.  <WARNING>
Audio has a gap of 32ms at playtime 0:50:25.  <WARNING>
Starting 2nd pass...
Realizing (E-)AC3 gaps...
Creating file "output.ac3"...
eac3to processing took 19 seconds.
Done.
__________________
Geforce GTX 260
Windows 7, 64bit, Core i7
MPC-HC, Foobar2000

Last edited by lexor; 5th February 2009 at 00:20.
lexor is offline   Reply With Quote
Old 5th February 2009, 00:19   #37  |  Link
Blue_MiSfit
Derek Prestegard IRL
 
Blue_MiSfit's Avatar
 
Join Date: Nov 2003
Location: Los Angeles
Posts: 5,988
neuron2:

Understood. I'm just trying to figure out how to catch something like this before it goes through encoding and QA The symptoms are pretty clear, so I should easily be able to identify something like this in the future.

Thanks so much for your time! I think we can close the case and shut the book

~MiSfit
__________________
These are all my personal statements, not those of my employer :)
Blue_MiSfit is offline   Reply With Quote
Old 5th February 2009, 01:57   #38  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
I made a little program to process the timestamps dump. Attached is the output. The first field is the video PTS. The second is the difference from the last one. I mark the discontinuities. This is the smoking gun evidence you can give to the content provider.

There's one disconinuity at the start and then a bunch more at 5142433. It's always one missing picture at a time.

If you'd find this useful I could give you the application. But you can just run eac3to also.
Attached Files
File Type: txt log.txt (41.0 KB, 14 views)

Last edited by Guest; 5th February 2009 at 02:06.
Guest is offline   Reply With Quote
Old 5th February 2009, 08:50   #39  |  Link
madshi
Registered Developer
 
Join Date: Sep 2006
Posts: 9,140
Quote:
Originally Posted by lexor View Post
This, are these gaps not the same as video gaps?
I still don't know what you're aiming at. Video gaps are gaps in the video and audio gaps are gaps in the audio.
madshi is offline   Reply With Quote
Old 5th February 2009, 14:41   #40  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
I think he is saying that there are audio gaps coincident with the video gaps. But if that were the case, then there would not be a sync problem.
Guest is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 14:16.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.