[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
WebMs thread
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 109
Thread images: 21
File: logo.png (40 KB, 646x142) Image search: [Google]
logo.png
40 KB, 646x142
This is a thread dedicated to making WebMs and the best methods to encode them.

I have some scripts that I tested and think offer the best compression/quality balance imho. Please post better parameters if you think you can improve them. These are windows BAT scripts that use FFmpeg so they will not work with loonix, I'm sorry in advance but I could never get used to that joke you call an OS (I tried linux debian).

GIF to WebM:
for %%f IN (*.gif) do (
ffmpeg -i "%%~nf.gif" -an -c:v libvpx -qmin 0 -qmax 40 -crf 16 -b:v 1000k "%%~nf.webm"
)


MKV to WebM:
for %%f IN (*.mkv) do (
ffmpeg -i "%%~nf.mkv" -an -c:v libvpx -qmin 0 -qmax 40 -crf 16 -b:v 1000k "%%~nf.webm"
)


Sorry there are 2 scripts but I don't know how to make a script that accepts both GIF and MKV files and output a WebM. If you could help me resolve this problem then I would greatly appreciate it.
>>
>>55176421
>%%
Dumb question, that is just a random variable right?
>>
I'm still using old WebM for Retards because fuck installing avisynth just to convert meme webms
>>
>>55176577
I think so, yeah.
>>
>>55176634
You don't really need much to make them. All I use is virtualdub+ffmpeg plug in and FFmpeg itself in a BAT script. You can trim, crop, enhance, apply filters to videos in virtualdub just fine.
>>
>>>/wsg/ had a webm academy thread a few months ago which was all about doing it right and so on. Here's the archived version: http://4chandata.org/wsg/WebM-Academy-a810990

Very informative, but sadly the example files are all missing.
>>
OP you should move from batch to Powershell unless you are running a dinosaur. for loop construction is more like in other languages and it's plain more easy write and debug once you get more complex.
>>
>>55177227
Ooohhhh, so that is this strange symbol comes from.

Fuck that, I prefer Bash, less brainfuck.
>>
Btw when are we getting SOUND with webms? There is absolutely no reason not to have site-wide. All concerns are non-existent, other imageboards have paved the way and pretty much beta-tested it for community reception.

Addition of sound would increase page view times as people wouldn't have to go off site to look at sound-based linked content. Page views will lead to bigger userbase, more ad and 4changold money.
>>
>that ugly shell
>that ugly 2 loops

i just had to convert it

for f in *.gif *.mkv; do
ffmpeg -i "$f" -an -c:v libvpx -qmin 0 -qmax 40 -crf 16 -b:v 1000k "${f%.*}.webm"
done
>>
why not just use Shotcut for conversion?
>>
>>55176760
Or just use the new WebM for retards that allows you to crop, add subtites and shit in a single program.

But of course this is /g/ an everything has to be done in the most arcane and impractical way so you can show offf how leet and tech savvy you are
>>
>>55177335
Sanity at last.
>>
>>55177335
An even better idea - now it only converts if the webms don't exist, making it perfect for a cron job (a scheduled task for you Windows users)

for f in *.gif *.mkv; do
[[ -f "${f%.*}.webm" ]] || ffmpeg -i "$f" -an -c:v libvpx -qmin 0 -qmax 40 -crf 16 -b:v 1000k "${f%.*}.webm"
done
>>
>>55177335
>>55177396
cool
>>
>>55177386
>making something in a way allowing for automation so you never have to touch it again like in >>55177396
>the most arcane and impractical way
>>
>>55177431
This reminds me that's it's summer now. God I hate kids.
>>
>>55177335
>>55177396
Holy fuck, are you an admin? How long did it take you to be this good in powershell?
>>
File: areum2.webm (3 MB, 500x1066) Image search: [Google]
areum2.webm
3 MB, 500x1066
>>
>>55177431
Nice now I can automatically convert all the gifs and mkvs in a folder into webms.

Now, if there only was a program that let me extract a single, specific clip from a video with just a couple of clicks for quick shitposting purposes...
>>
File: idiot.jpg (24 KB, 387x461) Image search: [Google]
idiot.jpg
24 KB, 387x461
>>55177494
>powershell
>not superior bash
>>
>>55177494
this is bash

you can install it using MSYS
>>
>>55177494
That's what you get by using Linux.
>>
>>55177567
Fucking powershell is from Windows idiot. Bash is from superior GNU/Linux.

Get your facts right telemarketer.
>>
File: 146594760154.webm (1 MB, 302x302) Image search: [Google]
146594760154.webm
1 MB, 302x302
>>55177547
>>55177551
>>55177567
Aww man. I thought it was a powershell script not some meme script from a meme OS.
>>
>>55177623
you can literally install it by typing "bash" into PS

>>55177621
I know, that's why I said that by using Linux you get knowledge about bash.
>>
This >>55177621 was for >>55177494
>>
Can anyone turn >>55177396 into a powershell script or are meme OSs and meme scripts all you nerds know?
>>
>>55177653
Sorry dude, my finger couldn't hold the rage. This guy is like doing it on purpose.

I mean, pwnedshell? Over bash?
>>
>>55177660
bash is open source, that means everyone, even you proprietary-loving Windows users can use it.
Powershell is only there to provide lock-in to Windows.
The script is now in maximally portable form.
>>
>>55176421
>I'm sorry in advance but I could never get used to that joke you call an OS (I tried linux debian).
Fuck off OP. You're always a faggot, but not this kind of faggot. We don't need a thread for people too retarded to read a slight section from a manual.
>>
File: Laughing_man.jpg (22 KB, 480x360) Image search: [Google]
Laughing_man.jpg
22 KB, 480x360
>>55177745
hahahahaha

You mad nobody takes linux seriously even on 4chan. Year of the linux desktop amirite?
>>
>>55176421
My very autistic set of webm commands I use for encoding. I change the bitrate based on the video.
ffmpeg -i input -c:v libvpx-vp9 -pass 1 -b:v 1111K -speed 0 -aq-mode 0 -auto-alt-ref 1 -lag-in-frames 25 -g 9999 -tile-columns 0 -frame-parallel 0 -c:a opus -b:a 256k -cpu-used 0 -threads 8 output.webm
ffmpeg -i input -y -c:v libvpx-vp9 -pass 2 -b:v 1111K -speed 0 -aq-mode 0 -auto-alt-ref 1 -lag-in-frames 25 -g 9999 -tile-columns 0 -frame-parallel 0 -c:a opus -b:a 256k -cpu-used 0 -threads 8 output.webm
>>
>>55177802
VP9 isn't allowed on 4chan for some inane reason unfortunately.
>>
>>55177623
in powershell it would be more like with the addiitonal check if the exists

gci -filter *.gif -file|?{ -not (test-path "$($_.fullname.replace(".gif",".webm"))") }|%{ ffmpeg -i $_.fullname -an -c:v libvpx -qmin 0 -qmax 40 -crf 16 -b:v 1000k "$($_.fullname.replace(".gif",".webm"))" }
>>
File: noBASH.png (15 KB, 859x634) Image search: [Google]
noBASH.png
15 KB, 859x634
>>55177653
>>
>>55177824
I don't use this for 4chan things. This is to encode stuff to save space.
>>
>>55177855
turn off the CAPS LOCK grandpa
>>
File: noBASH2.png (22 KB, 859x634) Image search: [Google]
noBASH2.png
22 KB, 859x634
>>55177879
>>
>>55177824
Same reason why sound isnt' allowed. Moot struck a deal with google so they don't lose youtube traffic. It's still in effect.
>>
>>55177888
>>55177855

EPIC meme bro xD
>>
>>55177902
BTFO wincuck
>>
>>55177846
desu the batch version looks better

>>55177888
the first result in google (yeah I know, too hard) says that you have to toggle on some "Developer mode"
Wow, is windows turning into android now?
>>
File: browse_0048.png (3 KB, 601x109) Image search: [Google]
browse_0048.png
3 KB, 601x109
xdD

What modules do you have installed power/g/irls ?

run
Get-InstalledModule
to see

pic related are mine
>>
>>55177941
You know what's even harder?
You not understanding that I already have that enabled.

I have Win10 Enterprise and there is no "windows subsystem for linux" on this version.
>>
>>55177941
single pipeline commands look messy, batch or not.
>>
>>55177941
>Wow, is windows turning into android now?
rofl wtf
>>
>>55177802
>opus 256k in a webm
Why? ~190k is completely transparent, and 128k is stupidly good. You don't need archive bitrates in a webm.
>>
>>55177977
that's retarded

also why do you need to convert files to .webms using a work computer?
>>
>>55177977
>I have Win10 Enterprise and there is no "windows subsystem for linux" on this version.
That is because it is in the developer preview build.
>>
How to convince Hiro to finally include sound?
>>
>>55178011
Because Enterprise is the only version of Microsoft BOTNET 10 that have the function to at least disable most of the BOTNET.

>>55178024
>>>/wsg/1138793
>>
>>55178024
But some boards already do.
>>
>>55178044
lel, windows users
>>
What the fuck is powershell anyway? I've been using BAT scripts almost all of my life and I've never heard of powershell.
>>
>>55178127
lel, windows users
>>
>>55178083
>>55178151
XD
>>
File: Kill everyone.png (157 KB, 701x1000) Image search: [Google]
Kill everyone.png
157 KB, 701x1000
>>
>>55178044
>>>>/wsg/1138793

That's not a convenient solution. Neither is linking to other sites.
>>
>>55178228
Then install Gentoo and write a script that posts your audio WebMs and come back to us in 10 years.
>>
>>55177846
>>55177941
>>55177888
>>55177855

Powershell is literally fucking trash. It's the only modern shell which unironically passes raw binary data between commands, with all the problems that this entails.

On top of that it also acts as a regular shell which can execute regular programs.

There's a reason the UNIX systems use text as the standard output of programs.
>>
>>55178127
Scripting environment built on top of C# and .Net for Windows. Mainly targetted at administrators it's also useful for anyone who does common scripting. I advise to look into it.
>>
>>55178281
>On top of that it also acts as a regular shell which can execute regular programs.
That's good, I want to be able to start programs through MS DOS look-alike so I can be /g/-tard and prove muh skills in hackzorz

install gentoo am I right? :^)
>>
File: n.webm (50 KB, 600x364) Image search: [Google]
n.webm
50 KB, 600x364
Why do lincucks have to ruin everything?
>>
>>55178127

PS is Microsoft's shitty approach to a shell and it fails miserably at it, so much that Microsoft admitted defeat and made a translation layer for ELF executables (Linux Subsystem for Windows).

>>55178312

That's not what I was saying you fucking idiot.
>>
>>55178368
Can you code your insult instead, I don't understand unless you talk in gentoo le /g/ meme 2016 summer language.
>>
>>55178384

for str in Kill yourself you fucking faggot I fucking hate you \\n; do
echo -ne "$str "
done
>>
use Premiere Pro to make WebMs

no need for this thread
>>
>>55179062
LOL I came here ONLY to post this, and you beat me to it. Congrats.
>>
>>55176421
I want to convert a video (mp40 to wemb.
How do I do this? I swear to god, I am a normie, and IF YOU DON'T START EXPLAINING I'M GOING TO START SWEARING LIKE A SWINE UNTIL I GET BANNED ON YOUR DAMN BOARD!
>>
>>55179470
>>55179062
Care to post a pic of the available options in Adobe PP for WebM encodes? Kinda interested.
>>
File: WebM.png (29 KB, 477x702) Image search: [Google]
WebM.png
29 KB, 477x702
>>55179507
>>
File: webm-adobe.jpg (403 KB, 1254x977) Image search: [Google]
webm-adobe.jpg
403 KB, 1254x977
>>55179507
>>
File: 1466156898492.webm (3 MB, 1528x900) Image search: [Google]
1466156898492.webm
3 MB, 1528x900
>>
File: 1466397780736.webm (3 MB, 900x530) Image search: [Google]
1466397780736.webm
3 MB, 900x530
>>
File: 1466332011840.jpg (103 KB, 625x807) Image search: [Google]
1466332011840.jpg
103 KB, 625x807
webm export plugin
>>
File: sample2.webm (1 MB, 1280x720) Image search: [Google]
sample2.webm
1 MB, 1280x720
>>55180273
>>
>>55179786
>2000
>2nd pass enconding

what's the point, just run one pass
>>
File: test3.webm (3 MB, 720x508) Image search: [Google]
test3.webm
3 MB, 720x508
r8
>>
File: ASPECTRATIO.png (45 KB, 200x200) Image search: [Google]
ASPECTRATIO.png
45 KB, 200x200
>>55180445
>>
>>55179062
>>55179507
>>55179786
>>55180053
>>55180293

>unironically doing it non-programmatically

You fucking plebs, jesus.
>>
>>55180490
Go ahead and also do all of your video editing programmatically, you autistic mouth breather.

Have a nice life, kid.
>>
>>55180603

I didn't say I would do all my video editing programmatically you faggot. I said that conversion from anything to webm is such a simple task with such consistent required inputs that not doing it programmatically is retarded.
>>
>>55179486
swear all you want no one is going to ban you for it
>>
>>55180445
17sec?
I've seen some do 1-2min clips but are under 3mb.
How do they do this.
>>
>>55180705
2 minute clips at that resolution and in good quality? I don't think so.
>>
>>55180616
Actually, if you read your post again, you said absolutely nothing in that post about conversion being a simple task.

Also, I think you're confused. What you said didn't even make sense, unless you're agreeing doing it the way you're doing it, is in fact retarded.

BTW... I shoot most of my own footage... and.or make my own clips.... so very rarely am I simply converting someone else's material.

btw, how's the 8th grade going?
>>
Webm for retards on Linux when?
I'm retarded
>>
is there away for to input something like %length% into command variable for ffmpeg? i don't want to input seconds manually..
>>
>>55180895
Just use ffmpeg. I don't see how it's that difficult. You can also create an alias so you just have to type
webm <filename>

instead of
ffmpeg -abc 1 -def 2 -ghi 3 -jkl 4 -mno 5
>>
>>55180895
>install ffmpeg
>ffmpeg -i $i -c:v libvpx -b:v 2M -an $o
>$i is the file you want to convert, $o is the output filename
Come on man.
>>
>>55180800

The OP literally starts out with conversion to webm. Why the fuck would you manually set settings for every single webm you encode?

Encoding to webm can be done very easily for hundreds of files by using the ffmpeg command line tool and a shell loop.
>>
There is a webm converter that some anon made for OS X. It's like a stripped down version of FFmpeg for Retards. Converts .mov and .gif to 4chan compatible webm's

https://gitgud.io/berryberry17/webmBroMac
>>
>tfw too retarded to use command line
why isn't there a good webm frontend software with all kinds of useful options? the webm converter for retards is useful but the quality of webms is shit
>>
>>55181322
all of the ones ITT are open source. just fork them
>>
>>55180800
>>55181198
>>55180445
>>55180305
>>55180273
>>55180264

Actually, fuck, even the simple cutting you're doing now is easy as fuck to do on a command line. The process doesn't change much even, except that you're typing in two timestamps according to the video stream you're playing off somewhere (with a media player that has far better seeking mechanism than dragging a fucking dot on a timeline btw) instead of marking two points on a timeline with a GUI.

You are absolutely retarded if you think that paying $2000 for software is necessary to do simple cutting and cropping of a video stream, and even moreso if you genuinely believe that the way to re-encode 100+ h264 streams to vp8.

I would get it if you were doing actual video editing, but using Adobe Premiere for this is outright retarded.
>>
How the fuck do i record my screen into a high quality webm?
>>
>>55181426

Which OS?
>>
>>55181426
be a slav
>>
What does /g/ think of my command?

ffmpeg -i "file" -ss 00:00.000 -to 00:0.000 -c:v libvpx -b:v 1M -vf scale=550:-1 -quality best -threads 7 -slices 8 -auto-alt-ref 1 -lag-in-frames 16 -an -pass 1 -f webm firstpass.webm
ffmpeg -i "file" -ss 00:00.000 -to 00:0.000 -c:v libvpx -b:v 1M -vf scale=550:-1 -quality best -threads 7 -slices 8 -auto-alt-ref 1 -lag-in-frames 16 -an -pass 2 -f webm output.webm


When I use subtitles, I do

ffmpeg -i dal.mkv -ss 04:37.021 -to 05:49.182 -c:v libvpx -b:v 2M -vf subtitles=out2.ass -quality best -threads 7 -slices 8 -auto-alt-ref 1 -lag-in-frames 16 -pass 1 -f webm firstpass.webm
>>
>>55181480
>-ss 00:00.000 -to 00:0.000

what is the point of this?
>>
>>55181493
Placeholder command. Obviously I replace it with the proper timecodes for each video
>>
>>55181460
what are you browsing on?
>>
>>55181442
Wang blows 10
>>
The best method is to use VP9 but chinese moot won't implement it.
>>
>>55180445
sauce?
>>
>>55181678
ffmpeg -f gdigrab -framerate 20 -i desktop -c:v libx264 -preset ultrafast -qp 0 -an c:\capture.mkv
>>
Why does lag-in-frames sometimes change the framerate?
>>
>>55176421
bump
Thread replies: 109
Thread images: 21

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.