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 23rd August 2011, 03:03   #5021  |  Link
ageback
Registered User
 
Join Date: Oct 2009
Location: Jiang Su,China
Posts: 58
Quote:
Originally Posted by betaking View Post
To:nevcairiel,can you make lavaudio change decoder format write to Registry like it to lavvideo and lav splitters?
[HKEY_CURRENT_USER\Software\LAV\Splitter\Formats]
"4xm"=dword:00000000
"aac"=dword:00000000
or
[HKEY_CURRENT_USER\Software\LAV\Video\Formats]
"h264"=dword:00000000
"vc1"=dword:00000000
For example made ​​of this
[HKEY_CURRENT_USER\Software\LAV\Audio\Formats]
"aac"=dword:00000000
+1
That would be easier for other programs to call LAV Audio Config dialog.
ageback is offline   Reply With Quote
Old 23rd August 2011, 03:14   #5022  |  Link
lauhangwoo
Registered User
 
Join Date: Jul 2011
Posts: 6
It's already planned.
http://code.google.com/p/lavfilters/issues/detail?id=9
lauhangwoo is offline   Reply With Quote
Old 23rd August 2011, 03:20   #5023  |  Link
betaking
Fantasy Codecs writer
 
betaking's Avatar
 
Join Date: Nov 2007
Location: Yang Zhou,Jiang Su,China
Posts: 392
Quote:
Originally Posted by lauhangwoo View Post
but,still not change to last 0.34 git!
betaking is offline   Reply With Quote
Old 23rd August 2011, 03:29   #5024  |  Link
roytam1
Firefox User
 
Join Date: Sep 2003
Posts: 202
New nightly: http://roy.orz.hm/lavf-w32-nightlies...23-885aeb29.7z

local fix:
Code:
diff --git a/decoder/LAVVideo/LAVVideo.cpp b/decoder/LAVVideo/LAVVideo.cpp
index 9e9961d..0525738 100644
--- a/decoder/LAVVideo/LAVVideo.cpp
+++ b/decoder/LAVVideo/LAVVideo.cpp
@@ -597,7 +597,7 @@ HRESULT CLAVVideo::ReconnectOutput(int width, int height, AVRational ar)
     if (!m_settings.StreamAR || num == 0 || den == 0) {
       if (m_bForceInputAR) {
         DWORD dwARX, dwARY;
-        formatTypeHandler(m_pInput->CurrentMediaType().Format(), m_pInput->CurrentMediaType().FormatType(), NULL, NULL, &dwARX, &dwARY);
+        videoFormatTypeHandler(m_pInput->CurrentMediaType().Format(), m_pInput->CurrentMediaType().FormatType(), NULL, NULL, &dwARX, &dwARY);
         num = dwARX;
         den = dwARY;
         m_bForceInputAR = FALSE;
roytam1 is offline   Reply With Quote
Old 23rd August 2011, 05:50   #5025  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,359
Quote:
Originally Posted by roytam1 View Post
New nightly: http://roy.orz.hm/lavf-w32-nightlies...23-885aeb29.7z

local fix:
Code:
diff --git a/decoder/LAVVideo/LAVVideo.cpp b/decoder/LAVVideo/LAVVideo.cpp
index 9e9961d..0525738 100644
--- a/decoder/LAVVideo/LAVVideo.cpp
+++ b/decoder/LAVVideo/LAVVideo.cpp
@@ -597,7 +597,7 @@ HRESULT CLAVVideo::ReconnectOutput(int width, int height, AVRational ar)
     if (!m_settings.StreamAR || num == 0 || den == 0) {
       if (m_bForceInputAR) {
         DWORD dwARX, dwARY;
-        formatTypeHandler(m_pInput->CurrentMediaType().Format(), m_pInput->CurrentMediaType().FormatType(), NULL, NULL, &dwARX, &dwARY);
+        videoFormatTypeHandler(m_pInput->CurrentMediaType().Format(), m_pInput->CurrentMediaType().FormatType(), NULL, NULL, &dwARX, &dwARY);
         num = dwARX;
         den = dwARY;
         m_bForceInputAR = FALSE;
Something must be wrong with your checkout, that change is in the repository...
__________________
LAV Filters - open source ffmpeg based media splitter and decoders
nevcairiel is offline   Reply With Quote
Old 23rd August 2011, 07:51   #5026  |  Link
roytam1
Firefox User
 
Join Date: Sep 2003
Posts: 202
Quote:
Originally Posted by nevcairiel View Post
Something must be wrong with your checkout, that change is in the repository...
yeah. I recloned it again, rebuild and replaced the archive above.
roytam1 is offline   Reply With Quote
Old 23rd August 2011, 07:56   #5027  |  Link
madshi
Registered Developer
 
Join Date: Sep 2006
Posts: 9,140
Quote:
Originally Posted by Plutotype View Post
Hi Nev,
I would like to vote for enabling your VC-1 decoder as default.
Im not sure if also by the others, but in my setup, the WMVideo Decoder DMO causes A/V sync issues, when seeking/jumping in the timeline ( lipsync issues ). With VC-1 videos I mean.
Pluto
Why not trying to fix the AV sync issues instead of going back to a slower and less capable (interlaced) decoder? Of course the question is whether the AV sync issues are caused by the decoder or the splitter or by a "misunderstanding" between the splitter and decoder. I'd suggest to double check with other splitters to get an idea about whether it's a problem with the MS VC-1 decoder itself.
madshi is offline   Reply With Quote
Old 23rd August 2011, 07:59   #5028  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,359
I believe the sync issues are fixed. I had that problem before as well, but some quick tests last night showed promising results.
The WMVideo decoder strongly relys on the proper signaling of sync points in the samples, but when i wrote that part, i basically copied that from the MPC-HC MPEG Splitter, which was wrong. I now changed it to detect key-frames in the actual content, and signal those as sync points, and playback greatly improved with the WMVideo decoder. I believe it also uses those sync points to sync its timestamps, which caused the desync before.

The only thing missing now is also detecting keyframes for MPEG-2 video...
__________________
LAV Filters - open source ffmpeg based media splitter and decoders

Last edited by nevcairiel; 23rd August 2011 at 08:09.
nevcairiel is offline   Reply With Quote
Old 23rd August 2011, 14:38   #5029  |  Link
fastplayer
Registered User
 
Join Date: Nov 2006
Posts: 799
I'm not sure if this is 100% LAV-related but it brings MPC-HC down to its knees whereas its internal filters work fine.
Here are the steps to reproduce:
1. http://download.microsoft.com/downlo...iquid_1080.exe
2. Make sure "Rewind when done playing" is disabled in MPC-HC.
3. Start playback, seek to the near end of the video, wait until playback stops.
4. Now start playback by clicking on the video or pressing Space key.
5. Result: With MPC's internal filters/splitters, playback restarts as expected. Using LAVFilters, MPC-HC freezes 2 out of 3 times.

My setup: madVR 0.74 (windowed mode), LAV 0.33 (default settings), MPC-HC 3694.

Can anyone else reproduce this?

Edit: I narrowed it down to LAVVideo. If it's disabled, restarts are OK.

Last edited by fastplayer; 23rd August 2011 at 15:10. Reason: Clarification: Not the very but the near end.
fastplayer is offline   Reply With Quote
Old 23rd August 2011, 16:44   #5030  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,359
There is definitely something odd going on when using Microsofts WM ASF Reader as a source filter, which causes the hang you're seeing.
For some reason, it sends a data packet to decode, and at the same time, on another thread, its calling the Stop method on the filter, and eventually this results in a hang. Very odd.

I cleaned up some things that should stop the hang in this case, but still, its weird.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders
nevcairiel is offline   Reply With Quote
Old 23rd August 2011, 16:55   #5031  |  Link
JarrettH
Registered User
 
Join Date: Aug 2004
Location: Canada
Posts: 860
Quote:
Originally Posted by nevcairiel View Post
I believe the sync issues are fixed. I had that problem before as well, but some quick tests last night showed promising results.
The WMVideo decoder strongly relys on the proper signaling of sync points in the samples, but when i wrote that part, i basically copied that from the MPC-HC MPEG Splitter, which was wrong. I now changed it to detect key-frames in the actual content, and signal those as sync points, and playback greatly improved with the WMVideo decoder. I believe it also uses those sync points to sync its timestamps, which caused the desync before.

The only thing missing now is also detecting keyframes for MPEG-2 video...
When I think of MPEG2 video, I think of DVDs
JarrettH is offline   Reply With Quote
Old 23rd August 2011, 17:03   #5032  |  Link
fastplayer
Registered User
 
Join Date: Nov 2006
Posts: 799
Quote:
Originally Posted by nevcairiel View Post
There is definitely something odd going on when using Microsofts WM ASF Reader as a source filter, which causes the hang you're seeing.
For some reason, it sends a data packet to decode, and at the same time, on another thread, its calling the Stop method on the filter, and eventually this results in a hang. Very odd.

I cleaned up some things that should stop the hang in this case, but still, its weird.
I'm glad this all makes sense to you.
It's not a biggie though. I use the sample above only for testing and thought I'd report it. It seemed odd to me that MPC's internal decoder handles it just fine while LAVVideo stumbles over. Usually, it's the other way around!
fastplayer is offline   Reply With Quote
Old 23rd August 2011, 18:07   #5033  |  Link
Plutotype
Registered User
 
Join Date: Apr 2010
Posts: 235
Quote:
Originally Posted by nevcairiel View Post
I believe the sync issues are fixed. I had that problem before as well, but some quick tests last night showed promising results.
The WMVideo decoder strongly relys on the proper signaling of sync points in the samples, but when i wrote that part, i basically copied that from the MPC-HC MPEG Splitter, which was wrong. I now changed it to detect key-frames in the actual content, and signal those as sync points, and playback greatly improved with the WMVideo decoder. I believe it also uses those sync points to sync its timestamps, which caused the desync before.

The only thing missing now is also detecting keyframes for MPEG-2 video...
The MS VC-1 decoder I use, is either from WMP12 or comes with the AMD Catalyst package. I have tested the one in ffdshow (wmv9) and the A/V lipsync issues when jumping in the timeline are exactly the same. The wmv9 decoder in ffdshow is not recommended at all - in my setup, when starting a movie or seeking in the timeline, it takes almost 5 seconds to start synchronised A/V playback ( its way too slow ).

Is there any other/updated MS VC-1 decoder which I can install and test?

Thanks
__________________
__________________
System: Intel Core i5-6500, 16GB RAM, GTX1060, 75" Sony ZD9, Focal speakers, OS Win10 Pro, Playback: madvr/JRiver
Plutotype is offline   Reply With Quote
Old 23rd August 2011, 18:09   #5034  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,359
The MS decoder comes with WMP, and on Win7 there is no way to upgrade it, as it already comes with the latest as-is.

I mean the actual decoder, not the one in ffdshow. The filter called "WMVideo Decoder DMO"
__________________
LAV Filters - open source ffmpeg based media splitter and decoders
nevcairiel is offline   Reply With Quote
Old 23rd August 2011, 18:21   #5035  |  Link
Plutotype
Registered User
 
Join Date: Apr 2010
Posts: 235
So I will stick to your libav-based VC-1 decoder.
__________________
__________________
System: Intel Core i5-6500, 16GB RAM, GTX1060, 75" Sony ZD9, Focal speakers, OS Win10 Pro, Playback: madvr/JRiver
Plutotype is offline   Reply With Quote
Old 23rd August 2011, 18:59   #5036  |  Link
madshi
Registered Developer
 
Join Date: Sep 2006
Posts: 9,140
Quote:
Originally Posted by Plutotype View Post
So I will stick to your libav-based VC-1 decoder.
Have you tried the "WMVideo Decoder DMO"? It works best for me.
madshi is offline   Reply With Quote
Old 23rd August 2011, 20:25   #5037  |  Link
Plutotype
Registered User
 
Join Date: Apr 2010
Posts: 235
Quote:
Originally Posted by madshi View Post
Have you tried the "WMVideo Decoder DMO"? It works best for me.
yes, it gives me occasional lipsync issue when seeking in a VC-1 video. Tested on Batman Begins, Blood Diamond and Eyes Wide Shut BD.
__________________
__________________
System: Intel Core i5-6500, 16GB RAM, GTX1060, 75" Sony ZD9, Focal speakers, OS Win10 Pro, Playback: madvr/JRiver
Plutotype is offline   Reply With Quote
Old 23rd August 2011, 20:28   #5038  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,359
Did you test all that after LAV 0.33?

I tested batman begins earlier, and i couldn't spot any problems.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders
nevcairiel is offline   Reply With Quote
Old 23rd August 2011, 20:45   #5039  |  Link
Plutotype
Registered User
 
Join Date: Apr 2010
Posts: 235
Yes, I have 0.33, madVR 0.74, MPC-HC 1.5.3.3677, Reclock 1.8.7.7
WMP 12.0.7601.17514

The weird thing is, audio comes later than video, when the problem occurs.

According to madVR OSD, WMVideo Decoder DMO outputs in NV12 and LAVvideo in YV12. Is this correct?
__________________
__________________
System: Intel Core i5-6500, 16GB RAM, GTX1060, 75" Sony ZD9, Focal speakers, OS Win10 Pro, Playback: madvr/JRiver

Last edited by Plutotype; 23rd August 2011 at 21:09.
Plutotype is offline   Reply With Quote
Old 23rd August 2011, 23:03   #5040  |  Link
pirlouy
_
 
Join Date: May 2008
Location: France
Posts: 692
Quote:
Originally Posted by madshi View Post
Have you tried the "WMVideo Decoder DMO"? It works best for me.
Just for my curiosity, and like it's not the first time you say it, why do you prefer this decoder ? Is it only because of CPU usage, or is there another advantage ??

But indeed, in my case, LAV 0.33 seems to have fixed the sync problem I had with some VC1 Blu-Ray (though it was Microsoft decoder's fault). Thanks.

@nevcairiel: can you post it at the end of this thread, when there's an update please ? or RSS or whatever please ? I've missed the 0.33 for example.
pirlouy 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:51.


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