Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#1661 closed defect (fixed)

Adding/converting srt to dvdsub subtitle

Reported by: Sharkhunter Owned by:
Priority: important Component: avcodec
Version: git-master Keywords: dvdsub crash
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description (last modified by ubitux)

Trying to add an srt file at the same time as converting it to dvd (mpeg2). Tried it with various input format of the video with the same result. This is an mp4 sample.

C:\>ffmpeg -v 9 -loglevel 99 -i in.mp4 -i "in.srt" -y -target ntsc-dvd -scodec dvdsub xxx
ffmpeg version N-43594-gf0896a6 Copyright (c) 2000-2012 the FFmpeg developers
  built on Aug 15 2012 21:29:36 with gcc 4.7.1 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-pthreads --enable-runt
ime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libass -
-enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-l
ibfreetype --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libopenj
peg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheo
ra --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-li
bvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --ena
ble-zlib
  libavutil      51. 69.100 / 51. 69.100
  libavcodec     54. 52.100 / 54. 52.100
  libavformat    54. 23.101 / 54. 23.101
  libavdevice    54.  2.100 / 54.  2.100
  libavfilter     3.  9.100 /  3.  9.100
  libswscale      2.  1.101 /  2.  1.101
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000000003cfa00] Format mov,mp4,m4a,3gp,3g2,mj2 prob
ed with size=2048 and score=100
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000000003cfa00] ISO: File Type Major Brand: isom
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000000003cfa00] File position before avformat_find_
stream_info() is 393031408
[h264 @ 0000000000310180] no picture
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000000003cfa00] All info found
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000000003cfa00] File position after avformat_find_s
tream_info() is 3496
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'in.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 1
    compatible_brands: isom
    creation_time   : 2011-09-08 11:43:25
  Duration: 00:55:09.68, start: 0.000000, bitrate: 950 kb/s
    Stream #0:0(und), 1, 1/24000: Video: h264 (High) (avc1 / 0x31637661), yuv420
p, 720x404 [SAR 404:405 DAR 16:9], 1001/48000, 821 kb/s, 23.98 fps, 23.98 tbr, 2
4k tbn, 47.95 tbc
    Metadata:
      creation_time   : 2011-09-08 11:43:25
    Stream #0:1(und), 1, 1/48000: Audio: aac (mp4a / 0x6134706D), 48000 Hz, ster
eo, s16, 122 kb/s
    Metadata:
      creation_time   : 2011-09-08 11:43:25
[srt @ 0000000004777a80] Format srt probed with size=2048 and score=100
[srt @ 0000000004777a80] File position before avformat_find_stream_info() is 0
[srt @ 0000000004777a80] All info found
[srt @ 0000000004777a80] Estimating duration from bitrate, this may be inaccurat
e
[srt @ 0000000004777a80] File position after avformat_find_stream_info() is 0
Input #1, srt, from 'in.srt':
  Duration: N/A, bitrate: N/A
    Stream #1:0, 0, 1/1000: Subtitle: srt
[buffer @ 0000000000305980] Setting entry with key 'video_size' to value '720x40
4'
[buffer @ 0000000000305980] Setting entry with key 'pix_fmt' to value '0'
[buffer @ 0000000000305980] Setting entry with key 'time_base' to value '1/24000
'
[buffer @ 0000000000305980] Setting entry with key 'pixel_aspect' to value '404/
405'
[buffer @ 0000000000305980] Setting entry with key 'sws_param' to value 'flags=2
'
[buffer @ 0000000000305980] Setting entry with key 'frame_rate' to value '24000/
1001'
[graph 0 input from stream 0:0 @ 00000000003058a0] w:720 h:404 pixfmt:yuv420p tb
:1/24000 fr:24000/1001 sar:404/405 sws_param:flags=2
[scaler for output stream 0:0 @ 0000000000305f00] w:720 h:404 fmt:yuv420p sar:40
4/405 -> w:720 h:480 fmt:yuv420p sar:32/27 flags:0x4
[abuffer @ 00000000048ff8e0] Setting entry with key 'time_base' to value '1/4800
0'
[abuffer @ 00000000048ff8e0] Setting entry with key 'sample_rate' to value '4800
0'
[abuffer @ 00000000048ff8e0] Setting entry with key 'sample_fmt' to value 's16'
[abuffer @ 00000000048ff8e0] Setting entry with key 'channel_layout' to value '0
x3'
[graph 1 input from stream 0:1 @ 00000000048c1c40] tb:1/48000 samplefmt:s16 samp
lerate:48000 chlayout:0x3
[aformat @ 00000000048b1920] Setting entry with key 'sample_fmts' to value 'flt'

[aformat @ 00000000048b1920] Setting entry with key 'sample_rates' to value '480
00'
[aformat @ 00000000048b1920] Setting entry with key 'channel_layouts' to value '
0x4,0x3,0x103,0x7,0x603,0x33,0x107,0x607,0x37,0xc,0xb,0x10b,0xf,0x60b,0x3b,0x10f
,0x60f,0x3f'
[audio format for output stream 0:1 @ 00000000048c1d60] auto-inserting filter 'a
uto-inserted resampler 0' between the filter 'Parsed_anull_0' and the filter 'au
dio format for output stream 0:1'
[auto-inserted resampler 0 @ 00000000048c1e80] chl:stereo fmt:s16 r:48000Hz -> c
hl:stereo fmt:flt r:48000Hz
[mpeg2video @ 0000000004890d00] detected 4 logical cores
[mpeg2video @ 0000000004890d00] intra_quant_bias = 96 inter_quant_bias = 0
[h264 @ 0000000000310180] detected 4 logical cores
Output #0, dvd, to 'xxx':
  Metadata:
    major_brand     : isom
    minor_version   : 1
    compatible_brands: isom
    encoder         : Lavf54.23.101
    Stream #0:0(und), 0, 1/90000: Video: mpeg2video, yuv420p, 720x480 [SAR 32:27
 DAR 16:9], 1001/30000, q=2-31, 6000 kb/s, 90k tbn, 29.97 tbc
    Metadata:
      creation_time   : 2011-09-08 11:43:25
    Stream #0:1(und), 0, 1/90000: Audio: ac3, 48000 Hz, stereo, flt, 448 kb/s
    Metadata:
      creation_time   : 2011-09-08 11:43:25
    Stream #0:2, 0, 1/90000: Subtitle: dvd_subtitle
Stream mapping:
  Stream #0:0 -> #0:0 (h264 -> mpeg2video)
  Stream #0:1 -> #0:1 (aac -> ac3)
  Stream #1:0 -> #0:2 (srt -> dvdsub)
Press [q] to stop, [?] for help
[h264 @ 0000000004ca0520] no picture
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000000003cfa00] demuxer injecting skip 2112
[aac @ 00000000047102c0] skip 2112 samples due to side data
[aac @ 00000000047102c0] skip whole frame, skip left: 1088
[aac @ 00000000047102c0] skip whole frame, skip left: 64
[aac @ 00000000047102c0] skip 64/1024 samples
[h264 @ 0000000004ca0960] no picture
*** 1 dup!

Here it just crashes...

Change History (3)

comment:1 Changed 5 years ago by cehoyos

  • Component changed from undetermined to avcodec
  • Keywords dvdsub added
  • Priority changed from normal to important
  • Reproduced by developer set
  • Resolution set to fixed
  • Status changed from new to closed
  • Version changed from unspecified to git-master

Fixed by Nicolas George.

comment:2 Changed 5 years ago by ubitux

  • Description modified (diff)

comment:3 Changed 5 years ago by cehoyos

  • Keywords crash added
Note: See TracTickets for help on using tickets.