Opened 4 years ago

Last modified 4 years ago

#2746 open defect

Incorrect -to arg working

Reported by: aivus Owned by:
Priority: normal Component: ffmpeg
Version: git-master Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

Summary of the bug:
I don't know, it bug in -to argument or in documentation.
But if follow documentation, -to should stop writing on position, but it work as duration.
For example:
I want cut fragment from 10 to 20 sec.

ffmpeg -report -ss 10 -i "video\\orig_51d32ada7179a5.91859583.avi" -to 20 test.gif

cutting from 10 to 30 sec

‘-to position (output)’
Stop writing the output at position. position may be a number in seconds, or in hh:mm:ss[.xxx] form.
ffmpeg -version
ffmpeg version N-54362-ge0be3cb
built on Jul  2 2013 22:15:59 with gcc 4.7.3 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avis
ynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable
-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype
--enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enabl
e-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-lib
opus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspee
x --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-am
rwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --en
able-libxvid --enable-zlib
libavutil      52. 38.100 / 52. 38.100
libavcodec     55. 18.100 / 55. 18.100
libavformat    55. 11.100 / 55. 11.100
libavdevice    55.  2.100 / 55.  2.100
libavfilter     3. 77.101 /  3. 77.101
libswscale      2.  3.100 /  2.  3.100
libswresample   0. 17.102 /  0. 17.102
libpostproc    52.  3.100 / 52.  3.100

Attachments (1)

ffmpeg-20130703-175119.log (40.4 KB) - added by aivus 4 years ago.

Download all attachments as: .zip

Change History (3)

Changed 4 years ago by aivus

comment:1 Changed 4 years ago by cehoyos

  • Priority changed from important to normal

Do you think this is a regression?

comment:2 Changed 4 years ago by cehoyos

  • Component changed from undetermined to FFmpeg
  • Reproduced by developer set
  • Status changed from new to open
  • Version changed from unspecified to git-master

Work-around is to move -ss 10 in front of the output file name.

$ ffmpeg -ss 10 -i fate-suite/svq3/Vertical400kbit.sorenson3.mov -vcodec copy -an -to 20 out.mov
ffmpeg version N-59896-g9cc8fa6 Copyright (c) 2000-2014 the FFmpeg developers
  built on Jan 16 2014 09:22:37 with gcc 4.7 (SUSE Linux)
  configuration: --enable-gpl
  libavutil      52. 62.100 / 52. 62.100
  libavcodec     55. 48.101 / 55. 48.101
  libavformat    55. 23.103 / 55. 23.103
  libavdevice    55.  5.102 / 55.  5.102
  libavfilter     4.  1.100 /  4.  1.100
  libswscale      2.  5.101 /  2.  5.101
  libswresample   0. 17.104 /  0. 17.104
  libpostproc    52.  3.100 / 52.  3.100
Guessed Channel Layout for  Input Stream #0.1 : mono
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'fate-suite/svq3/Vertical400kbit.sorenson3.mov':
  Metadata:
    creation_time   : 2001-03-20 16:17:18
    title           : Vertical Online SV3 Demo
    title-eng       : Vertical Online SV3 Demo
    artist          : Logan Kelsey
    artist-eng      : Logan Kelsey
    copyright       : © Vertical Online 2001
    copyright-eng   : © Vertical Online 2001
    encoder         : Sorenson Video 3
    encoder-eng     : Sorenson Video 3
  Duration: 00:00:43.58, start: 0.000000, bitrate: 580 kb/s
    Stream #0:0(eng): Video: svq3 (SVQ3 / 0x33515653), yuvj420p, 320x240, 391 kb/s, 30.02 fps, 30 tbr, 600 tbn, 600 tbc (default)
    Metadata:
      creation_time   : 2001-03-20 16:17:18
      handler_name    : Apple Alias Data Handler
    Stream #0:1(eng): Audio: adpcm_ima_qt (ima4 / 0x34616D69), 44100 Hz, mono, s16p, 176 kb/s (default)
    Metadata:
      creation_time   : 2001-03-20 16:17:18
      handler_name    : Apple Alias Data Handler
Output #0, mov, to 'out.mov':
  Metadata:
    encoder-eng     : Sorenson Video 3
    title           : Vertical Online SV3 Demo
    title-eng       : Vertical Online SV3 Demo
    artist          : Logan Kelsey
    artist-eng      : Logan Kelsey
    copyright       : © Vertical Online 2001
    copyright-eng   : © Vertical Online 2001
    encoder         : Lavf55.23.103
    Stream #0:0(eng): Video: svq3 (SVQ3 / 0x33515653), yuvj420p, 320x240, q=2-31, 391 kb/s, 30.02 fps, 19200 tbn, 600 tbc (default)
    Metadata:
      creation_time   : 2001-03-20 16:17:18
      handler_name    : Apple Alias Data Handler
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
frame=  610 fps=0.0 q=-1.0 Lsize=    1033kB time=00:00:19.96 bitrate= 423.7kbits/s
video:1030kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.318046%
Note: See TracTickets for help on using tickets.