Hi,
I'm trying to open a mp4 video with Vdub. DirectShowSource does't work. It says:
Asking Google about this error, I came to:
"This is a common error that occurs when DirectShow isn't able to deliver any format that is readable to AviSynth. Try creating a filter graph manually. See if you are able to construct a filter graph that delivers any output that AviSynth can open. If not, you might need to download additional DirectShow filters that can deliver correct material. If you can play the graph in GraphEdit, make sure to remove the video and audio renderers, before saving the graph and opening it in AviSynth. Some examples can be found here."
How to find out wich filter is needed and wich one is behaving bad? GraphEdit says:
I can open AVI and even RMVB files using DirectShowSource in Vdub and in GraphEdit. But none mp4 files...![]()
+ Reply to Thread
Results 1 to 22 of 22
-
Thank you.
-
You need a DirectShow MP4 reader/splitter and decoders for whatever codecs are used in the file. Try Haali for the reader/splitter. MediaInfo will tell you what decoders you need. But it's likely h.264 and aac. Both of which you can get from ffdshow.
FYI: using the DirectShow plugin for VirtualDub is asking Windows' DirectShow to open the video and decompress it. So DirectShow filters for the file type and codecs must be installed.Last edited by jagabo; 31st Jan 2012 at 12:51.
-
Jagabo,
below is a MediaInfo report:
Code:General Complete name : D:\JDownloader_files\forum\Hello by Matthijs Vlot.mp4 Format : MPEG-4 Format profile : Base Media / Version 2 Codec ID : mp42 File size : 3.82 MiB Duration : 1mn 17s Overall bit rate : 412 Kbps Encoded date : UTC 2012-01-17 00:42:04 Tagged date : UTC 2012-01-17 00:42:04 gsst : 0 gstd : 77878 gssd : B4A7D0982HH1328022002320253 gshh : o-o.preferred.gru03s03.v10.lscache1.c.youtube.com Video ID : 1 Format : AVC Format/Info : Advanced Video Codec Format profile : Baseline@L3.0 Format settings, CABAC : No Format settings, ReFrames : 1 frame Codec ID : avc1 Codec ID/Info : Advanced Video Coding Duration : 1mn 17s Bit rate mode : Variable Bit rate : 313 Kbps Maximum bit rate : 1 028 Kbps Width : 640 pixels Height : 360 pixels Display aspect ratio : 16:9 Frame rate mode : Constant Frame rate : 25.000 fps Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive Bits/(Pixel*Frame) : 0.054 Stream size : 2.90 MiB (76%) Tagged date : UTC 2012-01-17 00:42:04 Audio ID : 2 Format : AAC Format/Info : Advanced Audio Codec Format version : Version 4 Format profile : LC Format settings, SBR : No Codec ID : 40 Duration : 1mn 17s Bit rate mode : Variable Bit rate : 96.0 Kbps Maximum bit rate : 114 Kbps Channel(s) : 2 channels Channel positions : Front: L R Sampling rate : 44.1 KHz Stream size : 912 KiB (23%) Title : IsoMedia File Produced by Google, 5-11-2011 Encoded date : UTC 2012-01-17 00:42:04 Tagged date : UTC 2012-01-17 00:42:04
How to config them properly?Thank you. -
Another question:
Why I can open all mp4 videos using Avidemux? And I can play any mp4 using any players.
Answering my own question, is it because Avidemux don't use DirectShowSource to open files. Maybe it has its own filters. And players has the same, too. (ffdshow?) Is this answer correct?
And why GraphEdit cannot open? I thought GraphEdit would be able to open any video to show the codecs and filters diagram.
Also, I cannot convert mp4 videos to RMVB using EasyRealProducer. I guess it is because the same problem with DirectShowSource filters.
So, question remains:
1 - How to set ffdshow and Haali?
2 - Why Avidemux open without problem?
2 - Why GraphEdit cannot open? (We depends on it to know the diagram)Thank you. -
That is correct.
GraphEdit uses DirectShow or VFW.
Maybe.
Make sure that the AVC (h.264) decoder in ffdshow is enabled (Start -> All Programs -> ffdshow -> Video Decoder Configuration... Codecs in left pane, h.264/AVC in the right pane. Same for the AAC decoder, Start -> All Programs -> Audio Decoder Configuration... Codecs in the left pane, AAC in the right pane.
If you are using 64 bit Windows be aware that 64 bit programs require 64 bit codecs and filters, 32 bit programs require 32 bit codecs and filters. The two systems can't see each others' components. -
Yes. It already has what you said. Look:
H.264 decoder has ffmpeg-mt/libavcodec/Disable options. Default is ffmpeg-mt. I tried libavcodec and Vdub return the same error.
On details: "H264, AVC1, X264, VSSH (incomplete), DAVC, PAVC. ffmpeg-mt is multithreaded. libavcodec (experimental)". Any clues from here?
AAC decoder has libfaad2/Disable options. Default is libfaad2.
My system is 32 bits, WinXP SP3. K-Lite codec pack.Thank you. -
FWIW: not all applications (including Avisynth) attempt to build DS graphs in the same way.
When Gabest's Matroska and MP4 splitters are registered, Graphstudio often/always prefers them, even when their merit is set to "DO_NOT_USE"
Haali, in his infinite wisdom, tried to fix that issue by making his splitter exceedingly power-hungry
, which at times freezes MPC-HC by means of 100% non-functional graphs
Over here, LAV Splitter for MP4s and SolveigMM Splitter for MKVs have given me the best results so far.
-
I found this:
http://www.afterdawn.com/guides/archive/ffdshow_install_configure.cfm
and the 4 others pages of that guide.
And I have some good news: I installed Haali 1.11.96.14 and in its instalation procedures it asks to enable MP4 support, among others. After that, I could open that MP4 inside Vdub using DirectShowSource in an avs script. (good).
And I also have more questions:
Trying to convert an avi video to rmvb using EasyRealMediaProducer (ERMP) I got the following error (bad):
Code:Warning File Reader 2012/02/01 09:46:21 8107 Neither uncompressed audio or video was available in DirectShow Reader Error File Reader 2012/02/01 09:46:21 8406 Failed to load QuickTime libraries. QuickTime 5 or later is required. Error File Reader 2012/02/01 09:46:21 8322 Unexpected file format, D:\test_files\test.avi may be a flat file. Error SDK Configuration 2012/02/01 09:46:21 0 Failure to load reader for file D:\test_files\test.avi Error SDK Configuration 2012/02/01 09:46:21 0 Unable to initialize input 2012-02-01 09:46:21 Init Job Failed (D:\test_files\test.avi)! Error SDK Configuration 2012/02/01 09:46:21 14000 Attempted to start encoding with no Input Error SDK Configuration 2012/02/01 09:46:21 14001 Attempted to start encoding with no OutputProfile Error SDK Encoding 2012/02/01 09:46:21 15001 Job failed to start encoding
Code:General Complete name : D:\test_files\test.avi Format : AVI Format/Info : Audio Video Interleave File size : 700 MiB Duration : 1h 46mn Overall bit rate : 920 Kbps Writing application : Nandub v1.0rc2 Writing library : Nandub build 1853/release Video ID : 0 Format : MPEG-4 Visual Format profile : Advanced Simple@L5 Format settings, BVOP : Yes Format settings, QPel : No Format settings, GMC : No warppoints Format settings, Matrix : Default (H.263) Muxing mode : Packed bitstream Codec ID : XVID Codec ID/Hint : XviD Duration : 1h 46mn Bit rate : 774 Kbps Width : 624 pixels Height : 352 pixels Display aspect ratio : 16:9 Frame rate : 23.976 fps Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive Bits/(Pixel*Frame) : 0.147 Stream size : 589 MiB (84%) Writing library : XviD 64 Audio ID : 1 Format : MPEG Audio Format version : Version 1 Format profile : Layer 3 Mode : Joint stereo Mode extension : MS Stereo Codec ID : 55 Codec ID/Hint : MP3 Duration : 1h 46mn Bit rate mode : Variable Bit rate : 133 Kbps Channel(s) : 2 channels Sampling rate : 48.0 KHz Video delay : 8ms Stream size : 101 MiB (14%) Alignment : Aligned on interleaves Interleave, duration : 24 ms (0.58 video frame) Interleave, preload duration : 138 ms
Any suggestions?Thank you. -
I'm afraid, not. I think it try to use first DirectShow. If it isn't available, then it goes to the next step, QuickTime and so on. Several files I use to convert without such problem.
I also have a very similar file that I convert without problem. The only difference is here:
File without problem to convert
Code:Video ID : 0 Format : MPEG-4 Visual Format profile : Advanced Simple@L5 Format settings, BVOP : Yes Format settings, QPel : No Format settings, GMC : No warppoints Format settings, Matrix : Default (MPEG) Codec ID : XVID Codec ID/Hint : XviD
Code:Video ID : 0 Format : MPEG-4 Visual Format profile : Advanced Simple@L5 Format settings, BVOP : Yes Format settings, QPel : No Format settings, GMC : No warppoints Format settings, Matrix : Default (H.263) Muxing mode : Packed bitstream Codec ID : XVID Codec ID/Hint : XviD
Confused...Thank you. -
Jagabo,
you won't believe!
After your suggestion I checked ffdshow decode configuration once more (I've seen this screen since I left the bed today).
Of course, Xvid was enabled, using libavcodec.dll. The options are libavcodec and Xvid. I changed to Xvid and tried. Error again...
But... But... I don't know why, I decided to change this option to Disabled. Nonsense.
I tried again and, BINGO! It is running right now! No error!
Is it possible? More confused yet, but very happy!
Thank you. -
On system tray I have ffdshow audio decoder and DirectVobSub icons. Now, I realize that this video has a subtitle with same name. Maybe DirectVobSub is conflicting with ffdshow. Make sense?
Edited:
I stopped the conversion before finish. Result video is upside down (!!!).
I'll remove the subtitle and enable back libavcodec.
Edited (2):
It works! Removing subtitle file and bringing back libavcodec, conversion is plain and result video is standing.Last edited by jairovital; 1st Feb 2012 at 10:05.
Thank you. -
I think I could solve two problems today:
1 - Installing new Haali Splitter I could open MP4 video using Vdub. (good)
2 - Renaming the subtitle file to another name different from the video file I could convert an AVI file to RMVB redirecting DirectVobSub encoder to Xvid from ffdshow, avoiding some kind of conflict. (good)
But something is lacking on my system, now. Before update ffdshow I did had the following:
After update I have this:
Only lossless encoders... Where are MPEG-4, DivX-3 and others encoders?
How to use ffdshow codec inside Vdub to use MPEG-4 and others VFW encoders? (bad)
At FOURCC I had XVID, FFDS, FVFW, DX50, DIVX and MP4V. Now I have just MJPEG.
At left panel I had many options to set Quantization, Masking, Ratecontrol, Two Passes Mode and others.
Now I have only Quantization.
The update of ffdshow walked back? Or I miss something?Thank you. -
Many ffdshow vfw encoders have been removed . Either use old ffdshow build (not recommended), or use another encoder
If you want more info, you can see the discussion
http://forum.doom9.org/showthread.php?t=159425 -
Poisondeathray,
there is another thread, a huge one, about ffdshow tryouts project: Discussion & Development.
http://forum.doom9.org/showthread.php?p=1467129#post1467129,
as you already know. But I didn't know about those changes in ffdshow. Thank you for the tip.
Reading some posts I could find Xvid, H.264(vfw) and DivX individual encoders. Very nice.
Bye, bye codec packs.
One question: this H.264(vfw) that I can use with Vdub has the same (or similar) properties of that H.264 used with Avidemux?
I can see some differences at the configuration page of each one. But, may the core of work is possible the same?Thank you. -
There are 2 versions of x264 vfw, 2 different GUI's. One is from sourceforge , and doesn't have the options laid out, the other one is from komisar, and has options laid out. Both have command line boxes for other settings
sourceforge
http://sourceforge.net/projects/x264vfw/
komisar
http://komisar.gin.by/ -
Similar Threads
-
How to open .MP4 files in virtualdub? (i want to sharpen mp4
By fuc847 in forum Video ConversionReplies: 27Last Post: 22nd Apr 2015, 08:06 -
mkv with mp4 inside?
By m-man in forum Video ConversionReplies: 2Last Post: 22nd Dec 2009, 00:36 -
VirtualDub Appending Issues?? (Pix Inside)
By sandman423 in forum EditingReplies: 4Last Post: 7th Feb 2008, 06:01 -
DirectShowSource freezes VirtualDub
By PlayWithFire in forum Newbie / General discussionsReplies: 3Last Post: 11th Oct 2007, 01:07 -
DirectShowSource prob for AVI(DV) to MP4
By sekaiji in forum Video ConversionReplies: 3Last Post: 29th Jun 2007, 18:43