Recent

Author Topic: Tero Subtitler  (Read 10667 times)

Espectr0

  • Full Member
  • ***
  • Posts: 221
Re: Subtitle Workshop
« Reply #15 on: October 24, 2022, 03:25:02 pm »
you're right, I had understood it was opensource but it seems not

metis

  • Sr. Member
  • ****
  • Posts: 301
Re: Subtitle Workshop
« Reply #16 on: October 25, 2022, 03:01:17 pm »
@domasz + @Espectr0

Quote
I had understood it was opensource but it seems not
Partially it is...

The Demo-GUI is OpenSource:
https://forum.lazarus.freepascal.org/index.php/topic,26666.msg337046.html#msg337046
-> GoTo "LCL-Test&Demo-GUI (FFPlay4Laz-FrontEnd)".
This Demo-GUI shows, how to use the FFPlay4Laz-API (currently only for FFPlay4Laz v1.x).
You may take and modify it for Use with other event-driven MediaPlayer-APIs like 'VLC'.
If 'MPV' interfaces via Pipes&Strings like the 'MPlayer', it won't be that useful for You.

The FFPlay4Laz-Player's BasicStructure is also OpenSource:
- for SDL1: http://forum.lazarus.freepascal.org/index.php/topic,26666.msg196377.html#msg196377
   -> download attached 'DrangerTutorial08.c2FPC.lpr.zip'.
- for SDL2: https://forum.lazarus.freepascal.org/index.php/topic,26666.msg373185.html#msg373185
   -> download attached 'FFPlay4Laz2_MINIMALST.7z'.
This is cross-platform FPC-Code. You may compile it to Mac or Linux, too.
The fully-featured FFPlay4Laz-Player/-PlayerEngine is closed, and Win32-only for the Moment.

The FPC-Code to read out all File-/StreamData via FFmpeg-LIBs (= FFInfo4Laz) is OpenSource, too:
https://forum.lazarus.freepascal.org/index.php/topic,22038.msg208700.html#msg208700
-> download attached 'FFStreamInfo.lpr.txt'.
This is quite close to the Code, that is called when <i> is pressed in the FFPlay4Laz-Console.

Quote
From I read FFPlay4Laz2 requires .DLLs from ffmpeg.
FFPlay4Laz uses FFmpeg mainly as Demuxer&Decoder,
where the FFPlay4Laz-VersionNumber indicates the required FFmpeg-Version.

For CopyrightReasons everyone has to download the FFmpeg-Libraries by himself - Sorry.  :(
The next Release of FFPlay4Laz2 will use the latest WinXP32-compatible FFmpeg-Builds by Reino:
https://rwijnsma.home.xs4all.nl/files/ffmpeg/?C=M;O=D
With these FFmpeg-Builds, FFPlay4Laz2 will render additionally AOMedia's AV1-VideoCodec, whilst
it still runs from WinXP to Win10 w/o any Changes. ;)
« Last Edit: October 27, 2022, 07:57:10 pm by metis »
Life could be so easy, if there weren't those f*** Details.
My FFmpeg4Lazarus = FFPlay4Laz + FFGrab4Laz + FFInfo4Laz

metis

  • Sr. Member
  • ****
  • Posts: 301
Re: Subtitle Workshop
« Reply #17 on: September 10, 2023, 09:47:39 pm »
@Espectr0

I changed it because MPV seems more flexible to me but in any case we can implement several engines
If You'd like full Flexibility + full FPC-PlayerSource, furthermore as a Lazarus-Component, see here:)
Life could be so easy, if there weren't those f*** Details.
My FFmpeg4Lazarus = FFPlay4Laz + FFGrab4Laz + FFInfo4Laz

Espectr0

  • Full Member
  • ***
  • Posts: 221
Re: Subtitle Workshop
« Reply #18 on: October 19, 2023, 01:09:02 pm »
@metis

I looked at it, but at the beginning there is this sentence:

Quote
Hi to all, who are Looking for a (Windows only) FFmpeg-based MediaPlayer-Component for Lazarus !

mpv works for me on Windows, Linux and macOS.

metis

  • Sr. Member
  • ****
  • Posts: 301
Re: Subtitle Workshop
« Reply #19 on: October 21, 2023, 05:59:37 pm »
@Espectr0

Quote
mpv works for me on Windows, Linux and macOS.
So, You use it as a command-line interface, don't You ?
Are there Pascal-/FPC-Header for MPV ?

Quote
..., but at the beginning there is this sentence: ... (Windows only) ...
You should have read further:
This is what Somby made of it - All this Code could also be written cross-platform. ;)
« Last Edit: October 23, 2023, 11:03:39 am by metis »
Life could be so easy, if there weren't those f*** Details.
My FFmpeg4Lazarus = FFPlay4Laz + FFGrab4Laz + FFInfo4Laz

Espectr0

  • Full Member
  • ***
  • Posts: 221
Re: Subtitle Workshop
« Reply #20 on: October 25, 2023, 01:39:37 pm »
I use libmpv interface, the headers are translated from the originals.

https://github.com/URUWorks/UW_MPVPlayer

Any idea or help is welcome to improve it.

metis

  • Sr. Member
  • ****
  • Posts: 301
Re: Subtitle Workshop
« Reply #21 on: November 19, 2023, 03:09:44 pm »
Quote
I use libmpv interface, ...
Well, that's actually the difference:
You use an AV-PlayerEngine, whereas FFPlay4Laz is an AV-PlayerEngine:
no VLC, no MPlayer, no MPV, etc. required.
It links directly against the FFmpeg-, SDL- and PortAudio-Libraries to obtain
maximal control and make it as fast, precise and responsive as possible.
Life could be so easy, if there weren't those f*** Details.
My FFmpeg4Lazarus = FFPlay4Laz + FFGrab4Laz + FFInfo4Laz

Espectr0

  • Full Member
  • ***
  • Posts: 221
Re: Subtitle Workshop
« Reply #22 on: November 19, 2023, 03:31:54 pm »
I'd love to use it when it's open source.

metis

  • Sr. Member
  • ****
  • Posts: 301
Re: Subtitle Workshop
« Reply #23 on: November 19, 2023, 06:30:24 pm »
There will be a Library.
Problem is ... Time, Time, Time.  %)
Life could be so easy, if there weren't those f*** Details.
My FFmpeg4Lazarus = FFPlay4Laz + FFGrab4Laz + FFInfo4Laz

domasz

  • Hero Member
  • *****
  • Posts: 574
Re: Subtitle Workshop
« Reply #24 on: December 19, 2023, 01:15:22 pm »
I tried your UW_MPVPlayer and it works great. The only thing I am not sure how to do is handling subtitles.
Can this component display subtitles on it's own or do I have to do this myself (check current video position, display text somewhere on screen)?
If it can display subtitles- how can I display subtitles from file (.SRT) and how embedded subtitles?
If it can't display subtitles- how can I extract subtitles embedded in a video?

Espectr0

  • Full Member
  • ***
  • Posts: 221
Re: Subtitle Workshop
« Reply #25 on: December 20, 2023, 12:10:10 pm »
  • "AutoLoadSubtitle", you can indicate that it loads subtitles automatically (if true, Load the media filename with subtitle file extension and possibly language suffixes).
  • "LoadTrack", you specify what type of additional track to load (Video, Audio, Subtitle) and its external file.
  • "SetTrack", you specify which track to activate.
  • "ShowText", shows a text in the video, supports ASS Tags so you can indicate color, position, etc...
« Last Edit: December 20, 2023, 12:16:28 pm by Espectr0 »

domasz

  • Hero Member
  • *****
  • Posts: 574
Re: Tero Subtitler
« Reply #26 on: December 20, 2023, 01:47:14 pm »
Thank you, that's great!

 

TinyPortal © 2005-2018