Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom ffmpeg command line options for maxrate and bufsize #272

Open
ctrlbrk42 opened this issue May 22, 2020 · 3 comments
Open

Custom ffmpeg command line options for maxrate and bufsize #272

ctrlbrk42 opened this issue May 22, 2020 · 3 comments

Comments

@ctrlbrk42
Copy link

I need to pass -maxrate and -bufsize to the ffmpeg command inside the docker, but I cannot find the source files of where Telly is calling ffmpeg.

I tried just making a bash file at /usr/local/bin/ffmpeg to call the real bin, but I'm having trouble manipulating the passed arguments and getting -maxrate and -bufsize to work.

It would be far simpler if Telly had this as a config option, but I am fine doing it the above way if I could just get a little help on the arguments coming fro Telly, or where the source file is that is calling ffmpeg so I can modify it directly.

@ctrlbrk42
Copy link
Author

ctrlbrk42 commented May 22, 2020

Got it :)

#!/bin/sh
#echo "$@" >/dev/stderr
for last; do true; done
/usr/local/bin/ffmpeg-real -re -i $3 -b:v 3000k -f mpegts pipe:1

@iMiMx
Copy link
Contributor

iMiMx commented Jul 20, 2020

Agreed, it would be nice for this to be user editable. However, it is easy enough to rebuild it as an alternative to your example :)

For anyone else...

First, setup go, latest/current version (not an old repo version)
git clone https://github.com/tellytv/telly -b dev
Edit routes.go, line "run := exec.Command("ffmpeg"....." to your liking
make

@doughnet
Copy link

this would be nice; because then could pass through commands to utilize GPU if available/wanted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants