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. |
28th December 2019, 08:37 | #6981 | Link | |
Registered User
Join Date: Mar 2002
Posts: 2,323
|
Quote:
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 )
__________________
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. |
|
29th December 2019, 05:12 | #6984 | Link |
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.
__________________
MPC-BE 1.7.0 and Nightly builds | VideoRenderer | ImageSource | ScriptSource | BassAudioSource Last edited by v0lt; 29th December 2019 at 05:31. |
29th December 2019, 07:03 | #6985 | Link |
李姗倩 Lǐ Shān Qiàn
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. |
29th December 2019, 07:28 | #6986 | Link |
Registered User
Join Date: Oct 2011
Posts: 144
|
https://send.firefox.com/download/b6...0DLspeMKzwByEg
simplified chinese is coming btw, some minor fixes |
29th December 2019, 11:34 | #6987 | Link |
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?
__________________
MPC-BE 1.7.0 and Nightly builds | VideoRenderer | ImageSource | ScriptSource | BassAudioSource Last edited by v0lt; 29th December 2019 at 11:50. |
29th December 2019, 11:56 | #6988 | Link |
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 |
29th December 2019, 19:00 | #6990 | Link |
Registered User
Join Date: Dec 2008
Posts: 1,970
|
ryrynz
Thanks. Fixed.
__________________
MPC-BE 1.7.0 and Nightly builds | VideoRenderer | ImageSource | ScriptSource | BassAudioSource |
29th December 2019, 20:22 | #6992 | Link |
李姗倩 Lǐ Shān Qiàn
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); |
29th December 2019, 23:20 | #6994 | Link | |
Registered Developer
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,348
|
Quote:
__________________
LAV Filters - open source ffmpeg based media splitter and decoders |
|
30th December 2019, 00:10 | #6995 | Link |
李姗倩 Lǐ Shān Qiàn
Join Date: Nov 2002
Posts: 1,340
|
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.
|
30th December 2019, 04:31 | #6996 | Link | |
Registered User
Join Date: Apr 2008
Location: Russia, Vladivostok
Posts: 2,787
|
Quote:
__________________
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 |
|
30th December 2019, 05:42 | #6997 | Link |
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.
__________________
MPC-BE 1.7.0 and Nightly builds | VideoRenderer | ImageSource | ScriptSource | BassAudioSource |
30th December 2019, 05:56 | #6998 | Link |
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 |
30th December 2019, 06:46 | #6999 | Link |
李姗倩 Lǐ Shān Qiàn
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. |
30th December 2019, 08:30 | #7000 | Link | |
Registered User
Join Date: Mar 2009
Posts: 3,650
|
Quote:
|
|
|
|