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: (23) 1 [2] 3 4 ... Last » ( Go to first unread post )
New FLV and Matroska plugins for VirtualDub, (works in progress)
« Next Oldest | Next Newest » Track this topic | Email this topic | Print this topic
Gromozeka
Posted: Oct 9 2010, 08:48 AM


Advanced Member


Group: Members
Posts: 52
Member No.: 26717
Joined: 1-January 10



fccHandler[B]
Thanks
But audio aac is not defined in matroska sad.gif
You can will compilled Faac acm (ac3 acm is)?
source was in sounforge rolleyes.gif
 
     Top
Barough
Posted: Oct 9 2010, 04:58 PM


Advanced Member


Group: Members
Posts: 95
Member No.: 22677
Joined: 24-December 07



Thnx for the update MKV plugin. smile.gif

--------------------
user posted image
 
    Top
fccHandler
Posted: Oct 9 2010, 08:33 PM


Administrator n00b


Group: Moderators
Posts: 3961
Member No.: 280
Joined: 13-September 02



Gromozeka, I never say never, but currently I do not have any plans to make an AAC ACM codec.

I found some major bugs in last night's build and have uploaded version 1.2:

http://fcchandler.home.comcast.net/Plugins/Matroska

I added support for MPEG Layer II audio, but it's kind of strange. On my system in File Information I see Unknown tag 0x0050, and yet it plays OK in VirtualDub. I have no idea how that works...

This build also marks a milestone because I can now open all of the Matroska files I have. biggrin.gif


--------------------
May the FOURCC be with you...
 
     Top
v0lt
  Posted: Oct 9 2010, 10:06 PM


Advanced Member


Group: Members
Posts: 119
Member No.: 26125
Joined: 5-September 09



fccHandler
QUOTE
I found some major bugs in last night's build and have uploaded version 1.2:

Good job!
I was able to open almost all Matroska files except the 3 files. wink.gif

file1 (DirectShow Matroska Muxer)
file2 (mkvmerge v4.2.0)
file3 (mkvmerge v1.7.0, MPEG-2+AC3+mp3)
 
     Top
Tommy Carrot
Posted: Oct 10 2010, 02:05 AM


Newbie


Group: Members
Posts: 5
Member No.: 23340
Joined: 30-March 08



Thank you very much for the plugins, i was waiting for so long for something like your matroska input plugin. Direct stream copy seems to be working correctly with it, so cutting a part out of an MKV video (to AVI, but it's ok to me) is finally easy and simple, unlike with mkvmerge. (and it's working correctly, unlike avidemux laugh.gif)
 
     Top
Gromozeka
Posted: Oct 10 2010, 05:12 AM


Advanced Member


Group: Members
Posts: 52
Member No.: 26717
Joined: 1-January 10



fccHandler
Thank you for the plugins smile.gif
Bad that you do not plan faac acm
But matroska plugin work fine - mkv with x264 and aac save to avi (avi played with aac audio good) laugh.gif
now mkv possible to edit
 
     Top
fccHandler
Posted: Oct 10 2010, 06:34 AM


Administrator n00b


Group: Moderators
Posts: 3961
Member No.: 280
Joined: 13-September 02



@v0lt: Thanks so much for uploading your test files! I downloaded the first two files, but there is no link to the third file.

The Crank file contains MPEG-2 video and I have no plans to support that right now. (If your third file contains MPEG-2 video then it is likewise unsupported.)

The Offspring video has an unusual Segment size of -1, but that's not necessarily out of spec and it is easy to work around. However, it also contains Windows Media Audio and I'm not sure yet whether it will be possible to support that. I will give it a try though; stay tuned.


--------------------
May the FOURCC be with you...
 
     Top
v0lt
Posted: Oct 10 2010, 06:57 AM


Advanced Member


Group: Members
Posts: 119
Member No.: 26125
Joined: 5-September 09



@fccHandler: The third file has a size of ~ 400MB. Yes, it's MPEG-2 video.
QUOTE
The Crank file contains MPEG-2 video and I have no plans to support that right now. (If your third file contains MPEG-2 video then it is likewise unsupported.)

You can not rush. It's just two files with MPEG-2 video.

QUOTE
The Offspring video has an unusual Segment size of -1, but that's not necessarily out of spec and it is easy to work around. However, it also contains Windows Media Audio and I'm not sure yet whether it will be possible to support that. I will give it a try though; stay tuned.

IMHO, this is an example of the wrong file. Maybe it is unique. smile.gif
 
     Top
v0lt
  Posted: Oct 10 2010, 01:44 PM


Advanced Member


Group: Members
Posts: 119
Member No.: 26125
Joined: 5-September 09



@fccHandler
QUOTE
but currently I do not have any plans to make an AAC ACM codec.

What do you think about decoding AAC through libfaad2.dll?
For example, MPEG-2 plugin has a built-in decoder for MPEG-Audio, and VirtualDub has a built-in decoder for MJPEG and DV.
Make decoding using DLL will be easier than doing the ACM codec?
 
     Top
levicki
Posted: Oct 16 2010, 10:02 PM


Advanced Member


Group: Members
Posts: 167
Member No.: 22605
Joined: 13-December 07



@fccHandler:

There are several problems with matroska plugin for me (in order of importance):

1. I get "missing codec" for MKV file with 'AVC1' video FourCC. Do I need to have VFW x264 decoder? I have CoreAVC Professional installed (which includes Haali Media Splitter), and the same file opens and renders correctly using DShowInputDriver.vdplugin.

2. I cannot choose audio language -- your plugin doesn't detect and forward multiple audio streams to VirtualDub.

3. Parsing 8129 MB MKV file takes a lot of time (1m15s) on this computer. DShowInputDriver.vdplugin opens the same file instantly.

Regards,
Igor
 
      Top
fccHandler
Posted: Oct 17 2010, 06:37 AM


Administrator n00b


Group: Moderators
Posts: 3961
Member No.: 280
Joined: 13-September 02



v0lt:
I do not want to embed any audio/video decoders into the plugin. The Correct™ way to handle this problem is via Windows ACM. So I might be inspired to create an AAC ACM codec someday, but currently I am not planning to do so.

levicki:
You need a VCM decoder for the 'AVC1' FOURCC. I am using the ffdshow-tryouts on my system.

I imagine that an 8 GB file will take a long time to parse. The Matroska format supports a sample index, which in theory should eliminate the need to parse. But that index is not guaranteed to be present, and for that reason I am not utilizing it now. Maybe in the future I can support it.


--------------------
May the FOURCC be with you...
 
     Top
levicki
Posted: Oct 17 2010, 06:15 PM


Advanced Member


Group: Members
Posts: 167
Member No.: 22605
Joined: 13-December 07



QUOTE (fccHandler @ Oct 17 2010, 07:37 AM)
You need a VCM decoder for the 'AVC1' FOURCC. I am using the ffdshow-tryouts on my system.

I imagine that an 8 GB file will take a long time to parse. The Matroska format supports a sample index, which in theory should eliminate the need to parse. But that index is not guaranteed to be present, and for that reason I am not utilizing it now. Maybe in the future I can support it.

Can't you detect if index is there and use it (or not) accordingly? During parsing, CPU utilisation floats between 1% and 3%. I understand it can be an I/O intensive operation but it still sounds way too slow. Perhaps some profiling is in order?

I think I will wait for Matroska plugin to get improved a bit, and in the meantime I will share my current setup with you:

1. I got GTX 470 video card (CUDA capable, a bit expensive but there are cheaper cards out there as well to chose from)
2. I bought CoreAVC 2.0 Professional for $10 (includes Haali Media Splitter)
3. I removed Matroska, WMV and QuickTime input plugins
4. I uninstalled QuickTime codecs and all other codecs I know are bad
5. I installed DirectShow Input Driver 0.8
6. I registered MP4, MOV, MKV and WMV to DirectShow Input Driver
7. I patched VirtualDub 1.9.10 so it doesn't use internal ASF input driver (otherwise you can't load WMV from file associations or command line)

Results:
1. I can open and decode all WMV files -- with WMV plugin I had some files which were giving me "missing codec" message (because WMV9VCM doesn't handle older codec versions)
2. I can open HD MOV files from my Canon 5D Mark II camera -- they were being decoded using QuickTime before, and only frames decoded properly were keyframes. Those files use AVC1 so they are decoded in hardware by CoreAVC
3. I can open MP4 files encoded with H264 and have them decoded in hardware too
4. I can open MKV files with AVC1 and H264 -- they are opened instantly, decoded using CoreAVC on a GPU and seeking is instant

The only thing missing is:

1. support for choosing audio stream for MKV
2. file information no longer shows video and audio codec info because of configuration dialog which is not very good
 
      Top
fccHandler
Posted: Oct 23 2010, 04:56 AM


Administrator n00b


Group: Moderators
Posts: 3961
Member No.: 280
Joined: 13-September 02



levicki:
Indexing speed is not a priority for me right now. Personally I am satisfied that Matroska files can be opened at all, regardless of how long it takes. That's really all I wanted from this plugin. I do plan to address performance issues in the future though.

I've uploaded a new version 1.3 with some improvements:
http://fcchandler.home.comcast.net/Plugins/Matroska

I added support for the "Header Stripping" algorithm which I have been seeing in newer Matroska files.

Windows Media Audio can be direct stream copied, but it will not play in VirtualDub, although it should. I don't know yet why it fails to play.

I am having issues with the AVC decoder of ffdshow-tryouts 1.0.3.1316. It crashes sometimes with newer AVC files. Nevertheless I can direct stream copy that AVC into an AVI and play it back with MPlayer, no problem. From this I conclude that my unwrapping of the raw AVC frames is correct, but the ffdshow VFW decoder is bugged. Just be aware of that if you see video corruption in VirtualDub.


--------------------
May the FOURCC be with you...
 
     Top
v0lt
Posted: Oct 23 2010, 05:20 AM


Advanced Member


Group: Members
Posts: 119
Member No.: 26125
Joined: 5-September 09



Thank you!

I would like to see a selection of audio tracks, as is done for AVI-files. Is it real?
 
     Top
fccHandler
Posted: Oct 23 2010, 05:41 AM


Administrator n00b


Group: Moderators
Posts: 3961
Member No.: 280
Joined: 13-September 02



Oh yes, I definitely plan to implement the capability to choose from multiple audio tracks. That is high on my priorities.


--------------------
May the FOURCC be with you...
 
     Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
337 replies since Sep 26 2010, 04:58 AM Track this topic | Email this topic | Print this topic
Pages: (23) 1 [2] 3 4 ... Last »
<< Back to VirtualDub Filters and Filter Development