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

Steve tinker123 at gmail.com
Wed Feb 13 01:13:17 CET 2013


Hi Carl,

Before I go to the trouble of learning how to compile ffmpeg and
distribute in my system myself I thought I would update my system (
Kubuntu 11.10 ) and give it one last try, as well as report back to
make sure I am using ffmpeg correctly to make an mp4 clip.

Here are the contents of my directory starting off:

====================================================
~/Downloads/BMARchive/temp$ ls -l
total 419472
-rwxrwxrwx 1 steve steve 429527887 2012-11-10 07:16 input.mp4
-rwxrwxrwx 1 steve steve       177 2013-02-12 18:47 notes.txt
~/Downloads/BMARchive/temp$
====================================================

Here is the command I used:
ffmpeg -i input.mp4 -ss 00:06:48 -t 00:06:97 -vcodec copy -acodec copy
output.mp4


Here is the output of that command:

~/Downloads/BMARchive/temp$ ffmpeg -i input.mp4 -ss 00:06:48 -t
00:06:97 -vcodec copy -acodec copy output.mp4
ffmpeg version 0.7.6-4:0.7.6-0ubuntu0.11.10.3, Copyright (c) 2000-2011
the Libav developers
  built on Jan 24 2013 19:25:26 with gcc 4.6.1
  configuration: --extra-version='4:0.7.6-0ubuntu0.11.10.3'
--arch=i386 --prefix=/usr --enable-vdpau --enable-bzlib
--enable-libgsm --enable-libschroedinger --enable-libspeex
--enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib
--enable-libvpx --enable-runtime-cpudetect --enable-vaapi --enable-gpl
--enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394
--enable-shared --disable-static
  WARNING: library configuration mismatch
  avutil      configuration:
--extra-version='4:0.7.6ubuntu0.11.10.3+medibuntu1' --arch=i386
--prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm
--enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx
--enable-runtime-cpudetect --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-version3 --enable-vaapi
--enable-libopenjpeg --enable-libfaac --enable-nonfree --enable-gpl
--enable-postproc --enable-swscale --enable-x11grab --enable-libdirac
--enable-libmp3lame --enable-librtmp --enable-libx264 --enable-libxvid
--enable-libopencore-amrnb --enable-version3
--enable-libopencore-amrwb --enable-version3 --enable-libvo-aacenc
--enable-version3 --enable-libvo-amrwbenc --enable-version3
--enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686
--enable-shared --disable-static --disable-ffmpeg --disable-ffplay
  avcodec     configuration:
--extra-version='4:0.7.6ubuntu0.11.10.3+medibuntu1' --arch=i386
--prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm
--enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx
--enable-runtime-cpudetect --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-version3 --enable-vaapi
--enable-libopenjpeg --enable-libfaac --enable-nonfree --enable-gpl
--enable-postproc --enable-swscale --enable-x11grab --enable-libdirac
--enable-libmp3lame --enable-librtmp --enable-libx264 --enable-libxvid
--enable-libopencore-amrnb --enable-version3
--enable-libopencore-amrwb --enable-version3 --enable-libvo-aacenc
--enable-version3 --enable-libvo-amrwbenc --enable-version3
--enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686
--enable-shared --disable-static --disable-ffmpeg --disable-ffplay
  avformat    configuration:
--extra-version='4:0.7.6-0ubuntu0.11.10.3' --arch=i386 --prefix=/usr
--enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger
--enable-libspeex --enable-libtheora --enable-libvorbis
--enable-pthreads --enable-zlib --enable-libvpx
--enable-runtime-cpudetect --enable-vaapi --enable-gpl
--enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394
--shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared
--disable-static --disable-ffmpeg --disable-ffplay
  avdevice    configuration:
--extra-version='4:0.7.6-0ubuntu0.11.10.3' --arch=i386 --prefix=/usr
--enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger
--enable-libspeex --enable-libtheora --enable-libvorbis
--enable-pthreads --enable-zlib --enable-libvpx
--enable-runtime-cpudetect --enable-vaapi --enable-gpl
--enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394
--shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared
--disable-static --disable-ffmpeg --disable-ffplay
  avfilter    configuration:
--extra-version='4:0.7.6-0ubuntu0.11.10.3' --arch=i386 --prefix=/usr
--enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger
--enable-libspeex --enable-libtheora --enable-libvorbis
--enable-pthreads --enable-zlib --enable-libvpx
--enable-runtime-cpudetect --enable-vaapi --enable-gpl
--enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394
--shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared
--disable-static --disable-ffmpeg --disable-ffplay
  swscale     configuration:
--extra-version='4:0.7.6-0ubuntu0.11.10.3' --arch=i386 --prefix=/usr
--enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger
--enable-libspeex --enable-libtheora --enable-libvorbis
--enable-pthreads --enable-zlib --enable-libvpx
--enable-runtime-cpudetect --enable-vaapi --enable-gpl
--enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394
--shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared
--disable-static --disable-ffmpeg --disable-ffplay
  postproc    configuration:
--extra-version='4:0.7.6-0ubuntu0.11.10.3' --arch=i386 --prefix=/usr
--enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger
--enable-libspeex --enable-libtheora --enable-libvorbis
--enable-pthreads --enable-zlib --enable-libvpx
--enable-runtime-cpudetect --enable-vaapi --enable-gpl
--enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394
--shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared
--disable-static --disable-ffmpeg --disable-ffplay
  libavutil    51.  7. 0 / 51.  7. 0
  libavcodec   53.  6. 0 / 53.  6. 0
  libavformat  53.  3. 0 / 53.  3. 0
  libavdevice  53.  0. 0 / 53.  0. 0
  libavfilter   2.  4. 0 /  2.  4. 0
  libswscale    2.  0. 0 /  2.  0. 0
  libpostproc  52.  0. 0 / 52.  0. 0
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), 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
    Stream #0.1(und): Audio: aac, 48000 Hz, stereo, s16, 127 kb/s
    Metadata:
      creation_time   : 2012-11-10 07:11:34
Output #0, mp4, to 'output.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 1
    compatible_brands: isom
    creation_time   : 2012-11-10 07:11:19
    encoder         : Lavf53.3.0
    Stream #0.0(und): Video: libx264, yuv420p, 720x404, q=2-31, 857
kb/s, 30k tbn, 29.97 tbc
    Metadata:
      creation_time   : 2012-11-10 06:47:49
    Stream #0.1(und): Audio: libfaac, 48000 Hz, stereo, 127 kb/s
    Metadata:
      creation_time   : 2012-11-10 07:11:34
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press ctrl-c to stop encoding
frame=    0 fps=  0 q=-1.0 Lsize=       0kB time=10000000000.00
bitrate=   0.0kbits/s
video:0kB audio:0kB global headers:0kB muxing overhead inf%
:~/Downloads/BMARchive/temp$


Here are the directory contents afterward:
~/Downloads/BMARchive/temp$ ls -l
total 419476
-rwxrwxrwx 1 steve steve 429527887 2012-11-10 07:16 input.mp4
-rwxrwxrwx 1 steve steve       177 2013-02-12 18:47 notes.txt
-rwxrwxrwx 1 steve steve       259 2013-02-12 19:05 output.mp4
~/Downloads/BMARchive/temp$


Lastly, here is the output when I try to play it with VLC:

~/Downloads/BMARchive/temp$ vlc output.mp4
VLC media player 1.1.12 The Luggage (revision exported)
Warning: call to srand(1360714101)
Warning: call to rand()
Blocked: call to unsetenv("DBUS_ACTIVATION_ADDRESS")
Blocked: call to unsetenv("DBUS_ACTIVATION_BUS_TYPE")
[0x9cb6914] main libvlc: Running vlc with the default interface. Use
'cvlc' to use vlc without interface.
Blocked: call to setlocale(6, "")
Warning: call to srand(1360714101)
Warning: call to rand()
Warning: call to srand(1360714101)
Warning: call to rand()
Warning: call to srand(1360714101)
Warning: call to rand()
Warning: call to srand(1360714101)
Warning: call to rand()
TagLib: MP4: No audio tracks
Blocked: call to setlocale(6, "")
[0xa05bb34] mp4 demux error: cannot find any /moov/trak
[0xa05bb34] es demux error: cannot peek
TagLib: MP4: No audio tracks
[0x9d6787c] mp4 demux error: cannot find any /moov/trak
[0x9d6787c] es demux error: cannot peek
TagLib: MP4: No audio tracks
~/Downloads/BMARchive/temp$

Here is the ouput for ffmpeg -version


~/Downloads/BMARchive/temp$ ffmpeg -version
ffmpeg version 0.7.6-4:0.7.6-0ubuntu0.11.10.3, Copyright (c) 2000-2011
the Libav developers
  built on Jan 24 2013 19:25:26 with gcc 4.6.1
  configuration: --extra-version='4:0.7.6-0ubuntu0.11.10.3'
--arch=i386 --prefix=/usr --enable-vdpau --enable-bzlib
--enable-libgsm --enable-libschroedinger --enable-libspeex
--enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib
--enable-libvpx --enable-runtime-cpudetect --enable-vaapi --enable-gpl
--enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394
--enable-shared --disable-static
  WARNING: library configuration mismatch
  avutil      configuration:
--extra-version='4:0.7.6ubuntu0.11.10.3+medibuntu1' --arch=i386
--prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm
--enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx
--enable-runtime-cpudetect --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-version3 --enable-vaapi
--enable-libopenjpeg --enable-libfaac --enable-nonfree --enable-gpl
--enable-postproc --enable-swscale --enable-x11grab --enable-libdirac
--enable-libmp3lame --enable-librtmp --enable-libx264 --enable-libxvid
--enable-libopencore-amrnb --enable-version3
--enable-libopencore-amrwb --enable-version3 --enable-libvo-aacenc
--enable-version3 --enable-libvo-amrwbenc --enable-version3
--enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686
--enable-shared --disable-static --disable-ffmpeg --disable-ffplay
  avcodec     configuration:
--extra-version='4:0.7.6ubuntu0.11.10.3+medibuntu1' --arch=i386
--prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm
--enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx
--enable-runtime-cpudetect --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-version3 --enable-vaapi
--enable-libopenjpeg --enable-libfaac --enable-nonfree --enable-gpl
--enable-postproc --enable-swscale --enable-x11grab --enable-libdirac
--enable-libmp3lame --enable-librtmp --enable-libx264 --enable-libxvid
--enable-libopencore-amrnb --enable-version3
--enable-libopencore-amrwb --enable-version3 --enable-libvo-aacenc
--enable-version3 --enable-libvo-amrwbenc --enable-version3
--enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686
--enable-shared --disable-static --disable-ffmpeg --disable-ffplay
  avformat    configuration:
--extra-version='4:0.7.6-0ubuntu0.11.10.3' --arch=i386 --prefix=/usr
--enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger
--enable-libspeex --enable-libtheora --enable-libvorbis
--enable-pthreads --enable-zlib --enable-libvpx
--enable-runtime-cpudetect --enable-vaapi --enable-gpl
--enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394
--shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared
--disable-static --disable-ffmpeg --disable-ffplay
  avdevice    configuration:
--extra-version='4:0.7.6-0ubuntu0.11.10.3' --arch=i386 --prefix=/usr
--enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger
--enable-libspeex --enable-libtheora --enable-libvorbis
--enable-pthreads --enable-zlib --enable-libvpx
--enable-runtime-cpudetect --enable-vaapi --enable-gpl
--enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394
--shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared
--disable-static --disable-ffmpeg --disable-ffplay
  avfilter    configuration:
--extra-version='4:0.7.6-0ubuntu0.11.10.3' --arch=i386 --prefix=/usr
--enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger
--enable-libspeex --enable-libtheora --enable-libvorbis
--enable-pthreads --enable-zlib --enable-libvpx
--enable-runtime-cpudetect --enable-vaapi --enable-gpl
--enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394
--shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared
--disable-static --disable-ffmpeg --disable-ffplay
  swscale     configuration:
--extra-version='4:0.7.6-0ubuntu0.11.10.3' --arch=i386 --prefix=/usr
--enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger
--enable-libspeex --enable-libtheora --enable-libvorbis
--enable-pthreads --enable-zlib --enable-libvpx
--enable-runtime-cpudetect --enable-vaapi --enable-gpl
--enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394
--shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared
--disable-static --disable-ffmpeg --disable-ffplay
  postproc    configuration:
--extra-version='4:0.7.6-0ubuntu0.11.10.3' --arch=i386 --prefix=/usr
--enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger
--enable-libspeex --enable-libtheora --enable-libvorbis
--enable-pthreads --enable-zlib --enable-libvpx
--enable-runtime-cpudetect --enable-vaapi --enable-gpl
--enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394
--shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared
--disable-static --disable-ffmpeg --disable-ffplay
  libavutil    51.  7. 0 / 51.  7. 0
  libavcodec   53.  6. 0 / 53.  6. 0
  libavformat  53.  3. 0 / 53.  3. 0
  libavdevice  53.  0. 0 / 53.  0. 0
  libavfilter   2.  4. 0 /  2.  4. 0
  libswscale    2.  0. 0 /  2.  0. 0
  libpostproc  52.  0. 0 / 52.  0. 0
ffmpeg 0.7.6-4:0.7.6-0ubuntu0.11.10.3
libavutil    51.  7. 0 / 51.  7. 0
libavcodec   53.  6. 0 / 53.  6. 0
libavformat  53.  3. 0 / 53.  3. 0
libavdevice  53.  0. 0 / 53.  0. 0
libavfilter   2.  4. 0 /  2.  4. 0
libswscale    2.  0. 0 /  2.  0. 0
libpostproc  52.  0. 0 / 52.  0. 0
~/Downloads/BMARchive/temp$


Please let me know if the issue is something other  than having a bad
copy of ffmpeg

Thanks

Steve


More information about the ffmpeg-user mailing list