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

ffmpeg error, won't combine parts #12

Closed
Minkafighter opened this issue Jan 13, 2018 · 3 comments
Closed

ffmpeg error, won't combine parts #12

Minkafighter opened this issue Jan 13, 2018 · 3 comments

Comments

@Minkafighter
Copy link

Minkafighter commented Jan 13, 2018

trying to download a vod, when finished downloading it tries to combine the parts but it throws an ffmpeg error as shown below.
./concat_ubuntu -vod=111836368 -start="0 0 0"

......................................................
Combining parts

ffmpeg error
Deleting chunks
Deleting temp dir
All done!
root@vps:~/twitch#

This only happens on "long" vods. It doesnt happen on https://www.twitch.tv/videos/112067373 .

@ArneVogel
Copy link
Owner

This might be caused by ubuntus limit on open files. Long vods can have over 4096 chunks that have to be combined by ffmpeg. My guess is that ffmpeg opens all the chunks during the combining process and this caused an error from ubuntu. I had similar problems with the file limit on ubuntu before.

Can you increase the open file limit and try again?

@Minkafighter
Copy link
Author

Minkafighter commented Jan 14, 2018

This sadly didnt work:

........................
Combining parts

ffmpeg error
Deleting chunks
Deleting temp dir
All done!
root@vps: ulimit -n
512000
root@vps:

Is there a way to tell the program to download bigger chunks? Or tell ffmpeg to only combine 2000 or 4000 chunks at once?

@Minkafighter
Copy link
Author

Minkafighter commented Jan 14, 2018

I found something... on openVZ i guess you cant change the open file limit, as you dont have access to enter this command:

root@vps:~# sudo sysctl -w fs.file-max=1024000
sysctl: permission denied on key 'fs.file-max'

Entering this command in a KVM server, will result in no "permission denied" and i can combine all parts! Yay, i guess! :D

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

2 participants