[Libav-user] -itoffset issue

Craig Murray craigmurray100 at gmail.com
Tue Apr 10 18:39:15 CEST 2012


Sorry for all the newbie questions, I'm doing my best and spending lots of
time working at it before I mail the list.  :)

given two one-second sounds I'm trying to concatenate them using several
approaches.  None of them seem to be working:


Using -itsoffset

>*ffmpeg -i beep-1.mp3 -itsoffset 00:00:02 -i beep-2.mp3 output.mp3*

ffmpeg version N-38292-ga4c22e3 Copyright (c) 2000-2012 the FFmpeg
developers
  built on Feb 27 2012 14:50:39 with gcc 4.6.2
  configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfreetype
--enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-librtmp
--enable-libschroedinger -
-enable-libspeex --enable-libtheora --enable-libvo-aacenc
--enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264
--enable-libxavs --enable-libxvid --enable-zlib
  libavutil      51. 41.100 / 51. 41.100
  libavcodec     54.  4.100 / 54.  4.100
  libavformat    54.  1.100 / 54.  1.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 62.101 /  2. 62.101
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  7.100 /  0.  7.100
  libpostproc    52.  0.100 / 52.  0.100
[mp3 @ 01CE9AA0] Estimating duration from bitrate, this may be inaccurate
Input #0, mp3, from 'beep-1.mp3':
  Metadata:
    artist          : SoundJay.com Sound Effects
  Duration: 00:00:00.39, start: 0.000000, bitrate: 128 kb/s
    Stream #0:0: Audio: mp3, 44100 Hz, mono, s16, 128 kb/s
[mp3 @ 01DB5D20] Estimating duration from bitrate, this may be inaccurate
Input #1, mp3, from 'beep-2.mp3':
  Metadata:
    artist          : SoundJay.com Sound Effects
  Duration: 00:00:00.55, start: 0.000000, bitrate: 128 kb/s
    Stream #1:0: Audio: mp3, 44100 Hz, mono, s16, 128 kb/s
Output #0, mp3, to 'output.mp3':
  Metadata:
    TPE1            : SoundJay.com Sound Effects
    TSSE            : Lavf54.1.100
    Stream #0:0: Audio: mp3, 44100 Hz, mono, s16
Stream mapping:
  Stream #0:0 -> #0:0 (mp3 -> libmp3lame)
Press [q] to stop, [?] for help
size=       3kB time=00:00:00.41 bitrate=  68.4kbits/s
video:0kB audio:3kB global headers:0kB muxing overhead 6.820221%


Result is only the first mp3 in the output.  Do I need to be using -map?  I
suspect I'm just being stupid and missing something obvious.


Craig
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20120410/ca64247b/attachment.html>


More information about the Libav-user mailing list