A change of ffmpeg build (and OS in my case did the trick !). The output was as shown here:
subprocess.call(['ffmpeg', '-y', '-f', 'mp3', '-i', '-', '-acodec', 'pcm_s16le', '-vn', '-f', 'wav', '-']) subprocess.call(['ffmpeg', '-y', '-f', 'wav', '-i', '/tmp/tmp6v04vgug', '-b:a', '13k', '-ar', '8000', '-f', 'gsm', '/tmp/tmp3ii32s53']) subprocess output: b'ffmpeg version 3.2.12-1~deb9u1 Copyright (c) 2000-2018 the FFmpeg developers' subprocess output: b' built with gcc 6.3.0 (Debian 6.3.0-18+deb9u1) 20170516' subprocess output: b" configuration: --prefix=/usr --extra-version='1~deb9u1' --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libebur128 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --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-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared" subprocess output: b' libavutil 55. 34.101 / 55. 34.101' subprocess output: b' libavcodec 57. 64.101 / 57. 64.101' subprocess output: b' libavformat 57. 56.101 / 57. 56.101' subprocess output: b' libavdevice 57. 1.100 / 57. 1.100' subprocess output: b' libavfilter 6. 65.100 / 6. 65.100' subprocess output: b' libavresample 3. 1. 0 / 3. 1. 0' subprocess output: b' libswscale 4. 2.100 / 4. 2.100' subprocess output: b' libswresample 2. 3.100 / 2. 3.100' subprocess output: b' libpostproc 54. 1.100 / 54. 1.100' subprocess output: b'Guessed Channel Layout for Input Stream #0.0 : mono' subprocess output: b"Input #0, wav, from '/tmp/tmp6v04vgug':" subprocess output: b' Duration: 00:00:01.46, bitrate: 353 kb/s' subprocess output: b' Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 22050 Hz, mono, s16, 352 kb/s' subprocess output: b"Output #0, gsm, to '/tmp/tmp3ii32s53':" subprocess output: b' Metadata:' subprocess output: b' encoder : Lavf57.56.101' subprocess output: b' Stream #0:0: Audio: gsm (libgsm), 8000 Hz, mono, s16, 13 kb/s' subprocess output: b' Metadata:' subprocess output: b' encoder : Lavc57.64.101 libgsm' subprocess output: b'Stream mapping:' subprocess output: b' Stream #0:0 -> #0:0 (pcm_s16le (native) -> gsm (libgsm))' subprocess output: b'Press [q] to stop, [?] for help' subprocess output: b'size= 2kB time=00:00:01.48 bitrate= 13.2kbits/s speed= 447x' subprocess output: b'video:0kB audio:2kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000000%' libavformat version has indeed changed. Although I’m honestly not sure how this affects what I was attempting to do. Is it possible that the “Lavc57.64.101” encoder was missing. Because of which this was happening ? > On 16-Feb-2019, at 2:05 PM, Ted Park <[email protected]> wrote: > >> subprocess output: b' libavformat 58. 20.100 / 58. 20.100’ > >> subprocess output: b' libavformat 56. 40.101 / 56. 40.101’ > > This is probably the more significant difference. Build a newer ffmpeg/update > on the ubuntu side. > _______________________________________________ > ffmpeg-user mailing list > [email protected] > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > [email protected] with subject "unsubscribe". _______________________________________________ ffmpeg-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
