I just used RedHat's code from above and it worked fine.Originally Posted by jagaboThanks for the tip though! I just need to find a way to automatically detect/remove commercials and I should be good.Code:LoadPlugin("C:\dgavcdec100a34\DGAVCDecode.dll") AVCSource("testencode.dga") Crop(6, 14, -0, -0) Lanczos4Resize(1904,1056) FieldDeinterlace()
		
			+ Reply to Thread
			
		
		
		
			 
		
			
	
	
				Results 151 to 180 of 224
			
		- 
	
- 
	FieldDeinterlace() should work better than SeparateFields().SelectEven(). But I would deinterlace before cropping and resizing. The script as given won't be a problem but if you crop or resize incorrectly you could mess up the fields. 
- 
	Don't do AutoMKV. All I do is set the bitrate to 4000 in x264 for 720p and 6000 for 1080i/1080p. x264 has much greater compression than XviD and it doesn't need a super high of a bitrate. You know what, I'm going to make a how-to video for this soon and people won't have to read through every little post in this thread.Originally Posted by MrCodeDude
- 
	If you don't care about the size use one of the constant quality modes in x264. You always get the quality you want, the encoder will use whatever bitrate is required to deliver that quality. 
- 
	Ok, I'm having some trouble. I've got this behemoth of a 12gb file and it doesn't want to play nice. 
 
 MeGUI worked fine for the files <500mb, but I'm assuming jumping from 300mb to 12gb freaked it out. I loaded the 720p.avs into it about 30 minutes ago and it still appears to be "working." I don't know if it froze or not because there is no status bar, but I don't know how long I should let it sit.
 
 Maybe I should splice the file into 4 3gb files and go from there?
- 
	I get an error when I try open the HD PVR .TS files in VirtualDubMod with an AVS script like the ones in this thread. The only way I can get them to open is by using AVISynth DirectShow template. VirtualDubMod also doesn't want to open MKV files. 
 
 I can successfully convert to MKV with megui, but only if I don't use h264tscutter on the file beforehand. If I do use h264tscutter megui errors out (I suspect when it runs into one of the cut points). Otherwise it works fine.
 
 How can I edit commercials out of MKV files since if I try to edit the .TS beforehand, it blows up on the megui conversion? Should I be using VirtualDub instead of VirtualDubMod or something else entirely?
- 
	What error? Did you download DgAvcDec, unzip and copy the files to the correct locations?Originally Posted by Kilyin
 
 http://www.neuron2.net/dgavcdec/dgavcdec.html
 
 Did you run the TS file through DgAvcIndex to create the .DGA file? Are you opening the .DGA file from the AVS script?
- 
	Yes, I use dgavcindex to index the file and then load it in megui. Here's the script I use..Originally Posted by jagabo
 
 LoadPlugin("F:\download\VideoEditing\dgavcdec100a3 5\DGAVCDecode.dll")
 AVCSource("__vid__")
 SelectEven()
 Crop(0, 8, -4, -0)
 Lanczos4Resize(1280,720)
 
 Like I said I have no problems with megui unless I use h264tscutter on the file beforehand.
 
 When I try to open the .TS file in VirtualDubMod (using the avs script generated by dgavcindex) I get this error..
 
  
 
 I get a similar error trying to open an MKV file with VirtualDubmod after it parses the file.
- 
	vdubmod doesn't support newer mkv files. It hasn't been updated in years. Just an FYI for future reference, if you open h264 files directly in vdub/vdubmod, you need to enable h264 in the ffdshow vfw configuration (gold icon, not red icon). BUT - you can't edit h264 very well at all. It's better to do your edits before encoding (or "during" with the .avs). The instructions are listed in the thread. 
 
 I prefer to use Trim()++Trim() etc... for intervals visually using AvsP. The same .avs file can be fed into MeGUI for the audio as well. This is basically the same thing as using the avs cutter in MeGUI, I think RedHat outlined it earlier in this thread as well
 
 If you chose to do your edits after, you can only navigate by keyframes (i-frames) so your cuts will have extra stuff or cut off too much. If you encode the i-frames closer together (short intervals) you could get better cuts (but larger filesize). Also vdub/vdubmod suck for that, I would use avidemux (which also supports .mkv natively). However, avidemux has problems with interlaced, PAFF and MBAFF streams (e.g. if you record in 720p mode, you could edit directly, but only at keyframes)
- 
	I have h264 enabled in ffdshow vfw configuration. It's set to libavcodec. I'm having trouble finding the instructions for editing before or during encoding with the .avs, but I'll keep looking.Originally Posted by poisondeathray
 
 I must have totally overlooked all of this, but I will see if I can find it. Thanks for the help...Originally Posted by poisondeathray
 
 And if you're feeling really generous, maybe you could point me in the right direction.
- 
	BTW, I just figured out the VirtualDubMod problem with opening the .TS files. I had to select YV12 under Raw Video in ffdshow (instead of disabled). I selected it under both vfw and video config. 
- 
	Can anyone explain the GraphEdit in the following script? I know what GraphEdit is and I have it, but I don't know the reasoning or how to incorporate it into an .avs script... is there an advantage to doing so? I tried doing it as below, but it doesn't work.. 
 
 Here's the script I use for my 720p stuff.
 LoadPlugin("C:\dgavcdec100a34\DGAVCDecode.dll")
 AVCSource("GraphEdit TS.dga")
 SelectEven()
 Crop(0, 8, -4, -0)
 Lanczos4Resize(1280,720)
- 
	My 720p captures are 59.940 fps. How do I preserve that when converting to MKV? (They are coming out at 29.970). 
 
 Can you tell me what to change in this AVS? Do I just remove the SelectEven()?
 
 If I want to convert to 23.976 do I just use SelectEven().Decimate(5) ? I saw in the thread that if it's a film source it needs to be 23.976, but still confused on how to determine that.. I've read so much about all this the past week or so I've confused myself I think.
 
 LoadPlugin("F:\download\VideoEditing\dgavcdec100a3 5\DGAVCDecode.dll")
 AVCSource("__vid__")
 SelectEven()
 Crop(0, 8, -4, -0)
 Lanczos4Resize(1280,720)
- 
	Yes. SelectEven() removes every other frame and cuts the frame rate in half.Originally Posted by Kilyin
 
 You can use SelectEven().Decimate(). The default is to remove 1 frame out of every 5.Originally Posted by Kilyin
 
 Step through your 59.94 fps source frame by frame. If you see a pattern alternating between 2 identical frames and 3 identical frames you have a film source.Originally Posted by Kilyin
- 
	I've since realized that the Graphedit in the AVS script was probably just part of the filename... I'll attribute it to temporary retardation, and post this as a warning to anyone else that may suffer from this affliction. Thanks for all your help folks.. seriously.. this thread has taught me so much. I'm now editing commercials out with megui and encoding to MKV with it, and it rocks. 
- 
	Yes, I use GraphEdit to capture from my HD PVR. CPU usage is minimal while capturing with it.Originally Posted by Kilyin
- 
	Same, graphedit and graphstudio both are great for cleaning up the filter chain, capturing, playback, and streaming, etc.Originally Posted by jagabo
- 
	No, I never got the preview graph to work... and I figured it was a little offtopic, since nobody responded. All I could get was sound... and whenever I'd close the graph it would lose the custom pins I had created... 
- 
	Which method are you using to cut the audio? 
 
 Is the AC3 track "cut off" when playing the AC3 alone (not in the .mkv) ?
- 
	I load the AAC file in the megui audio cutter, point it to the cut file, and then fill in the output file.Originally Posted by poisondeathray
 
 Cuts off in both... not sure what the problem could be. The AAC file is fine, but when I mux it with the cut MKV the audio gets a bit out of sync towards the end as well. I just confirmed it by putting in +500 delay on the AAC file and it fixes the audio sync toward the end, but of course that screws up the sync in the beginning. I'm about to just go back to h264tscutter, it was a little buggy but never screwed up my audio.
- 
	This means you didn't do the AAC=>AC3 conversion correctly.Originally Posted by Kilyin
 
 How did you do the corresponding edits (e.g. commercial cuts) in the audio?
- 
	I used the cutfile created by the AVS cutter. I loaded that into the audio cutter to make a new AAC file, which I then converted to AC3. Is there another way?Originally Posted by poisondeathray
- 
	I think I recall reading over at Doom9 the MeGUI AVS cutter was b0rked the last few releases. It might be fixed by now (0.3.0.3003) 
 
 I just use avisynth to cut everything e.g. Trim(0,100)++Trim(200,300), the commerical from frames 101 -> 199 would be cut out. Just use the AudioDub() with AVCSource()
 
 Some people have luck with h264ts_cutter (not me); If you're comfortable using that go ahead.
Similar Threads
- 
  Saving space with MKV H.264 filesBy Ahari in forum Newbie / General discussionsReplies: 269Last Post: 26th Apr 2013, 18:57
- 
  LaCinema Mini HD Connect cannot play MKV H.264 files ?By centrino3 in forum Newbie / General discussionsReplies: 12Last Post: 12th Aug 2011, 10:45
- 
  How to edit .WTV files from Hauppauge HD-PVR (H.264/AC3) in Adobe PremiereBy milOtis in forum User guidesReplies: 2Last Post: 12th Apr 2010, 05:04
- 
  Accurately editing commercials from HD PVR h.264 .ts filesBy finallygreen in forum Video ConversionReplies: 10Last Post: 28th Oct 2009, 15:14
- 
  Best way to convert/burn/play .mkv H.264 Blu-ray/HD DVD files on a MacBy iMacMan in forum MacReplies: 7Last Post: 21st Mar 2009, 17:50


 
		
		 View Profile
				View Profile
			 View Forum Posts
				View Forum Posts
			 Private Message
				Private Message
			 
 
			
			

 Quote
 Quote