[FFmpeg-trac] #4744(ffmpeg:new): ffmpeg does not scale subtitles

FFmpeg trac at avcodec.org
Sun Aug 2 20:23:59 CEST 2015


#4744: ffmpeg does not scale subtitles
------------------------------------+----------------------------------
             Reporter:  cehoyos     |                    Owner:
                 Type:  defect      |                   Status:  new
             Priority:  normal      |                Component:  ffmpeg
              Version:  git-master  |               Resolution:
             Keywords:  sub         |               Blocked By:
             Blocking:              |  Reproduced by developer:  0
Analyzed by developer:  0           |
------------------------------------+----------------------------------

Comment (by Faravid):

 Same problem here, DVB-subtitle layer does not scale.

 Sample file available here:
 https://www.dropbox.com/s/4voq6p56bv2l4to/sample.ts?dl=0
 File is a clipped DVBLink recorded TVshow, a transponder file.

 Console output:

 BTW, that "too large" error and crash did not happen on a build I
 downloaded 3 days ago, it is not part of this reported problem so lets
 just ignore it for now.

 {{{
 C:\ffmpeg\bin>ffmpeg -i "sample.ts" -filter_complex
 "[0:s:0]scale=width=1920:height=1080[sub];[0:v][sub]overlay"
 "sampleconv.mp4"
 ffmpeg version N-74202-g336822e Copyright (c) 2000-2015 the FFmpeg
 developers
   built with gcc 4.9.3 (GCC)
   configuration: --enable-gpl --enable-version3 --disable-w32threads
 --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r
 --enable-gnutls --enable-iconv --enable-libass --enable-libbluray
 --enable-libbs2b --enable-libcaca --enable-libdcadec --enable-libfreetype
 --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug
 --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb
 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-
 libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora
 --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-
 libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack
 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs
 --enable-libxvid --enable-lzma --enable-decklink --enable-zlib
   libavutil      54. 29.100 / 54. 29.100
   libavcodec     56. 56.101 / 56. 56.101
   libavformat    56. 40.101 / 56. 40.101
   libavdevice    56.  4.100 / 56.  4.100
   libavfilter     5. 30.100 /  5. 30.100
   libswscale      3.  1.101 /  3.  1.101
   libswresample   1.  2.101 /  1.  2.101
   libpostproc    53.  3.100 / 53.  3.100
 [mpegts @ 0000000003c667e0] Invalid timestamps stream=4, pts=2246736897,
 dts=2246737142, size=4963
 [mpegts @ 0000000003c667e0] Invalid timestamps stream=4, pts=2246736897,
 dts=2246737142, size=4733
 [mpegts @ 0000000003c667e0] Invalid timestamps stream=4, pts=2246751489,
 dts=2246751542, size=3622
 [mpegts @ 0000000003c667e0] Invalid timestamps stream=4, pts=2246751489,
 dts=2246751542, size=3497
 [mpegts @ 0000000003c667e0] Invalid timestamps stream=4, pts=2246765825,
 dts=2246765942, size=6423
 [mpegts @ 0000000003c667e0] Invalid timestamps stream=4, pts=2246765825,
 dts=2246765942, size=5918
 [mpegts @ 0000000003c667e0] Invalid timestamps stream=4, pts=2246780161,
 dts=2246780342, size=4487
 [mpegts @ 0000000003c667e0] Invalid timestamps stream=4, pts=2246780161,
 dts=2246780342, size=4281
 [mpegts @ 0000000003c667e0] Invalid timestamps stream=4, pts=2246809089,
 dts=2246809142, size=5826
 [mpegts @ 0000000003c667e0] Invalid timestamps stream=4, pts=2246809089,
 dts=2246809142, size=6095
 [mpegts @ 0000000003c667e0] Invalid timestamps stream=4, pts=2246823425,
 dts=2246823542, size=4849
 [mpegts @ 0000000003c667e0] Invalid timestamps stream=4, pts=2246823425,
 dts=2246823542, size=4344
 Input #0, mpegts, from 'sample.ts':
   Duration: 00:00:17.42, start: 24961.862222, bitrate: 8930 kb/s
   Program 1066
     Metadata:
       service_name    : ?
       service_provider: ?
     Stream #0:0[0x370](eng): Audio: ac3 ([6][0][0][0] / 0x0006), 48000 Hz,
 stereo, fltp, 448 kb/s
     Stream #0:1[0x373](dut): Audio: ac3 ([6][0][0][0] / 0x0006), 48000 Hz,
 stereo, fltp, 192 kb/s (visual impaired)
     Stream #0:2[0x101f](fin): Subtitle: dvb_subtitle ([6][0][0][0] /
 0x0006)
     Stream #0:3[0x13f0](fin): Subtitle: dvb_teletext ([6][0][0][0] /
 0x0006)
     Stream #0:4[0x13c]: Video: h264 (Main) ([27][0][0][0] / 0x001B),
 yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 50 tbr, 90k tbn,
 50 tbc
 [mpegts @ 0000000003c667e0] sub2video: using 1920x1080 canvas
 [libx264 @ 000000000751a400] using SAR=1/1
 [libx264 @ 000000000751a400] using cpu capabilities: MMX2 SSE2Fast SSSE3
 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
 [libx264 @ 000000000751a400] profile High, level 4.0
 [libx264 @ 000000000751a400] 264 - core 146 r2538 121396c - H.264/MPEG-4
 AVC codec - Copyleft 2003-2015 - http://www.videolan.org/x264.html -
 options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7
 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1
 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6
 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0
 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1
 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25
 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0
 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
 Output #0, mp4, to 'sampleconv.mp4':
   Metadata:
     encoder         : Lavf56.40.101
     Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p,
 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 25 fps, 12800 tbn, 25 tbc (default)
     Metadata:
       encoder         : Lavc56.56.101 libx264
     Stream #0:1(eng): Audio: aac (libvo_aacenc) ([64][0][0][0] / 0x0040),
 48000 Hz, stereo, s16, 128 kb/s
     Metadata:
       encoder         : Lavc56.56.101 libvo_aacenc
 Stream mapping:
   Stream #0:2 (dvbsub) -> scale (graph 0)
   Stream #0:4 (h264) -> overlay:main (graph 0)
   overlay (graph 0) -> Stream #0:0 (libx264)
   Stream #0:0 -> #0:1 (ac3 (native) -> aac (libvo_aacenc))
 Press [q] to stop, [?] for help
 [h264 @ 000000000751c0e0] number of reference frames (0+5) exceeds max (4;
 probably corrupt input), discarding one
 [mpegts @ 0000000003c667e0] Invalid timestamps stream=4, pts=2246736897,
 dts=2246737142, size=4963
 [mpegts @ 0000000003c667e0] Invalid timestamps stream=4, pts=2246736897,
 dts=2246737142, size=4733
 [mpegts @ 0000000003c667e0] Invalid timestamps stream=4, pts=2246751489,
 dts=2246751542, size=3622
 [mpegts @ 0000000003c667e0] Invalid timestamps stream=4, pts=2246751489,
 dts=2246751542, size=3497
 [mpegts @ 0000000003c667e0] Invalid timestamps stream=4, pts=2246765825,
 dts=2246765942, size=6423
 [mpegts @ 0000000003c667e0] Invalid timestamps stream=4, pts=2246765825,
 dts=2246765942, size=5918
 frame=   31 fps=0.0 q=0.0 size=       0kB time=00:00:00.47 bitrate=
 0.8kbits/s dup=1 drop=0    [mpegts @ 0000000003c667e0] Invalid timestamps
 stream=4, pts=2246780161, dts=2246780342, size=4487
 [mpegts @ 0000000003c667e0] Invalid timestamps stream=4, pts=2246780161,
 dts=2246780342, size=4281
 [mpegts @ 0000000003c667e0] Invalid timestamps stream=4, pts=2246809089,
 dts=2246809142, size=5826
 [mpegts @ 0000000003c667e0] Invalid timestamps stream=4, pts=2246809089,
 dts=2246809142, size=6095
 [mpegts @ 0000000003c667e0] Invalid timestamps stream=4, pts=2246823425,
 dts=2246823542, size=4849
 [mpegts @ 0000000003c667e0] Invalid timestamps stream=4, pts=2246823425,
 dts=2246823542, size=4344
 Past duration 0.933601 too large
 frame=  414 fps= 23 q=-1.0 Lsize=    5130kB time=00:00:16.52
 bitrate=2543.5kbits/s dup=1 drop=0
 video:4857kB audio:259kB subtitle:0kB other streams:0kB global headers:0kB
 muxing overhead: 0.266437%
 [libx264 @ 000000000751a400] frame I:5     Avg QP:20.24  size:130465
 [libx264 @ 000000000751a400] frame P:123   Avg QP:22.49  size: 22395
 [libx264 @ 000000000751a400] frame B:286   Avg QP:24.55  size:  5476
 [libx264 @ 000000000751a400] consecutive B-frames:  1.7% 15.0% 10.9% 72.5%
 [libx264 @ 000000000751a400] mb I  I16..4: 14.6% 67.6% 17.8%
 [libx264 @ 000000000751a400] mb P  I16..4:  1.1%  2.7%  0.2%  P16..4:
 42.5%  9.0%  6.5%  0.0%  0.0%    skip:38.0%
 [libx264 @ 000000000751a400] mb B  I16..4:  0.1%  0.1%  0.0%  B16..8:
 39.0%  0.8%  0.1%  direct: 0.4%  skip:59.5%  L0:41.4% L1:57.4% BI: 1.2%
 [libx264 @ 000000000751a400] 8x8 transform intra:66.7% inter:84.1%
 [libx264 @ 000000000751a400] coded y,uvDC,uvAC intra: 54.8% 43.7% 10.6%
 inter: 8.6% 7.6% 0.0%
 [libx264 @ 000000000751a400] i16 v,h,dc,p: 31% 25% 10% 33%
 [libx264 @ 000000000751a400] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 17% 30%
 4%  6%  6%  6%  5%  5%
 [libx264 @ 000000000751a400] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 30% 23% 12%
 4%  8%  7%  6%  4%  5%
 [libx264 @ 000000000751a400] i8c dc,h,v,p: 55% 19% 23%  3%
 [libx264 @ 000000000751a400] Weighted P-Frames: Y:0.0% UV:0.0%
 [libx264 @ 000000000751a400] ref P L0: 59.7% 11.1% 21.2%  8.0%
 [libx264 @ 000000000751a400] ref B L0: 83.8% 13.4%  2.8%
 [libx264 @ 000000000751a400] ref B L1: 92.1%  7.9%
 [libx264 @ 000000000751a400] kb/s:2402.43
 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/4744#comment:1>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list