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 > Hardware & Software > Software players

Reply
 
Thread Tools Search this Thread Display Modes
Old 7th December 2019, 17:02   #1  |  Link
onur
Registered User
 
Join Date: Oct 2015
Posts: 12
MadVR and LAV possible Bug

Playing specific files from specific resume pos is not working.
(i think when pos is short bevor keyframe everything is ok).

LAV starting from 0.71.0 is not working.
newest mpc-hc has integrated LAV 0.70.2 which is working.
EVR Renderer is working with all versions of LAV.

you can also test with mpc-be with following setup:
mpc-be player - with prefered external filter (LAV Splitter Source and LAV Video Decoder)
(load file with resume pos 01:04)

First we need a Stopped Graph, with this test file:
https://drive.google.com/file/d/12T5...pHT637GRw/view
or
https://drive.google.com/uc?export=d...tI83souI_aGTEb


Filter Graph with LAV Source and LAV Decoder and MadVR Renderer.

when we start file playing with resume pos the screens is black.

not working:
Code:
REFERENCE_TIME rtResume=640000000;
pMSeek->SetPositions(&rtResume, AM_SEEKING_AbsolutePositioning, NULL, AM_SEEKING_NoPositioning);
pMC->Run();
not working:
Code:
REFERENCE_TIME rtResume=640000000;
pMSeek->SetPositions(&rtResume, AM_SEEKING_AbsolutePositioning, NULL, AM_SEEKING_NoPositioning);
pMC->Pause();
pMC->Run();
working:
Code:
REFERENCE_TIME rtResume=640000000;
//first seek to keyframe
hr = pMSeek->SetPositions(&rtResume, AM_SEEKING_SeekToKeyFrame, NULL, AM_SEEKING_NoPositioning);
pMC->Pause();
				
//wait until Ready
__int64 endclock = GetTickCount64() + 2000;
OAFilterState pfs;
while (pMC->GetState(10, &pfs) == VFW_S_STATE_INTERMEDIATE  || pfs != State_Paused) 
{
   Sleep(10);
   if (GetTickCount64() > endclock)
     break;
}

//now seek to Real Pos					
hr = pMSeek->SetPositions(&rtResume, AM_SEEKING_AbsolutePositioning, NULL, AM_SEEKING_NoPositioning);

regards, onur

Last edited by onur; 7th December 2019 at 17:49.
onur is offline   Reply With Quote
Old 8th December 2019, 19:57   #2  |  Link
ashlar42
Registered User
 
Join Date: Jun 2007
Posts: 655
I use madVR in Kodi DS Player. And I use LAV Filters with it, as well.

Never had a problem in resuming files from where I left them.
ashlar42 is offline   Reply With Quote
Old 9th December 2019, 01:49   #3  |  Link
Asmodian
Registered User
 
Join Date: Feb 2002
Location: San Jose, California
Posts: 4,407
Same with Zoom Player, no issues resuming from the last location with LAV + madVR.
__________________
madVR options explained
Asmodian is offline   Reply With Quote
Old 9th December 2019, 12:55   #4  |  Link
onur
Registered User
 
Join Date: Oct 2015
Posts: 12
you must use the testfile in atachement, and the exact resume pos.
i can reporduce the problem with mpc-pe and with my own code every time.
onur is offline   Reply With Quote
Old 9th December 2019, 14:10   #5  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,346
TS files are not always perfectly seekable, its just the nature of the format - its designed for broadcast and streaming. If you need flawless seeking, remux to MP4 or MKV.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders
nevcairiel is offline   Reply With Quote
Old 9th December 2019, 20:22   #6  |  Link
onur
Registered User
 
Join Date: Oct 2015
Posts: 12
@nevcairiel
have you tried my setup - or do you just want to tell me live with the problem.

TS and Live is my main application, and the file is a public Test Demo.
no Problem with EVR, C-EVR
no Problem with older LAV Codec and MadVr.
other players maybe dont have a prob (maybe they always start to render at the begining of a file, and then resume to position, but thats not smooth).

I have also a lot of mkv files with that problem (but these files are not pulbic downloadable).

plesae test my posted setup.
regards, onur
onur is offline   Reply With Quote
Reply

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 22:14.


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