View Full Version : Processing m2ts format video
vcmohan
18th December 2007, 12:44
From a Sony HDR-SR5 AVCHD camcoder I have transfered the video to my computer using the Sony supplied software. The files are in m2ts format. I tried opening in Videodub using Avisynth script DirectshowSource. It opened allright but I find the video has been repeated many many times.File info shows
1440 x 1080
1387.347fps (721mico seconds)
74853 frames (0:53:95)
data rate 34521643 kbps
audio stereo PCM 16bit 48 khz etc
from the number of frames and fps the video should be 53.95 seconds but videodub shows 1:17.783 and is set to play for hours. I also noted Haali media splitter Icons appearing in the tray
When I play this file directly in Media Player Classic it plays correctly and the info itshows are
1920 X 1080
MPEG4(H264) 1440 X 1080
1387.35fps
Audio dolby AC3 6 ch 48khz
When I tried using DGIndex ( version 1.4.9) it aborted with message
"no video sequence header found"
Search for m2ts processing in the forum did not help.
I could not understand the descrepancies.
How do I process this video?
a) convert to standard DVD format and
b) Keep in HD format
communist
18th December 2007, 13:11
The video is encoded in H264, you will need to use DGAVCIndex instead of regular DGIndex.
Blue_MiSfit
18th December 2007, 22:42
Or DirectShowSource and GraphEdit to make your own filter graph.
Haali Media Splitter -> CoreAVC or FFDShow should do the job nicely.
~MiSfit
vcmohan
19th December 2007, 03:07
The video is encoded in H264, you will need to use DGAVCIndex instead of regular DGIndex.
I tried it also. DGAVCIndex gave first message
"found NALU w/forbidden bit set. bit error. lets try"
on going further
"found NALU type 0, len 16 undefined.
ignore NALU moving on"
next it crashed.
Guest
19th December 2007, 05:25
You have to demux the video first. Don't you read help files?
vcmohan
19th December 2007, 11:13
You have to demux the video first. Don't you read help files?
Yes. I have demuxed with TSRemux and tried all the 3 types of output formats (video stream )it produces viz: m2ts, ts and BlueRay bdmv.
M2ts and ts both produced same result with DGAvcIndex I mentioned in my earlier post. When I input movieobject.bdmv then it has pointed out about 4 times NALU being 0 etc. Finally it seemingly completed. I, however, did not see any .dga file output anywhere.
Is there any other software that I need to use (may be m2ts to avc conversion?). Movie player classic has played them2ts and ts demuxed ouputs
Guest
19th December 2007, 12:50
Can you post a link to a sample of your m2ts stream?
vcmohan
20th December 2007, 04:17
the m2ts file is here (http://www.avisynth.org/vcmohan/sample.m2ts) After you test I will remove it.
Pookie
21st December 2007, 03:34
I was able to get the .M2TS file to demux using Xport.exe
http://www.w6rz.net/xport.zip
Xport -h sample.m2ts 1 1 1
This creates a bits0001.mpv which DGavcindex will open (after a few warnings). Then save the index to bits0001.dga
load_stdcall_plugin("yadif.dll")
avcsource("bits0001.dga")
converttoyv12()
yadif()
bicubicresize(640,352)
vcmohan
22nd December 2007, 04:17
I have about a hundred short clips to be edited and compiled. This procedure appears to be too much of deterrent to me. It involves a demux with command line arguments, then avcindex which gives warnings, then the Avisynth script. Is there a easier method?
Pookie
23rd December 2007, 20:34
CoreAVC Pro $15
Haali Media Splitter
DirectshowSource("file.m2ts",fps=25.0)#or the fps of the camera
You can try a very recent build of ffdshow instead of CoreAVC, but I've found CoreAVC to work a little better with Directshowsource http://downloads.sourceforge.net/ffdshow-tryout/ffdshow_rev1711_20071220_clsid.exe?modtime=1198176465&big_mirror=0
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.