Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > New and alternative a/v containers

Reply
 
Thread Tools Search this Thread Display Modes
Old 16th January 2012, 21:47   #8281  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,342
WMV9/3 is handled by the VC-1 decoder in DXVA2

I'll possibly add MPEG4-ASP to DXVA some day, but ffmpeg doesnt have support for it yet, so it is a bit more effort.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders
nevcairiel is offline   Reply With Quote
Old 16th January 2012, 21:56   #8282  |  Link
VipZ
Registered User
 
Join Date: Jun 2009
Location: London
Posts: 378
Thanks

With this sample, CrowdRun_2160p50.x264.CRF24.mkv. Its to be expected not to decode properly on any hardware with DXVA copy-back? When I test its very slow and 1/2 the screen is green (GPU load is always under 20% and CPU under 5%)
__________________
Windows 11 Pro, CPU: Ryzen 9 5900X, GPU: GeForce RTX 3090 /w 512.95, Audio: HDMI to Yamaha RX-A3060 (5.1)
VipZ is offline   Reply With Quote
Old 16th January 2012, 22:05   #8283  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,342
If the hardware claims it supports such a resolution, it'll most certainly try to decode it.
Sadly i don't have any hardware to test this on (yet), mine just blocks the attempt at using DXVA
__________________
LAV Filters - open source ffmpeg based media splitter and decoders
nevcairiel is offline   Reply With Quote
Old 16th January 2012, 22:57   #8284  |  Link
jos99
Registered User
 
Join Date: Nov 2008
Posts: 81
Quote:
Originally Posted by NikosD View Post
Just FYI there is a common misconception regarding WMV9.
Microsoft's WMV9 is the implementation of the whole VC-1 standard.
The VC-1 Simple and Main profiles are fully compliant with WMV3.
The VC-1 Advanced profile is the "pure" VC-1 format (FourCC=WVC1) not included in the initial WMV9 family before the standardization of VC-1, but it was added after.
So WMV9 includes all three profiles of VC-1.
Confusingly, the mediainfo from my HD wmv clip says VC-1 and WMV3- I thought WMV3 was older standard?

Video
ID : 2
Format : VC-1
Format profile : MP
Codec ID : WMV3
Codec ID/Info : Windows Media Video 9
Codec ID/Hint : WMV3
Description of the codec : Windows Media Video V9 - 1920 x 1080, 29.96 fps, Q=90 (VBR)
jos99 is offline   Reply With Quote
Old 16th January 2012, 22:58   #8285  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,342
VC-1 Main Profile (MP) is 100% compliant with WMV3. Only Advanced Profile is new in VC-1
__________________
LAV Filters - open source ffmpeg based media splitter and decoders
nevcairiel is offline   Reply With Quote
Old 16th January 2012, 23:29   #8286  |  Link
jos99
Registered User
 
Join Date: Nov 2008
Posts: 81
Quote:
Originally Posted by nevcairiel View Post
VC-1 Main Profile (MP) is 100% compliant with WMV3. Only Advanced Profile is new in VC-1
I see, thanks, so should this be accelerated with NVidia 9800GT on the current version or on the next LAV version? DXVA Checker lists

ModeVC1_IDCT: DXVA1/2, 720x480 / 1280x720 / 1920x1080
ModeWMV9_IDCT: DXVA1/2, 720x480 / 1280x720 / 1920x1080
jos99 is offline   Reply With Quote
Old 16th January 2012, 23:37   #8287  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,342
The CUVID decoder should be able to use that, yes.
Its only partial acceleration, but better then nothing.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders
nevcairiel is offline   Reply With Quote
Old 17th January 2012, 01:25   #8288  |  Link
jos99
Registered User
 
Join Date: Nov 2008
Posts: 81
Quote:
Originally Posted by nevcairiel View Post
The CUVID decoder should be able to use that, yes.
Its only partial acceleration, but better then nothing.
So are you saying CUVID works now but in the next version DXVA will be better? I just found this document searching for diff between VC1_IDCT and VC1_VLD, dunno if this is any use to you

http://download.microsoft.com/downlo...d/DXVA_WMV.pdf
jos99 is offline   Reply With Quote
Old 17th January 2012, 04:06   #8289  |  Link
mindbomb
Registered User
 
Join Date: Aug 2010
Posts: 576
possible problem.
my friend was playing an mkv, and within the folder that the mkv was in was an mka with the same file name.

This caused another instance of lav splitter to open, which caused another lav audio to open, and he had multiple audios playing at the same time.

I believe the audio was AAC in both files, but I'm not certain.

the player used was mpc hc v1.5.2.3456, lav audio .44 and lav splitter .44.
mindbomb is offline   Reply With Quote
Old 17th January 2012, 06:54   #8290  |  Link
Andy o
Registered User
 
Join Date: Mar 2009
Posts: 962
That's likely a feature for playing video and audio streams from separate files, same as you can do with subs. Just change the file name or put it in another folder. (mka is matroska's audio container just in case.)
__________________
MSI MAG X570 TOMAHAWK WIFI, Ryzen 5900x, RTX 3070, Win 10-64.
Pioneer VSX-LX503, LG OLED65C9
Andy o is offline   Reply With Quote
Old 17th January 2012, 06:57   #8291  |  Link
golagoda
Registered User
 
Join Date: Aug 2011
Posts: 98
Quote:
Originally Posted by nevcairiel View Post
Here is a new test version:

http://files.1f0.de/lavf/LAVFilters-...xva2-test3.zip

New is DXVA2 VC-1 interlaced support (only in DXVA, not software), software fallback should now be functional, as well as some general fixings and improvements.

Here is also a second test version for users of older Intel GPUs, it may or may not improve things when using DXVA2:
http://files.1f0.de/lavf/LAVFilters-...2-test-gma.zip

I'm only going by some documentation i found, i don't actually have such a GPU.
Thanks for this test build, I assume you're now using 0.9.x or the latest git master of ffmpeg now because this build at least in my tests has improved seeking in H.264 greatly, before when I would use LAVFilters in combination with madVR there would be a bit of a lag when you tried to seek, but now it's instantaneous and I noticed 'update ffmpeg' a few times on google code.

Last edited by golagoda; 17th January 2012 at 06:59.
golagoda is offline   Reply With Quote
Old 17th January 2012, 07:46   #8292  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,342
Quote:
Originally Posted by jos99 View Post
So are you saying CUVID works now but in the next version DXVA will be better?[/url]
CUVID supports partial acceleration, my DXVA2 does not and will never. Only VLD in DXVA is supported.

Quote:
Originally Posted by mindbomb View Post
my friend was playing an mkv, and within the folder that the mkv was in was an mka with the same file name.

This caused another instance of lav splitter to open, which caused another lav audio to open, and he had multiple audios playing at the same time
Thats a MPC-HC feature. You can either turn that feature off completely (Playback -> Auto-load audio files), or just enable the internal Audio Switcher, which will allow you to choose which file is actually output, instead of outputting both.
LAV has zero influence on this.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders

Last edited by nevcairiel; 17th January 2012 at 07:54.
nevcairiel is offline   Reply With Quote
Old 17th January 2012, 07:52   #8293  |  Link
mindbomb
Registered User
 
Join Date: Aug 2010
Posts: 576
i see, thanks for clearing that up.
mindbomb is offline   Reply With Quote
Old 17th January 2012, 07:56   #8294  |  Link
Aleksoid1978
Registered User
 
Aleksoid1978's Avatar
 
Join Date: Apr 2008
Location: Russia, Vladivostok
Posts: 2,783
Quote:
Originally Posted by Pat357 View Post
Nev,
I noticed a cosmeric bug : the Lav-splitter out-pin and the video-in and -out pin from Lavvideo report 6fps instead of 60fps
(In DXVA mode on my GTX 570)
I use LAVFilters-0.44-fc517a9
Code:
Filter : LAV Video Decoder - CLSID : {EE30215D-164F-4A92-A4EB-9D4C13390F9F}

- Connected to:
CLSID: {B98D13E7-55DB-4385-A33D-09FD1BA26338}
Filter: LAV Splitter Source
Pin: Video

- Connection media type:
Video: MPEG4 Video (H264) 1920x1080 6fps 20897kbps

AM_MEDIA_TYPE: 
majortype: MEDIATYPE_Video {73646976-0000-0010-8000-00AA00389B71}
subtype: Unknown GUID Name {31435641-0000-0010-8000-00AA00389B71}
formattype: FORMAT_MPEG2_VIDEO {E06D80E3-DB46-11CF-B4D1-00805F6CBBEA}
bFixedSizeSamples: 0
bTemporalCompression: 1
lSampleSize: 1
cbFormat: 162

VIDEOINFOHEADER:
rcSource: (0,0)-(1920,1080)
rcTarget: (0,0)-(1920,1080)
dwBitRate: 20897898
dwBitErrorRate: 0
AvgTimePerFrame: 166667

VIDEOINFOHEADER2:
dwInterlaceFlags: 0x00000000
dwCopyProtectFlags: 0x00000000
dwPictAspectRatioX: 16
dwPictAspectRatioY: 9
dwControlFlags: 0x00000000
dwReserved2: 0x00000000

MPEG2VIDEOINFO:
dwStartTimeCode: 0
cbSequenceHeader: 30
dwProfile: 0x0000004d
dwLevel: 0x0000002a
dwFlags: 0x00000004

BITMAPINFOHEADER:
biSize: 40
biWidth: 1920
biHeight: 1080
biPlanes: 1
biBitCount: 24
biCompression: AVC1
biSizeImage: 6220800
biXPelsPerMeter: 0
biYPelsPerMeter: 0
biClrUsed: 0
biClrImportant: 0

PS: it seems independent from the choosen vid mode : softw, CUVID en DXVA all report the same (Lav-splitter is sending 6 fps this downstream)
50 fps is reported as 5fps, 25fps is OK.
Can you upload a sample - for test with MPC-HC, i try to fix.
__________________
AMD Ryzen 5 3600 /GIGABYTE B450 Gaming X /Patriot 32Gb@3200 /Kingston 500Gb M.2 /RTX 4060 /Samsung U28R550UQI /OLED Philips 55OLED707 /Yamaha RX-V471 + NS-555 + NS-C444 + NS-333 + YST-SW215
Aleksoid1978 is offline   Reply With Quote
Old 17th January 2012, 08:07   #8295  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,342
Quote:
Originally Posted by Aleksoid1978 View Post
Can you upload a sample - for test with MPC-HC, i try to fix.
Its in src/DSUtil/MediaTypeEx.cpp, line 72 and 82, the TrimRight will remove all extra zeros and dots, so 60.000 becomes 6 and 30.000 becomes 3.
To preserve the current functionality, do it with two TrimRights, first trim zeros (60.000 becomes 60.), then trim a dot. Don't trim both at the same time.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders

Last edited by nevcairiel; 17th January 2012 at 08:10.
nevcairiel is offline   Reply With Quote
Old 17th January 2012, 09:57   #8296  |  Link
PeQuE
Registered User
 
Join Date: Feb 2011
Posts: 26
Quote:
Originally Posted by nevcairiel View Post
If the audio renderer doesnt want to connect to E-AC3, then it usually means it thinks your hardware doesn't support it.
That's what I though first... but then I realised that ffdshow is also bitstreaming EAC3 to my hardware, and audio renderer is connecting with no problem... ¿? May be ffdshow is fooling the renderer...

But ok... I'll need to investigate a little bit more. I'll try downgrading to 0.43 or lower, as I don't remember to have seen this problem before. Anyway, not a big problem disabling bitstreaming for EAC3 if that's the case.

Thanks a lot.

Last edited by PeQuE; 17th January 2012 at 11:41.
PeQuE is offline   Reply With Quote
Old 17th January 2012, 11:19   #8297  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,342
Bitstreaming didn't change at all for quite a while, i doubt the issue goes away.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders
nevcairiel is offline   Reply With Quote
Old 17th January 2012, 13:20   #8298  |  Link
Aleksoid1978
Registered User
 
Aleksoid1978's Avatar
 
Join Date: Apr 2008
Location: Russia, Vladivostok
Posts: 2,783
Nev - bad playback http://www.megaupload.com/?d=2KAAU7RR VC1 1080p60. MPC-HC also bad ))
__________________
AMD Ryzen 5 3600 /GIGABYTE B450 Gaming X /Patriot 32Gb@3200 /Kingston 500Gb M.2 /RTX 4060 /Samsung U28R550UQI /OLED Philips 55OLED707 /Yamaha RX-V471 + NS-555 + NS-C444 + NS-333 + YST-SW215
Aleksoid1978 is offline   Reply With Quote
Old 17th January 2012, 13:34   #8299  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,342
Quote:
Originally Posted by golagoda View Post
Thanks for this test build, I assume you're now using 0.9.x or the latest git master of ffmpeg now because this build at least in my tests has improved seeking in H.264 greatly, before when I would use LAVFilters in combination with madVR there would be a bit of a lag when you tried to seek, but now it's instantaneous and I noticed 'update ffmpeg' a few times on google code.
I usually update quite frequently (always against master), typically at least once shortly after a LAV release (so that any bugs that might come from ffmpeg can be resolved until the next release).
__________________
LAV Filters - open source ffmpeg based media splitter and decoders
nevcairiel is offline   Reply With Quote
Old 17th January 2012, 16:37   #8300  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,342
Quote:
Originally Posted by Aleksoid1978 View Post
Nev - bad playback http://www.megaupload.com/?d=2KAAU7RR VC1 1080p60. MPC-HC also bad ))
CUVID decides to not use DXVA for that sample and call the GPU directly, who knows whats wrong with that. Maybe i have some time another day to look.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders
nevcairiel is offline   Reply With Quote
Reply

Tags
decoders, directshow, filters, splitter

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 15:43.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.