[FFmpeg-user] Empty File: Trouble Making A Clip From An MP4

Steve tinker123 at gmail.com
Thu Feb 14 03:50:54 CET 2013


Hi all,

I'm still on kubuntu 11.10

I followed the directions at this link to uninstall the Ubuntu ffmpeg and
put in a newer one.

https://ffmpeg.org/trac/ffmpeg/wiki/UbuntuCompilationGuide

Running the command to get the ffmpeg version gets me this output

===================================================
~/Downloads/BMARchive/temp$ ffmpeg -version
ffmpeg version git-2013-02-14-a08ebf0
built on Feb 13 2013 21:20:54 with gcc 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3)
configuration: --enable-libopus --enable-gpl --enable-libass
--enable-libfaac --enable-libfdk-aac --enable-libmp3lame
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp
--enable-libtheora --enable-libvorbis --enable-libvpx --enable-x11grab
--enable-libx264 --enable-nonfree --enable-version3
libavutil      52. 17.101 / 52. 17.101
libavcodec     54. 91.103 / 54. 91.103
libavformat    54. 63.100 / 54. 63.100
libavdevice    54.  3.103 / 54.  3.103
libavfilter     3. 37.101 /  3. 37.101
libswscale      2.  2.100 /  2.  2.100
libswresample   0. 17.102 /  0. 17.102
libpostproc    52.  2.100 / 52.  2.100
~/Downloads/BMARchive/temp$


These are the contents of my working directory starting off

==================================================
:~/Downloads/BMARchive/temp$ ls -l
total 419476
-rwxrwxrwx 1 steve steve 429527887 2012-11-10 07:16 input.mp4
-rwxrwxrwx 1 steve steve       176 2013-02-13 20:48 notes.txt
-rwxrwxrwx 1 steve steve       259 2013-02-12 19:05 output.mp4
:~/Downloads/BMARchive/temp$


These are the two commands I tried:

ffmpeg -i input.mp4 -ss 00:06:48 -t 00:06:97 -vcodec copy -acodec copy
output.mp4

ffmpeg -i input.mp4 -ss 00:06:48 -t 00:06:97 output.mp4


Both gave me this message:
Invalid duration specification for t: 00:06:97


This is the output from the 1st command:


~/Downloads/BMARchive/temp$ ffmpeg -i input.mp4 -ss 00:06:48 -t 00:06:97
-vcodec copy -acodec copy output.mp4
ffmpeg version git-2013-02-14-a08ebf0 Copyright (c) 2000-2013 the FFmpeg
developers
  built on Feb 13 2013 21:20:54 with gcc 4.6.1 (Ubuntu/Linaro
4.6.1-9ubuntu3)
  configuration: --enable-libopus --enable-gpl --enable-libass
--enable-libfaac --enable-libfdk-aac --enable-libmp3lame
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp
--enable-libtheora --enable-libvorbis --enable-libvpx --enable-x11grab
--enable-libx264 --enable-nonfree --enable-version3
  libavutil      52. 17.101 / 52. 17.101
  libavcodec     54. 91.103 / 54. 91.103
  libavformat    54. 63.100 / 54. 63.100
  libavdevice    54.  3.103 / 54.  3.103
  libavfilter     3. 37.101 /  3. 37.101
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'input.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 1
    compatible_brands: isom
    creation_time   : 2012-11-10 07:11:19
  Duration: 00:57:51.40, start: 0.000000, bitrate: 989 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
720x404, 857 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc
    Metadata:
      creation_time   : 2012-11-10 06:47:49
      handler_name    : GPAC ISO Video Handler
    Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo,
fltp, 127 kb/s
    Metadata:
      creation_time   : 2012-11-10 07:11:34
      handler_name    : GPAC ISO Audio Handler
Invalid duration specification for t: 00:06:97
~/Downloads/BMARchive/temp$


Basically, I'm trying to make a clip from an mp4 that starts about 6
minuets in and has a duration of a little more than 6 minutes.

Any  ideas on what I am doing wrong?

Thanks much in advance

Steve


More information about the ffmpeg-user mailing list