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
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 28th December 2019, 08:37   #6981  |  Link
chros
Registered User
 
chros's Avatar
 
Join Date: Mar 2002
Posts: 2,323
Quote:
Originally Posted by v0lt View Post
Thank you guys for the new release!
I have a small feature request (since there's no possibility to run external commands from the player):
can you add different exit codes for all the events in "After playback" menu? (exit, standby, logoff, etc)

I want to run commands in a batch script *only* when exit or standby was selected in the player. Consider the following script:

Code:
REM Script to run mpc-be and commands after it exited
cd d:\Progs\MPC-BE\

REM Start mpc-be
mpc-be64.exe

REM Turn off TV when mpc-be exited via After Playback Exit (exit code: 11)
IF %ERRORLEVEL% EQU 11 (
    aiopylgtvcommand 192.168.1.78 power_off
)
Thanks!
__________________
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

Last edited by chros; 28th December 2019 at 08:40.
chros is offline   Reply With Quote
Old 28th December 2019, 16:23   #6982  |  Link
Klaus1189
Registered User
 
Join Date: Feb 2015
Location: Bavaria
Posts: 1,667
Updated german translation based on r4971

Code:
Copy image to clipboard
Klaus1189 is offline   Reply With Quote
Old 28th December 2019, 23:56   #6983  |  Link
Liisachan
李姗倩 Lǐ Shān Qiàn
 
Liisachan's Avatar
 
Join Date: Nov 2002
Posts: 1,340
Devs: Thank you for the new official release!
4971 is simply defining IDS_AG_COPY_IMAGE, and the actual command is not yet implemented?
Liisachan is offline   Reply With Quote
Old 29th December 2019, 05:12   #6984  |  Link
v0lt
Registered User
 
Join Date: Dec 2008
Posts: 1,970
Liisachan
Copying works for me. I checked in IrfanView, Paint, Paint.NET and LibreOffice Writer.
MPC-BE 1.5.5.4972 beta x64.

Last edited by v0lt; 29th December 2019 at 05:31.
v0lt is offline   Reply With Quote
Old 29th December 2019, 07:03   #6985  |  Link
Liisachan
李姗倩 Lǐ Shān Qiàn
 
Liisachan's Avatar
 
Join Date: Nov 2002
Posts: 1,340
@v0lt: confirmed
It's been added in r4971, where changed files are listed in 3 pages. I didn't notice that and only saw the first page, so I was confused. Besides, the newest nightly was 4970 when I posted previously.

For those who'd like to test this new feature: the command is currently not as a menu item under "File". Instead, it's in Options | Key, between Save Image and Save thumbnail. You can assign a shortcut you like (e.g. Ctrl+Alt+I) to it, then it works with that short cut key! In my test not only paused, but you can copy the frame to Clipboard while playing the video (it necessary).

So far it works very well. I'm so happy! Thanks very much!!!


PS: How this is convenient (just a few examples):
- You can directly paste the frame image to your image editor, when you want to trim it, when you want to insert text, or when you want to save it as JPEG with various options (Quality, Progress or not, Enable or disable chroma subsampling), etc. etc.

PS: MainFrm.cpp random observation
1) // Lock the handle and copy the text to the buffer <-- not “the text”?
2) WCHAR buff[256] has 512 bytes; len = _countof(buff) is 256; memset(buff, 0, len) doesn't zero-init the whole buffer?

Last edited by Liisachan; 29th December 2019 at 07:58.
Liisachan is offline   Reply With Quote
Old 29th December 2019, 07:28   #6986  |  Link
wushantao
Registered User
 
Join Date: Oct 2011
Posts: 144
https://send.firefox.com/download/b6...0DLspeMKzwByEg

simplified chinese is coming

btw, some minor fixes

wushantao is offline   Reply With Quote
Old 29th December 2019, 11:34   #6987  |  Link
v0lt
Registered User
 
Join Date: Dec 2008
Posts: 1,970
Thanks to all.

@Klaus1189
Updated in r4972.

@wushantao
Updated in r4974.

@ryrynz
Typo "Dran'n'drop" corrected in r4976.

@Liisachan
Typo "text" corrected in r4975.
I did not find the incorrect "memset (buff, 0, len)" in MainFrm.cpp. What is the line number you're talking about?

Last edited by v0lt; 29th December 2019 at 11:50.
v0lt is offline   Reply With Quote
Old 29th December 2019, 11:56   #6988  |  Link
Manni
Registered User
 
Join Date: Jul 2014
Posts: 942
Thank you for the new release and for all the work done on this project.
__________________
Win11 Pro x64 b23H2
Ryzen 5950X@4.5Ghz 32Gb@3600 Zotac 3090 24Gb 551.33
madVR/LAV/jRiver/MyMovies/CMC
Denon X8500HA>HD Fury VRRoom>TCL 55C805K
Manni is offline   Reply With Quote
Old 29th December 2019, 13:32   #6989  |  Link
ryrynz
Registered User
 
ryrynz's Avatar
 
Join Date: Mar 2009
Posts: 3,650
Quote:
Originally Posted by v0lt View Post
@ryrynz
Typo "Dran'n'drop" corrected in r4976.
Cheers, could you fix up the first post in the thread with the typo as well?
ryrynz is offline   Reply With Quote
Old 29th December 2019, 19:00   #6990  |  Link
v0lt
Registered User
 
Join Date: Dec 2008
Posts: 1,970
ryrynz
Thanks. Fixed.
v0lt is offline   Reply With Quote
Old 29th December 2019, 19:50   #6991  |  Link
Klaus1189
Registered User
 
Join Date: Feb 2015
Location: Bavaria
Posts: 1,667
Talking about cosmetics, I think it would be nice, if the screenshot of MPC-BE in the first post in this thread would show the actual stable release version, for now 1.5.4.
Klaus1189 is offline   Reply With Quote
Old 29th December 2019, 20:22   #6992  |  Link
Liisachan
李姗倩 Lǐ Shān Qiàn
 
Liisachan's Avatar
 
Join Date: Nov 2002
Posts: 1,340
@v0lt
Sorry I was not clear. I was looking at IsRendererCompatibleWithSaveImage in
https://sourceforge.net/p/mpcbe/code...rc/MainFrm.cpp
and thought that this might be potentially bad:
Code:
		WCHAR buff[256];
		ULONG len = _countof(buff);
		memset(buff, 0, len);
Liisachan is offline   Reply With Quote
Old 29th December 2019, 23:10   #6993  |  Link
cmhrky
Registered User
 
Join Date: Jan 2017
Posts: 139
Latest Turkish translation.

https://www.upload.ee/files/10907411...tr.rc.txt.html
cmhrky is offline   Reply With Quote
Old 29th December 2019, 23:20   #6994  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,348
Quote:
Originally Posted by Liisachan View Post
@v0lt
Sorry I was not clear. I was looking at IsRendererCompatibleWithSaveImage in
https://sourceforge.net/p/mpcbe/code...rc/MainFrm.cpp
and thought that this might be potentially bad:
Code:
		WCHAR buff[256];
		ULONG len = _countof(buff);
		memset(buff, 0, len);
While correct that it only inits half the buffer, the entire memset could be removed, its not necessary here. CRegKey::QueryStringValue automatically inserts a null-terminator into any retrieved strings.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders
nevcairiel is offline   Reply With Quote
Old 30th December 2019, 00:10   #6995  |  Link
Liisachan
李姗倩 Lǐ Shān Qiàn
 
Liisachan's Avatar
 
Join Date: Nov 2002
Posts: 1,340
Quote:
Originally Posted by nevcairiel View Post
While correct that it only inits half the buffer, the entire memset could be removed, its not necessary here. CRegKey::QueryStringValue automatically inserts a null-terminator into any retrieved strings.
If it's just a wrapper of RegQueryValueExW, the terminating NULL is not guaranteed (according to the docs), meaning that even if you zero-init the whole buffer and ERROR_SUCCESS is returned, buff might be still not NULL-terminated (in an unlikely situation where the stored string is not NULL-terminated and has exactly 256 characters). In reality, the version string should be much shorter, though.
Liisachan is offline   Reply With Quote
Old 30th December 2019, 04:31   #6996  |  Link
Aleksoid1978
Registered User
 
Aleksoid1978's Avatar
 
Join Date: Apr 2008
Location: Russia, Vladivostok
Posts: 2,787
Quote:
Originally Posted by Liisachan View Post
If it's just a wrapper of RegQueryValueExW, the terminating NULL is not guaranteed (according to the docs), meaning that even if you zero-init the whole buffer and ERROR_SUCCESS is returned, buff might be still not NULL-terminated (in an unlikely situation where the stored string is not NULL-terminated and has exactly 256 characters). In reality, the version string should be much shorter, though.
I don't know about docs - but call CRegKey::QueryStringValue() always return NULL terminated data.
__________________
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 30th December 2019, 05:42   #6997  |  Link
v0lt
Registered User
 
Join Date: Dec 2008
Posts: 1,970
MPC Video Renderer v0.3.8.1060
Description.

Changes:
Improved compatibility with third-party players.
Fixed switching supported formats for DXVA2 and D3D11 video processors during playback.
Faster statistics rendering. A pre-prepared texture with symbols is used.
v0lt is offline   Reply With Quote
Old 30th December 2019, 05:56   #6998  |  Link
JNW
Registered User
 
Join Date: Sep 2017
Posts: 51
What's happened to this link? It's the one I always used
https://yadi.sk/d/r7JYQ2NjHvE4lA
JNW is offline   Reply With Quote
Old 30th December 2019, 06:46   #6999  |  Link
Liisachan
李姗倩 Lǐ Shān Qiàn
 
Liisachan's Avatar
 
Join Date: Nov 2002
Posts: 1,340
@Aleksoid1978
That must be the case (nevcairiel said so too). I wouldn't doubt any of you guys For the record, the docs:

(1) RegQueryValueExW: “the string may not have been stored with the proper terminating null characters. [...] the application should ensure that the string is properly terminated” (inconvenient)
(2) RegGetValueW: “If the data is a string, the function checks for a terminating null character. If one is not found, the string is stored with a null terminator if the buffer is large enough” (nicer)

REG_SZ data without a terminator exists and in old days programmers were often responsible for dealing with that, as in (1). Perhaps that's why the original author of that function put memset there just in case. In this specific case, the value to be read seems to be the path to madVR.ax, and by definition a path ends with a terminator, so there's no problem at all anyway. If anything, the buffer length 260 (MAX_PATH) might be slightly more reasonable than 256.

Last edited by Liisachan; 30th December 2019 at 06:50.
Liisachan is offline   Reply With Quote
Old 30th December 2019, 08:30   #7000  |  Link
ryrynz
Registered User
 
ryrynz's Avatar
 
Join Date: Mar 2009
Posts: 3,650
Quote:
Originally Posted by JNW View Post
What's happened to this link? It's the one I always used
https://yadi.sk/d/r7JYQ2NjHvE4lA
Gone forever. Use this https://yadi.sk/d/AjAXDDHtHRIELg
ryrynz is offline   Reply With Quote
Reply


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:50.


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