Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Screen Subtitle PAC / FPC Support #1945

Open
joe-sciame-wm opened this issue Jan 12, 2024 · 4 comments
Open

Feature Request: Screen Subtitle PAC / FPC Support #1945

joe-sciame-wm opened this issue Jan 12, 2024 · 4 comments
Assignees

Comments

@joe-sciame-wm
Copy link

Hi Jerome,

We are working on large international library that contains a set of FPC and PAC subtitle files. Currently, MediaInfo returns no information so we aren't able to validate them using MediaConch. I'd like to be able to return the following for validation

  • Timecode Start of Subtitle
  • Timecode End of Subtitle
  • Language
  • Count of events
  • Duration
  • Maximum count of lines per event

In the files I have, I'm noticing that the contents have a metadata blurb as the first cc. We wouldn't want that returned as text, but that's where metadata could be pulled from.

1 00:00:00,000 --> 00:00:00,267 {\an4}STORY: LANG: TUR TITLE: SubsAndBlips EPS: Parts ABC

1 00:00:00,000 --> 00:00:00,267 {\an1}STORY: . LANG: RUS. TITLE: Subs And Blips Cyrillic. EPS: 1Track Parts A B C

2 01:00:00,000 --> 01:00:00,033 First Frame of Video. FRAME 720

General
Count : 348
Count of stream of this kind : 1
Kind of stream : General
Kind of stream : General
Stream identifier : 0
Complete name : ESD_933410B_FRA.PAC
Folder name : /PAC_VTT_TESTING/French_FRA
File name extension : ESD_933410B_FRA.PAC
File name : ESD_933410B_FRA
File extension : PAC
File size : 5397
File size : 5.27 KiB
File size : 5 KiB
File size : 5.3 KiB
File size : 5.27 KiB
File size : 5.271 KiB
Stream size : 5397
Stream size : 5.27 KiB (100%)
Stream size : 5 KiB
Stream size : 5.3 KiB
Stream size : 5.27 KiB
Stream size : 5.271 KiB
Stream size : 5.27 KiB (100%)
Proportion of this stream : 1.00000
File last modification date : 2021-01-27 00:44:26 UTC
File last modification date (local) : 2021-01-26 19:44:26

@JeromeMartinez
Copy link
Member

Checking PAC/FPC examples is seems not complicated and we could do as with other text formats, but examples don't match with the example you provide, please send a couple of file (compressed and not compressed) for being sure we talk about the same kind of content.

@joe-sciame-wm
Copy link
Author

Hi @JeromeMartinez Sent samples via email.

@JeromeMartinez JeromeMartinez self-assigned this Jan 18, 2024
@JeromeMartinez JeromeMartinez transferred this issue from MediaArea/MediaInfo Jan 18, 2024
@JeromeMartinez
Copy link
Member

Checking the file format, I find no spec and the first project I found actually does not handle the files (it seems buggy in addition to lack of support of Python3), but I see that SubtitleEdit supports the files well and source code is available (and is a nightmare e.g. about codepage detection), so doable.

Checking metadata blurb, I see no specific magic value (the an4 stuff is ASS style formating), it seems that we'll have to do some empirical tests e.g. about the duration of the first item and catching some magic words.

But I wonder what is the meaning of "EPS" as well the logic behind "First Frame of Video FRAME 720" with a time code of "01:00:00:00" + "FRAME 3600" with a time code of "01:02:00:00", it makes no sense to me, could you explain what you expect from that?

@joe-sciame-wm
Copy link
Author

Adding to this base on the email thread:

  • Identify it’s a PAC or FPAC file.
  • Specify a Text stream
  • Identify the SOM / EOM
  • Max Number of lines per event
  • Max Character count per line
  • Number of lines
  • Number of events
  • Language

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants