Log in

View Full Version : Encoded m2ts ( H264 ) File get Async....


S3Ri0US
21st March 2008, 22:30
Hi there..

i have a little Problem.. I have encoded a m2ts ( h264) Source file with AviSynth ( dshow, 23.976 FPS ), CoreAVC to X264... The Audiostream is Demuxed ( DTS ) with TsMuxer from Smartlabs

After Encoding the Audio is Synced 5 mins.. and then there goes more Asyc... on the End of the Movie its up to 2 Secs Async.. does anybody knows whats up ?

Thanks for Help !

Rodger
22nd March 2008, 02:03
Did you compare play-time of video and audio file before muxing?
I guess there will be some difference.

Did you use MeGui?

bond
22nd March 2008, 10:30
After Encoding the Audio is Synced 5 mins.. and then there goes more Asyc... on the End of the Movie its up to 2 Secs Async.. does anybody knows whats up ?increasing desync over time is a classic sign for using a wrong video framerate. so make sure you use the correct framerate in your final video...

S3Ri0US
22nd March 2008, 12:36
Hmm..

i open the m2ts file with TsMuxer and the Video Stream ( h264 ) have 23.976 Fps... MediaInfo also tell me 23.976...

On my AviSynth Script i use 24/1.001 and on the second test i use 23.976 but no changes. Codec is Core AVC 1.6.5


My encodet x264 Video have a duration from: 02:14:14

But when i play the Source m2ts File the duration is only 02:08:05

The Demuxed DTS Audio is 02:11:02 ( TsMuxer - Smartlabs )

And the Dmuxed DTS with Xport is also: 02:11:02

another Demuxed Audiostream ( AC3 ) have: 02:08:44

so.. whats up ? :D :D Now i test ffdshow for encoding to test if there any differences.

~bT~
22nd March 2008, 12:46
post the script u used.

S3Ri0US
22nd March 2008, 13:17
Directshowsource("e:\BD-TEST\bdmv\stream\00020.m2ts",fps=23.976,audio=false)converttoYV12()Crop(0,144,-0,-144)

Input is: 1920x1088


and on the Second test:

Directshowsource("e:\BD-TEST\bdmv\stream\00020.m2ts",fps=24/1001,audio=false)converttoYV12()Crop(0,144,-0,-144)

i also tested: seek=ture,seekzero=false

Rodger
22nd March 2008, 13:35
If the input wasnŽt 1920*1088 iŽd say itŽs a blu-ray source and try encoding in true 24p....but this time...

So it has to be a DVB-S2 recording, right?
What program did you use to cut the original?

Please compare the times of the original recording. Probably youŽll have to cut the original file another time to get correct times.
My favorit program to do the job is h264tscutter, which does a clean conversion trp > ts.

My guess is that if you encode in 25fps youŽll get a correct result.
I havenŽt heard of any tv station sending in 23,976fps/24fps.

bond
22nd March 2008, 13:46
try without fps=23.976

S3Ri0US
22nd March 2008, 14:12
no.. its a BD Source..

Ok ill test with out the FPS Varibale.

S3Ri0US
22nd March 2008, 21:56
No changes wihout FPS Variable ! The Movie have the Same duration.. 02:14:14 Source: 02:08:05

S3Ri0US
23rd March 2008, 13:33
When i open the AviSynth Script in MPC the duration is 02:08:05

After Encoding the Script with X264 its: 02:14:14

Is this a bug in AviSynth/x264 or a Error on the Codec ?

rica
23rd March 2008, 13:43
no.. its a BD Source..


Are you sure?
I've never seen any BD source which is 1088i 23.976.
If it is DVB-S2 h264 broadcast it must be 25fps.

Rodger
23rd March 2008, 14:39
Just what I said!

Blu-Ray is 1920x1080p:confused:.
1920x1088 is out of restrictions...while it is played as I see on my Samsung, when I author org. DVB-S2 streams to BD5.

S3Ri0US
23rd March 2008, 15:48
The file is a Ripped BD-Disk ! whatever the Resolution is 1920x1080 or 1920x1088... The duration is Wrong ! And i dont have seen a BluRay disk witch running on 25 FPS.

bond
23rd March 2008, 16:27
propably dshowsource's fault, try using dgavcdec

S3Ri0US
23rd March 2008, 18:58
Now i used FFdshow and: 23.9759856527702 FPS and it Works fine...

Think AviSynth have some Problems with the Framecount.