#5825: Vobsub subtitles won't overlay with some MKV -------------------------------------+------------------------------------- Reporter: edumj | Owner: Type: defect | Status: closed Priority: important | Component: avcodec Version: git-master | Resolution: fixed Keywords: dvdsub | Blocked By: regression | Reproduced by developer: 1 Blocking: | Analyzed by developer: 0 | -------------------------------------+-------------------------------------
Comment (by edumj): Replying to [comment:21 richardpl]: > Correct command is > {{{ > -lavfi [0:s:0][0:v]scale2ref[subs][video];[video][subs]overlay > }}} > Well, it's seems the same as with -filter_complez, same "Read error". Also video keeps very pixelated, and runs at 1000 fps (unless I especify -r 25, but I don't know why). Instead, with -canvas_size it's seems to work better: {{{ -canvas_size 720x384 -i "%~1" -filter_complex "[0:v][0:s:0]overlay[out]" -map "[out]" }}} Although I get a "Changing frame properties on the fly is not supported by all filters " all the time, and canvas_size must be final video size for sutitles to show. {{{ ffmpeg version N-81696-gd38dff8e Copyright (c) 2000-2016 the FFmpeg developers built with gcc 5.4.0 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable- bzlib --enable-libebur128 --enable-fontconfig --enable-frei0r --enable- gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable- libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable- libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo- amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable- libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable- libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib libavutil 55. 29.100 / 55. 29.100 libavcodec 57. 57.100 / 57. 57.100 libavformat 57. 49.100 / 57. 49.100 libavdevice 57. 0.102 / 57. 0.102 libavfilter 6. 62.100 / 6. 62.100 libswscale 4. 1.100 / 4. 1.100 libswresample 2. 1.100 / 2. 1.100 libpostproc 54. 0.100 / 54. 0.100 Input #0, matroska,webm, from 'C:\Users\Edumj\Videos\Pa Probar\DVDRip (MKV) con VobSub's\Francis en la Marina (1955)_cut.mkv': Metadata: encoder : libmkv 0.6.5 Duration: 01:16:58.18, start: 0.000000, bitrate: 4 kb/s Chapter #0:0: start 0.000000, end 84.897000 Metadata: title : Chapter 1 Chapter #0:1: start 84.897000, end 1048.977000 Metadata: title : Chapter 2 Chapter #0:2: start 1048.977000, end 1812.817000 Metadata: title : Chapter 3 Chapter #0:3: start 1812.817000, end 2423.737000 Metadata: title : Chapter 4 Chapter #0:4: start 2423.737000, end 3226.097000 Metadata: title : Chapter 5 Chapter #0:5: start 3226.097000, end 3864.937000 Metadata: title : Chapter 6 Chapter #0:6: start 3864.937000, end 4618.177000 Metadata: title : Chapter 7 Stream #0:0(eng): Video: h264 (Main), yuv420p(tv, smpte170m/smpte170m/bt709), 720x384 [SAR 16:15 DAR 2:1], 25 fps, 25 tbr, 1k tbn, 180k tbc (default) Stream #0:1(spa): Audio: aac (LC), 48000 Hz, stereo, fltp (default) Stream #0:2(eng): Audio: aac (LC), 48000 Hz, stereo, fltp Stream #0:3(spa): Subtitle: dvd_subtitle, 720x576 [avi @ 0301b200] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead. Last message repeated 1 times [null @ 0300d120] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead. Last message repeated 1 times Output #0, avi, to 'E:\MISDOC~1\CONVER~1\_PACON~1\MEDIAI~1\FFD8CF~1\DVDAXS~1\CONFFM~1\\Francis en la Marina (1955)_cut canvas_size.avi': Metadata: ISFT : Lavf57.49.100 Chapter #0:0: start 0.000000, end 84.897000 Metadata: title : Chapter 1 Chapter #0:1: start 84.897000, end 1048.977000 Metadata: title : Chapter 2 Chapter #0:2: start 1048.977000, end 1812.817000 Metadata: title : Chapter 3 Chapter #0:3: start 1812.817000, end 2423.737000 Metadata: title : Chapter 4 Chapter #0:4: start 2423.737000, end 3226.097000 Metadata: title : Chapter 5 Chapter #0:5: start 3226.097000, end 3864.937000 Metadata: title : Chapter 6 Chapter #0:6: start 3864.937000, end 4618.177000 Metadata: title : Chapter 7 Stream #0:0: Video: mpeg4 (libxvid) (XVID / 0x44495658), yuv420p, 720x384 [SAR 16:15 DAR 2:1], q=2-31, 1500 kb/s, 25 fps, 25 tbn, 25 tbc (default) Metadata: encoder : Lavc57.57.100 libxvid Stream #0:1(eng): Audio: mp3 (libmp3lame) (U[0][0][0] / 0x0055), 48000 Hz, stereo, fltp, 128 kb/s Metadata: encoder : Lavc57.57.100 libmp3lame Output #1, null, to 'nul': Metadata: encoder : Lavf57.49.100 Chapter #1:0: start 0.000000, end 84.897000 Metadata: title : Chapter 1 Chapter #1:1: start 84.897000, end 1048.977000 Metadata: title : Chapter 2 Chapter #1:2: start 1048.977000, end 1812.817000 Metadata: title : Chapter 3 Chapter #1:3: start 1812.817000, end 2423.737000 Metadata: title : Chapter 4 Chapter #1:4: start 2423.737000, end 3226.097000 Metadata: title : Chapter 5 Chapter #1:5: start 3226.097000, end 3864.937000 Metadata: title : Chapter 6 Chapter #1:6: start 3864.937000, end 4618.177000 Metadata: title : Chapter 7 Stream #1:0(eng): Video: wrapped_avframe, yuv420p, 720x384 [SAR 16:15 DAR 2:1], q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc (default) Metadata: encoder : Lavc57.57.100 wrapped_avframe Stream #1:1(spa): Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s (default) Metadata: encoder : Lavc57.57.100 pcm_s16le Stream mapping: Stream #0:0 (h264) -> overlay:main (graph 0) Stream #0:3 (dvdsub) -> overlay:overlay (graph 0) overlay (graph 0) -> Stream #0:0 (libxvid) Stream #0:2 -> #0:1 (aac (native) -> mp3 (libmp3lame)) Stream #0:0 -> #1:0 (h264 (native) -> wrapped_avframe (native)) Stream #0:1 -> #1:1 (aac (native) -> pcm_s16le (native)) Press [q] to stop, [?] for help [graph 0 input from stream 0:3 @ 03017980] Changing frame properties on the fly is not supported by all filters. Last message repeated 3 times [null @ 0300d120] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 23 >= 23 [graph 0 input from stream 0:3 @ 03017980] Changing frame properties on the fly is not supported by all filters. Last message repeated 8 times frame= 133 fps=0.0 q=2.0 q=-0.0 size= 970kB time=00:00:05.67 bitrate=1400.4kbits/s speed=11.3x [graph 0 input from stream 0:3 @ 03017980] Changing frame properties on the fly is not supported by all filters. Last message repeated 9 times frame= 254 fps=253 q=2.0 q=-0.0 size= 1985kB time=00:00:10.51 bitrate=1546.0kbits/s speed=10.5x [graph 0 input from stream 0:3 @ 03017980] Changing frame properties on the fly is not supported by all filters. Last message repeated 10 times frame= 376 fps=250 q=3.0 q=-0.0 size= 3009kB time=00:00:15.40 bitrate=1600.5kbits/s speed=10.2x [graph 0 input from stream 0:3 @ 03017980] Changing frame properties on the fly is not supported by all filters. Last message repeated 7 times [matroska,webm @ 003fc460] Read error frame= 469 fps=248 q=4.0 Lq=-0.0 size= 3998kB time=00:00:18.76 bitrate=1744.9kbits/s speed=9.92x video:3841kB audio:3805kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown }}} -- Ticket URL: <https://trac.ffmpeg.org/ticket/5825#comment:24> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker _______________________________________________ FFmpeg-trac mailing list FFmpeg-trac@avcodec.org http://ffmpeg.org/mailman/listinfo/ffmpeg-trac