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 20th March 2018, 23:26   #22641  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,565
Quote:
Originally Posted by tyrindor View Post
For example:
*|d;eng:*|f;jpn:eng

I would read this as "First set default track, if english is found enable english forced subs instead, if Japanese is found enable english subs instead. This doesn't work though, some english audio content still has default subs selected.
Priority is from left to right. It stops after the first match. If "*|d" (which I assume is the same as "*:*|d") is there it will match any audio, any subtitle language as long as there is a track marked as "default". Nothing after that is considered anymore when such a match is found.

Quote:
Originally Posted by tyrindor View Post
So what's the best way to achieve this in one command?
- If japanese audio is found enable english subs, if no english subs enable default subs.
- If english is found enable forced subs.
- If unknown language enable default subs. <-this is what I am struggling with, it always overwrites everything else.
If I strictly go by your description:
jpn:eng jpn:*|d eng:*|f *:*|d

But I also assume you want subtitles to be off for English audio unless there is English forced subs. You need an extra rule for that so it doesn't match the last rule which is basically a wildcard:
jpn:eng jpn:*|d eng:*|f eng:off *:*|d
And mostly you don't want any forced subtitles for English audio but also the English ones first:
jpn:eng jpn:*|d eng:eng|f eng:*|f eng:off *:*|d

You have to be exact.

Last edited by sneaker_ger; 20th March 2018 at 23:29.
sneaker_ger is offline   Reply With Quote
Old 20th March 2018, 23:39   #22642  |  Link
tyrindor
Registered User
 
Join Date: Apr 2017
Posts: 47
Man you are a lifesaver, I've been tweaking it for days trying to figure it out. Just tested like 20 various problematic MKVs and it did them all correctly.

Thanks!
tyrindor is offline   Reply With Quote
Old 21st March 2018, 10:55   #22643  |  Link
chros
Registered User
 
chros's Avatar
 
Join Date: Mar 2002
Posts: 2,323
@sneaker_ger: thanks for the detailed info, I didn't even know that feature exists
__________________
Ryzen 5 2600,Asus Prime b450-Plus,16GB,MSI GTX 1060 Gaming X 6GB(v398.18),Win10 LTSC 1809,MPC-BEx64+LAV+MadVR,Yamaha RX-A870,LG OLED77G2(2160p@23/24/25/29/30/50/59/60Hz) | madvr config
chros is offline   Reply With Quote
Old 21st March 2018, 13:00   #22644  |  Link
Grimsdyke
Registered User
 
Join Date: Nov 2013
Location: Hannover, Germany
Posts: 292
@ Nev. When using D3D11 and Automatic/Native I am getting sometimes green screens in MPC-BE (+ MadVR) especially on lower resolution files !! The file keeps playing and I hear the sound.
The only way to fix this seem to be to select the GPU in LAV video decoder settings. Please let me know if you need more details.
Grimsdyke is offline   Reply With Quote
Old 21st March 2018, 13:33   #22645  |  Link
pkirill
Registered User
 
Join Date: Nov 2009
Posts: 17
Quote:
Originally Posted by nevcairiel View Post
You can do what you ask with LAV Filters, several other projects load it without registration, and bundling with apps is allowed within what the license allows.
Do you have any Idea how to do that ? In terms of C++.
pkirill is offline   Reply With Quote
Old 21st March 2018, 13:57   #22646  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,753
As already mentioned...

Quote:
Originally Posted by LigH View Post
MPC-HC uses LAV Filters as "internal splitter/decoder", and the AviSynth plugin DSS2Mod (to be found e.g. in the Xvid4PSP project, or in the AviSynth Wiki) can do that as well.
The amount of source code in DSS2Mod may be more manageable for reading and searching.
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Old 22nd March 2018, 15:49   #22647  |  Link
pkirill
Registered User
 
Join Date: Nov 2009
Posts: 17
Well I managed to get it working, at least on my local machine:
I looks like that

Quote:
LAVSplitterClassID = "171252A0-8820-4AFE-9DF8-5C92B2D66B04";
HMODULE hDLL = loadLibrary("LAVSplitter.ax");
LPFNGETCLASSOBJECT pFactory = GetProcAddress(HMODULE(hDll), "DllGetClassObject");
IClassFactory * pFactory = pFactory(LAVSplitterClassID, _uuidof(IClassFactory));
IUnknown *filter = pFactory.CreateInstance();
IBaseFilter *pfilter = filter->QueryInterface<IBaseFilter>();
graphBuilder->AddFilter( pfilter, L"LAVSplitter");
That`s it. Thanks.
And I un-registered the filters before tests.
Next I will try to add Media Foundation based playback.

Last edited by pkirill; 22nd March 2018 at 15:51.
pkirill is offline   Reply With Quote
Old 24th March 2018, 03:52   #22648  |  Link
anas
Registered User
 
Join Date: Mar 2018
Posts: 12
Quote:
Originally Posted by pkirill View Post
Well I managed to get it working, at least on my local machine:
I looks like that



That`s it. Thanks.
And I un-registered the filters before tests.
Next I will try to add Media Foundation based playback.
man, can you put dll file here?
i used DSS2mod before, but i need DSS load lav without reg because DSS2mod has some issues and admin system permissions don't allow me reg or install lav
thanks ..
anas is offline   Reply With Quote
Old 24th March 2018, 23:37   #22649  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,753
A current set of LAV Filters is included in MPC-HC; you can direct DSS2Mod to load it from there. I believe...
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Old 25th March 2018, 11:37   #22650  |  Link
anas
Registered User
 
Join Date: Mar 2018
Posts: 12
Quote:
Originally Posted by LigH View Post
A current set of LAV Filters is included in MPC-HC; you can direct DSS2Mod to load it from there. I believe...
it doesn't support avisynth+ x64?
is there any one can build dss2 64 bit?
anas is offline   Reply With Quote
Old 25th March 2018, 12:44   #22651  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,753
Already available via AviSynth Wiki: AviSynth+ x64 plugins in the Web Archive. And I uploaded an own archive as well...
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid

Last edited by LigH; 25th March 2018 at 12:47.
LigH is offline   Reply With Quote
Old 25th March 2018, 12:54   #22652  |  Link
anas
Registered User
 
Join Date: Mar 2018
Posts: 12
Quote:
Originally Posted by LigH View Post
Already available via AviSynth Wiki: AviSynth+ x64 plugins in the Web Archive. And I uploaded an own archive as well...
man!
too much thanks.. i'll give it try and back..
cheers
anas is offline   Reply With Quote
Old 26th March 2018, 12:50   #22653  |  Link
anas
Registered User
 
Join Date: Mar 2018
Posts: 12
@Ligh it's work good..
thanks
anas is offline   Reply With Quote
Old 26th March 2018, 20:01   #22654  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,753
Good to know, thanks for sharing.
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Old 27th March 2018, 06:56   #22655  |  Link
kuchikirukia
Registered User
 
Join Date: Oct 2014
Posts: 476
LAV 0.71.0 has broken seeking when using linked mkvs with a Hi444PP video. Works in 0.70.2. It will also play just fine if you don't try to seek.

Yes, this is the most obscure thing ever.

Last edited by kuchikirukia; 27th March 2018 at 06:58.
kuchikirukia is offline   Reply With Quote
Old 27th March 2018, 07:52   #22656  |  Link
richardpl
Registered User
 
Join Date: Jan 2012
Posts: 272
No, that is not obscure at all, it is about bug in previous encoder and mkvs creators stripping usefull info from AVC encodes.
If you haven't strip those you would get still working videos.
There is option in libavcodec though to enable old behaviour.
richardpl is offline   Reply With Quote
Old 27th March 2018, 08:02   #22657  |  Link
MrGlasspoole
Registered User
 
Join Date: Mar 2012
Posts: 25
Hi,

i have problems playing 60fps 8bit on a Core i5-6600 Skylake-S.

No matter what hardware acceleration i choose the sound is stuttering.
For example this two HEVC videos:
http://4kmedia.org/sony-surfing-uhd-4k-demo/
http://www.4ktv.de/sony-camp-2016-sdr-version-download/

But also Big Buck Bunny H.264-AVC MPEG-4 [60.000fps][8-35Mbps][8bits] does not play.

There are no dropped frames but Sync Offset is avg -529ms, dev: 450 ms

The videos play fine in this player:
https://mirillis.com/en/products/spl...eo-player.html

Last edited by MrGlasspoole; 27th March 2018 at 08:04.
MrGlasspoole is offline   Reply With Quote
Old 27th March 2018, 11:55   #22658  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,565
Quote:
Originally Posted by kuchikirukia View Post
LAV 0.71.0 has broken seeking when using linked mkvs with a Hi444PP video. Works in 0.70.2. It will also play just fine if you don't try to seek.

Yes, this is the most obscure thing ever.
Quote:
Originally Posted by richardpl View Post
No, that is not obscure at all, it is about bug in previous encoder and mkvs creators stripping usefull info from AVC encodes.
If you haven't strip those you would get still working videos.
There is option in libavcodec though to enable old behaviour.
Yes, some old 4:4:4 profile x264 encodes are broken. Old ffmpeg matched old behavior, new ffmpeg matches new/fixed behavior. If LAV sees x264's old custom SEI (the one you see in MediaInfo with the x264 info) it falls back to the old behavior.

For lossless files: simply re-encode with e.g. old ffmpeg decoder but newest x264 (in the future you may activate --no-8x8dct for compatibility with old and new decoders, but currently it is forced off anyways).

Last edited by sneaker_ger; 27th March 2018 at 12:05.
sneaker_ger is offline   Reply With Quote
Old 27th March 2018, 11:57   #22659  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,565
Quote:
Originally Posted by MrGlasspoole View Post
Hi,

i have problems playing 60fps 8bit on a Core i5-6600 Skylake-S.

No matter what hardware acceleration i choose the sound is stuttering.
For example this two HEVC videos:
http://4kmedia.org/sony-surfing-uhd-4k-demo/
http://www.4ktv.de/sony-camp-2016-sdr-version-download/

But also Big Buck Bunny H.264-AVC MPEG-4 [60.000fps][8-35Mbps][8bits] does not play.

There are no dropped frames but Sync Offset is avg -529ms, dev: 450 ms

The videos play fine in this player:
https://mirillis.com/en/products/spl...eo-player.html
What renderer are you using? If it has an OSD (ctrl+j) show it to us. You tried D3D11 native? What OS?
sneaker_ger is offline   Reply With Quote
Old 27th March 2018, 16:37   #22660  |  Link
MrGlasspoole
Registered User
 
Join Date: Mar 2012
Posts: 25
Sorry i did forget some info's.

Win 8.1 - but for testing i did install 10 with the same result.
It's a fresh installation...
EVR custom presenter...

I did forget the renderer and tried EVR and there it seems to work.
I moved the board and CPU from my HTPC into my workstation.
On the HTPC i use madVR but the workstation has no dedicated graphics card.

I thought EVR custom presenter is the first choice?
Does it make sense to use madVR without a dedicated graphics card?
Attached Images
 
MrGlasspoole 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 07:26.


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