VideoHelp Forum




+ Reply to Thread
Page 6 of 8
FirstFirst ... 4 5 6 7 8 LastLast
Results 151 to 180 of 224
  1. Member
    Join Date
    Aug 2003
    Location
    San Luis Obispo, CA
    Search Comp PM
    Originally Posted by jagabo
    An fast easy way to deinterlace a 1080i source is:

    LoadPlugin("C:\Documents and Settings\Michael\Desktop\dgavcdec102\DGAVCDecode.dll")
    AVCSource("d:\dropbox\angels\angels.dga")
    SeparateFields()
    SelectEven()
    LanczosResize(desired size)

    Some better deinterlacers include TDeint(), LeakKernelDeint(), Yadif(), TempGaussMC_beta1().
    I just used RedHat's code from above and it worked fine.
    Code:
    LoadPlugin("C:\dgavcdec100a34\DGAVCDecode.dll")
    AVCSource("testencode.dga")
    Crop(6, 14, -0, -0)
    Lanczos4Resize(1904,1056)
    FieldDeinterlace()
    Thanks for the tip though! I just need to find a way to automatically detect/remove commercials and I should be good.
    Quote Quote  
  2. 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.
    Quote Quote  
  3. Originally Posted by MrCodeDude
    I have a 3 hour, 12GB unedited .ts file from my HD PVR and I'm having difficulty doing anything with it. My main goal is to shrink it down to at least a 4GB file so that I can put it on a standard DVD.

    I've been trying to experiment with a smaller, 5 minute 300mb file to see quicker results, but nothing has been very successful.

    My earlier process had been:
    Captured h.264 .ts files (282mb) img
    Burned to BDMV movie (282mb)
    Open BDMV movie with Ulead VideoStudio and convert to .mpg (164mb) img
    VideoReDo to remove commercials (85mb)
    Handbrake to convert to DiVX (17mb) img

    As you can see, the end results picture quality was horrible, so I'm trying some of the stuff RedHat, poisondeathray and others have suggested in this thread.

    I've uploaded a 15 second clip of a 720p capture I have: http://www.sendspace.com/file/0tjnwb (15mb) preview image

    So far I've used DS Mux (part of Haali) to export the file into a .mkv. I'm trying to use AutoMKV (w/ standard settings), but even with a small 15mb file, the x264.exe command prompt is taking about 20 minutes to process a 746 frame clip (at ~.50fps).

    Somehow the resultant clip after running it through AutoMKV doubled the size of the file while reducing the resolution from 1280x720 to 1264x704. This isn't desirable (in speed or result), so I tried Red Hat's 720p process above.

    1. I used DGAVCIndex to demux the files into angels.TS (original video file) and angels PID 1100 DELAY -47ms.aac

    2. Using Red Hat's AVS Script, which I named 720p.avs
    Code:
    LoadPlugin("C:\Documents and Settings\Michael\Desktop\dgavcdec102\DGAVCDecode.dll")
    AVCSource("d:\dropbox\angels\angels.dga")
    SelectEven()
    Crop(0, 8, -4, -0)
    Lanczos4Resize(1280,720)
    I loaded the avs file into MeGUI, hit AutoEncode, specified an MKV container and Average Bitrate of: 6000kbit/s which estimated a 10mb output file: 720p.mkv

    3. In MeGUI, went to Tools -> Muxer -> MKV Muxer, loaded the Video Input (720p.mkv) and the Audio Input (angels PID 1100 DELAY -47ms.aac), hit Queue, ended with a result file of: 720p-muxed.mkv which is 10.3MB.

    Resultant file (which I swear looks better than the original) is here: http://www.sendspace.com/file/si8hkq

    My only question is where and how do I edit out commercials? The 15mb clip I have doesn't have any, but I am impressed with the output quality. Poisondeathray earlier in this thread said that using AviSynth to remove commercials would be the best way because the cuts are perfect and don't have any pixelation, so can I just edit the 720p.avs file I have borrowed from Red Hat to somehow trim the commercials out? If so, how would I accomplish this?

    edit: More important question, MeGUI 0.3.0.2018 took about 3 minutes to load the 300mb file, is this normal? I'd imagine it would take near an hour to open up the 12GB file.
    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.
    Quote Quote  
  4. 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.
    Quote Quote  
  5. Member
    Join Date
    Aug 2003
    Location
    San Luis Obispo, CA
    Search Comp PM
    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?
    Quote Quote  
  6. Don't split the files. MrCodeDude hit me up on msn at redhat.amd@gmail.com.
    Quote Quote  
  7. Member
    Join Date
    Oct 2008
    Location
    United States
    Search Comp PM
    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?
    Quote Quote  
  8. Originally Posted by Kilyin
    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.
    What error? Did you download DgAvcDec, unzip and copy the files to the correct locations?

    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?
    Quote Quote  
  9. Member
    Join Date
    Oct 2008
    Location
    United States
    Search Comp PM
    Originally Posted by jagabo
    Originally Posted by Kilyin
    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.
    What error? Did you download DgAvcDec, unzip and copy the files to the correct locations?

    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..

    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.
    Quote Quote  
  10. 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)
    Quote Quote  
  11. Member
    Join Date
    Oct 2008
    Location
    United States
    Search Comp PM
    Originally Posted by poisondeathray
    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 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 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
    I must have totally overlooked all of this, but I will see if I can find it. Thanks for the help...

    And if you're feeling really generous, maybe you could point me in the right direction.
    Quote Quote  
  12. Member
    Join Date
    Oct 2008
    Location
    United States
    Search Comp PM
    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.
    Quote Quote  
  13. Originally Posted by Kilyin
    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.
    Odd. I don't have those options enabled in ffdshow but I've never had problems with YV12.
    Quote Quote  
  14. Member
    Join Date
    Oct 2008
    Location
    United States
    Search Comp PM
    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)
    Quote Quote  
  15. Member
    Join Date
    Oct 2008
    Location
    United States
    Search Comp PM
    Originally Posted by jagabo
    Originally Posted by Kilyin
    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.
    Odd. I don't have those options enabled in ffdshow but I've never had problems with YV12.
    Me neither until now. I had never even heard of it before. All my video files play back fine. I have ffdshow, powerdvd 7, Nero, and a lazy man's matroska codec installed.
    Quote Quote  
  16. Member
    Join Date
    Oct 2008
    Location
    United States
    Search Comp PM
    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)
    Quote Quote  
  17. Originally Posted by Kilyin
    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()?
    Yes. SelectEven() removes every other frame and cuts the frame rate in half.

    Originally Posted by Kilyin
    If I want to convert to 23.976 do I just use SelectEven().Decimate(5) ?
    You can use SelectEven().Decimate(). The default is to remove 1 frame out of every 5.

    Originally Posted by Kilyin
    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..
    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.
    Quote Quote  
  18. Member
    Join Date
    Oct 2008
    Location
    United States
    Search Comp PM
    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.
    Quote Quote  
  19. Originally Posted by Kilyin
    I've since realized that the Graphedit in the AVS script was probably just part of the filename...
    Yes, I use GraphEdit to capture from my HD PVR. CPU usage is minimal while capturing with it.
    Quote Quote  
  20. Member
    Join Date
    Oct 2008
    Location
    United States
    Search Comp PM
    Originally Posted by jagabo
    Originally Posted by Kilyin
    I've since realized that the Graphedit in the AVS script was probably just part of the filename...
    Yes, I use GraphEdit to capture from my HD PVR. CPU usage is minimal while capturing with it.
    Same, graphedit and graphstudio both are great for cleaning up the filter chain, capturing, playback, and streaming, etc.
    Quote Quote  
  21. Member
    Join Date
    Oct 2008
    Location
    United States
    Search Comp PM
    disregard
    Quote Quote  
  22. Member
    Join Date
    Oct 2008
    Location
    United States
    Search Comp PM
    nevermind, figured it out.
    Quote Quote  
  23. Where you asking about using GraphEdit as a player for the HD PVR? I wasn't able to get it working. Did you?
    Quote Quote  
  24. Member
    Join Date
    Oct 2008
    Location
    United States
    Search Comp PM
    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...
    Quote Quote  
  25. Member
    Join Date
    Oct 2008
    Location
    United States
    Search Comp PM
    Still having a problem with audio when muxing to AC3. It dies after a cut... looking at the ac3 file in mediainfo it is the correct duration, but the sound just 'cuts off' during playback of the MKV, precisely after a trimmed out commercial..
    Quote Quote  
  26. Which method are you using to cut the audio?

    Is the AC3 track "cut off" when playing the AC3 alone (not in the .mkv) ?
    Quote Quote  
  27. Member
    Join Date
    Oct 2008
    Location
    United States
    Search Comp PM
    Originally Posted by poisondeathray
    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.

    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.
    Quote Quote  
  28. Originally Posted by Kilyin
    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.
    This means you didn't do the AAC=>AC3 conversion correctly.

    How did you do the corresponding edits (e.g. commercial cuts) in the audio?
    Quote Quote  
  29. Member
    Join Date
    Oct 2008
    Location
    United States
    Search Comp PM
    Originally Posted by poisondeathray
    Originally Posted by Kilyin
    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.
    This means you didn't do the AAC=>AC3 conversion correctly.

    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?
    Quote Quote  
  30. 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.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!