Why do all my webm formulas not work anymore on 4chan and say invalid stream
Here are my formulas
NO SOUND
ffmpeg -i "file" -ss 00:00:00.000 -to 00:15:11.000 -c:v libvpx -crf 4 -b:v 3072*1024*8/duration*0.975 -vf scale=640:-1 -an outputname.webm
FOR SOUND
ffmpeg -i "file" -ss 00:00:00.000 -to 00:00:00.000 -c:v libvpx -c:a libvorbis -crf 4 -b:v 3072*1024*8/duration*0.975 -vf scale=640:-1 Outputname.webm
FOR SUBTITILES
ffmpeg -i "file" -ss 00:00:00.000 -to 00:00:00.000 -c:v libvpx -crf 4 -b:v 3072*1024*8/duration*0.975 -crf 4 -filter_complex "scale=-1:480,subtitles='file'" -an outputname.webm
FOR SOUND AND SUBTITLES
ffmpeg -i "file" -ss 00:00:00.000 -to 00:00:00.000 -c:v libvpx -crf 4 -b:v 3072*1024*8/duration*0.975 -crf 4 -filter_complex "scale=-1:640,subtitles='file'" -sn outputname.webm
Can anyone just post their formula so I can tinker with it?
>>57276189
seriously, just give me a fucking ffmpeg formula
Just use WebM For Retards
>>57275904
Probably ffmpeg defaults to VP9, which 4chan does not support.
If your source has subs your webms will have them. Add -sn to your command and try again
>formula
ffmpeg -i input.mp4 -c:v libvpx -b:v 1M output.webm
Works for me.
be a cool kid and encode with alpha channel
how can I do seek multiple times with ffmpeg without processing/downloading everything between?
>>57276420
Write your own wrapper program. The C API is not that hard.
>>57276508
well right now I just call ffmpeg multiple times with different seek positions it saves considerable amount of bandwidth but its not perfect at all.
I would be able to save much more if there was a possibility to load videoonly once and then do those seeks multiple times
>>57276765
>I would be able to save much more if there was a possibility to load videoonly once and then do those seeks multiple times
It is. I have it implemented in one project. Write your own. Use a baby language with ffmpeg bindings, if you have to.
>>57276285
sheev's plastic surgery has done wonders for anakin's crispy skin
>>57275904
You've been drivin much too long
https://www.youtube.com/watch?v=dP9Cc_wdNeM
>>57276321
libvpx is VP8.
>>57275904
I never seen this in use:3072*1024*8/duration*0.975do?
Hey OP, can you paste the data after you do:ffmpeg -i yourWebm.webm
I use:ffmpeg -ss 00:00:00.000 -i input.mkv -to 00:00:00.000 -c:v libvpx -pass 1 -crf 4 -b:v 2M -sn -an -c:a libvorbis -vf scale=-1:360,ass=file.ass:fontsdir=mkvfonts -copyts -avoid_negative_ts make_zero -metadata title='FILENAME' output.webm
Remove -an for sound. I change 2M from 400k to 4M and 0.
fontdir for fonts without having to install them to the system.
>>57276420
You mean start right at the time stamp? You need to ass -ss before -i to seek and something to reset the time stamps.
>>57275904
>Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
ffmpeg won't even take your command.
You might want to remove 3072*1024*8/duration*0.975
wtf does that even do?
>>57276903
Also remove -pass 1
You can do a second pass with -pass 2 after running -pass 1 but its optional. File size will result larger than with the -pass values
Omit -pass 1 to save you time.