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.

Domains: forum.doom9.org / forum.doom9.net / forum.doom9.se

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 21st August 2012, 14:49   #21  |  Link
rodgar
Registered User
 
Join Date: Nov 2009
Posts: 24
I openened the video exactly like you did. In VD everything is fine.

After that I openend all files (The 5 I uploaded) in DGIndexNV and joined them like you said "Output Trimmed TS (without trimming)". This file plays back well in Splash but with tremendous desync in MPC-HC and only sometimes fine in VLC - exactly like before with tsmuxer or tsdemux. The Desync is growing during time. It's hard to say exactly how much, but at least a second at the end of this video.
After that I put it into an MKV-Container because my TV doesn't playback MTS-Files. Ths MKV shows exact the same desync-behaviour like the ts does: Splash plays well, VLC sometimes, MPC-HC and the TV: desync.

I checked the time during videoplayback with a stopwatch. Somehow the videoduration is longer than it should be. It seems audioplayback is correct but video is to slow. It looks exactly like my PC hasn't enough power to decode the videoframes in time... But again: why only with HX9V? The files of the Canon HF-S100 have more Bitrate (27mbps) but are playing fine. And if it's only my PC, why is my TV showing the same result?

Last edited by rodgar; 21st August 2012 at 15:00.
rodgar is offline   Reply With Quote
Old 21st August 2012, 15:06   #22  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 5,669
I didn't look at any of your samples - were they 1080p59.94 (i.e. "60p") ? That's what the HX9V uses in the highest quality mode. It's a lot more intensive to play (bitrate has less of a role) than "regular" AVCHD 1080i59.94 (ie. "60i")

If so, it's not supported by many hardware devices yet (it falls under AVCHD 2.0 specs, which only a few newer models support offically, but some may still play it)
poisondeathray is offline   Reply With Quote
Old 21st August 2012, 15:14   #23  |  Link
rodgar
Registered User
 
Join Date: Nov 2009
Posts: 24
@poisondeathray
Thats right, but my footage is 1080i50

Last edited by rodgar; 21st August 2012 at 15:21.
rodgar is offline   Reply With Quote
Old 21st August 2012, 15:23   #24  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
Quote:
Originally Posted by rodgar View Post
I openened the video exactly like you did. In VD everything is fine.
OK, so far so good.

Quote:
After that I openend all files (The 5 I uploaded) in DGIndexNV and joined them like you said "Output Trimmed TS (without trimming)". This file plays back well in Splash but with tremendous desync in MPC-HC and only sometimes fine in VLC - exactly like before with tsmuxer or tsdemux. The Desync is growing during time. It's hard to say exactly how much, but at least a second at the end of this video.
After that I put it into an MKV-Container because my TV doesn't playback MTS-Files. Ths MKV shows exact the same desync-behaviour like the ts does: Splash plays well, VLC sometimes, MPC-HC and the TV: desync.
But now you are totally deviating from what I am suggesting. My process would continue with feeding the script to x264 and then muxing its output with the audio outputted by DGIndexNV. Chapters lists we can worry about later. Right now we are trying to analyze the desync.

[Aside: You asked if DGIndexNV could join MTS's and I replied yes and showed how. But it is equivalent to copy /b and that does not make totally kosher output because the timestamps are not adjusted to be contiguous. Some players may barf on it. But you could feed it back into DGIndexNV and work with it without issues. Anyway, that is not what I am suggesting and now I regret mentioning it because you've gone off into the weeds with it.]

Look, you were talking about re-encoding your videos and that's what I addressed. Now you are just trying to join MTS's and play the result?

You are jumping all over and thereby making it impossible to diagnose your issue.

So what is it? Are you trying to develop a working process or are you set on your existing one and are committed to finding a tool to reliably join MTS files? I can try to help either way but let's be perfectly clear so as not to waste time and effort.

Last edited by Guest; 21st August 2012 at 18:33.
Guest is offline   Reply With Quote
Old 21st August 2012, 16:11   #25  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 5,669
Quote:
Originally Posted by rodgar View Post
But for the future: What tool would you recommend to join MTS-Files - even within an AVCHD-Structure? tsmuxer and tsdemux is the only way I know.

For just joining clips (if still you have original folder structure and metadata) - use the bundled software

http://support.d-imaging.sony.co.jp/www/disoft/int/pmb/feature/edit/merge.html

If you've lost the bundled CD, then you can download a replacement from Sony
http://www.sony-mea.com/support/download/316131



If you're re-encoding it, then the DGIndexNV method outlined by neuron2 looks like it should work
poisondeathray is offline   Reply With Quote
Old 21st August 2012, 16:15   #26  |  Link
rodgar
Registered User
 
Join Date: Nov 2009
Posts: 24
@neuron2
You're absolutely right... and I apologize for that. It's because by chance it happens a single fast transcode of one Day works perfect everywhere - Then I transcode the whole movie (for the 100th time) in automated 2pass just to see its desync again. Then I make a fast transcode of one Day again and see desync again. This issue is playing cat-and-mouse game with me... that's why I'm jumping around. But as said before I apologize for that.

I'll try to focus more and make a complete transcode of the whole movie with your method. Only need to install x264 VFW for VD because I usualy work with MeGui.
Edit: Couldn't get x264 to work with VD - x264 doesn't like my line which is for automated 2-pass. After trying to change it a little, it says something about interlace and weighted p-frame prediction is not supported. Since at least interlaced is crucial I use MeGui instead, hope that's ok!?

Only to see if I get something wrong - That's what I should do:
Open all MTS-files in DGIndexNV, save the DGI, demux audio and create AVS. Open AVS in VD and Transcode with x264... I'll say hello again if this is done.

Last edited by rodgar; 21st August 2012 at 16:45.
rodgar is offline   Reply With Quote
Old 21st August 2012, 18:36   #27  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
Quote:
Originally Posted by rodgar View Post
Only to see if I get something wrong - That's what I should do:
Open all MTS-files in DGIndexNV, save the DGI, demux audio and create AVS. Open AVS in VD and Transcode with x264... I'll say hello again if this is done.
Yes, but note that demuxing the audio is not a separate step. It happens when you Save Project with audio demux enabled. It's all described in the user manual. Use the audio demuxed by DGIndexNV; don't use a separate application.

Nobody in their right mind uses x264VFW IMHO.
Guest is offline   Reply With Quote
Old 21st August 2012, 22:35   #28  |  Link
rodgar
Registered User
 
Join Date: Nov 2009
Posts: 24
Transcode is done... I would now mux the video, DGIndexNV's ac3, chapters and Subtitles in MKV-Merge - Because chapters and Subtitles aren't present, I only take audio plus video... done.
Playback in MPC-HC... everything works fine... Playback on my TV... no desync. I would say: Yippee!

... at least for this time. Unfortunately I had this result more than one time only to see the next video with desync again. But maybe not joining in tsmuxer made the problem gone - I hope so. The only thing left is to get those chapters per day. I see no other option than doing that in parrallel with tsdemux, but that's ok, as long video is in sync

Quote:
Nobody in their right mind uses x264VFW IMHO.
So x264 within VD is no really option!?
rodgar is offline   Reply With Quote
Old 21st August 2012, 22:39   #29  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 5,669
Quote:
Originally Posted by rodgar View Post


So x264 within VD is no really option!?

Besides x264vfw, other options: use vdub as a frameserver, or use the external encoder option - these aren't really "within" vdub but you get the idea

http://forums.virtualdub.org/index.php?act=ST&f=5&t=18789&

But you're using megui anyway, so why do you need vdub for anything ?
poisondeathray is offline   Reply With Quote
Old 21st August 2012, 23:42   #30  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
Quote:
Originally Posted by rodgar View Post
... at least for this time. Unfortunately I had this result more than one time only to see the next video with desync again.
Post again if this process causes any issues for you down the road. I don't anticipate that, but you never know.

Perhaps others can help with your chapter list requirement; I don't ever work with such things. I'll review the thread again though to see if I can think of anything.
Guest is offline   Reply With Quote
Old 22nd August 2012, 01:57   #31  |  Link
rodgar
Registered User
 
Join Date: Nov 2009
Posts: 24
Quote:
But you're using megui anyway, so why do you need vdub for anything ?
I use VD for my older miniDV, Hi8, VHS and Super8 Captures... but only for capture and sometimes filtering. I was only curious, because neuron2 opened the AVS in VD to check if its in sync - then press "Save as" is'nt that far away

@neuron2
Thanks for your help. I appreciate you're helping others way below your skills.

And for that Chapter-Issue:
Basically I only need to count the videoframes per MTS, with them I could create my own chapters. I do this with AVI-Files when Capturing with VD. I have only to search the Header of each file for that info - And the structure was listed in the AVI-Documentation - Unfortunately I couldn't find anything similar about MTS-Files... Do you eventually know a ressource like wotsit.org but with info about MTS?

Last edited by rodgar; 22nd August 2012 at 02:01.
rodgar is offline   Reply With Quote
Old 22nd August 2012, 11:20   #32  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
Quote:
Originally Posted by rodgar View Post
And for that Chapter-Issue:
Basically I only need to count the videoframes per MTS, with them I could create my own chapters.
The cut list file produced by the Joints program contains the frame counts for each file.

MTS is just a transport stream with a 4-byte timestamp before each sync byte.
Guest is offline   Reply With Quote
Old 22nd August 2012, 11:53   #33  |  Link
rodgar
Registered User
 
Join Date: Nov 2009
Posts: 24
Quote:
The cut list file produced by the Joints program contains the frame counts for each file.
Yes I saw that and I'm already on it to use that cutlist-File. But I thought, maybe I could implement my own little Framecount. So I have to find and count those sync-Bytes to get what I want? How hard can that be?

Edit: Second Movie is transcoded... No desync. Wondering what tsmuxer did to the files while joining to produce this massive desync.

Last edited by rodgar; 22nd August 2012 at 12:19.
rodgar is offline   Reply With Quote
Old 22nd August 2012, 14:37   #34  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
Quote:
Originally Posted by rodgar View Post
Yes I saw that and I'm already on it to use that cutlist-File. But I thought, maybe I could implement my own little Framecount. So I have to find and count those sync-Bytes to get what I want? How hard can that be?
No, you don't count transport sync bytes. Look at the code for Joints if you want some ideas. You have to fully parse the elementary video stream and count frames. Parsing is far from trivial and involves much more that bumping a count when you see a certain byte sequence. Furthermore it is different for MPEG2, AVC, and VC1.

Quote:
Wondering what tsmuxer did to the files while joining to produce this massive desync.
Probably violating T-STD buffering and/or splicing constraints specified in ISO 13818-1. Concatenating transport streams is also far from a trivial matter. Read the relevant sections of the spec to see what can go wrong.
Guest is offline   Reply With Quote
Old 22nd August 2012, 16:25   #35  |  Link
rodgar
Registered User
 
Join Date: Nov 2009
Posts: 24
I know it's far away from beeing easy... I was only joking
In fact I think the whole matter is far beyond my knowledge - But I try to learn. Reviewing old posts of you (Especially http://forum.doom9.org/archive/index.php/t-145856.html), I saw your library now asks for username and password, why is that?
I peeked into the Joints Sourcecode but understood almost nothing. At the moment I try to understand at least something from what I can find... maybe it helps:
https://github.com/lerks/BluRay/wiki/ApplicationFormat
http://dvd.sourceforge.net/dvdinfo/pes-hdr.html
http://dvd.sourceforge.net/dvdinfo/mpeghdrs.html

Last edited by rodgar; 22nd August 2012 at 16:34.
rodgar is offline   Reply With Quote
Old 22nd August 2012, 18:42   #36  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
Quote:
Originally Posted by rodgar View Post
I saw your library now asks for username and password, why is that?
I don't hold the copyrights to the material in there and so have no license to distribute it. It's there for my personal use only. Sorry about that.

The AVC and MPEG2 specs are easily available, VC1 I've never seen freely available online.

Last edited by Guest; 27th August 2012 at 14:17.
Guest is offline   Reply With Quote
Old 27th August 2012, 12:46   #37  |  Link
rodgar
Registered User
 
Join Date: Nov 2009
Posts: 24
And how did you learn about VC-1?
rodgar is offline   Reply With Quote
Old 27th August 2012, 14:09   #38  |  Link
Ghitulescu
Registered User
 
Ghitulescu's Avatar
 
Join Date: Mar 2009
Location: Germany
Posts: 5,773
Standards can be bought
__________________
Born in the USB (not USA)
Ghitulescu is offline   Reply With Quote
Old 27th August 2012, 14:16   #39  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
Yes, individuals can purchase standards documents, but I work for a company that makes SOCs for set-top boxes and the company provides my access to them.
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 03:36.


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