[FFmpeg-trac] #4696(ffmpeg:new): Duration with -t before -i is actually value of -t plus value of -ss

FFmpeg trac at avcodec.org
Sat Jul 4 19:05:40 CEST 2015


#4696: Duration with -t before -i is actually value of -t plus value of -ss
---------------------------------+----------------------------------
             Reporter:  Piscium  |                    Owner:
                 Type:  defect   |                   Status:  new
             Priority:  normal   |                Component:  ffmpeg
              Version:  2.4.10   |               Resolution:
             Keywords:           |               Blocked By:
             Blocking:           |  Reproduced by developer:  0
Analyzed by developer:  0        |
---------------------------------+----------------------------------

Comment (by Piscium):

 Below is the full console output for ffmpeg version 2.4.10 currently
 installed on my PC. This command line has my workaround whereby I ask for
 a duration of 20 seconds to get what I want which is 30 seconds.

 I will see if I find time to test the git head - no promises.

 ------------------------------------------------------


 $ ffmpeg  -y -ss 10 -t 20 -i in.m4a  -acodec copy -flags global_header
 out.m4affmpeg: /usr/lib64/nvidia-304xx/libOpenCL.so.1: no version
 information available (required by ffmpeg)
 ffmpeg: /usr/lib64/nvidia-304xx/libOpenCL.so.1: no version information
 available (required by /lib64/libavfilter.so.5)
 ffmpeg: /usr/lib64/nvidia-304xx/libOpenCL.so.1: no version information
 available (required by /lib64/libavutil.so.54)
 ffmpeg version 2.4.10 Copyright (c) 2000-2015 the FFmpeg developers
   built on Jun  3 2015 08:36:36 with gcc 4.9.2 (GCC) 20150212 (Red Hat
 4.9.2-6)
   configuration: --prefix=/usr --bindir=/usr/bin
 --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg
 --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2
 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-
 gcc-switches -m64 -mtune=generic' --enable-bzlib --disable-crystalhd
 --enable-frei0r --enable-gnutls --enable-ladspa --enable-libass --enable-
 libcdio --enable-libdc1394 --disable-indev=jack --enable-libfreetype
 --enable-libgsm --enable-libmp3lame --enable-openal --enable-opencl
 --enable-libopencv --enable-libopenjpeg --enable-libopus --enable-libpulse
 --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-
 libtheora --enable-libvorbis --enable-libv4l2 --enable-libvpx --enable-
 libx264 --enable-libx265 --enable-libxvid --enable-x11grab --enable-
 avfilter --enable-avresample --enable-postproc --enable-pthreads
 --disable-static --enable-shared --enable-gpl --disable-debug --disable-
 stripping --shlibdir=/usr/lib64 --enable-runtime-cpudetect
   libavutil      54.  7.100 / 54.  7.100
   libavcodec     56.  1.100 / 56.  1.100
   libavformat    56.  4.101 / 56.  4.101
   libavdevice    56.  0.100 / 56.  0.100
   libavfilter     5.  1.100 /  5.  1.100
   libavresample   2.  1.  0 /  2.  1.  0
   libswscale      3.  0.100 /  3.  0.100
   libswresample   1.  1.100 /  1.  1.100
   libpostproc    53.  0.100 / 53.  0.100
 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'in.m4a':
   Metadata:
     major_brand     : dash
     minor_version   : 0
     compatible_brands: iso6mp41
     creation_time   : 2014-01-25 16:58:44
   Duration: 00:02:40.08, start: 0.000000, bitrate: 255 kb/s
     Stream #0:0(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo,
 fltp, 253 kb/s (default)
     Metadata:
       creation_time   : 2014-01-25 16:58:44
       handler_name    : SoundHandler
 Output #0, ipod, to 'out.m4a':
   Metadata:
     major_brand     : dash
     minor_version   : 0
     compatible_brands: iso6mp41
     encoder         : Lavf56.4.101
     Stream #0:0(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo,
 253 kb/s (default)
     Metadata:
       creation_time   : 2014-01-25 16:58:44
       handler_name    : SoundHandler
 Stream mapping:
   Stream #0:0 -> #0:0 (copy)
 Press [q] to stop, [?] for help
 size=     935kB time=00:00:30.00 bitrate= 255.3kbits/s
 video:0kB audio:929kB subtitle:0kB other streams:0kB global headers:0kB
 muxing overhead: 0.620911%

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


More information about the FFmpeg-trac mailing list