jonathanong / heroku-buildpack-ffmpeg-latest

A Heroku buildpack for ffmpeg that always downloads the latest static build
MIT License
361 stars 725 forks source link

ffmpeg banned on heroku #73

Open developerkshitijs opened 1 year ago

developerkshitijs commented 1 year ago

please sir ffmpeg ban on heroku because one hour use ffmpeg account suspend on heroku please solving this problem

Diego12996 commented 8 months ago

same problem here 🙌

>>> command = f"ffmpeg -y -loglevel debug -i {stream_url} -t {record_time} -acodec copy {filename}"
>>> import subprocess
>>> subprocess.run(command, shell=True)
ffmpeg version N-68798-g7d82daf31d-static https://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2024 the FFmpeg developers
  built with gcc 8 (Debian 8.3.0-6)
  configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-libgme --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid --enable-libzvbi --enable-libzimg
  libavutil      58. 39.100 / 58. 39.100
  libavcodec     60. 40.100 / 60. 40.100
  libavformat    60. 21.101 / 60. 21.101
  libavdevice    60.  4.100 / 60.  4.100
  libavfilter     9. 17.100 /  9. 17.100
  libswscale      7.  6.100 /  7.  6.100
  libswresample   4. 13.100 /  4. 13.100
  libpostproc    57.  4.100 / 57.  4.100
Splitting the commandline.
Reading option '-y' ... matched as option 'y' (overwrite output files) with argument '1'.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'.
Reading option '-i' ... matched as output url with argument 'https://stream-149.zeno.fm/z4xkhcavfu4uv?zs=EsUbEO-FS8Gb_Hxbr49tAQ'.
Reading option '-t' ... matched as option 't' (stop transcoding after specified duration) with argument '25'.
Reading option '-acodec' ... matched as option 'acodec' (alias for -c:a (select encoder/decoder for audio streams)) with argument 'copy'.
Reading option 'tmp/audio_637pm.mp3' ... matched as output url.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option y (overwrite output files) with argument 1.
Applying option loglevel (set logging level) with argument debug.
Successfully parsed a group of options.
Parsing a group of options: input url https://stream-149.zeno.fm/z4xkhcavfu4uv?zs=EsUbEO-FS8Gb_Hxbr49tAQ.
Successfully parsed a group of options.
Opening an input file: https://stream-149.zeno.fm/z4xkhcavfu4uv?zs=EsUbEO-FS8Gb_Hxbr49tAQ.
[AVFormatContext @ 0x6b85f00] Opening 'https://stream-149.zeno.fm/z4xkhcavfu4uv?zs=EsUbEO-FS8Gb_Hxbr49tAQ' for reading
[https @ 0x6b86780] Setting default whitelist 'http,https,tls,rtp,tcp,udp,crypto,httpproxy'
Segmentation fault
CompletedProcess(args='ffmpeg -y -loglevel debug -i https://stream-149.zeno.fm/z4xkhcavfu4uv?zs=EsUbEO-FS8Gb_Hxbr49tAQ -t 25 -acodec copy tmp/audio_637pm.mp3', returncode=139)

python version 3.8.5