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 11th June 2022, 11:53   #21  |  Link
rbauer
Registered User
 
Join Date: Sep 2010
Posts: 29
Quote:
Originally Posted by clsid View Post
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."

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" ) in the xcph file?

"Very clear"? Yeah, for sure.

rbauer is offline   Reply With Quote
Old 11th June 2022, 12:24   #22  |  Link
clsid
*****
 
Join Date: Feb 2005
Posts: 5,642
Code:
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.
__________________
MPC-HC 2.1.7.2
clsid is offline   Reply With Quote
Old 11th June 2022, 14:10   #23  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
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.
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

Last edited by StainlessS; 11th June 2022 at 14:30.
StainlessS is offline   Reply With Quote
Old 11th June 2022, 15:29   #24  |  Link
v0lt
Registered User
 
Join Date: Dec 2008
Posts: 1,959
Quote:
Originally Posted by StainlessS View Post
',' separator looks quite alien to many, including myself
As far as I understand, time formatting is used as in SubRip. This is the most popular format for simple subtitles.
v0lt is offline   Reply With Quote
Old 11th June 2022, 15:53   #25  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
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.
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

Last edited by StainlessS; 11th June 2022 at 15:56.
StainlessS is offline   Reply With Quote
Old 11th June 2022, 17:32   #26  |  Link
clsid
*****
 
Join Date: Feb 2005
Posts: 5,642
I am not going to allow that. The formatting is clearly defined.
__________________
MPC-HC 2.1.7.2
clsid is offline   Reply With Quote
Old 11th June 2022, 19:36   #27  |  Link
rbauer
Registered User
 
Join Date: Sep 2010
Posts: 29
Quote:
Originally Posted by clsid View Post
Code:
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)

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


Last edited by rbauer; 11th June 2022 at 19:51.
rbauer is offline   Reply With Quote
Old 11th June 2022, 20:51   #28  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
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]
Code:
# 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]
Code:
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]
Code:
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]


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.
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

Last edited by StainlessS; 11th June 2022 at 21:24.
StainlessS is offline   Reply With Quote
Old 12th June 2022, 05:55   #29  |  Link
v0lt
Registered User
 
Join Date: Dec 2008
Posts: 1,959
Is the .xcph file format documented somewhere? Is this a well-known format or a special format of the MPC-HC project?
v0lt is offline   Reply With Quote
Old 12th June 2022, 06:53   #30  |  Link
rbauer
Registered User
 
Join Date: Sep 2010
Posts: 29
Quote:
Originally Posted by StainlessS View Post
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.

rbauer is offline   Reply With Quote
Old 12th June 2022, 10:43   #31  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
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
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

Last edited by StainlessS; 12th June 2022 at 10:48.
StainlessS is offline   Reply With Quote
Old 12th June 2022, 11:31   #32  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
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/...n-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.
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

Last edited by StainlessS; 12th June 2022 at 12:34.
StainlessS is offline   Reply With Quote
Old 12th June 2022, 15:26   #33  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Here see VD_EdChap - Make Chapter list using VDub2:- https://forum.doom9.org/showthread.php?t=184191

Quote:
Originally Posted by StainlessS View Post
VD_EdChap - Make Chapter list using VDub2

Code:
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.
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

Last edited by StainlessS; 13th June 2022 at 20:33. Reason: Updated
StainlessS is offline   Reply With Quote
Old 12th June 2022, 16:26   #34  |  Link
rbauer
Registered User
 
Join Date: Sep 2010
Posts: 29
Quote:
Originally Posted by StainlessS View Post
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.

Last edited by rbauer; 12th June 2022 at 16:30.
rbauer is offline   Reply With Quote
Old 13th June 2022, 19:42   #35  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
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"]
Code:
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:
Quote:
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.
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

Last edited by StainlessS; 13th June 2022 at 20:32.
StainlessS is offline   Reply With Quote
Old 22nd June 2023, 20:41   #36  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
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 ',']
Code:
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".


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)
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

Last edited by StainlessS; 22nd June 2023 at 21:21.
StainlessS is offline   Reply With Quote
Old 1st July 2023, 12:27   #37  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Further to previous post above.

I've just found this in mkvtoolnix-64-bit-77.0.7z,
examples/example-chapters-1.xml
Code:
<?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.
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

Last edited by StainlessS; 1st July 2023 at 12:40.
StainlessS is offline   Reply With Quote
Old 2nd July 2023, 08:02   #38  |  Link
varekai
Registered User
 
varekai's Avatar
 
Join Date: Jul 2006
Posts: 528
This thread is about...
"Potplayer - ability to start a movie paused?"
Any input on that?
varekai is offline   Reply With Quote
Old 13th July 2023, 02:02   #39  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Quote:
Originally Posted by varekai View Post
This thread is about...
"Potplayer - ability to start a movie paused?"
Any input on that?
Yep, how bout this,

From CmdLines64.ini [x64 version],
Code:
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]
Code:
"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,
Code:
		  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
Code:
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)
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

Last edited by StainlessS; 13th July 2023 at 02:52.
StainlessS is offline   Reply With Quote
Old 13th July 2023, 04:03   #40  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Prev post probably has same problem as this.

I made a shortcut

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/...r-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.
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???
StainlessS is offline   Reply With Quote
Reply

Tags
pause, paused, potplayer

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 12:16.


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