I record quite some webms from the weebshit I watch and want to make some of them available as sound. I extract the webms via a downloaded mpv script most of you know I think.
Plebs would convert manually, I thought of using ffmpeg on a cronjob to do this for me. Since my hoster doesn't let me run scripts (he's quite cheap so whatever) I download all the .webms I threw on the Webhosting Server to my thinkpad at home, convert them there, upload and delete the stuff.
I DO get a bunch of .mp3s coming to my Server. But they seem to be sped up a ton and iridium and Firefox choke on them, so does any desktop media player. You can check the files yourself at audio.animu.date
Any of you guys had this before? Do I need additional settings in my ffmpeg call to make sure the audio is 1:1 what I used? Is the script fucked? Could it be hardware?
I tested the script with both of my laptops, one is a stinky second hand Ideapad, the other one a neat little thinkpad, both running on Debian Jessie and stretch respectively.
I brought this up at the ffmpeg IRC and they were as fascinated as I am over the problem.
So opus would not require converting? Sounds neat, and my output also said something like that.
I would post it to stupid questions but if the ffmpeg IRC failed on this, I thought it might be worth sharing
Joseph Nguyen
It's for a website where I'll upload webm to 3-4 times a week, I don't have time to spare to manually convert all that shit, I let a cronjob do it.
Leo Myers
WebM container can only hold Vorbis (ogg) and Opus audio streams, you can ask ffprobe which codec is it and extract like this: ffmpeg -i input.webm -c:a copy output.opus MKA (Matroska Audio) container is also an option.
Matthew Ramirez
ok thanks.
But any idea why the audio is WHGARBL sped up when I run the script, but is totally fine when I run every line in the script manually through ssh?
Adrian Sullivan
Aaaaaa fuck google Uuuh, not really. Have you tried single quotes instead of double quoted?
Jeremiah Edwards
${FILE}: No such file or directory
Noah Bennett
Okay, I'm out of ideas.
William Cruz
What happened If you make the ffmpeg script extract sound from webm to ogg/mka/opus instead of converting it to mp3?
Wyatt Moore
me too m8
I actually just tried that, the result can be seen on audio.animu.date It again doesnt werk.
I'm wondering why there's so much muxing overhead and what "speed: 18.6x" is supposed to mean (that comes even when I specify 1x speed with -filter:a)
Easton Clark
18.6x speed means it's encoding at 18.6x real time
Dominic Kelly
> what "speed: 18.6x" is supposed to mean Encoding performance, i.e. encoding 18 seconds of audio per 1 second of real time = 18x.
Carter Gonzalez
okay, I was constantly hung up on that since some of the audible audio was over in seconds and some milliseconds were recognizable.
Currently playing around with the formats. Thank god it's a slow day at work.
Charles Taylor
can you post one of the original webms?
Nicholas Clark
nvm wups
Gabriel Ward
webm to mp3 using your ffmpeg command works for me. maybe try the latest version. another idea is make sure you manually set the encoder i.e. not just -f mp3 but -c:a libmp3lame
Daniel Campbell
what was the command? the output says ogg but the files on audio.animu.date is opus
Jose Carter
i was playing around with the script and purging the files on the server constantly, so right now it's opus. do you need the ogg ?
Grayson Wilson
nah, just asking.
Justin Campbell
OP here, I found the culprit.
Apparently the files are fine before uploading them to FTP via ...FTP.