[libav-bugs] [Bug 673] New: Subtitle stream shifted when added with avconv to a video

bugzilla at libav.org bugzilla at libav.org
Thu Apr 17 23:19:32 CEST 2014


http://bugzilla.libav.org/show_bug.cgi?id=673

           Summary: Subtitle stream shifted when added with avconv to a
                    video
           Product: Libav
           Version: 0.8
          Platform: X86
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: libavformat
        AssignedTo: bugzilla at libav.org
        ReportedBy: gg at gomail.infini.fr


Created attachment 476
  --> http://bugzilla.libav.org/attachment.cgi?id=476
The subtitle file used

- What I were trying to accomplish :
 I am adding a subtitle stream to a video

- The problem I encountered :
 Instead the first subtitle appearing at the 14th seconds, as recorded in the
srt file, it appears with the first frames of the video. 

- The exact command line I were using :
 avconv -i myVideo.mkv -i SubFR.srt -vcodec copy -acodec copy
myVideoWithSrt.mkv

- The full, uncut console output provided by avconv -v 9 -loglevel 99 -i
followed by the name of your input file :
$ avconv -v 9 -loglevel 99 -i myVideo.mkv 
  avconv version 0.8.10-6:0.8.10-1, Copyright (c) 2000-2013 the Libav
developers
  built on Feb  5 2014 03:52:19 with gcc 4.7.2
  configuration: --arch=amd64 --enable-pthreads --enable-runtime-cpudetect
--extra-version='6:0.8.10-1' --libdir=/usr/lib/x86_64-linux-gnu --prefix=/usr
--enable-bzlib --enable-libdc1394 --enable-libdirac --enable-libfreetype
--enable-frei0r --enable-gnutls --enable-libgsm --enable-libmp3lame
--enable-librtmp --enable-libopencv --enable-libopenjpeg --enable-libpulse
--enable-libschroedinger --enable-libspeex --enable-libtheora --enable-vaapi
--enable-vdpau --enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl
--enable-postproc --enable-swscale --enable-libcdio --enable-x11grab
--enable-libx264 --enable-libxvid --shlibdir=/usr/lib/x86_64-linux-gnu
--enable-shared --disable-static
  libavutil    51. 22. 2 / 51. 22. 2
  libavcodec   53. 35. 0 / 53. 35. 0
  libavformat  53. 21. 1 / 53. 21. 1
  libavdevice  53.  2. 0 / 53.  2. 0
  libavfilter   2. 15. 0 /  2. 15. 0
  libswscale    2.  1. 0 /  2.  1. 0
  libpostproc  52.  0. 0 / 52.  0. 0
[matroska,webm @ 0x7b8300] Probed with size=2048 and score=100
st:0 removing common factor 1000000 from timebase
st:1 removing common factor 1000000 from timebase
[h264 @ 0x7bbb60] err{or,}_recognition separate: 1; 1
[h264 @ 0x7bbb60] err{or,}_recognition combined: 1; 1
[h264 @ 0x7bbb60] Unsupported bit depth: 0
[vorbis @ 0x7bd980] err{or,}_recognition separate: 1; 1
[vorbis @ 0x7bd980] err{or,}_recognition combined: 1; 1
[vorbis @ 0x7bd980] Unsupported bit depth: 0
[h264 @ 0x7bbb60] no picture
[matroska,webm @ 0x7b8300] All info found
[matroska,webm @ 0x7b8300] Estimating duration from bitrate, this may be
inaccurate
Input #0, matroska,webm, from 'myVideo.mkv':
  Metadata:
    ENCODER         : Lavf53.21.1
  Duration: 00:01:00.01, start: 0.000000, bitrate: N/A
    Stream #0.0, 42, 1/1000: Video: h264 (Main), yuv420p, 640x360 [PAR 1:1 DAR
16:9], 1001/48000, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
    Stream #0.1, 74, 1/1000: Audio: vorbis, 44100 Hz, stereo, s16 (default)
At least one output file must be specified

$ avconv -v 9 -loglevel 99 -i SubFR.srt 
  avconv version 0.8.10-6:0.8.10-1, Copyright (c) 2000-2013 the Libav
developers
  built on Feb  5 2014 03:52:19 with gcc 4.7.2
  configuration: --arch=amd64 --enable-pthreads --enable-runtime-cpudetect
--extra-version='6:0.8.10-1' --libdir=/usr/lib/x86_64-linux-gnu --prefix=/usr
--enable-bzlib --enable-libdc1394 --enable-libdirac --enable-libfreetype
--enable-frei0r --enable-gnutls --enable-libgsm --enable-libmp3lame
--enable-librtmp --enable-libopencv --enable-libopenjpeg --enable-libpulse
--enable-libschroedinger --enable-libspeex --enable-libtheora --enable-vaapi
--enable-vdpau --enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl
--enable-postproc --enable-swscale --enable-libcdio --enable-x11grab
--enable-libx264 --enable-libxvid --shlibdir=/usr/lib/x86_64-linux-gnu
--enable-shared --disable-static
  libavutil    51. 22. 2 / 51. 22. 2
  libavcodec   53. 35. 0 / 53. 35. 0
  libavformat  53. 21. 1 / 53. 21. 1
  libavdevice  53.  2. 0 / 53.  2. 0
  libavfilter   2. 15. 0 /  2. 15. 0
  libswscale    2.  1. 0 /  2.  1. 0
  libpostproc  52.  0. 0 / 52.  0. 0
[srt @ 0x2367300] Probed with size=2048 and score=100
[srt @ 0x2369240] err{or,}_recognition separate: 1; 1
[srt @ 0x2369240] err{or,}_recognition combined: 1; 1
[srt @ 0x2367300] All info found
[srt @ 0x2367300] Estimating duration from bitrate, this may be inaccurate
Input #0, srt, from 'SubFR.srt':
  Duration: N/A, start: 14.000000, bitrate: N/A
    Stream #0.0, 1, 1/1000: Subtitle: srt
At least one output file must be specified

-- 
Configure bugmail: http://bugzilla.libav.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the libav-bugs mailing list