Log in

View Full Version : Potplayer - ability to start a movie paused?


scollaco
14th April 2022, 17:33
Hello,

Is there a clever way in Potplayer to start a movie Paused? I need this because it takes at least 10-13 seconds for my projector to switch to HDR and also change aspect ratio (zoom method using lens memories). I would like the movie to stay paused during this and then once the projector is ready, I can hit play to begin.

Any suggestions?

thanks!

Klaus1189
14th April 2022, 18:31
Stay away from Potplayer :)

scollaco
14th April 2022, 18:45
I go between MPC-BE and Potplayer all the time (both using madVR). I do prefer the stability of MPC-BE. However, there is one nice feature in Potplayer (change subtitle size while playing etc..that I find handy and wish MPC-BE would support that). I'm also still on the old version of Potplayer before they started showing ads...and it's pretty good to me.

stax76
14th April 2022, 19:04
In mpv you put pause=yes into the mpv.conf file, after that all files start paused!

QBhd
14th April 2022, 19:06
I use 1.7.21126 and I just looked through the settings and nothing jumped out at me. It's probably not hard to setup your remote to double click play (thus pausing) when you start a movie. You would just have to train yourself to use the pause when you want to pause an already playing movie... I myself usually just hit play to pause playback...

QB

scollaco
14th April 2022, 19:17
Yeah, too bad there is no direct way. Wonder if there are some internal settings or something that could force it like in the mpv example above.

rbauer
16th April 2022, 22:58
Stay away from Potplayer :)
Unfortunately PotPlayer is the only one with the best and friendly support for bookmarks/chapters on external files (.pbf), e.g.: very useful for video lessons/tutorials, etc. (to me mpv is a pain in the ass... :) )

Liisachan
17th April 2022, 00:56
However, there is one nice feature in Potplayer (change subtitle size while playing etc..that I find handy and wish MPC-BE would support that). Like discussed in the MPC-BE thread, you can basically do the same thing if you use the Internal Subtitle Renderer, natively with MPC-HC, and via keyboard macros with MPC-BE. You can try that too.

clsid
17th April 2022, 13:44
MPC-HC supports loading external chapters through .xchp file.

Klaus1189
17th April 2022, 21:29
Unfortunately PotPlayer is the only one with the best and friendly support for bookmarks/chapters on external files (.pbf), e.g.: very useful for video lessons/tutorials, etc. (to me mpv is a pain in the ass... :) )

If you are polite and ask the devs of MPC-BE, I am sure they add it if not already present.
I still can only recommend to stay away from Potplayer. Many reasons for it.

varekai
18th April 2022, 08:51
I still can only recommend to stay away from Potplayer. Many reasons for it.
I respectfully disagree.
I use PotPlayer with madVR for video only and it works like a charm.
I've got no ads.
This:
"I still can only recommend to stay away from Potplayer. Many reasons for it."
Please explain why.

Klaus1189
18th April 2022, 13:03
Is listed in FFmpeg hall of shame.
Developer(s) copy(s) code from other open source projects without mentioning it.
Ads, even if not visible it is tracking user data.
If you make a useful bug report or feature request you get ignored, at least many years ago, so I got a small part of MPC-BE Projekt, just try it, you will like the work of its devs.

varekai
18th April 2022, 14:23
Thanks for reply, appreciate it!
Aha... hall of shame, didn't know that! That's bad karma, but still, its a good free videoplayer.
No ads and no tracking, I just block all connections in firewall.
Yeah, true, any bug report is a waste of time, all answers I got so far is, "Reset to default".
Also to be fair, most "bugs" I found does fall back to user error (me) tweakings and there is a plethora of settings to get lost in.
I also use the very good one and only MPC-HC player, never tried MPC-BE.

Liisachan
23rd April 2022, 21:28
I've never tried this Potplayer thing, so I can't really tell how good or how bad it is.
That said, on the one hand, blocking every unnecessary outgoing/incoming connection is a good idea, in general. On the other hand, doing that is always potentially risky, because for example your firewall might be accidentally down or you might make a mistake, unintentionally allowing connections. Besides, a privacy invading tool tends to stop working eventually, unless you allow remote connections.
Then again, many "normal" people are using Google, etc. in a carefree manner, even willingly, so I'd say it's the same difference... For that matter, many people are happily using Windows 10! So, if you like Potplayer and can tame it, why not? It's a free country :)

varekai
24th April 2022, 08:35
Router + VPN (Killswitch activated) + ESET Suite (AV+Firewall+HIPS) + Adblocker + Scriptblocker...
If configured wrong, nothing works, no apps, no browsers, no internet, completely safe... haha.
If configured right, it's quiet and everything works like a charm.
A popup from VPN, ESET and HIPS occasionally and then I can choose to allow or block.
Some sites won't work if to many things like ads or scripts are blocked.
The most important thing is to have safe and healthy habits when you are online and surfing,
do not visit shady websites, have an antivirus/firewall program installed,
when you visit software websites and download apps, only use secure softwares when installing.
and, this is very important,
always always remember that despite all your security measures you may be exposed to attacks in vulnerabilities in your OS.
There are "troll factories", evil bots, working day and night...
https://i.imgur.com/HUGRn4O.png
It's an eternal cat-and-mouse game loop...
So stay vigilant, on what you read and what you see on your screen...

Liisachan
24th April 2022, 14:39
I'm a privacy freak myself, e.g. using doom9 via Tor + Safest + uB. A Tails user... VPN is tricky since you have to trust them (e.g. you wouldn't trust Opera VPN - I don't trust Proton either - I'm not 100% trust Tor either - but I digress).

In prinicple FLOSS like MPC-BE/HC is relatively much better. Then again, there has been an open-source "crap" like FileZilla and (to some extent) Firefox. So everything seems relative, except, maybe, there is a 100% trust-less technology too, like Monero + decentralized exchanges. I think we can't be really free until we start using FLOSS things, e.g. Linux not Windows/Mac. So personally I think we should use open-source apps, even if felt slightly inconvenient. Yet, I must agree that some tools are so necessary even if it's not FLOSS, or it only runs Windows (like MPC)... What a dilemma...

rbauer
9th June 2022, 20:39
MPC-HC supports loading external chapters through .xchp file.
How to do that? :scared: Really, I don't get it (I'm using 1.9.21.2) :thanks:

Grimsdyke
10th June 2022, 15:22
How to do that? :scared: Really, I don't get it (I'm using 1.9.21.2) :thanks:

Is there a tutorial or something like that on .xchp ??

clsid
11th June 2022, 00:00
That is written very clearly in the changelog of the player.

huhn
11th June 2022, 05:35
Thanks for reply, appreciate it!
Aha... hall of shame, didn't know that! That's bad karma, but still, its a good free videoplayer.
No ads and no tracking, I just block all connections in firewall.
Yeah, true, any bug report is a waste of time, all answers I got so far is, "Reset to default".
Also to be fair, most "bugs" I found does fall back to user error (me) tweakings and there is a plethora of settings to get lost in.
I also use the very good one and only MPC-HC player, never tried MPC-BE.

it is not bad karma they are hands down criminals.
the player is an insult to the opensource community.
i guess user don't about that...

rbauer
11th June 2022, 11:53
That is written very clearly in the changelog of the player.
Do you mean this?
"Now supports loading chapter metadata from .xchp file. Use text file (UTF-8 encoding). Each line is a chapter defined as HH:MM:SS,ddd timecode, optionally followed by a space and chapter name." :rolleyes:

If "yes", I had already read it but it is not at all clear:

1) Do I need to manually create the xchp file (I can't find any command to create it within Mpc)?
2) I tried to create it manually, with the same name as the video file, but it is not seen within Mpc (e.g. in "Add to Favorites...").
3) In all cases where I have tried (I'm using the default configuration of Mpc 1.9.21.38; I tried with last stable release also), "Chapter Menu" (in Navigate menu) is ALWAYS disabled.
4) Do I have to manually create a chapter entry (via text editor, "masochism mode" :sly: ) in the xcph file?

"Very clear"? Yeah, for sure. :D

:thanks:

clsid
11th June 2022, 12:24
00:00:10,000 chapter1
00:00:20,000 chapter2
Put in .xchp file with same name as video.
It gets loaded automatically.

You are doing something wrong, like using a dot instead of a comma.

StainlessS
11th June 2022, 14:10
Might be a little more friendly if chapter file parser accepted both '.' and ',' as fractional second separator.

',' separator looks quite alien to many, including myself,
So long as chapter parser code is MPC-HC native and not some other included lib, should be quite trivial to mod it,
also avoid any related confusion and having to answer posts about it.

v0lt
11th June 2022, 15:29
',' separator looks quite alien to many, including myself
As far as I understand, time formatting is used as in SubRip (https://en.wikipedia.org/wiki/SubRip). This is the most popular format for simple subtitles.

StainlessS
11th June 2022, 15:53
Yes, I just checked some SubRip times and as you say, is comma separated,
interestingly, Subtitle Edit shows the same subtitles with silent conversion to period separator.
If it is an easy parser fix, then would save some confusion. EDIT: With no downside.

clsid
11th June 2022, 17:32
I am not going to allow that. The formatting is clearly defined.

rbauer
11th June 2022, 19:36
00:00:10,000 chapter1
00:00:20,000 chapter2
Put in .xchp file with same name as video.
It gets loaded automatically.

You are doing something wrong, like using a dot instead of a comma.
So It's number 4 (manually create a chapter entry in the xcph file) :eek:

Any keyboard shortcut to switch between chapters while playing the video?

:thanks:

StainlessS
11th June 2022, 20:51
rbauer,

Perhaps of use,
This converts Chapter info extracted from eg MKV via MediaInfo and pasted into txt file ===>>> an xchp file with MediaInfo PERIOD separator changed to COMMA.
ConvMiTxtToMpcHcChap.avsi [Avisynth Script]

# ConvMiTxtToMpcHcChap.avsi
# Converts MediaInfo Chapter info in txt file, to MediaPlayerClassic-Home Cinema *.xchp style.
# Requires AVS+, and RT_Stats v2.0 Beta13+

Function ConvMiTxtToMpcHcChap(String txtfile,String "chapfile") {
myName = "ConvMiTxtToMpcHcChap: "
Assert(txtfile!="",RT_String("%stxtfile path required",myName))
txtfile = txtfile.RT_GetFullPathName
Assert(Txtfile.Exist,RT_String("%stxtfile Does not Exist",myName))
ChapFile = Default(chapfile,txtFile.RT_FilenameSplit(7) + ".xchp") # Default, Change txtFile extension to ".xchp")
RT_FileDelete(chapfile)
SIN=RT_ReadTxtFromFile(txtfile)
LINES = SIN.RT_TxtQueryLines
for(i=0,LINES-1){
S = SIN.RT_TxtGetLine(Line=i).ChrEatWhite.RevStr.ChrEatWhite.RevStr # Get Line of text, remove EOL and Eat leading & trailing White Space.
if(S.FindStr(".")==9) {
S = S.LeftStr(8) + "," + S.MidStr(10) # Replace 9th PERIOD char with COMMA char.
}
RT_WriteFile(chapfile,"%s",S,Append=True)
}
return 0
}

# Import(".\ConvMiTxtToMpcHcChap.avsi")
# Client Script

textFile = ".\Test.txt"

ConvMiTxtToMpcHcChap(textfile)

Return MessageClip("DONE")


aint nuttin special, just changes 9th character of each line to COMMA.

Test.txt, [source (copy/Paste) from MediaInfo]

00:00:00.000 : en:Chapter 01
00:03:22.285 : en:Chapter 02
00:10:15.156 : en:Chapter 03
00:15:24.214 : en:Chapter 04
00:18:25.187 : en:Chapter 05
00:21:58.817 : en:Chapter 06
00:24:52.157 : en:Chapter 07
00:29:17.130 : en:Chapter 08
00:32:01.085 : en:Chapter 09
00:34:45.541 : en:Chapter 10
00:40:08.030 : en:Chapter 11
00:42:48.232 : en:Chapter 12
00:47:50.075 : en:Chapter 13
00:51:12.736 : en:Chapter 14
00:58:03.104 : en:Chapter 15
01:01:41.614 : en:Chapter 16
01:04:24.944 : en:Chapter 17
01:08:54.255 : en:Chapter 18
01:11:53.726 : en:Chapter 19
01:16:33.505 : en:Chapter 20
01:22:05.503 : en:Chapter 21
01:26:19.716 : en:Chapter 22
01:37:47.653 : en:Chapter 23
01:44:36.270 : en:Chapter 24
01:50:38.048 : en:Chapter 25
01:53:22.670 : en:Chapter 26
01:59:17.441 : en:Chapter 27
02:03:50.756 : en:Chapter 28
02:07:32.353 : en:Chapter 29
02:14:24.389 : en:Chapter 30
02:20:48.565 : en:Chapter 31
02:23:11.833 : en:Chapter 32


Test.xchp [output for Mpc-hc OR Mpc-Be]

00:00:00,000 : en:Chapter 01
00:03:22,285 : en:Chapter 02
00:10:15,156 : en:Chapter 03
00:15:24,214 : en:Chapter 04
00:18:25,187 : en:Chapter 05
00:21:58,817 : en:Chapter 06
00:24:52,157 : en:Chapter 07
00:29:17,130 : en:Chapter 08
00:32:01,085 : en:Chapter 09
00:34:45,541 : en:Chapter 10
00:40:08,030 : en:Chapter 11
00:42:48,232 : en:Chapter 12
00:47:50,075 : en:Chapter 13
00:51:12,736 : en:Chapter 14
00:58:03,104 : en:Chapter 15
01:01:41,614 : en:Chapter 16
01:04:24,944 : en:Chapter 17
01:08:54,255 : en:Chapter 18
01:11:53,726 : en:Chapter 19
01:16:33,505 : en:Chapter 20
01:22:05,503 : en:Chapter 21
01:26:19,716 : en:Chapter 22
01:37:47,653 : en:Chapter 23
01:44:36,270 : en:Chapter 24
01:50:38,048 : en:Chapter 25
01:53:22,670 : en:Chapter 26
01:59:17,441 : en:Chapter 27
02:03:50,756 : en:Chapter 28
02:07:32,353 : en:Chapter 29
02:14:24,389 : en:Chapter 30
02:20:48,565 : en:Chapter 31
02:23:11,833 : en:Chapter 32


EDIT: Mpc-Hc, Page Up and Page Down go to Previous and Next chapters.
EDIT: 1st Chapter at 00:00:00 [does not seem to show fractional seconds]
https://i.postimg.cc/gjLz4CVb/test.jpg (https://postimages.org/)

EDIT: Does NOT seem to cause problems if you just use the PERIOD separated text copy/pasted from MediaInfo,
MPC-HC Probably just ignores Period separated fractional seconds.
So, Maybe just Copy/Paste from MediaInfo and use that text file, WITHOUT using this script, I doubt that fractional seconds are that important anyway.

v0lt
12th June 2022, 05:55
Is the .xcph file format documented somewhere? Is this a well-known format or a special format of the MPC-HC project?

rbauer
12th June 2022, 06:53
rbauer,

Perhaps of use,
This converts Chapter info extracted from eg MKV via MediaInfo and pasted into txt file ===>>> an xchp file with MediaInfo PERIOD separator changed to COMMA.

Thanks StainlessS but my need is different.

I study on video lessons, so my need is to tag the various most important points; example using potplayer:

1) Open video file "videolesson1.mp4"
2) During its playback, when I find an important point I press "p" ("Add bookmark") to mark its time and this will automatically create the pbf file (with the same name as the video file, so videolesson1.pbf) with its time information inside it.
3) Ctrl+PgUp and Ctrl+PgDown to move from chapter/bookmark to chapter/bookmark while the video is playing.

Done!

I would like to stop using potpl, but this need of mine makes the task very difficult for me.

:thanks:

StainlessS
12th June 2022, 10:43
rB,
Does something like this sound OK:- https://forum.doom9.org/showthread.php?t=173010

Assuming I can get it working OK, would use VirtualDub2 + Windows NotePad to create a BookMark File.
Load mp4 into VD2, scan though clip using VD2 controls, hit CTRL/INSERT to Insert Chapter into the NotePad text file.

EDIT: As it currently stands, it inserts frame numbers, should (I hope) be easy to insert time instead.
It's your job to think of a name for it :)

StainlessS
12th June 2022, 11:31
Yo Dude !,

See Here [ MPC-HC EDL Editor ] :- https://forum.doom9.org/showthread.php?t=173964

Might be what you want [EDL keys are in MPC...Options/Player/Keys/ and right at the end of the listbox].

I think it might be of interest [but I aint tried it].
Say if you want me to continue with the VD_Edkey clone thingy :)

EDIT: Alternative:- https://forum.videohelp.com/threads/380911-get-playhead-position-in-clipboard
Macro to copy Frame number from VirtualDub to notepad, maybe could be hacked for time instead.
Written by RaffRiff42 as AutoHotKey Macro [I dont speak autohotkey, and RR42 dont visit D9 for some time]
EDIT: Dont seem to be a way to copy current time to clipboard in VDub/VDub2, so above autohotkey script may not be hackable.

StainlessS
12th June 2022, 15:26
Here see VD_EdChap - Make Chapter list using VDub2:- https://forum.doom9.org/showthread.php?t=184191

VD_EdChap - Make Chapter list using VDub2


VD_EdChap v0.01 for VirtualDub2. By StainlessS @ Doom9:- https://forum.doom9.org/showthread.php?t=184191

VD_EdChap, intended to assist in creating Chapter/BookMark time files.

Requirements:
VirtualDub2 x86 or x64, build 44282 or higher. [VirtualDub Standard or VirtualDubMod are non suitable].
Windows NotePad [will not work where windows system NotePad replaced with some other editor via some registry hack].

On running VD_EdChap, it will present a GUI dialog box with options,
FractionSeparatorIsPeriod: Unticked=0=COMMA : Ticked=1=PERIOD (Default non exisitng ini=0) # Written Time fractional seconds separator.
WriteChapterTitles: Unticked=0=No : Ticked=1=Yes (Default non exisitng ini=0) # 1 will ask user to input title for each Chapter.

After clicking OK on above mentioned GUI dialog, it will become invisible but watching and waiting for key presses when VDub2 is in the foreground.
You can call up the Hot GUI again later(CTRL/PAUSE or CTRL/HOME), if you eg maybe later decide to write chapter titles [Affects only chapters written AFTERWARDS].
If a VD_EdChap.Ini file does not exist in same directory as VD_EdChap.exe then it will be created, and will be updated whenever the GUI is closed.

After Initial closure of the VD_Edkey GUI, if NotePad is not running, it will be started up for you, you can save to a filename then, Or, will be prompted
for a filename when writing the first chapter. VirtualDub2 is not auto started.

Usage,
You can scroll through a video clip in VDub2, and press CTRL/INSERT to insert the current frame time into the NotePad window at current NotePad cursor position,
if opted for in GUI will also prompt user for a chapter title, which will also be written, and then a NewLine will also be written moving the cursor down 1 line,
and the NotePad file will be flushed to disk [Asking for Filename if not previously named/saved].
You can use the CTRL/PAUSE (or alternative CTRL/HOME) key combo at anytime to bring up the Hot GUi, but VDub2 must be the foreground window when using the CTRL/INSERT combo to insert
the current VDub2 time into the NotePad window.


VD_EdChap Keyboard commands:-
CTRL/INSERT ::: Insert Chapter into NotePad window using current Vdub2 time. (NotePad must be visible, and VDub2 the active window)
CTRL/PAUSE ::: Hot GUi
CTRL/HOME ::: Alternative Hot GUI {Some keyboards may not have both sets of Hot GUI keys}
CTRL+SHIFT+ALT+PAUSE ::: Terminate VD_EdChap Program (or close via System Tray icon). PAUSE is also known as BREAK, usually next to Scroll Lock.
CTRL+END ::: Alternative VD_EdChap Terminate Program.

###########################################################################################

NOTES::

VDub2 opens most video files just fine, does not have to be *.AVI.

VDub2 must be stopped when you press CTRL/INSERT, else it will not be able to write a chapter into NotePad file [SPACE bar both starts and stops VDub2 play].

It is important to NOT do any VirtualDub2 clip editing, if you eg delete a frame in VirtualDub2, then all frames after that frame will
be off by 1, and so all VD_EdChap times inserted later into NotePad file will be also off by 1 frame.

MPC-HC, auto loads *.xchp files of same base name as movie file, so perhaps create empty MovieName.txt or MovieName.xchp in NotePad, and VD_EdChap will use that
instance of Notepad instead of auto running the NotePad app.

It is easy to see what is happening as the NotePad window will be visible and after each insertion into NotePad, an ENTER key
will also be sent to move the cursor down one line, each chapter is on its own line. If you make a mistake, it is easy to
just switch to NotePad window and delete the erroneous line.

Chapters are inserted at the current NotePad position, so you can go back and insert chapters earlier in the notepad file.

Its lovely to have a 2nd monitor for the NotePad window (if your graphics card supports), my Number 1 machine has a 19" 4:3 HP monitor that cost me £1.50 2nd hand (used) but in perfect
condition, nobody wants them anymore, HeHeHe!. My No 2 m/c has similar 19" but cost a bit more some time ago.
[2nd monitor is 'the dogs bollocks' for showing Debug Info via DebugView (google)] [EDIT: 'The Dogs Bollocks', Taste so good, you can't stop licking them :) ]

MPC-HC does order *.xchp chapters when loading, so they do not have to be in exact order already.
MPC-HC, PageUp, and PageDown, jump through the chapters.

If your system is configured to open txt files via some other text editor (Open With), thats OK [We though MUST still use Windows STANDARD NotePad], only is problem when it is NOT possible to
to execute system NotePad at all because of registry hack where opens some other editor [we need original NotePad.Exe name and also must have exact same control names and instances used inside of the executable].

NotePad2 (well one of the editors called NotePad2) is one of those that can be installed to totally replace system NotePad, if you do a few edits (4 lines) near beginning of the source, you can re-compile and it should work
OK with that hacked editor.

###########################################################################################

VD_EdChap.Ini file format (Defaults as set when creating New ini file :: Comments following '#' exist in this readme file only, not in the ini file.)
>>>>>------------------->>>
[Default]
FractionSeparatorIsPeriod=0 # Time format for Fractional Seconds, 0=COMMA(,) 1=PERIOD(.)
WriteChapterTitles=0 # Prompt user for, and write Chapter title, 0=No, 1=Yes.
<<<-------------------<<<<<
###########################################################################################

AutoiIt compiled executable with source provided, just click Menu Tools/build to create executable (In Scite4AutoIt3 editor).
Requires AutoIt3 and Scite4AutoIt3 editor to re-build executable.

ssS



Only produces time list, no chapter title.
You can load your MP4 into VDub2, scan though, stop and press CTRL/INSERT to write frame time to a NotePad file.

EDIT: Thread at above link updated, now supports optional chapter title. Above quoted text updated.

rbauer
12th June 2022, 16:26
Yo Dude !,

See Here [ MPC-HC EDL Editor ] :- https://forum.doom9.org/showthread.php?t=173964

Might be what you want [EDL keys are in MPC...Options/Player/Keys/ and right at the end of the listbox].

I think it might be of interest [but I aint tried it].

I'll try with that (or unfortunately I will have to stay with potplayer) 'cause I'm too noob to venture with more complicated/tortuous solutions (but maybe I'll try when I have more time, now I have to study for exams).

Many thanks.

StainlessS
13th June 2022, 19:42
Thread linked in post #33 updated, to v0.01, supports optional chapter title.

Optionally with Chapter title. [below eg, user prompted for title "Minute 6"]

00:00:00,000 Minute 0
00:01:00,000 Minute 1
00:02:00,000 Minute 2
00:03:00,000 Minute 3
00:04:00,000 Minute 4
00:05:00,000 Minute 5
00:06:00,000 Minute 6
00:07:00,000 Minute 7
00:08:00,000 Minute 8
00:09:00,000 Minute 9
00:10:00,000 Minute 10
00:34:38,000 Sometime
01:33:46,000 somewhere



EDIT:
I'm too noob to venture with more complicated/tortuous solutions
Is real easy, in same directory as eg MovieName.mp4, create MovieName.xchp and open it in NotePad (OpenWith),
Open MovieName.mp4 in VirtualDub2, run VD_EdChap.Exe.
NotePad needs a little screen space to view a couple of lines of text, VDub2 can have the rest, and you are good to go.
30 seconds of preparation at most really.

When you're done, just play the MovieName.mp4 in MPC-HC, will auto load the MovieName.xchp and you can skip back and forth
as much as you like with PageUp/PageDwn.

In MPC-HC, both time and title are shown for a few seconds when joyfully skipping about.

StainlessS
22nd June 2023, 20:41
Chapter Files
Just thought I'de point out that MeGUI (only MKV muxer tested) demands PERIOD '.' separator as fractional seconds separator,
unlike MPC-HC player which demands COMMA ','.

Error, First couple of lines of chapter file. [MeGUI mkv Muxer works OK with periods (no error in MeGUI), but not with COMMA ',']

CHAPTER01=00:00:00,000
CHAPTER01NAME=01: Intro
CHAPTER02=00:01:57,743
CHAPTER02NAME=02: Estoy Aqui

[MeGUI]:- "The selected file is not a valid chapter file".
https://i.postimg.cc/XrWx8W3V/Untitled-00.jpg (https://postimg.cc/XrWx8W3V)

Using MeGUI demanded PERIOD fractional separator, results in no chapter marks displaying in MPC-HC.

PERIOD '.' separator MeGUI muxed files display chapters ok in PotPlayer.

I guess that as far as chapter files are concerned, MeGUI and MPC-HC are "mutually exclusive".
(but PotPlayer works ok with either PERIOD or COMMA separators)

StainlessS
1st July 2023, 12:27
Further to previous post above.

I've just found this in mkvtoolnix-64-bit-77.0.7z,
examples/example-chapters-1.xml

<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE Chapters SYSTEM "matroskachapters.dtd">

<!-- A simple example. The movie in question contains four parts: -->
<!-- The intro starting at the beginning, the first act, the second -->
<!-- act, and the credits. -->

<!-- Note that the end timestamps are optional. -->

<!-- The timestamps use the normal format of HH:MM:SS.mmm with -->
<!-- HH beging the hour, MM the minute, SS the second and -->
<!-- mmm the milliseconds. -->

<Chapters>
<EditionEntry>
<EditionDisplay>
<EditionString>Example movie</EditionString>
<EditionLanguageIETF>en</EditionLanguageIETF>
</EditionDisplay>
<ChapterAtom>
<ChapterTimeStart>00:00:00.000</ChapterTimeStart>
<ChapterDisplay>
<ChapterString>Intro</ChapterString>
<ChapterLanguage>eng</ChapterLanguage>
</ChapterDisplay>
<ChapterSkipType>1</ChapterSkipType>
</ChapterAtom>
<ChapterAtom>
<ChapterTimeStart>00:01:00.000</ChapterTimeStart>
<ChapterDisplay>
<ChapterString>Act 1</ChapterString>
<ChapLanguageIETF>en</ChapLanguageIETF>
</ChapterDisplay>
<ChapterSkipType>0</ChapterSkipType>
</ChapterAtom>
<ChapterAtom>
<ChapterTimeStart>00:05:30.000</ChapterTimeStart>
<ChapterDisplay>
<ChapterString>Act 2</ChapterString>
<ChapLanguageIETF>en</ChapLanguageIETF>
</ChapterDisplay>
<ChapterSkipType>0</ChapterSkipType>
</ChapterAtom>
<ChapterAtom>
<ChapterTimeStart>00:12:20.000</ChapterTimeStart>
<ChapterTimeEnd>00:12:55.000</ChapterTimeEnd>
<ChapterDisplay>
<ChapterString>Credits</ChapterString>
<ChapLanguageIETF>en</ChapLanguageIETF>
</ChapterDisplay>
<ChapterSkipType>2</ChapterSkipType>
</ChapterAtom>
</EditionEntry>

<!-- There are two new flags that have been added to Matroska lately. -->
<!-- They are flags that enable/disable and hide/unhide chapters. -->
<!-- Here's just a small example: -->
<EditionEntry>
<ChapterAtom>
<ChapterTimeStart>00:02:00.000</ChapterTimeStart>
<ChapterTimeEnd>00:04:00.000</ChapterTimeEnd>
<ChapterFlagHidden>1</ChapterFlagHidden>
<ChapterFlagEnabled>0</ChapterFlagEnabled>
<ChapterDisplay>
<ChapterString>A hidden and not enabled chapter.</ChapterString>
<ChapterLanguage>eng</ChapterLanguage>
</ChapterDisplay>
</ChapterAtom>
</EditionEntry>
</Chapters>

Seems that MKV guys think that mkv chapters have PERIOD '.' fractional seconds separator.
Its beginning to look a lot like MPC-HC is in the minority with its demanded COMMA ',' separator.
I would expect it be be a trivial fix in the [EDIT: MPC-HC] parser to support either separator.

EDIT: Perhaps the "The selected file is not a valid chapter file" error from previous post is from an MkvToolnix utility rather than MeGUI itself.

varekai
2nd July 2023, 08:02
This thread is about...
"Potplayer - ability to start a movie paused?"
Any input on that?

StainlessS
13th July 2023, 02:02
This thread is about...
"Potplayer - ability to start a movie paused?"
Any input on that?

Yep, how bout this,

From CmdLines64.ini [x64 version],

Usage: PotPlayerMini64.exe ["content"] [/switch]

"content" : You can specify a file, folder or URL as content.
-You can specify multiple contents by separating them with a space.
-You can specify titles for URLs by separating them with a backslash (\) at the end of URLs. ("http://...\title of this url")
-Wildcards (*,?) are allowed.
-The setting "Misc > When Files Opened" affects this when a file is specified.

- : Plays streaming media from stdin
-Example usage: youtube-dl.exe -o - -f best[ext=webm] https://www.youtube.com/watch?v=l22sS8DEiVU | PotPlayerMini64.exe -

/filedlg : Opens the open file dialog box.
/urldlg : Opens the open URL dialog box.
/folderdlg : Opens the open folder dialog box.
/simple : Opens file navigator.
/cap : Runs screen capture.
/cam : Runs webcam/Other devices.
/atv[:ch] : Runs Analog TV device from the specified channel.
/dtv[:ch[-idx]] : Runs Digital TV device from the specified channel.
/dvd : Runs DVD device.
/cd[:drive] : Runs the specified drive.
/add : Appends the specified content(s) into playlist.
/insert : Inserts the specified content(s) just below the item being played in playlist.(Or adds at the end of playlist if there is nothing playing at the time)
/autoplay : Plays the last played item.
/same : Loads and plays the specified contents as multiple streams.
-You can independently select loaded video and audio streams under Video/Audio/Filters context menus.
/sort : Sorts the specified contents by name before adding them into playlist.
/randomize : Sorts the specified contents by randomly before adding them into playlist.
/new : Plays the specified content(s) within a new instance of the program.
-The setting "F5 > General > Multiple instances" does not affect this.
/current : Plays the specified content(s) within an existing instance of the program.
-The setting "F5 > General > Multiple instances" does not affect this.
/clipboard : Appends content(s) from clipboard into playlist and starts playback immediately.
/seek=time : Starts playback of the specified/last played content from the specified time point.
-time format is: hh:mm:ss.ms (OR specify seconds only e.g. /seek=1800 to start at 30th min)
/sub="subfile" : Loads the specified subtitle(s) from the specified paths or URLs.
/user_agent="ua" : Sets user agent header for HTTP(S) requests.
/referer="ref" : Sets referer header for HTTP(S) requests.
/headers="hdrs" : Appends the specified header(s) to HTTP(S) requests.
/title="title" : Use title
config="name" : Activates the specified preset.


Test.CMD [or Test.Bat]

"C:\Program Files\DAUM\PotPlayer\PotPlayerMini64.exe" "c:\z\kp.mp4" /add

executes PotPlayer 64 bit, adds "C:\Z\kp.mp4" to play list, and starts up Potplayer without playing or showing anything. [black frame].
Click on the player [or hit SPACE bar], and it will commence playing. [If you want it to also show only the first frame, then I've no idea how]

EDIT:
Just starting the "EMPTY" player without any video file, and clicking on player [or hit SPACE bar], plays previous video that was played.
(probably playing from start, or from last played position, depending upon settings)

EDIT: Potplayer used to [probably still does] get slagged of for not complying with Open Source requirements,
just noticed that it now has this in folder,

GNU LESSER GENERAL PUBLIC LICENSE
Version 2.1, February 1999

Copyright (C) 1991, 1999 Free Software Foundation, Inc.
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.

[This is the first released version of the Lesser GPL. It also counts
as the successor of the GNU Library Public License, version 2, hence
the version number 2.1.]

Preamble

The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
Licenses are intended to guarantee your freedom to share and change
free software--to make sure the software is free for all its users.

This license, the Lesser General Public License, applies to some
specially designated software packages--typically libraries--of the
Free Software Foundation and other authors who decide to use it. You
can use it too, but we suggest you first think carefully about whether
this license or the ordinary General Public License is the better
strategy to use in any particular case, based on the explanations below.

When we speak of free software, we are referring to freedom of use,
not price. Our General Public Licenses are designed to make sure that
you have the freedom to distribute copies of free software (and charge
for this service if you wish); that you receive source code or can get
it if you want it; that you can change the software and use pieces of
it in new free programs; and that you are informed that you can do
these things.

... etc

Also this

This software is a freeware product, which can be used freely by individual/company/school/government office/etc. users to play media files as long as it's for non-commercial purposes.

* Attention
- This software is protected by copyright laws and software protection law, and modifying, reverse engineering, decompiling, disassembling, or otherwise making changes to the software beyond what is specifically allowed by relevant laws is strictly prohibited.(Except for FFmpeg,lame which have LGPL licenses)
- This software cannot be used for commercial purposes without the permission of the copyright owner.

* Copyright Information
- This software includes a video decoder based on FFmpeg (http://www.ffmpeg.org) which is licensed under LGPL license.(To review the LGPL license, look for LGPL.txt in install directory) The modified FFmpeg source can be downloaded from http://potplayer.daum.net/devel/ffmpeg.zip.
- This software uses Zlib library which is licensed under zlib license.(http://www.zlib.net)
- This software uses rar library made publicly available by RARLAB.(http://www.rarlab.com)
- This software uses png library which is licensed under zlib/png license.(http://www.libpng.org)
- This software uses OGG (VORBIS) library made publicly available by Xiph.org which is licensed under BSD-like license.(http://www.vorbis.com)
- This software uses BASS library.(http://www.un4seen.com)
- This software uses MediaInfo library.(http://mediaarea.net)
- This software uses SQLite library.(http://www.sqlite.org)
- This software uses AngelScript library.(http://www.angelcode.com/angelscript)
- This software uses JsonCpp library which is licensed under MIT license.(https://github.com/open-source-parsers/jsoncpp)
- This software uses RapidJSON library which is licensed under MIT license.(https://github.com/Tencent/rapidjson)
- This software uses base64 library which is licensed under zlib license.(https://github.com/ReneNyffenegger/cpp-base64)
- This software uses FreeType font renderer library.(http://www.freetype.org)
- This software's installer was made using NSIS program which is licensed under zlib/libpng license.(http://nsis.sourceforge.net)
- This software was translated into English by DVB Support.(http://www.dvbsupport.net)
- This software copyrights (C) are owned by Kakao Corp.(https://www.kakaocorp.com/?lang=en)

So they do point at source of open source software, but not sure if its correct to refer to PotPlayer as Freeware.
(They also do not supply any modification done to original open source code, nor any source code at all)

StainlessS
13th July 2023, 04:03
Prev post probably has same problem as this.

I made a shortcut
https://i.postimg.cc/MHRfp58x/Untitled-00.jpg (https://postimages.org/)
with path and PotplayerMini64.exe and added " /add".
I thought that it might require " %1 /add" but that would not work at all neither would " /add %1".
(as per this thread on VideoHelp:- https://forum.videohelp.com/threads/360627-PotPlayer-Command-Line )

So, as it stands, if you double click the shortcut is will play whatever is in the playlist,
if there is nothing in playlist, then will play last video that was played. ["Play", when hit SPACE bar or click player]

If drag/drop file onto shortcut, it will append it to the END of the existing playlist, if playlist empty
then will add to playlist and play that file. ["Play", when hit SPACE bar or click player]

So, I expect the command CMD file posted earlier will work exactly the same,
so playlist needs to be empty or drag/drop files will only add to the end of the playlist
and play the wrong file.

Not gonna play with this any longer, seems to be a no win situation.