#4344: XSUBs are too low in PAL video, on PS3
-------------------------------------+-------------------------------------
             Reporter:  edumj        |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
              Version:  unspecified  |  undetermined
             Keywords:  xsub         |               Resolution:
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  0
-------------------------------------+-------------------------------------

Comment (by edumj):

 One more strange thing:

 With same IDX/SUB (made with Txt2Vobsub or extracted from NTSC DVDs) muxed
 with ffmpeg or divxmux, they look different in VLC (x and y position):

 ffmpeg:
 [[Image(http://i47.photobucket.com/albums/f169/edumj/Starship_Troopers-
 ccextractor-xsub-ffmpeg%20720x480%20oacute%20720x576iquestiquest.png)]]
 divxmux:
 [[Image(http://i47.photobucket.com/albums/f169/edumj/Starship_Troopers-
 ccextractor-xsub-divxmux%20640x480.png)]]

 But in TV, only y position is different!

 ffmpeg:
 [[Image(http://i47.photobucket.com/albums/f169/edumj/Starship_Troopers-
 ccextractor-xsub-
 ffmpeg%20720x480%20oacute%20720x576iquestiquest%20en%20TV.png)]]
 divxmux:
 [[Image(http://i47.photobucket.com/albums/f169/edumj/Starship_Troopers-
 ccextractor-xsub-divxmux%20640x480%20en%20TV.png)]]

 And they are the same size, even ffmpeg says they are 720x576:
 {{{
 Stream #0:2(es): Subtitle: xsub (DXSB / 0x42535844), 720x576 (default)
 }}}

 I don't know which size are really IDX/SUB made with TXT2Vobsub in .sub,
 but in .idx it says 720x576 (it's not reliable), and may be that's why
 ffmpeg says that?

 ffmpeg:
 {{{
 "ffmpeg" -palette
 
"000000,000000,ffffff,ffffff,000000,000000,000000,000000,000000,000000,000000,000000,000000,000000,000000,000000"
 -i "ccextractor.idx"        -i "Starship_Troopers.vob" -f avi -c:v libxvid
 -b:v 1500k -vtag XVID -c:a libmp3lame -b:a 128k -c:s xsub
 "Starship_Troopers-ccextractor-xsub-ffmpeg.avi"
 }}}
 output:
 {{{
 ffmpeg version N-81452-g01aee81 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. 54.100 / 57. 54.100
   libavformat    57. 48.100 / 57. 48.100
   libavdevice    57.  0.102 / 57.  0.102
   libavfilter     6. 54.100 /  6. 54.100
   libswscale      4.  1.100 /  4.  1.100
   libswresample   2.  1.100 /  2.  1.100
   libpostproc    54.  0.100 / 54.  0.100
 Input #0, vobsub, from 'ccextractor.idx':
   Duration: N/A, bitrate: N/A
     Stream #0:0[0x0](es): Subtitle: dvd_subtitle, 720x576 (default)
 Input #1, mpeg, from 'Starship_Troopers.vob':
   Duration: 00:00:51.30, start: 1986.626100, bitrate: 4618 kb/s
     Stream #1:0[0x1e0]: Video: mpeg2video (Main), yuv420p(tv), 720x480
 [SAR 32:27 DAR 16:9], Closed Captions, 29.97 fps, 59.94 tbr, 90k tbn,
 59.94 tbc
     Stream #1:1[0x83]: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
     Stream #1:2[0x82]: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
     Stream #1:3[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
     Stream #1:4[0x81]: Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s
     Stream #1:5[0x20]: Subtitle: dvd_subtitle
     Stream #1:6[0x22]: Subtitle: dvd_subtitle
 [avi @ 053171c0] Using AVStream.codec to pass codec parameters to muxers
 is deprecated, use AVStream.codecpar instead.
     Last message repeated 2 times
 [null @ 02faa820] Using AVStream.codec to pass codec parameters to muxers
 is deprecated, use AVStream.codecpar instead.
     Last message repeated 1 times
 Output #0, avi, to 'Starship_Troopers-ccextractor-xsub-ffmpeg.avi':
   Metadata:
     ISFT            : Lavf57.48.100
     Stream #0:0: Video: mpeg4 (libxvid) (XVID / 0x44495658), yuv420p,
 720x480 [SAR 32:27 DAR 16:9], q=2-31, 1500 kb/s, 29.97 fps, 29.97 tbn,
 29.97 tbc
     Metadata:
       encoder         : Lavc57.54.100 libxvid
     Stream #0:1: Audio: mp3 (libmp3lame) (U[0][0][0] / 0x0055), 48000 Hz,
 stereo, fltp, delay 1105, padding 0, 128 kb/s
     Metadata:
       encoder         : Lavc57.54.100 libmp3lame
     Stream #0:2(es): Subtitle: xsub (DXSB / 0x42535844), 720x576 (default)
     Metadata:
       encoder         : Lavc57.54.100 xsub
 Output #1, null, to 'nul':
   Metadata:
     encoder         : Lavf57.48.100
     Stream #1:0: Video: wrapped_avframe, yuv420p, 720x480 [SAR 32:27 DAR
 16:9], q=2-31, 200 kb/s, 29.97 fps, 29.97 tbn, 29.97 tbc
     Metadata:
       encoder         : Lavc57.54.100 wrapped_avframe
     Stream #1:1: Audio: pcm_s16le, 48000 Hz, 5.1(side), s16, 4608 kb/s
     Metadata:
       encoder         : Lavc57.54.100 pcm_s16le
 Stream mapping:
   Stream #1:0 -> #0:0 (mpeg2video (native) -> mpeg4 (libxvid))
   Stream #1:4 -> #0:1 (ac3 (native) -> mp3 (libmp3lame))
   Stream #0:0 -> #0:2 (dvd_subtitle (dvdsub) -> xsub (native))
   Stream #1:0 -> #1:0 (mpeg2video (native) -> wrapped_avframe (native))
   Stream #1:4 -> #1:1 (ac3 (native) -> pcm_s16le (native))
 Press [q] to stop, [?] for help
 [ac3 @ 050da280] frame sync error
 Error while decoding stream #1:4: Invalid data found when processing input
 [null @ 02faa820] Application provided invalid, non monotonically
 increasing dts to muxer in stream 1: 1891 >= 1891
 [libmp3lame @ 050dc4c0] Queue input is backward in time
 frame=   92 fps=0.0 q=6.0 q=-0.0 size=     667kB time=00:00:11.61 bitrate=
 470.4kbits/s speed=23.2x
 frame=  181 fps=180 q=6.0 q=-0.0 size=    1284kB time=00:00:11.61 bitrate=
 906.0kbits/s speed=11.6x
 frame=  268 fps=178 q=8.0 q=-0.0 size=    1982kB time=00:00:11.61
 bitrate=1398.4kbits/s speed=7.71x
 [mpeg @ 02f8b300] New subtitle stream 1:7 at pos:8497166 and DTS:1999.51s
 frame=  374 fps=186 q=4.0 q=-0.0 size=    2731kB time=00:00:22.48 bitrate=
 994.7kbits/s speed=11.2x
 frame=  475 fps=189 q=8.0 q=-0.0 size=    3512kB time=00:00:22.48
 bitrate=1279.3kbits/s speed=8.97x
 frame=  574 fps=191 q=9.0 q=-0.0 size=    4270kB time=00:00:30.76
 bitrate=1137.2kbits/s speed=10.2x
 frame=  677 fps=193 q=9.0 q=-0.0 size=    5012kB time=00:00:30.76
 bitrate=1334.6kbits/s speed=8.75x
 frame=  782 fps=195 q=4.0 q=-0.0 size=    5588kB time=00:00:35.93
 bitrate=1273.8kbits/s speed=8.94x
 frame=  891 fps=197 q=5.0 q=-0.0 size=    6297kB time=00:00:38.90
 bitrate=1325.9kbits/s speed=8.61x
 frame= 1001 fps=199 q=4.0 q=-0.0 size=    7041kB time=00:00:44.57
 bitrate=1294.0kbits/s speed=8.88x
 frame= 1113 fps=202 q=5.0 q=-0.0 size=    7874kB time=00:00:47.24
 bitrate=1365.2kbits/s speed=8.55x
 frame= 1220 fps=203 q=6.0 q=-0.0 size=    8371kB time=00:00:50.91
 bitrate=1346.8kbits/s speed=8.45x
 [mpeg2video @ 050d9160] ac-tex damaged at 3 27
 [mpeg2video @ 050d9160] Warning MVs not available
 [mpeg2video @ 050d9160] concealing 135 DC, 135 AC, 135 MV errors in I
 frame
 [ac3 @ 050da280] incomplete frame
 frame= 1229 fps=202 q=6.0 Lq=-0.0 size=    8749kB time=00:00:51.31
 bitrate=1396.6kbits/s speed=8.45x
 video:8279kB audio:29601kB subtitle:29kB other streams:0kB global
 headers:0kB muxing overhead: unknown

 }}}

 ccextractor.idx:

 {{{
 # VobSub index file, v7 (do not modify this line!)
 #
 # To repair desyncronization, you can insert gaps this way:
 # (it usually happens after vob id changes)
 #
 #        delay: [sign]hh:mm:ss:ms
 #
 # Where:
 #        [sign]: +, - (optional)
 #        hh: hours (0 <= hh)
 #        mm/ss: minutes/seconds (0 <= mm/ss <= 59)
 #        ms: milliseconds (0 <= ms <= 999)
 #
 #        Note: You can' t position a sub before the previous with a
 negative value.
 #
 # You can also modify timestamps or delete a few subs you don' t like.
 # Just make sure they stay in increasing order.


 # Settings

 # Original frame size
 size: 720x576

 # Origin, relative to the upper-left corner, can be overloaded by aligment
 org: 0, 0

 # Image scaling (hor,ver), origin is at the upper-left corner or at the
 alignment coord (x, y)
 scale: 100%, 100%
 # Alpha blending
 alpha: 100%

 # Smoothing for very blocky images (use OLD for no filtering)
 smooth: OFF

 # In millisecs
 fadein/out: 0, 0

 # Force subtitle placement relative to (org.x, org.y)

 align: OFF at LEFT TOP

 # for correcting non - progressive desync.(in millisecs or hh: mm: ss: ms)
 # Note: not effective in DirectVobSub, use "delay: ..." instead.
 time offset: 0

 # on: displays only forced subtitles, OFF: shows everything
 forced subs: OFF

 # The original palette of the DVD
 palette: 80807F, 008080, FF807F, 1D6BFF, 000000, 000000, 000000, 000000,
 000000, 000000, 000000, 000000, 000000, 000000, 000000, 000000

 # Custom colors(transp idxs and the four colors)
 custom colors: ON, tridx: 1000, colors: 0000FF, FFFFFF, 000000, 808080

 # Language index in use
 langidx: 0

 # English
 id: es, index: 0
 # Decomment next line to activate alternative name in DirectVobSub /
 Windows Media Player 6.x
 # alt: English
 # Vob/Cell ID: 1, 1 (PTS: 0)
 timestamp: 00:00:11:611, filepos: 000000000
 timestamp: 00:00:14:982, filepos: 000001800
 timestamp: 00:00:22:489, filepos: 000002800
 timestamp: 00:00:30:764, filepos: 000003800
 timestamp: 00:00:35:936, filepos: 000004800
 timestamp: 00:00:38:906, filepos: 000006000
 timestamp: 00:00:41:608, filepos: 000007000
 timestamp: 00:00:44:577, filepos: 000008000
 timestamp: 00:00:47:247, filepos: 000009000
 timestamp: 00:00:49:283, filepos: 00000a000
 }}}


 So, nor divxmux neither ffmpeg resize subs? But some flag tells VLC to
 change position and size (sometimes they are stretched!), but PS3 or
 standalone players doesn't use them... and then why only changes vertical
 position??

--
Ticket URL: <https://trac.ffmpeg.org/ticket/4344#comment:11>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
_______________________________________________
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-trac

Reply via email to