A/V out of synch

Begonnen von JawsDK, Mai 13, 2013, 01:18:21

« vorheriges - nächstes »

JawsDK

i have some audio synch problems, i have hoped TS-doctor could have helped to correct it, i capture through "Digital Device - Cine DVB-C/T", i use C for Cable and use DVBviewer pro 5.1.0.0 software to capture the TS streams, but the audio are in synch on my players, Cyberlink powerdvd, VLC player etc., but the problem is when i use my Western Digital media center (WD TV live Hub), there are audio and video not in synch anymore, and have also the problem when i transcoder the TS-streams in TMPGEnc Mastering Works 5 to example MKV., Mpeg-2 DVD format, Mpeg-4 for Blu-ray, there are audio also out of synch also on playback on stand-alone DVD/BD players, is there anyone with same problem or have idea to what to do.

Cypheros

I guess there were errors reported, you processed the file the first time with TS-Doctor?
If the audio is AC3, you can use the TS Remuxer included in the TS-Doctor under "Tools" to remux the file and repair the audio gaps, responsible for out of sync problems most of the time.

Make sure, that your WDTV uses the newest firmware.

JawsDK

#2
There was no error in the TS-stream after capture, here are the DVBViewer capture reports:

"TV2 HD 30-03-2013

C:\PVR\03-30_23-27-00_TV2 HD_Røvtur på 1. klasse.ts

Device: Digital Devices DVB-C Tuner 2 (2)

23:27:00 / 00:00:00 (~ 0,0 MB) Start
23:27:01 / 00:00:01 (~ 0,8 MB) PID 1200: H.264 Video, 16:9, 1280x720, 50 fps
23:27:01 / 00:00:01 (~ 0,8 MB) PID 1201: MPEG Audio Stereo, 48 khz, 192 kbps
23:27:01 / 00:00:01 (~ 0,8 MB) PID 1206: AC3 Audio 5.1, 48 khz, 448 kbps
01:15:00 / 01:47:59 (~ 6854,9 MB) Stop

Average Data Rate: 1,058 MB/s
Total Size: 6854,9 MB (7187919996 Bytes)"

Report from TS-Doctor after fix:

"Opening file D:\TS rec\03-30_23-27-00_TV2 HD_Røvtur på 1. klasse.ts

OS: Windows 7 x64 Service Pack 1
TSDoctor.exe V 1.2.82 (Build 03B096)
NVIDIA GeForce GTX 670 (DISPLAY1)
Supported TS source filter found  : TS Doctor FileSource (on)
Supported splitter filter found   : Haali Media Splitter, [LAV Splitter]
Supported audio filter found      : [LAV Audio Decoder], ffdshow Audio Decoder, Microsoft DTV-DVD Audio Decoder
Supported Mpeg video filter found : [LAV Video Decoder], ffdshow Video Decoder(4422), Microsoft DTV-DVD Video Decoder
Supported H264 video filter found : [LAV Video Decoder], ffdshow Video Decoder(4422), Microsoft DTV-DVD Video Decoder
Supported video renderer found    : Video Renderer, [Enhanced Video Renderer]

File size: 7187919996
Packets  : 38233617


Scanning for TRP fill packets
Scanning for PCR problem packets (start)
Scanning for PCR problem packets (end)

Scanning for PIDs

Found 5 different PIDs
Broadcast standard: DVB

Identifying stream types

$04B9: 0%   = PMT
$04B0: 92%  = H264 Video (PES_StreamID E0 = Video_Stream_0) [PCR,PTS,DTS]
$04B1: 2%   = MPEG1 Audio (PES_StreamID C2 = Audio_Stream_2) [PTS][PESLength]
$04B6: 5%   = AC3 Audio (PES_StreamID BD = Private_Stream_1) [PTS][PESLength]
$0000: 0%   = PAT


Scanning for PATs

----------- PAT 0 -----------
PacketCount              : 1
Table ID                 : 0
Section Syntax Indicator : 1
Reserved Bit 0           : 0
Reserved Bit 1           : 1
Reserved Bit 2           : 1
Pointer Field            : 0
Section Length           : 13
Transport Stream ID      : 2000
Reserved Bit 3           : 1
Reserved Bit 4           : 1
Version Number           : 21
Current Next Indicator   : 1
Section Number           : 0
Last Section Number      : 0

  Program Number : $04B0
  Map PID        : $04B9

CRC32                    : $947C872C = $947C872C
-----------------------------

Found 1 different PATs
Found 1 different PMT PIDs
Scanning for PMTs

----------- PMT 0 -----------
Packet                   : $00000001
PacketCount              : 1
PID                      : $04B9
Table ID                 : 2
Section Syntax Indicator : 1
PMT Size                 : 58
Pointer Field            : 0
Section Length           : 50
Program Number           : $04B0
Version Number           : 1
Current Next Indicator   : 1
Section Number           : 0
Last Section Number      : 0
PCR PID                  : $04B0

Program Info Length      : 0

  Stream Type    : 27
  Description    : AVC video stream as defined in ITU-T Rec. H.264 | ISO/IEC 14496-10 Video
  Elementary PID : $04B0
  ES Info Length : 0

  Stream Type    : 3
  Description    : ISO/IEC 11172 Audio
  Elementary PID : $04B1
  ES Info Length : 6
  ES Info        : $0A, $04, $64, $61, $6E, $00
  ES Info Text   : __dan_

  Stream Type    : 6
  Description    : ITU-T Rec. H.222.0 | ISO/IEC 13818-1 PES packets containing private data (AC3)
  Elementary PID : $04B6
  ES Info Length : 16
  ES Info        : $0A, $04, $64, $61, $6E, $00, $6A, $02, $80, $44, $05, $04, $41, $43, $2D, $33
  ES Info Text   : __dan_j_€D__AC-3

CRC32                    : $61E62CB6 = $61E62CB6
-----------------------------

Found 1 different PMTs

Selecting PMT with PID 04B9 at position 00000001
CRC OK!

0.
  stream_type              : 27 = AVC video stream as defined in ITU-T Rec. H.264 | ISO/IEC 14496-10 Video
  elementary_pid           : 04B0
  ES_info_length           : 0

1.
  stream_type              : 3 = ISO/IEC 11172 Audio
  elementary_pid           : 04B1
  ES_info_length           : 6

2.
  stream_type              : 6 = ITU-T Rec. H.222.0 | ISO/IEC 13818-1 PES packets containing private data (AC3)
  elementary_pid           : 04B6
  ES_info_length           : 16

PCR PID is 04B0

Created PAT:

----------- PAT 0 -----------
PacketCount              : 0
Table ID                 : 0
Section Syntax Indicator : 1
Reserved Bit 0           : 0
Reserved Bit 1           : 1
Reserved Bit 2           : 1
Pointer Field            : 0
Section Length           : 13
Transport Stream ID      : 2000
Reserved Bit 3           : 1
Reserved Bit 4           : 1
Version Number           : 21
Current Next Indicator   : 1
Section Number           : 0
Last Section Number      : 0

  Program Number : $04B0
  Map PID        : $04B9

CRC32                    : $947C872C = $947C872C
-----------------------------



Created PMT:

----------- PMT 0 -----------
Packet                   : $00000001
PacketCount              : 1
PID                      : $04B9
Table ID                 : 2
Section Syntax Indicator : 1
PMT Size                 : 58
Pointer Field            : 0
Section Length           : 50
Program Number           : $04B0
Version Number           : 1
Current Next Indicator   : 1
Section Number           : 0
Last Section Number      : 0
PCR PID                  : $04B0

Program Info Length      : 0

  Stream Type    : 27
  Description    : AVC video stream as defined in ITU-T Rec. H.264 | ISO/IEC 14496-10 Video
  Elementary PID : $04B0
  ES Info Length : 0

  Stream Type    : 3
  Description    : ISO/IEC 11172 Audio
  Elementary PID : $04B1
  ES Info Length : 6
  ES Info        : $0A, $04, $64, $61, $6E, $00
  ES Info Text   : __dan_

  Stream Type    : 6
  Description    : ITU-T Rec. H.222.0 | ISO/IEC 13818-1 PES packets containing private data (AC3)
  Elementary PID : $04B6
  ES Info Length : 16
  ES Info        : $0A, $04, $64, $61, $6E, $00, $6A, $02, $80, $44, $05, $04, $41, $43, $2D, $33
  ES Info Text   : __dan_j_€D__AC-3

CRC32                    : $61E62CB6 = $61E62CB6
-----------------------------


First video PTS is 2869015569 08:51:17.951
Last video PTS  is 3452170569 10:39:17.451

First PCR  is 860679582900 08:51:17.022
Last PCR  is 1035621524104 10:39:16.353
Duration of video stream is 583139804 01:47:59.331
Video PCR to PTS difference -1183 ms
$04B1: Delay to video stream = -836ms
$04B6: Delay to video stream = -781ms


The following PIDs will be imported into new stream: $04B0, 04B1, 04B6

Scanning for video details

-------- H264 Video ---------
profile_idc                            : 100
constrained_set0_flag                  : 0
constrained_set1_flag                  : 0
constrained_set2_flag                  : 0
constrained_set3_flag                  : 0
reserved_zero_4bits                    : 0
level_idc                              : 40
seq_parameter_set_id                   : 0
chroma_format_idc                      : 1
bit_depth_luma_minus8                  : 0
bit_depth_chroma_minus8                : 0
qpprime_y_zero_transform_bypass_flag   : 0
seq_scaling_matrix_present_flag        : 1
seq_scaling_list_present_flag_0      : 1
seq_scaling_list_present_flag_1      : 1
seq_scaling_list_present_flag_2      : 0
seq_scaling_list_present_flag_3      : 0
seq_scaling_list_present_flag_4      : 1
seq_scaling_list_present_flag_5      : 0
seq_scaling_list_present_flag_6      : 1
seq_scaling_list_present_flag_7      : 0
log2_max_frame_num_minus4              : 2
pic_order_cnt_type                     : 0
log2_max_pic_order_cnt_lsb_minus4      : 4
num_ref_frames                         : 4
gaps_in_frame_num_value_allowed_flag   : 0
pic_width_in_mbs_minus1                : 79
pic_height_in_map_units_minus1         : 44
frame_mbs_only_flag                    : 1
direct_8x8_inference_flag              : 1
frame_cropping_flag                    : 0
vui_parameters_present_flag            : 1
aspect_ratio_info_present_flag         : 1
aspect_ratio_idv                       : 1
overscan_info_present_flag             : 1
overscan_appropriate_flag              : 1
video_signal_type_present_flag         : 1
video_format                           : 5
video_full_range_flag                  : 0
colour_description_present_flag        : 1
colour_primaries                       : 1
transfer_characteristics               : 1
matrix_coefficients                    : 1
chroma_loc_info_present_flag           : 1
chroma_sample_loc_type_top_field       : 0
chroma_sample_loc_type_bottom_field    : 0
timing_info_present_flag               : 1
num_units_in_tick                      : 1
time_scale                             : 100
fixed_frame_rate_flag                  : 1
nal_hrd_parameters_present_flag        : 0
vcl_hrd_parameters_present_flag        : 0
-----------------------------

Video format: H264 1280x720p/AR=16:9/50 fps/High@4.0
Colorimetry : ColourPrimaries=BT.709, TransferCharacteristics=BT.709, MatrixCoefficients=BT.709
First I-Frame PTS at 08:51:18.451 [00:00:00.500]
First GOP = 44 frames : I242 B238 B236 B240 P2 B250 B246 B244 B248 B254 B252 B0 P18 B10 B6 B4 B8 B14 B12 B16 P34 B26 B22 B20 B24 B30 B28 B32 P50 B42 B38 B36 B40 B46 B44 B48 P66 B58 B54 B52 B56 B62 B60 B64

Scanning for audio details
Audio stream 1: MPEG1 Audio
AC3 6 channels: 18 times
Audio stream 2: AC3 5.1 48000Hz (DAN)

No cutting


Cut in  at PCR: 00:00:00.000 (08:51:17.022)
Cut out at PCR: 01:47:59.331 (10:39:16.353)
First packet  : 00000002
Last packet   : 02476611

Starting at paket 00000002 PCR: -08:51:17.022 (-00:00:00.000)

---------  NAL Unit Type Statistic  ---------
Slices                 : 1943790
    I-Slices           : 45402
    P-Slices           : 212592
    B-Slices           : 1685796
    SP-Slices          : 0
    SI-Slices          : 0
Data Partition A       : 0
Data Partition B       : 0
Data Partition A       : 0
IDR Picture            : 0
SEI                    : 323965
Sequence Parameter Set : 7567
Picture Parameter Set  : 7726
AUD                    : 323965
End of Sequence        : 0
End of Stream          : 0
Filler                 : 256845
Slices                 : 0
Seq. Param. Set Ext.   : 0

H264 filler data: 2,9% [Netto]

Cutted pakets at the beginning: 0
Cutted pakets at the end: 0
Discarded pakets (Filler data): 993755 = 2,6% [Brutto]
Discarded pakets (not needed): 63568

PID stream sizes
$04B0: 6,0 GB
$04B1: 153,3 MB
$04B6: 363,0 MB

ERRORS : 0
WARNINGS : 0

Speed: 21,7 MBytes/sec
Duration: 00:05:16"

and after i have tried to use TS-doctor Remuxer, but 50% in demuxing i get an error and also with other TS-Streams (screen dump 1-2) and program freeze and stop to working and shutting  Down.

so i don't know about is a bug or something in the TS-Remuxer part.

Cypheros

Did you fix the file with the TS-Doctor before you used the TS Remuxer?
It's important to have a clean file before you use the TS Remuxer!

Also try to set the Option "Timer correction" to "Patch every time" under Settings/Preferences/Correction Behavior. Video tools often work better with timers resetted to zero. This setting will take effect if you open a file and then press "Create new file".

If you want to use professional video editing software you should make sure that only one video and one audio stream is in the new ts file. Disable all other audio streams, subtitles and teletext.

Most of the tools I know (Magix Video deluxe, Sony Vegas 10 and Adobe Premiere Pro CS5.5), will import the ts files the TS-Doctor creates if you have the timers patches and only one audio and one video stream.

But keep in mind, that DVB recodings have many different formats and resolutions and not all of them are supported by the import filters of the video editing tools. Sony Vegas for example doesn't like AC3.

JawsDK

I think i have fix the file, i go to files and open a TS stream and TS- doctor scans  the strams and all are green in analysis and after i just push "save new file", is that correct methods to fix a TS-stream?.

i have now set the "timer correction" to "patch every time" instead of "recomended". is there other setting i should enable/disbable in behavior? (see Sreen dump)

at the momment i use "TMPGEnc MPEG Smart Renderer 4" (for cut and edit), but at the momment i only use TS-doctor, for encoding to BD/DVD/MKV/MPEG i use "TMPGEnc Video Mastering Works 5" and for authoring i use "TMPGEnc Authoring Works 5" all is compliant for DVD/Blu-ray and other formats, link to site "http://www.pegasys-inc.com/en/index.html".

Cypheros

Yes, open the file and then "Save new file" is the correct way to fix a file.

Yes, your setup is correct, it' sufficient to patch the time and leave the rest on defaults.

JawsDK

okay, so have i doing it right, but there must be a bug in TS-Remuxer, more of my TS files also after TS-Fixed, still come out with an error and the program shutdown, some Works and other not, see screen dumb for error message.

Cypheros

Do you have a sample of such a problem file, that you can upload on my FTP server or another place, so I could reproduce and fix that bug?

JawsDK

i have the Whole TS-stream, 6 gb., maybe is large files there are the problem, small files Works, but can try to upload to youre FTP server , but need a FTP adress.

Cypheros


JawsDK

i now transfer the to FTP, 2 TS-stream files, can you also check for audio/synch problem, the smallest one have the biggest audio synch problem, but none of them Works in TS-Remuxer, but both are fixed in TS-Doctor.

Cypheros

Ok, files are here and I get the same error as you during remuxing.

It will take a bit to find analyse the problem but I'll find a solution.

JawsDK

that fine, and you just take youre time to analyse the problem, but also hope you can look at the synch problem, i still have some problems with some other of my TS-Stream files there are worked ind TS-Remuxer.

Cypheros

OK, found the problem. It was a buffer overflow. As far as I can see (and hear) there are no synch problems in the final MKVs.

File: 05-15_07-57-00_HD DR1 (dan)_Kyst til kyst - Vordingborg til Korsør (6 7)_fixed.ts
First valid video frame found at PTS: 00:00:01.647
First AC3 frame PID $045C at PTS: 00:00:00.151 / frame size: 1792 / 5.1/48kHz
Start writing PID $0456 at PTS: 00:00:01.647 as video
Ignoring straying frame for PID $0456 at PTS: 00:00:01.567
Ignoring straying frame for PID $0456 at PTS: 00:00:01.527
Ignoring straying frame for PID $0456 at PTS: 00:00:01.507
Ignoring straying frame for PID $0456 at PTS: 00:00:01.547
Ignoring straying frame for PID $0456 at PTS: 00:00:01.607
Ignoring straying frame for PID $0456 at PTS: 00:00:01.587
Ignoring straying frame for PID $0456 at PTS: 00:00:01.627
Start writing PID $045C at PTS: 00:00:01.655 aligned to video PID $0456, remaining delay 8 ms
Demuxing DONE

Start muxing
Muxer: C:\Program Files (x86)\MKVToolNix\mkvmerge.exe
mkvmerge v6.2.0 ('Promised Land') gebaut am Apr 28 2013 12:22:01

Cypheros

It's fixed in the new beta version 1.2.83  ;D


www.cypheros.de