Hi guys,
Trying to split a soundfile to generate multiple audio waveform images.

ffmpeg.exe -i K:\test\test.wav -f segment -segment_time 8 -filter_complex "aformat=channel_layouts=mono,compand,showwavespic=s=640x120" -f image2 K:\test\test_%03d.png

However, this gives me just one file, showing the entire duration of the sound clip. What am I missing here?

To make it slightly more complex, if this can be done, how can I make the last file to have the same timescale as the other ones? (say the file is 12 seconds, the first image would show second 0 to 8, and I want the second one to be as wide, but have the audio data show only in the first half of the image.)

thx,

Bouke

-- "ffmpeg version N-79253-g8005b6d Copyright (c) 2000-2016 the FFmpeg developers
 built with gcc 5.3.0 (GCC)
configuration --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmfx --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
 libavutil      55. 20.100 / 55. 20.100
 libavcodec     57. 34.100 / 57. 34.100
 libavformat    57. 30.100 / 57. 30.100
 libavdevice    57.  0.101 / 57.  0.101
 libavfilter     6. 40.102 /  6. 40.102
 libswscale      4.  1.100 /  4.  1.100
 libswresample   2.  0.101 /  2.  0.101
 libpostproc    54.  0.100 / 54.  0.100
Guessed Channel Layout for  Input Stream #0.0  stereo
Input #0, wav, from 'K\test\test.wav'
 Metadata
   encoder          Lavf57.30.100
 Duration 000104.08, bitrate 1536 kb/s
Stream #00 Audio pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, 2 channels, s16, 1536 kb/s
Output #0, image2, to 'K\test\test_%03d.png'
 Metadata
   encoder          Lavf57.30.100
Stream #00 Video png, rgba, 640x120 [SAR 11 DAR 163], q=2-31, 200 kb/s, 75 fps, 75 tbn, 75 tbc
   Metadata
     encoder          Lavc57.34.100 png
Stream mapping
 Stream #00 (pcm_s16le) -> aformat
 showwavespic -> Stream #00 (png)
Press [q] to stop, [?] for help
frame= 1 fps=0.0 q=-0.0 Lsize=N/A time=000000.01 bitrate=N/A speed=0.0452x video12kB audio0kB subtitle0kB other streams0kB global headers0kB muxing overhead unknown



---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

_______________________________________________
ffmpeg-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

Reply via email to