ffplay, display subtitles

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

ffplay, display subtitles

Michael Castellon
Hello, my name is Michael Castellón.

I'm writing from Managua, Nicaragua.

I'm new in linux, and I'm interested to use your vast suite of libraries
open source and ffplay for media player.
Compile and run ffplay work very well, but it don't display the subtitles
of the file mkv.

It's possible display subtitles of an mkv in ffplay?

Linux information
Distro: Debian 10
kernel:  4.19.0-5-amd64

Libraries:
libxv-dev/stable,now 2:1.0.11-1 amd64 [installed]  --  X11 Video extension
library (development headers)
libsdl2-dev/stable,now 2.0.9+dfsg1-1 amd64 [installed]  --  Simple
DirectMedia Layer development files
libvdpau-dev/stable,now 1.1.1-10 amd64 [installed]  --  Video Decode and
Presentation API for Unix (development files)
libva-dev/stable,now 2.4.0-1 amd64 [installed] --  Video Acceleration (VA)
API for Linux -- development files
libfreetype6-dev/stablibvdpau-dev/stable,now 1.1.1-10 amd64 [installed]  --
 FreeType 2 font engine, development files

Sorry for my english, is not very good.
Thank you, very much.
Michael.
Regards.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: ffplay, display subtitles

kumowoon1025
> Libraries:
> libxv-dev/stable,now 2:1.0.11-1 amd64 [installed]  --  X11 Video extension
> library (development headers)
> libsdl2-dev/stable,now 2.0.9+dfsg1-1 amd64 [installed]  --  Simple
> DirectMedia Layer development files
> libvdpau-dev/stable,now 1.1.1-10 amd64 [installed]  --  Video Decode and
> Presentation API for Unix (development files)
> libva-dev/stable,now 2.4.0-1 amd64 [installed] --  Video Acceleration (VA)
> API for Linux -- development files
> libfreetype6-dev/stablibvdpau-dev/stable,now 1.1.1-10 amd64 [installed]  --
> FreeType 2 font engine, development files

You need to get libass, and recompile.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: ffplay, display subtitles

Marton Balint


On Tue, 13 Aug 2019, Ted Park wrote:

>> Libraries:
>> libxv-dev/stable,now 2:1.0.11-1 amd64 [installed]  --  X11 Video extension
>> library (development headers)
>> libsdl2-dev/stable,now 2.0.9+dfsg1-1 amd64 [installed]  --  Simple
>> DirectMedia Layer development files
>> libvdpau-dev/stable,now 1.1.1-10 amd64 [installed]  --  Video Decode and
>> Presentation API for Unix (development files)
>> libva-dev/stable,now 2.4.0-1 amd64 [installed] --  Video Acceleration (VA)
>> API for Linux -- development files
>> libfreetype6-dev/stablibvdpau-dev/stable,now 1.1.1-10 amd64 [installed]  --
>> FreeType 2 font engine, development files
>
> You need to get libass, and recompile.

FFplay has currently no support for non-bitmap subtitles. I have a patch
on github which adds ASS support if you are interested.

https://github.com/cus/ffmpeg/tree/ffplayass

Regards,
Marton
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: ffplay, display subtitles

Michael Castellon
Hello Marton,

Thanks you for information.
Bitmap subtitles is ok for me.

I compile with libraries ass
$./configure --enable-libass

Now, for subtitles srt, I found  this command,
ffplay -vf subtitles=input.srt input.mp4
and this works.

but how to view the stream of subtitle from mkv files
for example
 Stream #0:3(spa)

I tested.
ffplay -sst 3 input.mkv
but not works.
error: Stream specifier 3 does not match any subtitle stream

Please your help.

Thank you.
Michael.
Regards





On Tue, Aug 13, 2019 at 3:44 PM Marton Balint <[hidden email]> wrote:

>
>
> On Tue, 13 Aug 2019, Ted Park wrote:
>
> >> Libraries:
> >> libxv-dev/stable,now 2:1.0.11-1 amd64 [installed]  --  X11 Video
> extension
> >> library (development headers)
> >> libsdl2-dev/stable,now 2.0.9+dfsg1-1 amd64 [installed]  --  Simple
> >> DirectMedia Layer development files
> >> libvdpau-dev/stable,now 1.1.1-10 amd64 [installed]  --  Video Decode and
> >> Presentation API for Unix (development files)
> >> libva-dev/stable,now 2.4.0-1 amd64 [installed] --  Video Acceleration
> (VA)
> >> API for Linux -- development files
> >> libfreetype6-dev/stablibvdpau-dev/stable,now 1.1.1-10 amd64
> [installed]  --
> >> FreeType 2 font engine, development files
> >
> > You need to get libass, and recompile.
>
> FFplay has currently no support for non-bitmap subtitles. I have a patch
> on github which adds ASS support if you are interested.
>
> https://github.com/cus/ffmpeg/tree/ffplayass
>
> Regards,
> Marton
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: ffplay, display subtitles

Michael Castellon
In reply to this post by kumowoon1025
Hello Ted,
Thanks you for information.

I compile with libass
$./configure --enable-libass

But now, how to display the stream of subtitle from mkv files
for example Stream #0:3(spa)
I tested.
$ffplay -sst 3 input.mkv
but not works.
Error: Stream specifier 3 does not match any subtitle stream

Please your help.

Thank you.
Michael.
Regards.

On Tue, Aug 13, 2019 at 2:17 PM Ted Park <[hidden email]> wrote:

> > Libraries:
> > libxv-dev/stable,now 2:1.0.11-1 amd64 [installed]  --  X11 Video
> extension
> > library (development headers)
> > libsdl2-dev/stable,now 2.0.9+dfsg1-1 amd64 [installed]  --  Simple
> > DirectMedia Layer development files
> > libvdpau-dev/stable,now 1.1.1-10 amd64 [installed]  --  Video Decode and
> > Presentation API for Unix (development files)
> > libva-dev/stable,now 2.4.0-1 amd64 [installed] --  Video Acceleration
> (VA)
> > API for Linux -- development files
> > libfreetype6-dev/stablibvdpau-dev/stable,now 1.1.1-10 amd64 [installed]
> --
> > FreeType 2 font engine, development files
>
> You need to get libass, and recompile.
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: ffplay, display subtitles

kumowoon1025
In reply to this post by Michael Castellon
>> On Tue, Aug 13, 2019 at 3:44 PM Marton Balint <[hidden email]> wrote:
>>
>> FFplay has currently no support for non-bitmap subtitles. I have a patch
>> on github which adds ASS support if you are interested.
>>
>> https://github.com/cus/ffmpeg/tree/ffplayass
>>
> On Aug 13, 2019, at 5:59 PM, Michael Castellon <[hidden email]> wrote:
>
> Hello Marton,
>
> Thanks you for information.
> Bitmap subtitles is ok for me.
>
> I compile with libraries ass
> $./configure --enable-libass
>
> Now, for subtitles srt, I found  this command,
> ffplay -vf subtitles=input.srt input.mp4
> and this works.
>
> but how to view the stream of subtitle from mkv files
> for example
> Stream #0:3(spa)
>
> I tested.
> ffplay -sst 3 input.mkv
> but not works.
> error: Stream specifier 3 does not match any subtitle stream
>

Oh, right. I just assumed subtitles meant text-based for some reason… Bitmap subtitles won’t work. Closed captions and teletype doesn’t work either. (Afaik)

What does it say the subtitle codec is? You should post the output of your command.

If it is text based, ffplay -vf subtitles=input.mkv input.mkv should work. I don’t think the -sst option ever worked in ffplay.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: ffplay, display subtitles

Michael Castellon
Ted,
Thank you very much.

It working...

Michael.
Regards.


On Thu, Aug 15, 2019 at 9:42 PM Ted Park <[hidden email]> wrote:

> >> On Tue, Aug 13, 2019 at 3:44 PM Marton Balint <[hidden email]> wrote:
> >>
> >> FFplay has currently no support for non-bitmap subtitles. I have a patch
> >> on github which adds ASS support if you are interested.
> >>
> >> https://github.com/cus/ffmpeg/tree/ffplayass
> >>
> > On Aug 13, 2019, at 5:59 PM, Michael Castellon <
> [hidden email]> wrote:
> >
> > Hello Marton,
> >
> > Thanks you for information.
> > Bitmap subtitles is ok for me.
> >
> > I compile with libraries ass
> > $./configure --enable-libass
> >
> > Now, for subtitles srt, I found  this command,
> > ffplay -vf subtitles=input.srt input.mp4
> > and this works.
> >
> > but how to view the stream of subtitle from mkv files
> > for example
> > Stream #0:3(spa)
> >
> > I tested.
> > ffplay -sst 3 input.mkv
> > but not works.
> > error: Stream specifier 3 does not match any subtitle stream
> >
>
> Oh, right. I just assumed subtitles meant text-based for some reason…
> Bitmap subtitles won’t work. Closed captions and teletype doesn’t work
> either. (Afaik)
>
> What does it say the subtitle codec is? You should post the output of your
> command.
>
> If it is text based, ffplay -vf subtitles=input.mkv input.mkv should work.
> I don’t think the -sst option ever worked in ffplay.
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".