Page 1 of 1

ability to render ARIB subtitles in MPEG2 TS streams

Posted: 15 Feb 2017 07:34
by corsaire
I am french living in Japan for several years.

To watch and record TV I use a setup made of popular Earthlink PT3 PCI-e cards to grab the MPEG2 TS streams of broadcast signals.

I have a set of tools to record the stream, extract the interesting stream (HD, SD, 1SEG...) in the multiplexed format, extract the subtitles and so on.
One of the also possible thing to do is to redirect the captured stream to VLC to watch directly.

Problem is with the subtitles, the format is not natively recognized by VLC.
I have to actually record (grab the stream in a file named .ts or .m2ts depending of the soft), then use a tool to extract the subtitle converting it in a .srt or .ass.

Plus the soft I use is a C++ program wrote for windows.
The code has also some caveats that prevented me to compile it with mingw (I feel a Visual Studio developer here !), so I had to get a binary and use wine to run it...

So, what I would like is to have the possibility to pass the stream or read the .ts file directly to VLC and have to possibility to enable subtitle as is.

The code for the tool is here.
https://github.com/iGlitch/Caption2Ass

Thanks for your time.

Re: ability to render subtitles in MPEG2 TS streams

Posted: 15 Feb 2017 10:27
by Jean-Baptiste Kempf
Please share those files.

Because in theory, we now support ARIB subtitles.

Re: ability to render subtitles in MPEG2 TS streams

Posted: 16 Feb 2017 02:45
by corsaire
Please share those files.

Because in theory, we now support ARIB subtitles.
I can make a sample but .ts files are quite huge, how can I share it to you ?

Re: ability to render subtitles in MPEG2 TS streams

Posted: 16 Feb 2017 03:41
by corsaire
For the sake of a second verification I verified my VLC version and ran it on a stream.

I have the latest version 2.2.4.
The subtitle stream (ARIB format then ?) is not recognized, grey option in the menu

I can extract the subtitles using my tools and make a .ass so there really is a subtitle stream.

Re: ability to render subtitles in MPEG2 TS streams

Posted: 16 Feb 2017 09:36
by Jean-Baptiste Kempf
Please share those files.

Because in theory, we now support ARIB subtitles.
I can make a sample but .ts files are quite huge, how can I share it to you ?
http://streams.videolan.org/upload/

Re: ability to render subtitles in MPEG2 TS streams

Posted: 16 Feb 2017 09:36
by Jean-Baptiste Kempf
For the sake of a second verification I verified my VLC version and ran it on a stream.

I have the latest version 2.2.4.
The subtitle stream (ARIB format then ?) is not recognized, grey option in the menu

I can extract the subtitles using my tools and make a .ass so there really is a subtitle stream.

Please try with a 3.0 Nightly Build of VLC

Re: ability to render subtitles in MPEG2 TS streams

Posted: 16 Feb 2017 09:46
by corsaire
Please share those files.

Because in theory, we now support ARIB subtitles.
I can make a sample but .ts files are quite huge, how can I share it to you ?
http://streams.videolan.org/upload/
Uploaded.
Thank you :)

Re: ability to render subtitles in MPEG2 TS streams

Posted: 16 Feb 2017 14:19
by corsaire
For the sake of a second verification I verified my VLC version and ran it on a stream.

I have the latest version 2.2.4.
The subtitle stream (ARIB format then ?) is not recognized, grey option in the menu

I can extract the subtitles using my tools and make a .ass so there really is a subtitle stream.

Please try with a 3.0 Nightly Build of VLC
I have downloaded the version vlc-3.0.0-20170216-0446-git-win64 and indeed now I can have the subtitles.

Re: ability to render subtitles in MPEG2 TS streams

Posted: 17 Feb 2017 13:26
by Jean-Baptiste Kempf
For the sake of a second verification I verified my VLC version and ran it on a stream.

I have the latest version 2.2.4.
The subtitle stream (ARIB format then ?) is not recognized, grey option in the menu

I can extract the subtitles using my tools and make a .ass so there really is a subtitle stream.

Please try with a 3.0 Nightly Build of VLC
I have downloaded the version vlc-3.0.0-20170216-0446-git-win64 and indeed now I can have the subtitles.
Cool, no regressions or something? Nothing not working?

Re: ability to render subtitles in MPEG2 TS streams

Posted: 17 Feb 2017 15:09
by corsaire
For the sake of a second verification I verified my VLC version and ran it on a stream.

I have the latest version 2.2.4.
The subtitle stream (ARIB format then ?) is not recognized, grey option in the menu

I can extract the subtitles using my tools and make a .ass so there really is a subtitle stream.

Please try with a 3.0 Nightly Build of VLC
I have downloaded the version vlc-3.0.0-20170216-0446-git-win64 and indeed now I can have the subtitles.
Cool, no regressions or something? Nothing not working?
I haven't made so thoughtful tests, so there may be troubles around...

Re: ability to render subtitles in MPEG2 TS streams

Posted: 17 Feb 2017 15:57
by corsaire
For the sake of a second verification I verified my VLC version and ran it on a stream.

I have the latest version 2.2.4.
The subtitle stream (ARIB format then ?) is not recognized, grey option in the menu

I can extract the subtitles using my tools and make a .ass so there really is a subtitle stream.

Please try with a 3.0 Nightly Build of VLC
I have downloaded the version vlc-3.0.0-20170216-0446-git-win64 and indeed now I can have the subtitles.
Cool, no regressions or something? Nothing not working?
Okay, yesterday I only have the time to see that the ARIB subtitles were displayable, but now since I was testing deeper I found a very nasty and obvious flaw...
The subtitles appears with a 10s delay in a live stream...
In a captured stream I can't see this delay playing the captured file, the subtitle is in sync.

Re: ability to render subtitles in MPEG2 TS streams

Posted: 18 Feb 2017 13:25
by Jean-Baptiste Kempf
Okay, yesterday I only have the time to see that the ARIB subtitles were displayable, but now since I was testing deeper I found a very nasty and obvious flaw...
The subtitles appears with a 10s delay in a live stream...
In a captured stream I can't see this delay playing the captured file, the subtitle is in sync.
Can you file a bug with details? So that we can fix?

Re: ability to render subtitles in MPEG2 TS streams

Posted: 19 Feb 2017 06:34
by corsaire
Okay, yesterday I only have the time to see that the ARIB subtitles were displayable, but now since I was testing deeper I found a very nasty and obvious flaw...
The subtitles appears with a 10s delay in a live stream...
In a captured stream I can't see this delay playing the captured file, the subtitle is in sync.
Can you file a bug with details? So that we can fix?
done here
https://forum.videolan.org/viewtopic.php?f=2&t=137625

Thank you.