Giter Club home page Giter Club logo

heroku-buildpack-ffmpeg-latest's Introduction

Greetings!

I'm Jonathan Ong, a software engineering manager based in Orange County, CA. When I have time, I help maintain koajs. Previously, I helped maintain expressjs and friends.

Currently, I'm focusing on people and project management and am an engineering manager at Houzz. I am not currently looking for a new position. Even if I were, I would not be willing to relocate.

I don't write often, but you can follow my blog at medium/@jongleberry.

You can find me on the following slack groups:

heroku-buildpack-ffmpeg-latest's People

Contributors

detly avatar edmorley avatar jonathanong avatar lauralex avatar ridem avatar tamu-mirc-software avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

heroku-buildpack-ffmpeg-latest's Issues

ffmpeg banned on heroku

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

Error: ffmpeg was killed with signal SIGSEGV

First of all, thank you for the great buildpack repo!

Heroku kills the ffmpeg process for some larger files and I'm not sure what the issue is.
~5mb .mp4s work well but 60mb .mov files are giving me errors.

We use 2GB ram on Heroku. A local ffmpeg process on my machine for the larger file goes up to ~900MB ram and runs successfully, so that should not be an issue.

I've reached out to Heroku support, but since it's not an official buildpack, they redirected me to ask in the buildpack repo directly.

Full error stack trace:

Error: ffmpeg was killed with signal SIGSEGV
at ChildProcess.<anonymous> (/app/node_modules/fluent-ffmpeg/lib/processor.js:180:22)
at ChildProcess.emit (node:events:369:20)
at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)

The ffmpeg command I'm running:

ffmpeg(file.url)
  .inputOption('-headers', `Authorization:\ Bearer\ ${authKey}`)
  .complexFilter([
    '[0:v] scale=320:-1:flags=lanczos,split [a][b]',
    '[a] palettegen [p]',
    '[b][p] paletteuse',
  ])
  .fps(10)
  .on('end', () => resolve())

Has anyone experienced extreme slowness?

I am encoding a large video file that on my 5-year-old laptop runs at 7X and finishes in about 5 minutes. But with 2X worker dynos on heroku it cant even finish before the 4 hour background job time limit. I didn't have any issues until 2 days ago and now its causing lots of probelms. If I run heroku run rails console and run the job manually, I see it start at 7X but then quickly go down to 2X and then 0.5X speed. Anyone know what is causing this issue?

ffmpeg -y -i #{temp_webm_file.path} -movflags faststart -preset ultrafast #{temp_mp4_file.path}

Unknown Issue

I didn't got any error with this buildpack, my discord music bot is playing but the sound doesn't come out, it only works with my local ffmpeg installed on my computer.

xz: (stdin): File format not recognized

This started happening today on every build:

-----> ffmpeg app detected
-----> Install ffmpeg
       DOWNLOAD_URL =  https://johnvansickle.com/ffmpeg/builds/ffmpeg-git-amd64-static.tar.xz
xz: (stdin): File format not recognized
tar: Child returned status 1
tar: Error is not recoverable: exiting now
       exporting PATH

As a result, ffmpeg is not installed but the build shows up as completed.

how to call out the function (I am a newbie)

import ffmpeg
input =ffmpeg.input('xx.mp4')
output = ffmpeg.output(output,'xx.mp3',f='mp3',vn=True)
ffmpeg.run(output)
I fail to use this code
can you give an example
pls give an example

"An error occurred while running the command"

Hello.
My bot start normaly but when i use the command "play" it return the following message.

"An error occurred while running the command: TypeError: Cannot read property 'length' of undefined
You shouldn't ever receive an error like this."

Thank you for supporting.

johnvansickle.com appears to be down

When deploying to Heroku at the moment...

remote: -----> ffmpeg app detected
remote: -----> Install ffmpeg
remote:        DOWNLOAD_URL =  https://www.johnvansickle.com/ffmpeg/releases/ffmpeg-release-64bit-static.tar.xz

remote: xz: (stdin): File format not recognized
remote: tar: Child returned status 1
remote: tar: Error is not recoverable: exiting now

When I browse to the site it appears to be down

Heroku CI fails

Hello @jonathanong,

thanks a lot for this repo, it worked perfectly until this morning.

Now, in Heroku CI, we have a random failure. Do you have any idea how to fix it? Thanks in advance


       Downloading https://johnvansickle.com/ffmpeg/builds/ffmpeg-git-amd64-static.tar.xz
.       Unpacking the archive
xz: (stdin): Unexpected end of input
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
       Failed to unpack

using with cloud native buildpacks?

hi guys, how can i use this buildpack with cloud native foundation buildpacks.

I am using pack cli command like that,
pack build laravel-backend --builder heroku/buildpacks:20 -b "https://github.com/heroku/heroku-buildpack-multi"

and i added the .buildpacks

https://github.com/jonathanong/heroku-buildpack-ffmpeg-latest.git
https://github.com/heroku/heroku-buildpack-php

i know maybe this issue not related directly, but i think there is someone use before.

Thx.

Update usage instructions

Hi :-)

On https://github.com/jonathanong/heroku-buildpack-ffmpeg-latest#usage it mentions adding the buildpack to the .buildpacks file, however this method only works with the deprecated multi buildpack:
https://github.com/heroku/heroku-buildpack-multi

Would it be possible to remove that reference, to prevent confusion?

Also for this usage example:

heroku buildpacks:add https://github.com/jonathanong/heroku-buildpack-ffmpeg-latest.git

I would recommend changing it to heroku buildpacks:add --index 1, so the buildpack is added before the existing buildpacks, since:

  • If those buildpacks need ffmpeg, they'll need it to be installed first
  • the buildpacks API treats the last buildpack in the list as the "primary" buildpack for the release metadata step (which sets new app procfile entries and addons), so it's best if supplementary buildpacks are not last in the list

Many thanks :-)

Error while loading shared libraries - trying to run ffmpeg via Heroku CLI

After adding the buildpack:
bash-3.2$ heroku buildpacks:add https://github.com/jonathanong/heroku-buildpack-ffmpeg-latest.git
I deploy, and check to see if it works:
bash-3.2$ heroku run ffmpeg
Here's the readout:

Running ffmpeg on โฌข af-microservice... up, run.5006 (Free)
ffmpeg: error while loading shared libraries: libvpx.so.5: cannot open shared object file: No such file or directory

FFMPEG_DOWNLOAD_URL

Hi,
Thanks for the great work !
Can someone let me know how to set the custom download URL FFMPEG_DOWNLOAD_URL ?
Thank you very much ๐Ÿ™Œ๐Ÿผ

Does this have x264lib support?

I was just wondering if this has support for libx264-dev or not. If not, then this builfpack should get support for it.

Thank you!

Heroku 16 Not working 'GLIBC_2.25' not found (required by ffmpeg)

I receive this error message

ffmpeg: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.25' not found (required by ffmpeg)
ffmpeg: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.27' not found (required by ffmpeg)
ffmpeg: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.27' not found (required by ffmpeg)

What can I do?

Troubles with buildpack on Heroku

Yesterday, I found what my discord bot music feature isn't working. I got the next error in Heroku logs: ffmpeg process 12 successfully terminated with return code of -11. How to fix this error and what it's mean? Also I test the bot on my local machine and all works okay.
UPD: I use Heroku-22 stack

Can segfault on heroku-22

Hi, on the heroku-22 stack, using ffmpeg/ffprobe via this buildpack, operations that access input over a URL can cause a segfault.

Here are some example commands you could run in a heroku run bash to cause a segfault on heroku-22

ffprobe https://scih-data-dev.s3.amazonaws.com/test_video/SampleVideo_360x240_1mb.mp4

ffmpeg -i https://scih-data-dev.s3.amazonaws.com/test_video/SampleVideo_360x240_1mb.mp4 converted.ogg

According to a heroku staff person commenting on a public issue on an official heroku buildpack that also provides ffmpeg (and also currently segfaults), which you can see here:

This is not specific to Heroku-22; there are several reports on several of these third-party builds of FFMPEG (which the buildpack you mentioned uses) of segfaults with Ubuntu 22.04 in other environments, e.g. GitHub Actions.

The cause is the static linking of glibc - this can break DNS lookups via NSS, which is still used via dlopen() internally unless --enable-static-nss is used, but all of this static linking comes with a ton of pitfalls, which is why the new builds in this PR use dynamic linking.

So this might be hard to resolve.

But if this is a known problem in general with the static builds of ffmpeg and ubuntu 22.... I wonder if the upstream provider of static builds of ffmpeg is aware/working on it, if perhaps there are new static builds available which work better on ubuntu 22?

Or, I'm not sure if it's feasible to try to provide a ffmpeg buildpack using dynamic builds.

Anyway, I'm filing this to, at the least, leave a record of these problems for anyone else who may encounter them.

Connection Reset By Peer

Hello, I made a Discord Bot that plays music via a yt-dlp audio stream. It's been working perfectly for over a year thanks to this buildpack however recently it's began to have a lot of issues.

At random a song will cut off and the bot marks the song as being complete and removes it from the queue, giving the error "error=Connection reset by peer."

While I initially thought it could be an issue with the Youtube Api I am currently using, upon extensive testing I was unable to find any issue on that side and it's led me to here

Issue :
image

I was suggested to change the 'reconnect_delay_max' setting to the maximum, however that has sadly not changed it
Screenshot of current FFMPEG options :
image
(yes I use Light theme, fear me)

My thought could be it being an issue with the version that this buildpack may be using but it's a little naive for me to presume, thanks for any help!

Where is FFMPEG file in Heroku

I am directing the FFMPEG to my local file when running on my local computer.

FFmpeg ffmpeg = new FFmpeg("/usr/local/Cellar/ffmpeg/4.2.1_2/bin/ffmpeg");

However when I deploy to Heroku where should I direct the FFMPEG initialization?

Discord bot doesn't play music

After heroku stack-22 update, bot stopped playing music, it's just silent, no output and no errors
On my pc it plays music fine

Propagate archive errors to make buildpack properly fail

Hi there,

Low priority issue; only experience this about once every 100 builds, if that.

The issue

Sometimes, something goes wrong on the heroku end with unpacking or downloading the archive:

remote: -----> Install ffmpeg
remote:        DOWNLOAD_URL =  https://johnvansickle.com/ffmpeg/builds/ffmpeg-git-amd64-static.tar.xz
remote: xz: (stdin): Unexpected end of input
remote: tar: Unexpected EOF in archive
remote: tar: Unexpected EOF in archive
remote: tar: Error is not recoverable: exiting now
remote:        exporting PATH

Unfortunately the error doesn't propagate, so you're left with a dyno without ffmpeg.

Expected behaviour

It either checks if ffmpeg now exists, or it propagates download/tar/xz errors, so that the buildpack fails and therefore the entire build fails.

Workaround

There is none, other than re-deploying with a new commit [empty or not] added. That's the real culprit. It means that even if we detect it (which is easy to do, by testing if ffmpeg exists), retrying is non-trivial, with a few minutes of dynos in a corrupt state.

Error

Hello, can u help me with error:
Error: ffmpeg stream: write EPIPE

idk whats that every time it was working but suddenly it start doing this error

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.