Welcome Guest ( Log In | Register )


Important

The forums will be closing permanently the weekend of March 15th. Please see the notice in the announcements forum for details.

Pages: (20) 1 2 [3] 4 5 ... Last » ( Go to first unread post )
Directshow Input Driver, 0.1
« Next Oldest | Next Newest » Track this topic | Email this topic | Print this topic
Gromozeka
Posted: Feb 7 2008, 08:57 AM


Unregistered









phaeron
I shall establish new windows and I shall check up on mpeg2, I shall publish here a chain from graphedit
 
  Top
edtam
Posted: Feb 7 2008, 02:50 PM


Newbie


Group: Members
Posts: 3
Member No.: 22629
Joined: 17-December 07



Thanks, so here's my problem rolleyes.gif

What I attempt is to open a file saved via my TV device. It captues digital TV signal, so it will always save as a .ts file. The audio is always AC3, and for video it can be either MPEG2 or H264 depending on the channel broadcasted.

I can play the file via MPC. It involves Haali Media Splitter -> FFDShow video decoder & AC3 filter.

I first try opening a MPEG2 + AC3 stream. Looks ok, although audio pops in the avi saved (not in preview).
I then open graphedit and examine the pins. For video, it is just the same as MPC. But no audio connection is shown, so I can't provide more information for it.

When I open a .ts containing an h264 stream, following may happen:
1) VD may pop up a "File [filename] does not have a video stream" error
2) or, VD may shows nothing - file dialog closed, no file opened, no error message, as if I did nothing to it.
So I have no luck opening a H264+AC3 file.

(I just tried the plugin again, now I can't even open a MPEG2 transport stream sad.gif . Strange enough. What I did is only an update of x264 vfw wacko.gif)
 
     Top
phaeron
Posted: Feb 8 2008, 05:26 AM


Virtualdub Developer


Group: Administrator
Posts: 7773
Member No.: 61
Joined: 30-July 02



The DirectShow input plugin uses a feature of DirectShow called the Media Detector to initially scan the file for audio and video streams. It looks like it may have some annoying restrictions that are preventing your streams from working -- one of them being that it doesn't support the VIDEOINFOHEADER2 format. The plugin does, but that doesn't help if the video stream doesn't get detected in the first place.

Sigh. Guess I'll have to rip it out and do it myself.

(People ask me why I always do things the hard way. It's because the easy way never works out.)
 
    Top
phaeron
Posted: Mar 4 2008, 05:48 AM


Virtualdub Developer


Group: Administrator
Posts: 7773
Member No.: 61
Joined: 30-July 02



New version of the plugin, 0.5:

http://www.virtualdub.org/beta/DShowInputD...tDriver-0.5.zip
http://www.virtualdub.org/beta/DShowInputD...ver-0.5-src.zip

This thing's been on the back burner while I work on 1.8.1 stuff, but SEt managed to find a couple of bugs and supplied fixes, which I've expanded a bit and integrated into 0.5. The exact issues that he found and fixed:


  • 32-bit RGB now works correctly (the plugin was requesting 24-bit RGB from the upstream).
  • There was a memory leak in the format handling.
  • The code didn't properly handle flipped RGB DIBs. The original fix only handled the case where some formats are inverted; this version can also handle the case where all of the formats are inverted, such as an upside-down uncompressed AVI.

 
    Top
SEt
Posted: Mar 7 2008, 12:36 PM


Newbie


Group: Members
Posts: 6
Member No.: 23164
Joined: 2-March 08



QUOTE (phaeron @ Mar 4 2008, 04:13 AM)
Also, if you have more info about the RGB565 issue, please post it there -- I tried to reproduce it and couldn't do so.

Open ffdshow properties->Output, leave checked only RGB16 colorspace. After that open any file with DShowInputDriver that would use ffdshow. The same with CoreAVC.
VD1.7.8: http://imagesjack.us/picture.php?p=4774d05fe1.png
VD1.8.0: both panes are like input pane of VD1.7.8

Also VD1.8.0 hangs if Video->Color depth->Decompression format dosen't allow the ones that decoder is able to provide. VD1.7.8 ignore that setting completely. The best would be try selected format first and if it's not available fallback to closest available.
 
     Top
Saribro
Posted: Mar 16 2008, 07:26 AM


Advanced Member


Group: Members
Posts: 46
Member No.: 22163
Joined: 26-September 07



QUOTE (edtam @ Feb 7 2008, 02:50 PM)
When I open a .ts containing an h264 stream, following may happen:
1) VD may pop up a "File [filename] does not have a video stream" error

Yeah, I think I've run into the same problem with (at least one) .mp4 containing H264 + AAC. The .mp4 input driver 0.2 won't show the video, the QT input driver shows the video but can't play the audio (lack of an AAC ACM codec? or because it's 5.1 audio?).
Telling ffdshow to handle H264 and AAC allows the file to be played in WMP (even though it says it doesn't know .mp4), but the DirectShow input driver also throws me the no video stream popup (I got past the audio error by telling ffdshow to handle AAC).
It sounds like the same issue.

(video, such a messy business biggrin.gif)
 
     Top
chritu
Posted: Apr 17 2008, 09:32 AM


Newbie


Group: Members
Posts: 3
Member No.: 16868
Joined: 9-October 05



QUOTE (phaeron @ Jan 10 2008, 05:09 AM)
Been sick this past week with a cold, and when I'm sick, I do things that I wouldn't ordinarily do. Therefore:

http://www.virtualdub.org/beta/DShowInputD...tDriver-0.4.zip

Place in plugins32 folder under VirtualDub program directory.

A few notes about this:

  • DirectShow sucks. You would think that for a primary video API on Windows that the task "extract frames and audio from a file" would be slightly easier than "a complete pain in the &#*($."
  • This input driver plugin works with both VirtualDub 1.7.6+ and 1.7.X test releases.
  • Direct stream copy is not possible. Both video and audio are always decompressed.
  • Video format switching does work (RGB24/RGB32/UYVY/YUY2/YV12/YVU9).
  • The plugin never auto-detects a file, so you will need to choose "DirectShow input driver" from the file type drop-down in the Open File dialog. I'm thinking about ways to solve this.
  • It's pretty raw, so it may hang or glitch sometimes. I have gotten it to work on AVI, MPEG-1, WMV, and MKV files. The error reporting sucks.
  • If the file does not natively have a frames per second associated with its video stream, it currently assumes 30 fps.
  • Only one audio stream is currently extracted. Haven't figured out how to reliably get access to alternate audio streams when building the DirectShow graph yet.


Update:
v0.3 is posted. This now scans the DirectShow file type extension list, so it'll automatically pick up extensions that VirtualDub wouldn't otherwise support. You'll still have to override the driver selection for a file format that's already supported, like AVI.

Update (2):
v0.4 is posted. This fixes a bug with the video stream read() call that caused filter preview to break in 1.8.0.

Thanks. You have helped me a lot.
Both the scripting works as the new wmv input driver. rolleyes.gif
 
     Top
goldblade0
Posted: May 19 2008, 06:46 AM


Newbie


Group: Members
Posts: 1
Member No.: 23603
Joined: 19-May 08



I have noticed that you get the error
File "C:\file.mkv" dose not have a a video stream.
when you load a mkv file with ASS subs in it. I dont know about outher subbtitle types but its just a heads up for you guys

(P.S. I'm new here but been a user of Virtualdub for over a year.)
 
     Top
vulcan
Posted: Jun 17 2008, 12:09 AM


Newbie


Group: Members
Posts: 4
Member No.: 23734
Joined: 16-June 08



Hello I am resurrecting this topic for a new question.
First the specs:
Virtualdub version 1.8.1
DirectShow Input Driver version 0.5
FFDShowTryouts rev 1993 (6-9-2008)
Quicktime 7.5 (7.50.61.0)
Windows Media Player 11 (11.0.5721.5145)

Now the question:
The DirectShow Input Driver plugin only works with WMV files for me. In the Open video file dialog box, if I select DirectShow input driver as the "files of type", it only displays wmv files.
What do I need to do to let it work with all the other file types like avi, flv, mpg, mov, mkv, etc?

 
    Top
squid_80
Posted: Jun 17 2008, 12:21 AM


Advanced Member


Group: Members
Posts: 594
Member No.: 13813
Joined: 22-January 05



Change "files of type" to all files, select the file you want, then change it back to DirectShow Input Driver.
 
     Top
vulcan
Posted: Jun 17 2008, 01:27 AM


Newbie


Group: Members
Posts: 4
Member No.: 23734
Joined: 16-June 08



Ahhh! Thank you.
Now however, I get a media detector error when I try to open any files that are FLV or MKV. The author said he was able to open MKV's. What am I missing there?
 
    Top
stephanV
Posted: Jun 17 2008, 06:46 AM


Spam killer ;)


Group: Moderators
Posts: 4348
Member No.: 8917
Joined: 18-February 04



You need to have DirectShow filters to open the files.

--------------------
useful links:
VirtualDub, Input plugins and filters, AviSynth, AVI-Mux GUI, AC3ACM by fcchandler, VirtualDub FAQ
 
    Top
vulcan
Posted: Jun 17 2008, 08:07 PM


Newbie


Group: Members
Posts: 4
Member No.: 23734
Joined: 16-June 08



QUOTE (stephanV @ Jun 16 2008, 11:46 PM)
You need to have DirectShow filters to open the files.

I have ffdshow, shouldn't that work? Or do I need like a mkv and flv filetype directshow filter?
 
    Top
Placio74
Posted: Jun 17 2008, 08:26 PM


VideoAudio


Group: Members
Posts: 1216
Member No.: 21485
Joined: 24-May 07



QUOTE (vulcan @ Jun 17 2008, 10:07 PM)
[QUOTE=stephanV,Jun 16 2008, 11:46 PM]
I have ffdshow, shouldn't that work?...

Hmm... example:
- for MKV > Haali Media Splitter + ffdshow
- for FLV > FLV Splitter + ffdshow

Works when i'm try.

--------------------
VideoAudio.pl - Serwis o technologii wideo & audio
 
     Top
RedPenguin
Posted: Jun 25 2008, 02:55 AM


Newbie


Group: Members
Posts: 7
Member No.: 22796
Joined: 8-January 08



Does this driver have problems on Vista and 2000?

I installed FFDshow + FLV Splitter on XP, Vista, and 2000.

I'm using VirtualDub 1.8.1 on all of 3.

I have FFDShow set to have libavcodec handle FLV + VP6F on both VFW Config and Video Decoder Config.

On XP, the FLVs open fine with DirectShow Input Driver, yet the exact same config on Vista and 2000 say, No Video Stream Found.

EDIT: FLVs play fine in Windows Media Player on all three OSes.

EDIT 2: Also VirtualDub does bring up FFDshow when using an AVISynth script to load the FLV on all systems.
 
     Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
291 replies since Jan 10 2008, 05:09 AM Track this topic | Email this topic | Print this topic
Pages: (20) 1 2 [3] 4 5 ... Last »
<< Back to VirtualDub Filters and Filter Development