PDA

View Full Version : Audio Out Of Sync


fabje
20th September 2010, 15:19
Hello,

I have recorded something from EurosportHD, here is the info of that file:
General
ID : C95
Complete name : D:\recording.ts
Format : MPEG-TS
File size : 3.54 GiB
Duration : 44mn 15s
Overall bit rate : 11.4 Mbps

Video
ID : 4001 (0xFA1)
Menu ID : 5041 (0x13B1)
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Main@L4.0
Format settings, CABAC : Yes
Format settings, ReFrames : 2 frames
Codec ID : 27
Duration : 44mn 15s
Bit rate mode : Variable
Bit rate : 9 906 Kbps
Maximum bit rate : 10.6 Mbps
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate : 25.000 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : MBAFF
Bits/(Pixel*Frame) : 0.191
Stream size : 3.06 GiB (87%)
Color primaries : BT.709-5, BT.1361, IEC 61966-2-4, SMPTE RP177
Transfer characteristics : BT.709-5, BT.1361
Matrix coefficients : BT.709-5, BT.1361, IEC 61966-2-4 709, SMPTE RP177

Audio #1
ID : 4161 (0x1041)
Menu ID : 5041 (0x13B1)
Format : MPEG Audio
Format version : Version 1
Format profile : Layer 2
Codec ID : 3
Duration : 44mn 15s
Bit rate mode : Constant
Bit rate : 192 Kbps
Channel(s) : 2 channels
Sampling rate : 48.0 KHz
Video delay : -1s 199ms
Stream size : 60.8 MiB (2%)
Language : Czech

Audio #2
ID : 4241 (0x1091)
Menu ID : 5041 (0x13B1)
Format : AC-3
Format/Info : Audio Coding 3
Mode extension : CM (complete main)
Codec ID : 6
Duration : 44mn 15s
Bit rate mode : Constant
Bit rate : 384 Kbps
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48.0 KHz
Bit depth : 16 bits
Video delay : -1s 374ms
Stream size : 122 MiB (3%)
Language : English

Audio #3
ID : 4321 (0x10E1)
Menu ID : 5041 (0x13B1)
Format : MPEG Audio
Format version : Version 1
Format profile : Layer 2
Codec ID : 3
Duration : 44mn 15s
Bit rate mode : Constant
Bit rate : 192 Kbps
Channel(s) : 2 channels
Sampling rate : 48.0 KHz
Video delay : -1s 243ms
Stream size : 60.8 MiB (2%)
Language : Hungarian

Audio #4
ID : 4641 (0x1221)
Menu ID : 5041 (0x13B1)
Format : MPEG Audio
Format version : Version 1
Format profile : Layer 2
Codec ID : 3
Duration : 44mn 15s
Bit rate mode : Constant
Bit rate : 192 Kbps
Channel(s) : 2 channels
Sampling rate : 48.0 KHz
Video delay : -1s 311ms
Stream size : 60.8 MiB (2%)
Language : Dutch

Menu
ID : 4081 (0xFF1)
Menu ID : 5041 (0x13B1)
Duration : 44mn 15s
List : 4001 (0xFA1) (AVC) / 4161 (0x1041) (MPEG Audio, Czech) / 4241 (0x1091) (AC-3, English) / 4321 (0x10E1) (MPEG Audio, Hungarian) / 4641 (0x1221) (MPEG Audio, Dutch)
Language : / Czech / English / Hungarian / Dutch

Now I want to cut the commercials out of it and save if as an mkv file I use the Dutch audio stream.
The first part of the finale mkv file is fine.
But the second part of the mkv file so after the first commercial I hear a few ms audio of the commercial that was before the program started and I have no idea how to solve that.

Any one here that can help me with that?

Ghitulescu
20th September 2010, 15:39
Cut one frame after :)

fabje
20th September 2010, 15:59
Cut one frame after :)
What do you mean with that?
Instead of using this cut points:
2420, 11160
15958, 18289

I need to do:
2421, 11159
15959, 18288
etc..?

That doesn't help I still hear a part of the commercial.

Ghitulescu
20th September 2010, 16:07
Only the beginning of the second part to be cut 1 or 2 frames after - of course, you didn't specify how many milliseconds, seconds (?), hours (;)), millenia (;);)) the asynch is.... if there are more than 20-40 ms then there is a problem ...

fabje
20th September 2010, 16:34
Only the beginning of the second part to be cut 1 or 2 frames after - of course, you didn't specify how many milliseconds, seconds (?), hours (;)), millenia (;);)) the asynch is.... if there are more than 20-40 ms then there is a problem ...
It is more than 20-40 ms.
And in the original everything is sync so it is not the source file.

I also just tried something else.
I take the source and put in in TSMuxer and removed all the audio what I didn't want. And created a new ts file when I encode this to a new mkv file everything is fine :S

Ghitulescu
20th September 2010, 16:43
It is more than 20-40 ms.
And in the original everything is sync so it is not the source file.

It may be the source. Sometimes the commercials come with different timecodes, sometimes the receiver does not correct the order of the packets and so on. A well-written player takes this into account. If however the cutter corrects them (wrongly ;)) then you cannot synch them easily. tsmuxer reorders them ok (if the stream has no reception problems).

fabje
20th September 2010, 16:52
It may be the source. Sometimes the commercials come with different timecodes, sometimes the receiver does not correct the order of the packets and so on. A well-written player takes this into account. If however the cutter corrects them (wrongly ;)) then you cannot synch them easily. tsmuxer reorders them ok (if the stream has no reception problems).
And how can it be in the source if I checked the source and there is the audio sync?
The stream has no reception problems and the receiver is a VU+ DUO.

Trahald
20th September 2010, 17:27
Timecodes let bad streams still play in sync... but once you demux the stream you lose all of that. Even programs that seem to be doing everything in one step are usually demuxing and then remuxing.