[FFmpeg-user] Weird crackling sound when muxing with an existing WAV file
Michael Heuberger
michael.heuberger at binarykitchen.com
Mon Jan 30 22:53:57 EET 2017
Sure, here is the whole, long ffmpeg output from
https://gist.githubusercontent.com/binarykitchen/fc6c73aca72881f76376fb274d82cd70/raw/c6c445cc59fb3e32ed293b4583ec8c34530b3f6a/gistfile1.txt
(hope you can find the cause why the WAV file sounds like crackling)
~/c/videomail-client ❯❯❯ ffmpeg -f image2 -thread_queue_size 2048 -framerate 20.0 -i /home/michael-heuberger/code/videomail.io/var/local/tmp/clients/videomail.io/11e6-e678-5d52cbb0-bf24-7d54b9fabcf7/frames/%d.webp -i /home/michael-heuberger/code/videomail.io/var/local/tmp/clients/videomail.io/11e6-e678-5d52cbb0-bf24-7d54b9fabcf7/videomail_stretched.wav -y -ac 1 -acodec libvorbis -vcodec libvpx -filter:v "drawtext=fontfile=/home/michael-heuberger/code/videomail.io/src/assets/fonts/Varela-Regular.ttf:text=www.videomail.io:fontsize=12:fontcolor=0xFFFFFF at 0.3:x=text_h:y=main_h-(text_h*2):shadowcolor=0x111111 at 0.15:shadowx=1:shadowy=1,scale=trunc(iw/2)*2:trunc(ih/2)*2" -crf 12 -pix_fmt yuv420p -deadline realtime -cpu-used 4 -loglevel verbose /home/michael-heuberger/code/videomail.io/var/local/tmp/clients/videomail.io/11e6-e678-5d52cbb0-bf24-7d54b9fabcf7/videomail_preview.webm
ffmpeg version 3.0.5-0ubuntu0.16.10.1 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 6.2.0 (Ubuntu 6.2.0-5ubuntu12) 20161005
configuration: --prefix=/usr --extra-version=0ubuntu0.16.10.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librubberband --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-chromaprint --enable-libx264
libavutil 55. 17.103 / 55. 17.103
libavcodec 57. 24.102 / 57. 24.102
libavformat 57. 25.100 / 57. 25.100
libavdevice 57. 0.101 / 57. 0.101
libavfilter 6. 31.100 / 6. 31.100
libavresample 3. 0. 0 / 3. 0. 0
libswscale 4. 0.100 / 4. 0.100
libswresample 2. 0.101 / 2. 0.101
libpostproc 54. 0.100 / 54. 0.100
[image2 @ 0x556e3a474b40] max_analyze_duration 5000000 reached at 5000000 microseconds st:0
Input #0, image2, from '/home/michael-heuberger/code/videomail.io/var/local/tmp/clients/videomail.io/11e6-e678-5d52cbb0-bf24-7d54b9fabcf7/frames/%d.webp':
Duration: 00:00:09.15, start: 0.000000, bitrate: N/A
Stream #0:0: Video: webp, 1 reference frame, yuv420p(tv, bt470bg/unknown/unknown), 400x300, 20 fps, 20 tbr, 20 tbn, 20 tbc
[wav @ 0x556e3a5a6b00] parser not found for codec pcm_s16le, packets or times may be invalid.
Guessed Channel Layout for Input Stream #1.0 : mono
Input #1, wav, from '/home/michael-heuberger/code/videomail.io/var/local/tmp/clients/videomail.io/11e6-e678-5d52cbb0-bf24-7d54b9fabcf7/videomail_stretched.wav':
Metadata:
encoder : Lavf57.25.100
Duration: 00:00:09.07, bitrate: 705 kb/s
Stream #1:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, 1 channels, s16, 705 kb/s
[Parsed_scale_1 @ 0x556e3a602960] w:trunc(iw/2)*2 h:trunc(ih/2)*2 flags:'bicubic' interl:0
[graph 0 input from stream 0:0 @ 0x556e3a602860] w:400 h:300 pixfmt:yuv420p tb:1/20 fr:20/1 sar:0/1 sws_param:flags=2
[Parsed_scale_1 @ 0x556e3a602960] w:400 h:300 fmt:yuv420p sar:0/1 -> w:400 h:300 fmt:yuv420p sar:0/1 flags:0x4
[graph 1 input from stream 1:0 @ 0x556e3a609680] tb:1/44100 samplefmt:s16 samplerate:44100 chlayout:0x4
[audio format for output stream 0:1 @ 0x556e3a60a0e0] auto-inserting filter 'auto-inserted resampler 0' between the filter 'Parsed_anull_0' and the filter 'audio format for output stream 0:1'
[auto-inserted resampler 0 @ 0x556e3a60da60] ch:1 chl:mono fmt:s16 r:44100Hz -> ch:1 chl:mono fmt:fltp r:44100Hz
[libvpx @ 0x556e3a5f8f80] v1.5.0
[libvpx @ 0x556e3a5f8f80] --prefix=/usr --enable-pic --enable-shared --disable-install-bins --disable-install-srcs --size-limit=16384x16384 --enable-postproc --enable-multi-res-encoding --enable-temporal-denoising --enable-vp9-temporal-denoising --enable-vp9-postproc --target=x86_64-linux-gcc
Output #0, webm, to '/home/michael-heuberger/code/videomail.io/var/local/tmp/clients/videomail.io/11e6-e678-5d52cbb0-bf24-7d54b9fabcf7/videomail_preview.webm':
Metadata:
encoder : Lavf57.25.100
Stream #0:0: Video: vp8 (libvpx), 1 reference frame, yuv420p, 400x300, q=-1--1, 200 kb/s, 20 fps, 1k tbn, 20 tbc
Metadata:
encoder : Lavc57.24.102 libvpx
Side data:
unknown side data type 10 (24 bytes)
Stream #0:1: Audio: vorbis (libvorbis), 44100 Hz, mono, fltp
Metadata:
encoder : Lavc57.24.102 libvorbis
Stream mapping:
Stream #0:0 -> #0:0 (webp (native) -> vp8 (libvpx))
Stream #1:0 -> #0:1 (pcm_s16le (native) -> vorbis (libvorbis))
Press [q] to stop, [?] for help
No more output streams to write to, finishing.=00:00:05.78 bitrate= 268.0kbits/s speed=11.5x
frame= 183 fps=0.0 q=0.0 Lsize= 304kB time=00:00:09.15 bitrate= 271.9kbits/s speed=10.9x
video:219kB audio:76kB subtitle:0kB other streams:0kB global headers:3kB muxing overhead: 3.043617%
Input file #0 (/home/michael-heuberger/code/videomail.io/var/local/tmp/clients/videomail.io/11e6-e678-5d52cbb0-bf24-7d54b9fabcf7/frames/%d.webp):
Input stream #0:0 (video): 183 packets read (2222918 bytes); 183 frames decoded;
Total: 183 packets (2222918 bytes) demuxed
Input file #1 (/home/michael-heuberger/code/videomail.io/var/local/tmp/clients/videomail.io/11e6-e678-5d52cbb0-bf24-7d54b9fabcf7/videomail_stretched.wav):
Input stream #1:0 (audio): 196 packets read (800118 bytes); 196 frames decoded (400059 samples);
Total: 196 packets (800118 bytes) demuxed
Output file #0 (/home/michael-heuberger/code/videomail.io/var/local/tmp/clients/videomail.io/11e6-e678-5d52cbb0-bf24-7d54b9fabcf7/videomail_preview.webm):
Output stream #0:0 (video): 183 frames encoded; 183 packets muxed (223956 bytes);
Output stream #0:1 (audio): 6251 frames encoded (400059 samples); 608 packets muxed (77856 bytes);
Total: 791 packets (301812 bytes) muxed
On 30/01/17 22:30, Carl Eugen Hoyos wrote:
> 2017-01-30 0:19 GMT+01:00 Michael Heuberger
> <michael.heuberger at binarykitchen.com>:
>
>> Here's an example ffmpeg command how I mux a WAV file + encode the video
>> based on images on server side at the same time. With a long output, all
>> on this Gist:
>> https://gist.github.com/binarykitchen/fc6c73aca72881f76376fb274d82cd70
> Instead please post it here on the mailing list, so that future readers can
> also see it.
>
> Carl Eugen
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
--
Binary Kitchen
Michael Heuberger
1/33 Parrish Road
Sandringham
Auckland 1025
(New Zealand)
Mobile (text only) ... +64 21 261 89 81
Email ................ michael at binarykitchen.com
Website .............. http://www.binarykitchen.com
More information about the ffmpeg-user
mailing list