[FFmpeg-user] FFplay toggle subtitles on / off?
Michael Castellon
castellonmichael at gmail.com
Thu Jan 30 19:52:13 EET 2020
ffplay: add ass support
https://github.com/cus/ffmpeg/tree/ffplayass
or use other player, for example mplayer
j and J -> Toggle subtitle visibility.
Good luck.
On Wed, Jan 29, 2020 at 1:28 PM Micael Silva <micaelsilva at gmail.com> wrote:
> On Wed, 29 Jan 2020, 08:53 Michael Koch, <astroelectronic at t-online.de>
> wrote:
>
> > Does FFplay have a keyboard shortcut to toggle the subtitles on / off
> > while playing?
> > In the documentation I found only "t" for cycling the subtitle channel.
> > I'm asking because I have a MP4 file with subtitles, created with FFmpeg.
> > The subtitles are visible in VLC player, but not in FFplay.
> >
> > Below is the console output.
> >
> > C:\Users\mKoch\Desktop>c:\ffmpeg\ffmpeg -i test.mp4 -i subtitle.srt -c:v
> > copy -c
> > :a copy -c:s mov_text -metadata:s:s:0 language=ger -y out2.mp4
> > ffmpeg version git-2020-01-26-5e62100 Copyright (c) 2000-2020 the FFmpeg
> > develop
> > ers
> > built with gcc 9.2.1 (GCC) 20200122
> > configuration: --enable-gpl --enable-version3 --enable-sdl2
> > --enable-fontconfi
> > g --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d
> > --enable-libb
> > luray --enable-libfreetype --enable-libmp3lame
> > --enable-libopencore-amrnb --enab
> > le-libopencore-amrwb --enable-libopenjpeg --enable-libopus
> > --enable-libshine --e
> > nable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame
> > --enable
> > -libvpx --enable-libwavpack --enable-libwebp --enable-libx264
> > --enable-libx265 -
> > -enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib
> > --enable-gmp --enab
> > le-libvidstab --enable-libvorbis --enable-libvo-amrwbenc
> > --enable-libmysofa --en
> > able-libspeex --enable-libxvid --enable-libaom --enable-libmfx
> > --enable-ffnvcode
> > c --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec
> > --enable-dxva2 -
> > -enable-avisynth --enable-libopenmpt --enable-amf
> > libavutil 56. 38.100 / 56. 38.100
> > libavcodec 58. 67.100 / 58. 67.100
> > libavformat 58. 36.100 / 58. 36.100
> > libavdevice 58. 9.103 / 58. 9.103
> > libavfilter 7. 71.100 / 7. 71.100
> > libswscale 5. 6.100 / 5. 6.100
> > libswresample 3. 6.100 / 3. 6.100
> > libpostproc 55. 6.100 / 55. 6.100
> > Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.mp4':
> > Metadata:
> > major_brand : isom
> > minor_version : 512
> > compatible_brands: isomiso2mp41
> > encoder : Lavf58.35.102
> > Duration: 00:00:06.57, start: 0.000000, bitrate: 12352 kb/s
> > Stream #0:0(eng): Video: mpeg4 (Simple Profile) (mp4v /
> > 0x7634706D), yuv420p
> > , 1920x1080 [SAR 1:1 DAR 16:9], 12216 kb/s, 30 fps, 30 tbr, 15360 tbn,
> > 30 tbc (d
> > efault)
> > Metadata:
> > handler_name : VideoHandler
> > timecode : 03:47:26:21
> > Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz,
> > stereo, flt
> > p, 128 kb/s (default)
> > Metadata:
> > handler_name : SoundHandler
> > Stream #0:2(eng): Data: none (tmcd / 0x64636D74), 0 kb/s
> > Metadata:
> > handler_name : TimeCodeHandler
> > timecode : 03:47:26:21
> > Input #1, srt, from 'subtitle.srt':
> > Duration: N/A, bitrate: N/A
> > Stream #1:0: Subtitle: subrip
> > Output #0, mp4, to 'out2.mp4':
> > Metadata:
> > major_brand : isom
> > minor_version : 512
> > compatible_brands: isomiso2mp41
> > encoder : Lavf58.36.100
> > Stream #0:0(eng): Video: mpeg4 (Simple Profile) (mp4v /
> > 0x7634706D), yuv420p
> > , 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 12216 kb/s, 0.03 fps, 30 tbr,
> > 15360 tbn,
> > 15360 tbc (default)
> > Metadata:
> > handler_name : VideoHandler
> > timecode : 03:47:26:21
> > Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz,
> > stereo, flt
> > p, 128 kb/s (default)
> > Metadata:
> > handler_name : SoundHandler
> > Stream #0:2(ger): Subtitle: mov_text (tx3g / 0x67337874)
> > Metadata:
> > encoder : Lavc58.67.100 mov_text
> > Stream mapping:
> > Stream #0:0 -> #0:0 (copy)
> > Stream #0:1 -> #0:1 (copy)
> > Stream #1:0 -> #0:2 (subrip (srt) -> mov_text (native))
> > Press [q] to stop, [?] for help
> > frame= 197 fps=0.0 q=-1.0 Lsize= 9903kB time=00:00:06.53
> > bitrate=12417.0kbit
> > s/s speed=69.8x
> > video:9793kB audio:102kB subtitle:0kB other streams:0kB global
> > headers:0kB muxin
> > g overhead: 0.080009%
> >
> >
> >
> > ffmpeg and ffplay natively works with bitmap subtitles format. Subrip
> will
> > not work unless thru a filter that renders it, which is out of scope of
> the
> > "t" shortcut
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
More information about the ffmpeg-user
mailing list