[FFmpeg-user] dvb subtitles

JULIAN GARDNER joolzg at btinternet.com
Thu Apr 7 13:43:10 CEST 2016


ffmpeg -canvas_size 720x576 -i bbc_news.ts -c:v libx264 -c:a copy -c:s copy -filter_complex '[0:#0x69] scale=720:576 [sub],[0:v][sub] overlay' -y -f mpegts bbc_news_hard.ts

ffmpeg version N-78956-g920f592 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.1)
  configuration: --bindir=/home/encoder/bin --enable-gpl --enable-version3 --enable-nonfree --disable-ffserver --disable-dxva2 --disable-vaapi --disable-vda --disable-vdpau --disable-libxcb --enable-libmp3lame --enable-postproc --enable-libfaac --enable-libzvbi --enable-libx264 --enable-libx265 --cc='ccache cc'
  libavutil      55. 19.100 / 55. 19.100
  libavcodec     57. 28.100 / 57. 28.100
  libavformat    57. 28.100 / 57. 28.100
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 39.102 /  6. 39.102
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
[mpeg2video @ 0x3aa7fc0] Invalid frame dimensions 0x0.
    Last message repeated 22 times
Input #0, mpegts, from 'bbc_news.ts':
  Duration: N/A, start: 56132.888667, bitrate: N/A
  Program 4168
    Stream #0:0[0x65]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv), 704x576 [SAR 16:11 DAR 16:9], max. 15000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x66](eng): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 256 kb/s
    Stream #0:2[0x6a](eng): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, mono, s16p, 64 kb/s (visual impaired)
    Stream #0:3[0x69](eng): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
[libx264 @ 0x3d9bbc0] using SAR=16/11
[libx264 @ 0x3d9bbc0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.1 Cache64
[libx264 @ 0x3d9bbc0] profile High, level 3.0
Output #0, mpegts, to 'bbc_news_hard.ts':
  Metadata:
    encoder         : Lavf57.28.100
    Stream #0:0: Video: h264 (libx264), yuv420p, 704x576 [SAR 16:11 DAR 16:9], q=-1--1, 25 fps, 90k tbn, 25 tbc (default)
    Metadata:
      encoder         : Lavc57.28.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
    Stream #0:1(eng): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, 256 kb/s
    Stream #0:2(eng): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006), 720x576
Stream mapping:
  Stream #0:0 (mpeg2video) -> overlay:main
  Stream #0:3 (dvbsub) -> scale
  overlay -> Stream #0:0 (libx264)
  Stream #0:1 -> #0:1 (copy)
  Stream #0:3 -> #0:2 (copy)
Press [q] to stop, [?] for help
frame=  196 fps= 63 q=-1.0 Lsize=    1352kB time=00:00:08.96 bitrate=1235.8kbits/s dup=35 drop=0 speed=2.88x
video:985kB audio:237kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 10.664502%
[libx264 @ 0x3d9bbc0] frame I:2     Avg QP:21.18  size: 52366
[libx264 @ 0x3d9bbc0] frame P:69    Avg QP:23.09  size: 10499
[libx264 @ 0x3d9bbc0] frame B:125   Avg QP:27.28  size:  1435
[libx264 @ 0x3d9bbc0] consecutive B-frames:  7.1% 15.3% 24.5% 53.1%
[libx264 @ 0x3d9bbc0] mb I  I16..4:  9.9% 86.1%  4.0%
[libx264 @ 0x3d9bbc0] mb P  I16..4:  1.2%  6.8%  0.7%  P16..4: 37.7% 13.4% 10.2%  0.0%  0.0%    skip:29.9%
[libx264 @ 0x3d9bbc0] mb B  I16..4:  0.0%  0.2%  0.0%  B16..8: 28.9%  1.7%  0.5%  direct: 0.6%  skip:68.0%  L0:41.0% L1:52.6% BI: 6.5%
[libx264 @ 0x3d9bbc0] 8x8 transform intra:79.8% inter:81.1%
[libx264 @ 0x3d9bbc0] coded y,uvDC,uvAC intra: 72.5% 82.1% 55.1% inter: 11.6% 14.2% 2.2%
[libx264 @ 0x3d9bbc0] i16 v,h,dc,p: 48% 26%  5% 22%
[libx264 @ 0x3d9bbc0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 26% 19% 22%  5%  6%  6%  5%  6%  6%
[libx264 @ 0x3d9bbc0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 19% 13%  6%  9%  7%  6%  6%  5%
[libx264 @ 0x3d9bbc0] i8c dc,h,v,p: 43% 22% 27%  9%
[libx264 @ 0x3d9bbc0] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x3d9bbc0] ref P L0: 63.6% 14.4% 16.1%  5.9%
[libx264 @ 0x3d9bbc0] ref B L0: 86.9% 11.6%  1.5%
[libx264 @ 0x3d9bbc0] ref B L1: 92.9%  7.1%
[libx264 @ 0x3d9bbc0] kb/s:1029.08 Joolz 

    On Thursday, 7 April 2016, 13:37, JULIAN GARDNER <joolzg at btinternet.com> wrote:
 
 

 Did you change the pid to the correct one, sorry made a little mistake

ffmpeg -canvas_size 720x576 -i bbc_news.ts -c:v libx264 -c:a copy -c:s copy -filter_complex '[0:#0x69] scale=720:576 [sub],[0:v][sub] overlay' -y -f mpegts bbc_news_hard.ts

 Joolz 

    On Thursday, 7 April 2016, 13:19, Carl Eugen Hoyos <cehoyos at ag.or.at> wrote:
 
 

 JULIAN GARDNER <joolzg <at> btinternet.com> writes:

> ffmpeg -i bbc_news.ts -c:libx264 -c:a copy -c:s copy 
> -filter_complex '[0:#0x102] sub,[0:v][sub]overlay' 
> -f mpegts dvb_news_hard.ts

Could you also provide the complete, uncut console output?
The reason I ask is that this command does not work here 
and I am curious how it works for you.

Thank you, Carl Eugen

_______________________________________________
ffmpeg-user mailing list
ffmpeg-user at ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


 
  
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user at ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


 
  


More information about the ffmpeg-user mailing list