|
|
Problem solved. Scroll down to the bottom for a step-by-step guide.
I want to convert this video file to DVD M2V. Here's my video file's specs:
-Container: VFR MKV
-Codec: V_MPEG4/ISO/AVC
-Audio: AC3
-Subtitle files in these formats: Vobsub, ASS, SRT
1. What comes first is, I want to use Virtualdub to place a black mask over this one area on a video frame. But Virtualdub cannot open the MKV because quot;it cannot detect the file type.quot; So for now, I skip this step.
2. Then, since it's a VFR MKV, I have to use this AVS script. With or without the YUY2 line, TMPGEnc won't support it.
Code:
DirectshowSource(quot;file.mkvquot;,fps=119.88,convertfps=true)
ConverttoYUY2()
FDecimate(23.976)
3. I have tried extracting the AVC video stream as AVI but it won't allow that. I've also tried remuxing the MKV in mkvtoolnix so that it only contains video but when I play the MKV, it crashes.
I have no problem playing the MKV in Media Player Classic. The codec I have installed is FFDSHOW. Any help is appreciated!
Have you gone Start-gt rograms-gt;FFDshow-gt;VFW Codec Configuration-gt;Decoder-gt;Codec and set quot;H264quot; to use quot;libavcodec?quot;
This may solve your Vdub issue.
Have got the latest version of Haali Media Splitter installed?
This may solve your playback issue.
Yes, it's already enabled. No, I have no playback issues. It plays fine in Media Player Classic. It's just that I cannot convert it to DVD format.
Have you tried to convert it with HCEnc or Quenc yet?
HCEnc: Same results as TMPGEnc, when I open the AVS file with the ConverttoYUY2, it prompts that it must be in YUY2 or YV12. When I add that line, it crashes once I load the AVS file.
Quenc: This one loads my AVS file, but it will only output as audio MP2 or AC3. No M2V.
I updated my Avisynth, FFDSHOW, and MKV splitter. Right now, TMPGEnc will at least load the AVS file (or it did load a while ago). Now, when I try to open it, it keeps on saying quot;Assertion failed!quot;.
vdubmod will not be able to read it because the mpeg stream isn't the avi hack; however, you can load the avs into vdub and frameserver from there to tmpgenc. That's assuming you can get the file open at all, of course.
I can load one of my vfr mkvs with the same script you provided into vdub just fine, and seek randomly without crashing; unfortunately I don't have a dvd encoder on here right now, my tmpgenc expired long ago, so I can't test right now. This is with the latest avisynth beta, and some recent haali splitter and ffdshow.
3. I have tried extracting the AVC video stream as AVI but it won't allow that. I've also tried remuxing the MKV in mkvtoolnix so that it only contains video but when I play the MKV, it crashes.
AVC is a pain to get into avi if you didn't put it therre initially. If you want to try, check out avc2avi. Odd that the video wouldn't transfer into a new file, though; maybe it's corrupted somehow? (container or video)
Oh, and if you have a lot of 24/30 sections you might get a better picture by telecining, especially if you want it widely playable. I don't know how to make tmpgenc aware of which fields need rff though.
Thanks, I got it working without avc2avi actually. I updated my FFDSHOW, Haali Splitter and Avisynth. It got to the point where TMPGEnc could read the AVS file (but sometimes it could not and gives me an quot;Assertion failedquot;). But I managed to convert it to M2V painstakingly. Thanks.
Sakuya since you solved this problem can you explain to me the way because i have the same problem too. I have also send you a pm but you haven't answered.
If you could explain to me with details in the part where you use the avisynth script since i am total unware of this program, thanks.
@Sakuya, yes, please give us the gory details. i've been looking to convert AVC to DVD for quite a while...TQ
Sorry for the delay! Even though this process worked, it was a bit annoying because TMPGEnc keeps on giving errors. But you guys could try.
1. First, make sure you have the following updated codecs: FFDSHOW September 20, 2005; Avisynth 040905; Haali Matroska Splitter 20040906. The only codecs I have installed is FFDSHOW.
2. In FFDSHOW, make sure you set both configuration menus to enable h.264. Next to raw video, enable it so that it's all supported.
3. Now, here's the AVS script that I used. Since I had a VFR MKV, I used the DirectShowSource line and the decimate line to make it 23.976 fps. Code:
DirectshowSource(quot;file.mkvquot;,fps=119.88,convertfps=true)
FDecimate(23.976)
4. Try opening the AVS file using Media Player Classic. The video should play.
5. Then open TMPGEnc and open the AVS file as the video source. I basically ignore the audio stream here because I'm not sure how to include the audio portion in the AVS script. So, I just deal with the audio separately.
This is the tricky part for me. Sometimes, TMPGEnc would open the AVS file fine. Other times, it would give me an quot;Assertion Failedquot; error. Once you get that error, click quot;abortquot; and TMPGEnc would close. Open it again and load the AVS file again. If it still won't work and you're desperate, you might want to try renaming the AVS file and moving it to another folder in hopes that it might actually work.
6. When it works, just encode your M2V file like always by setting the bitrate, etc. And you'll get your M2V file!
7. Deal with your audio such as converting whatever format they're in to AC3 (unless you want it some other format). Mines was already in AC3.
I just burned it to my DVD and it plays back fine with no out-of-sync errors.
kool. its working for me. no errors. ffdshow-9-20 did the trick.
mkv made with mkvmerge 1.5.6, x264cli svn29x and MeGUI, with ac3 audio.
(with ffdshow-9-10 (?) MPC plays only audio. TMPGEnc gives an error about unsupported type.)
Originally Posted by vidhead(with ffdshow-9-10 (?) MPC plays only audio. TMPGEnc gives an error about unsupported type.)
I was using FFDSHOW July 3, 2005 and it also only played audio. I'm glad it works now.
Since my code above is used for MKV with video encoded in AVC, with VFR, it makes use of the decimate function. Is there a code that also works for AVC video with a 23.976 fps without having to decimate it so that it can convert in TMPGEnc?
AVISource didn't work because this is an MKV we're dealing with...
Totally awesome, I've been battling this issue for quite a while. Thank you for the info! |
|