View Full Version : Basic and CURRRENT (2015) loading of M2TS files
TCmullet
5th March 2015, 17:15
Could someone please tell me what is the CURRENT (in Mar. 2015) best way to open a straight-forward HD video file (M2TS), 1080i, AVC (H.264) video codec? Mine are captured from a Hauppauge capture device.
I've tried DirectShowSource, but I can't scrub frame-to-frame quickly in order to plan edits, etc. I do have an i5 w/4 cores, but DirectShowSource is too slow to be useful, at least for planning edits.
I'm trying to avoid converting it to a huge AVI and instead directly open it in AviSynth.
Groucho2004
5th March 2015, 17:26
3 good options:
1. DGDecNV
2. LWLibavVideoSource
3. FFVideoSource
Don't ask what's best (rule #12).
stax76
5th March 2015, 17:28
@TCmullet
You can try to mux to mkv using gdsmux or dsmux, mkvmerge might use timestamps and loose sync when you cut. That's the default in StaxRip which has rich cutting support. DGDecNV handles TS directly quite well.
@Groucho2004
2 and 3 can be a complete failure with many TS files I would say, especially when you try to seek and cut.
martin53
7th March 2015, 10:25
Since StainlessS was so kind to post an already elaborated universal GetFile function here (http://forum.doom9.org/showthread.php?p=1710533#post1710533), I'd like to attach the version I modified to my likes and invite everyone to contribute.
This GetFile function is not yet an answer to the thread subject, but as collective work it might become one.
The differences between original and this version in short
- Original checks file dimensions mod 8 (lines #219 ff). Commented out in this version
- This version cleans up all index files after script close (lines #247 ff)
- This version fetches frame 0 before signalling success or failure, because there are situations when source filters first open the file successfully, but then fail to fetch frames
- This version uses MediaInfo to support DirectShow with framerate and framecount
- This version stretches the clip non-proportionally to give the original's DAR with square pixels (line #245)
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.