[ / / / / / / / / / / / / / ] [ dir / b2 / choroy / clang / dempart / doomer / porn / trueb / vichan ]

/webm/ - WebM

WebM/General Video Sharing
Winner of the 77nd Attention-Hungry Games
/x/ - Paranormal Phenomena and The RCP Authority

April 2019 - 8chan Transparency Report
Email
Comment *
File
Password (Randomized for file and post deletion; you may also set your own.)
* = required field[▶ Show post options & limits]
Confused? See the FAQ.
Embed
(replaces files and can be used instead)
Options

Allowed file types:jpg, jpeg, gif, png, webm, mp4, swf
Max filesize is 16 MB.
Max image dimensions are 15000 x 15000.
You may upload 3 per post.



WebM Requests // Beginner's guide to WebM // Now with 16MB file limits!

File: 1421215123360-0.png (29.79 KB, 160x454, 80:227, Screenshot - 01132015 - 08….png)

File: 1421215123360-1.png (34.62 KB, 416x314, 208:157, Screenshot - 01132015 - 08….png)

 No.2573

Easy Mode

This option is only good for converting an entire Youtube video into a Webm. I will explain each step as if you were using a computer for the 1st time ever or something like that.

#1 Go to this site: http://en.savefrom.net
(Warning) This site is functioning and SAFE only with the presumption that you are using all possible safety measures such as running an adblocker and/or a script blocker but primarily using your own judgment as websites of this nature can and will be purchased by someone with malintent who may compromise it. This has happened with another website that performed the same function as this one. A good resource for determining the safety of a site like this is a browser extension called Web of Trust, see here for an example: https://www.mywot.com/en/scorecard/en.savefrom.net
#2 As seen in the 1st OP pic, there is only one option for downloading a webm from this site, it's in 360p meaning that many videos over perhaps 2 minutes in duration will turn out over the size limit of this chan(8mb), we'll worry about that case in a moment but for now we'll assume you're downloading a video that fits the size limit which you can determine from the 2nd OP pic, so go ahead and click on the webm option in this case.
#3 Finally, we're assuming you're downloading a video that's over the size limit. In this case, you can try clicking on one of the 240p options and checking to see if the filesize is sufficiently low, then you'll need to continue onto the next section to convert the non-webm file into a webm(This should prove still easier than downsizing the 360p webm). If you do download it as 240p, expect a degradation in image quality.

Hardish Mode

First, I'll briefly explain ffmpeg and dump some links to help you get it if you're on Linux, it is possible to get it for other platforms but it takes more effort than could be expected from a lazyass like myself so if you're adventurous, google it. If you're on Windows or Mac, scroll down to the end to find a nifty link that'll give you a neat list of GUI & command line apps for your OS that do the same thing as ffmpeg and then google for a tutorial on how to use that app if you can't figure it out. So, what ffmpeg is…is a command line tool that converts audio and video files between a variety of formats, for our purposes it only needs to convert one such file into a webm and with link no.2 below you'll see that's very easy to accomplish, just change output.avi to output.webm and take out any unwanted changes beyond the -i parameter which indicates you're converting one file to another, it's as simple as that.

Linux:
#1 Download link:
http://ffmpeg.org/download.html
#2 Howto link:
http://ffmpeg.org/ffmpeg.html#Description

Windows Converters:
http://alternativeto.net/browse/search/?q=%22webm%22&platform=windows

Mac Converters:
http://alternativeto.net/browse/search/?q=%22webm%22&platform=mac

DON'T DOWNLOAD MALWARE AND BLAME ME FOR IT

 No.2574

>>2573
Alternatively:
Download with 4K Video Downloader:
https://www.4kdownload.com/products/product-videodownloader

Convert, trim, resize with WebM for Retards:
https://github.com/nixxquality/WebMConverter

 No.2646

Ubuntu treats ffmpeg as though it's deprecated when it's not. Instead it comes with avconv due to a supposed semi-political fork.

If you're using Ubuntu you can remove avconv and add ffmpeg repository and install it from there.

http://askubuntu.com/questions/432542/is-ffmpeg-missing-from-the-official-repositories-in-14-04
(see first answer)

avconv and ffmpeg cli commands are nearly identical though.

 No.2961

Here's some ffmpeg tips:

To do a 2-pass encoding in VP9 (much, much better than VP8)

Pass 1:
ffmpeg -i "input.mp4" -an -vf unsharp,scale=-1:720 -sws_flags lanczos -c:v libvpx-vp9 -cpu-used:v 1 -auto-alt-ref:v 1 -lag-in-frames:v 16 -keyint_min:v 0 -g 360 -b:v 800k -quality:v good -pass:v 1 -f null NUL


The last NUL is for windows. Linux/OSX use /dev/null

Pass 2:
ffmpeg -i "input.mp4" -c:a libvorbis -q:a 3 -vf unsharp,scale=-1:720 -sws_flags lanczos -c:v libvpx-vp9 -cpu-used:v 1 -auto-alt-ref:v 1 -lag-in-frames:v 16 -keyint_min:v 0 -g 360 -b:v 800k -quality:v good -pass:v 2 "output.webm"


-b:v is the bitrate. You can calculate using some bitrate calculator (keep in mind that the audio will use semething beteeen 100kbps to 120kbps, depending on -q:a)

-q:a is the vorbis quality (3 is ~112kbps). You can change to something like -q:a 2.5 (~ 100kbps), 2 (~96kbps). It depends on the material, music will take more bits.

-vf unsharp,scale=-1:720: unsharp cleans up the video, not necessary if the source is good. scale:-1:720 will resize to 720p. You can change to any resolution (854:480, 960:540, etc).

-cpu-used:v 1 is the quality of the encoding. You can change to 0, but it will take a long time to encode


If you want use VP8, much faster, change to -c:v libvpx (without the -vp9), everything else is the same.

You can calculate the bitrate by dividing the total bits, 67108864 (8 * 8 * 1024 * 1024), by the number of seconds. Keep in mind the overhead (~1%) and the audio.

 No.2962


 No.2963

File: 1422284449813-0.png (27.66 KB, 1024x634, 512:317, xmedia1.png)

File: 1422284449813-1.png (34.92 KB, 1024x634, 512:317, xmedia2.png)

File: 1422284449813-2.png (33.24 KB, 1024x634, 512:317, xmedia3.png)

There's also Xmedia Recode, a pretty decent Windows encoder that supports Webm

http://xmedia-recode.de/download.html

 No.2995

>>2961
Can you post a "general" vp9 line for windows users? Those gave me all kinds of errors trying them a few times.

 No.2998

>>2995
They should work. What kind of errors do you get?

 No.3017

File: 1422509402837-0.jpg (35.73 KB, 584x309, 584:309, stats for nerds.JPG)

File: 1422509402837-1.jpg (40.32 KB, 543x354, 181:118, 4k video.JPG)

Something I realized a couple days ago:
Youtube already converts some videos to VP8/VP9
Which means, if you're lucky, you may be able to find some video resolutions that fits under the 8MB size limit. This is especially useful for VP9 since the encoding takes a lot longer

To check if youtube's serving the VP9 version of the video:
Right click on the video and select 'Stats for nerds' and check the Mime Type. Note that it currently only works on the HTML5 player in Chrome.

To download the video:
Grab the video url and paste it into 4k Video Downloader, and chooses the mkv file format.

Convert to .webm:
Although the downloaded file is using the mkv container, you'll note that the codec used is VP9/Vorbis. Which means it is possible to change the container to webm without encoding or loss of quality.
To do this in ffmpeg, run the following command:
ffmpeg -i input.mkv -c copy output.webm

Alternatively, you can use XMedia Recode, and choose 'copy' in the video and audio tab.

 No.3018

File: 1422509654041-0.jpg (33.58 KB, 997x343, 997:343, ffmpeg.jpg)

File: 1422509654041-1.webm (5.97 MB, 1280x720, 16:9, themoonrises.webm)


 No.3023

>>3017
This is true. All videos are being converted to VP9/Vorbis. But they they a long time, because VP9 is slow as fuck.

Anyway, an easier way is getting Youtube Complete Saver for Firefox:
https://addons.mozilla.org/en-US/firefox/addon/complete-youtube-saver/versions/

Point to ffmpeg in the extension option and it will convert directly to webm

 No.3024

>>3023
An by "converting" I mean just muxing both DASH tracks.

 No.3041

Also about Save from.
Typing SS before any youtube video will let you download it off of save from, it redirects you to there with the video ready to download.

 No.3083

File: 1422623231273.png (27.05 KB, 749x417, 749:417, completeyoutubesaver.png)

>>3041
That will save the old VP8 360p webm. Using >>3023 you can save the new VP9 up to 1080p webm.

Pic related, the 480p webm is smaller than the 360p non-DASH webm (fmt 43).

 No.3084

File: 1422623619222-0.webm (6.64 MB, 640x360, 16:9, Making the World a Better….webm)

>>3083
Here both to compare: fmt 43

 No.3085

File: 1422623697924-0.webm (5.77 MB, 854x480, 427:240, Making the World a Better….webm)

>>3084
>>3083
and fmt 244

 No.3086

>>3085
Bonus: the same video I converted with ffmpeg, in 720p >>3030

 No.3108

how to subtitles?

 No.3109

>>3108
Virtualdub, convert to something lossles like Lagarith and to WebM with ffmpeg.

 No.3451

I've just encoded a silent webm, now how can I merge an audio track to it? Ideally not uncompressed wav.

 No.3452

>>3451
Convert to vorbis, foobar2000 is pretty good to convert anything to vorbis. Then you can use mkvtoolnix, mmg is pretty easy too, just drag the tracks and check webm compliance in the second tab.

 No.3542

this seems to be a bit more convenient http://solusipse.github.io/web-to-webm/

 No.3562

Anyone have a favorite way of converting mov to webm? Seems every time I try mov to something else to webm, the file size just expands something crazy.

Also while we're at it, anyone have suggestions on how to make a webm with a static image and a song? Every time I try with any movie-making software, the webm ends up 12MB… absurd for a 3 minute song and an unmoving image.

 No.3580

What's the optimal way of retrieving a file from youtube for webm conversion via ffmpeg?

I'm on linux and would rather not use one of those youtube downloader sites. Is there a better way?

 No.3585

>>3580
youtube-dl is available in most good repos.

 No.3587

File: 1425235775264.webm (7.92 MB, 900x945, 20:21, out.ogv_00002.webm)

So I made this: https://github.com/BAXTER001/VideoNurd

A gui video swiss army knife, very early beta at the moment, just compiled a windows release but not sure how well it runs.

 No.3619

>>3587
Can it do things like 2 pass encoding and calculating the target bitrate given a size constraint?
And how is the seeking compared to WebmForRetards?

 No.3776

>>3587
Tried this last night and got an error message.
Instantly gave up.

 No.3791

File: 1426468886215.jpg (71.81 KB, 960x635, 192:127, 1426171440060.jpg)

>>3776
That's the spirit.

>>3451
using ffmpeg - first encode the input audio into a format compatible with webbums (use either opus or libvorbis - opus is generally better quality/similar conversion time):

ffmpeg -i "input.mp3" -c:a audio_codec -b:a audio_bitrate -f audio_codec "output_audio.opus"
(or "output_audio.ogg" if using vorbis)

where:
audio_codec = opus or vorbis
audio_bitrate = your audio bitrate (for opus - 96k+ for music, 64k+ for speech/etc.)

Then take the resulting audio file and combine it with the silent webm:

ffmpeg -i "output_audio.opus" -i "video_without_audio.webm" -c:a copy -c:v copy -f webm video_with_audio.webm

 No.3850

Is there some sort of rule regarding the aspect ratio and size (p.ex 640x480) of webm that is generally followed when upscaling or downscaling a video to a webm due to filesize in order to maintain as much quality from the original source as one can ?

 No.3900

File: 1427238448974.webm (3.49 MB, 720x404, 180:101, Frank gets triggered.webm)

Finally made my first webm. Enjoy.

 No.3989

File: 1427377389004.jpg (701.26 KB, 1280x842, 640:421, 3036887-inline-i-7-the-bre….jpg)

remember: youtube-dl is pretty awesome. despite the name it has a long list of supported sites, mostly porn, obv. there is support for bulk playlist, channels, etc downloads.
https://rg3.github.io/youtube-dl/download.html get it here
usage: youtube-dl -f webm <link>

gifs:
avconv suck here, use ffmpeg instead
ffmpeg -f gif -i my.gif out.webm

or
http://gfycat.com

if you're mad enough to convert a shitton of all your gifs to webms - i've got in covered: https://github.com/fiocfun/gfycat-webmify (leenoox only)

 No.4171

File: 1428240630676.webm (7.21 MB, 960x540, 16:9, Youre_gonna_carry_that_we….webm)

>>3850
It's generally guess work and depends on the codecs you're using (vp8 vs vp9 vs h264 for video, vorbis vs opus vs aac for audio) and the amount of animation in the video (if there's not much going on visually you can usually push the resolution up/make it longer, etc.). As far as a basic guideline for resolutions/length of video goes, I generally think that the max time length for a standard video while being under the 8MB limit is…

1280x720 (720p) = ~1m10s (longest a 720p video can be before it starts to look like shit is ~1m10s)
1120x630 = ~1m30s
960x540 = ~2m
800x450 = ~2m 40s
640x360 = ~4m 15s

And that's pretty much what I go off when deciding the resolution of a video - if my source video is 2m30s long, for example, I would probably use ~800x450 resolution as I know that's about the max resolution I can chose while still having the video look good enough quality wise.

With that being said, it varies massively depending on the amount of animation going on (less animation = longer videos at higher resolutions while still being under 8MB - attached webm is a good example of the sort of video you could push significantly compression wise), but as for "average videos" the above is what I usually operate off. Using VP9+opus over vp8+vorbis/h264+aac helps quality as well, although it is obviously much more of a time sink over than just using the latter.

 No.4216

is there an easy way to record a game that i play and automatically turn to a webm?

 No.4275

>>3023
this isn't working for me anymore

 No.4343

So I converted my first manually using ffmpeg. It isn't too hard:

ffmpeg -i input.mp4 -c:v libvpx -b:v 350K -c:a libvorbis output.webm

The bitrate is key. Take 64000 then divide by the number of seconds in the clip to get the bitrate in kilobits (round down of course).

Pity WebM sucks so bad compared to mp4. Honestly, I think Google picked a shit format.


 No.4485

If you're going to make webm's just use 'webm for retards'

Best and easiest way really.


 No.4899

When I am trying to convert videos with large times using Webm for Retards I end up having the audio not being in sync with the video. Does anyone know how I can fix this, should I try converting to VP9 instead?

Also if converting a video with a large time into a webm. What should I reduce to get the right size, bit rate, resolution or both?


 No.5087

>>4485

How can I get subtitles with webm for retards?


 No.5092

Any way to get VP9 to use more than 2 cores, not matter if i use 8, 16 or 32 threads it still only max out 20-30% of the cpu, what is the reason for this and why isn't there any solution yet?

VP8 gives me around 20-30 fps while VP9 only 3-9 fps.


 No.5100

>>5092

Not really, VP9 is just slow.

Make sure you are using libvpx 1.4.0, it's a little faster.


 No.5260

File: 1433899971977.png (132 KB, 944x1500, 236:375, webm_encoding_guide.png)

Been here for a little while now, and have played around with various things to get the best WebM quality

Nothing so far matches WebM for Retards, because I can't find any programs that will easily trim, dub and so forth.

A few tips for the program lads:

Download the latest version off github and then download both the ffmpeg 64-bit and 32-bit 'static' releases. Drag and drop the 64-bit ffmpeg.exe, and drag and drop 32-bit ffmpeg.exe + ffplay.exe + ffprobe.exe, into their respective folders. This updates the program to libvpx 1.4.0 and whatever else. This might affect some 'temp' file management, but it doesn't affect the webm creation process.

Change the '-quality' parameter to 'good' for VP9 encoding. It boosted the encoding rate on my i5 4670 from ~0.2 fps to ~9-15 fps.

When using 'variable' mode with VP9, add a '-b:a 77k' parameter, where the number is the audio bitrate you want. 77kb/s is about equivalent to 128kb/s mp3, so I read. 32-36kb/s seems to be the sweet spot for talking. The minimum is 5kb/s, but quality rapidly declines below 16kb/s.

I don't recommend shaving the frame rate, unless other quality options at their limits.

r8 my guide m8s - It's not going to be the same for every video, but I think it gives some indication of what to aim for


 No.5299

Is there a tool that can quickly turn an audio track into a (webm) video of just some picture with sound?


 No.5323

Windows user here, I've found this video as a guide https://www.youtube.com/watch?v=YLkH9Er0u4Y

It uses ffmpeg + VirtualDub + this script http://pastebin.com/raw.php?i=br77bNVZ

Video conversion works fine, but I get an error when I want to include audio as well (halfchan is full of faggots that can't help themselves if they have audio as well, apparently). The error is "CLI: The multiplexing process failed with error code 1. Check logs"

Any pointers on how to get the audio to work as well?


 No.5394

>>5260

Best program hands down:

>>2963

>real freeware

>do everything

>copy option so can do lossless edits and muxing

>size calculator can create <8mb files

mmg is good too, but overkill professional, xmedia is newbie-friendly.


 No.5460

Is there a way to input an audio file, add an image and convert it?

Cause inputing the image first and audio after gives me problems, for which i'm too lazy to solve.


 No.5463

How do people get long, good quality webms under 8mb? I just don't understand it.


 No.5593

File: 1437268951847.webm (1.66 MB, 461x588, 461:588, ChipTune.webm)

>>2573

>DON'T DOWNLOAD MALWARE AND BLAME ME FOR IT

I seriously hope you guys did not stick your fingers into the botnet honeypots posted by OP.

Windows converters are not only garbage, but full of malicious code and spyware.

>>5299

>>5460

>Is there a tool that can quickly turn an audio track into a (webm) video of just some picture with sound?

>Is there a way to input an audio file, add an image and convert it?

Yes there is, Anon. ffmpeg, the swiss army knife of audio & video conversion.

ffmpeg -loop 1 -i input.png -i input.flac -c:v libvpx-vp9 -c:a libvorbis -b:a 128k -shortest -strict -2 -pix_fmt 420p output.webm

-shortest = the clip ends when the audio file ends

-strict -2 = experimental

-b:a = audio bitrate

-pix_fmt 420p = convert pixel format to 420p

>webm related


 No.5594

File: 1437269280042.webm (7.83 MB, 1280x720, 16:9, MarxistEconomics.webm)

>>5463

>How do people get long, good quality webms under 8mb? I just don't understand it.

The secret is ffmpeg, the swiss army knife of audio & video file size reduction.

ffmpeg -i input.avi -c:v libvpx-vp9 -c:a opus -c:v 500k -b:a 96k -cpu-used 0 output.webm

cpu-used 0 = good quality

libvpx-vp9 = video codec for small webm files

opus = audio codec for small webm files

-c:v = pick a low video bitrate (500k or lower)

-b:a = pick a low audio bitrate (96k or lower)

>webm related


 No.5595

File: 1437338450456.webm (7.54 MB, 213x120, 71:40, ep4.webm)

>>5087

It's called webm for retards for a reason. Use ffmpeg, the swiss army knife of audio & video conversion.

It's not that hard, if you're willing to learn.

https://ffmpeg.org/ffmpeg.html

https://ffmpeg.org/ffmpeg-filters.html#subtitles-1

https://trac.ffmpeg.org/wiki/HowToBurnSubtitlesIntoVideo

inb4 slowpoke


 No.5683

so now that webm for retards is removed from github. Where can I download it?


 No.5690

>>5683

It's back up. They just renamed it.

https://github.com/nixxquality/WebMConverter


 No.5790

Very stupid anon here, how do i make a still image with sound webm?


 No.5797


 No.5799

>>5797

Where can i input these lines?

What program do i use and such?


 No.5807

>>5593

thanks!


 No.5825

>>5799

ffmpeg


 No.5833

Is there a way to get/predict VP9 (2-pass) encoding to be more true to the desired average bitrate?

Whenever I use VP9 there is a high chance it overshoots the selected bitrate by a mile (making the file over 8MB). Trial and error seems to be the only way to figure out good settings, but VP9 is really just way to slow for that method. I wonder how others deal with this.


 No.5921

File: 1440811364701.webm (7.8 MB, 600x480, 5:4, output.webm)

>>4343

Just tried this now. Started with a 55.9MB mp4 at 21 seconds long, 60fps, 480p.

The line of code ended up being

 ffmpeg -i input.mp4 -c:v libvpx -b:v 3047000 -c:a libvorbis output.webm 

webm related is the outcome.

Pretty good.

When I first tried it I just set a file size limit and let ffmpeg decide on the bitrate to reach it. Ended up always being way under (~5MB) and garbage quality. Thanks for the script, anon.


 No.5942

>>5921

Use vp9, jesus.

For a board called /webm/, y'all sure are behind in the technological arms race.


 No.6035

here's another link, I wouldn't recommend using it, but I saw it wasn't here: https://www.cloudconvert.com


 No.6079

>>5942

ffmpeg changed their default codecs to vp9 and opus, so you won't have to add

 -c:v libvpx-vp9 -c:a opus 

anymore


 No.6194


 No.6231

>>5595

m8, could you make a video expaining how to use ffmep?

I still dont get it

>inb4 retard


 No.6331

File: 1445062549591.webm (5.16 MB, 1920x1080, 16:9, How to Make a WebM!.webm)

Let me add that Xmedia Recode now allows Tile Columns which speeds up encoding time greatly, this to 64 for 6-10x faster encode speeds


 No.6332

>>6331

It's been in there for quite a while. Small heads up: using it does impact quality, but luckily only very little.


 No.6333

>>6332

Yeah I notice almost nothing

Still better doing an encode in 1 hour vs 20


 No.6336

File: 1445091737705-0.webm (1.2 MB, 422x422, 1:1, sail.webm)

File: 1445091737705-1.webm (3.85 MB, 768x768, 1:1, fifteen men on a dead man….webm)

I'm trying to make a webm with ffmpeg using an mp3 and a png. I was able to do this successfully once, but I've been unable to replicate those results. The sound is fine, but there's no thumbnail and on 8ch the image comes out looking weird. First webm is the result of recent efforts, and the second is my only success.

Anyone know how to stop webm 1 from happening?


 No.6358

File: 1445273179694.webm (1.17 MB, 422x422, 1:1, sail-remux.webm)

>>6336

It seems it was just a little ffmpeg hiccup. The streams played well seperately, so I just remuxed the original without any changes and now it works.


 No.6359

>>6358

Ok I see, that's indeed weird…

At least my media players play this one, but I have to check why the browser is having issues.


 No.6361

File: 1445273942541.webm (32.44 KB, 480x360, 4:3, ow.webm)

>>6336

Found it (at least I'm 99.9% sure this is it).

The video file is just 40ms long, while the audio is 1m59.

8chan picks out the middle keyframe for a thumbnail, which it can't do when the video track doesn't reach to the middle of the entire media file.

I would expect it to at least show the picture while playing though. Video and audio don't have to be the same length, but maybe that's just because of it's very short duration.

You just need to make the duration of the picture-video track about as long as the audio. I know it's a bit ridiculous (just a load of wasted data), but that will solve the problem..

Wouldn't be surprised if it would at least play if you made the videotrack just somewhat longer. Webm included has a longer audiotrack too, just not much.


 No.6365

File: 1445389431718.jpg (69.92 KB, 900x500, 9:5, subs (3).jpg)

I'm using ffmpeg and I want to re-encode a .mkv into a hardsubbed .mp4, there are multiple sub tracks though, what do?


 No.6393

>>6361

How do I do that? I can't find anything about it elsewhere.


 No.6394

File: 1445718449844.webm (1.3 MB, 422x422, 1:1, sail3.webm)

>>6393

Sorry, forgot to add that. Look here:

>>5593

The -loop 1 (loop the image) combined with -shortest (end when audio ends) option are what makes it work.

Good luck


 No.6398

>>6394

>>6393

P.S. Found a strange bug where using a png for input sometimes produced a corrupt webm. Converting it to a jpeg first fixed that. So, if you run into a similar problem, even while doing everything right, try that.


 No.6401

Quick question for XMedia Recode users: whenever I try to make a webm out of a longer webm, the beginning of the new webm is sometimes a few seconds ahead of where I set the start frame, and sometimes there's no audio playing until it hits the start frame. What the hell am I doing wrong?


 No.6403

>>6401

I'm guessing you're using copy mode, not convert? if not, then I don't know.

In copy mode the webm always needs gets cut at the start of a keyframe. It automatically picks the keyframe before the point you chose. There is no way around this except for making a whole new encode.

Not sure about the audio part, but I wouldn't be surprised if the cases where that happens the audio is set to convert, while video is set to copy. Xmedia tends to remember the choice for one, but forget the other when converting multiple files.


 No.6404

>>6403

Copy, yeah. Is there a way to find keyframes?


 No.6408

>>6404

Very easy. Whenever you use the seekbar to find a location in a video, it will only show keyframes. When you made a selection and you use the preview function ( ►| ) it will always start from the nearest keyframe too, even if you plan to use convert and not copy.

Exactly pinpointing it in time is harder with xmedia recode, but not necessary for copy mode anyway. Just use the seekbar until you see the frame you want to start from and click mark start ( [ ). Exact time doesn't matter because it will start copying from there anyway.


 No.6418

File: 1445925269947.webm (5.47 MB, 1920x800, 12:5, Ratchet & Clank Film Trai….webm)

>>6331

Another update

Did some digging into how VP9 encoding works, apparently setting CPU threads to X amount speeds up speed greatly, even with a 2 core machine etc

According to the information VP9 only allows X calls per cycles, so if you have say 10 cycles per second, it setting more or less CPU threads will not cause errors etc in encoding, because setting it to 32 threads its still doing the same amount of calls per cycle, just putting far more load per cycle per CPU call

Try it, Set Tile Columns to 64 and CPU threads to 32, I've encoded minute long 1080p animations in less than an hour and quality is amazing

Provided an example, encoded in an hour and 5 minutes, down from the 6-7 hours it used to take when tiles was set to 1 and CPU threads was set to 12


 No.6419

File: 1445925447302.webm (7.89 MB, 1280x544, 40:17, Ratchet & Clank Official ….webm)

>>6418

And this just finished in an hour and 49 minutes


 No.6436

>>4899

>When I am trying to convert videos with large times using Webm for Retards I end up having the audio not being in sync with the video. Does anyone know how I can fix this

I get this same problem. Help plz?


 No.6460

>>6418

>>6419

What's the spec of your PC?


 No.6461

>>6460

I did the top on on a 7 year old laptop

The bottom one on a 4770K


 No.6481

I figured this'd be the thread to ask this, but if it's not just tell me.

Anyone knows a good WebM program to try converting pixel art (old game stuff)? I have XMedia Recode and it works well for everything else, but everything I try for those look like shit and blurry.

Thanks in advance


 No.6489

>>6481

It's not the fault of xmedia, it's the vp8/9 codec. You could try SSIM instead of PSNR, but vpx doesn't have a dedicated (animation) mode like x264 has. Have you tried changing the sharpness settings?


 No.6512

File: 1446951927916.webm (7.89 MB, 800x450, 16:9, Genos vs Saitama sparing.webm)

>>6481

When it comes to animation, the more ref frames, the better


 No.6513

File: 1446952085498.webm (2.69 MB, 1920x1080, 16:9, Don t Touch Pac-Man.webm)

>>6481

Another example


 No.6514

File: 1446952440375.webm (7.11 MB, 1280x960, 4:3, FLCL Batter up!.webm)

>>6481

last example


 No.6515

File: 1446952825672.webm (7.71 MB, 1920x1080, 16:9, Gravity Falls Stan takes ….webm)

Sorry two more examples that VP9 can easily do animation, I argue its the best to do animation with other than h265


 No.6516

File: 1446952967002.webm (7.08 MB, 1280x720, 16:9, Gravity Falls Taking Over….webm)


 No.6518

>>6515

Great, someone who can hopefully explain something about these reference frames.

The info I found about them is rather lacking. Last I read is that the automatic reference frames themselves act like b-frames, which is all good. However, I understood the settings -alt-ref-strenght and max-frames are used for an experimental mode that uses frame blending, but which in "some cases" could improve the image. What cases? Not mentioned (animation perhaps?).

I really want to know when to use these settings. Right now I do turn alt-reference-frames on, and set frames to lag to 25, which is also what the recommended settings say, but I would really like to know when (and how best) to adjust the maxframes & strength settings.


 No.6527

>>6489

>>6512

It's about pixel art more than animation, and the original codec is TechSmith's (Camtasia's) which I don't know makes matters worse.

I had never tried messing with Sharpness or the things from that tab so I'm not sure how to proceed. I tried VP9 but it just crashes XMedia Recode apparently with both SSIM and PSNR.


 No.6542

File: 1447286342570.webm (1.26 MB, 712x544, 89:68, ff.webm)

>>6527

Yeah. It sometimes does that. I had the same thing when encoding an emulated c64 game I recorded with fraps. Usually there's no problem though. Maybe it's a coincidence, maybe not.

Not sure how, or if I fixed it, but in any case you could try ffmpeg commandline, or another encoder like MediaCoder, or Hybrid. Those a bit more complex to use though. Maybe there are easier ones, I just don't know any myself.


 No.6546

File: 1447344545424-0.webm (3.69 MB, 712x544, 89:68, hn-vp8.webm)

File: 1447344545425-1.webm (2.59 MB, 712x544, 89:68, hn-vp9.webm)

File: 1447344545425-2.png (16.77 KB, 680x624, 85:78, hn-original.png)

>>6527

>>6542

I realized that probably wasn't the greatest example, because "CRT emulation" was turned on, so it looks blurry by default.

I made these with xmedia, and they both look quite clean imo, especially considering the bitrates. I included some enlarged screenshots to compare.

Is this different or about the same as what you get?


 No.6547

File: 1447344597041-0.png (38.8 KB, 692x648, 173:162, hn-vp9.png)

File: 1447344597041-1.png (35.56 KB, 704x608, 22:19, hn-vp8.png)

>>6546

3 attach limit? ah well.


 No.6556

>>6546

They're a whole lot cleaner than what I get - it's blurry and spotty, full of JPEG artifacts.

Could you post your settings? Maybe that's what makes the difference.


 No.6557

File: 1447366168124-0.png (13.73 KB, 372x510, 62:85, 2015-11-12 22_55_49-XMedia….png)

File: 1447366168125-1.png (12.81 KB, 363x489, 121:163, 2015-11-12 22_53_22-XMedia….png)

>>6556

Settings aren't very special. This is what I used (maybe bitrates were a little different) and I had also checked the "automatic alt reference frames" in the "alternate reference frame" menu. Pretty much my standard settings.

I played around with the PSNR and SSIM for testing, but they didn't seem to matter much, so don't worry about those.


 No.6560

File: 1447456063589.webm (7.51 MB, 512x448, 8:7, Main Stage Speed Run.webm)

>>6557

Ahh, I was following the settings from the "How to make a Webm" video.

This is as best quality as I can manage, so I guess that'll do for now. Thanks for the pointers!


 No.6565

>>6560

No problem! Actually surprised myself how good VP8@150k still looks for retro games.

P.S. If audioquality isn't too important, you can often squeeze a lot more (or better looking) video in 8mb when you make audio mono and drastically lower its bitrate. Even 32k can still sound reasonably in many cases, for opus even lower (especially voice).


 No.6590

>>6518

Encoders have an upper limit of diminishing returns when it comes to reference frames, if you set 25 reference frames for example and the encoder notices that by say reference frame 10 its not getting any difference in quality, or the difference in quality is below the Quality threshold settings it dumps the other 15 and starts rendering the next frame

Alternate reference frames of 25 with a strength of 6 guarantee's that at LEAST 25 reference frames will be used, possibly up to 50 if the source is complex enough.

I've hardly ever gotten media to use 50 reference frames, its rare but it happens. You'll notice when it happens when rendering if an encode goes from like 2-5 hours for a encode to 20+ hours


 No.6720

Is there a converter that will split the video into multiple files if it hits a filesize limit? Kind of like what WinRAR is able to do


 No.6721

File: 1448725439477.png (45.41 KB, 966x645, 322:215, 2015-11-28 16_41_32-MKVToo….png)

>>6720

You can split them afterwards with mkvtoolkit.


 No.6761

I apologise for being retarded but in ffmpeg, if you want to only use a section of your input video, what part of the command is in regards to the start and end of that?


 No.6781

>>6761

-ss <starttime>

-to <endtime> OR -t <duration>

The location of -ss has some effects on the way seeking is done, but for simplicity, just put these commands after the input.

Example (this cuts a part from a webm):

ffmpeg -i input.webm -ss 0:33.123 -to 1:25.456 -c copy cut.webm


 No.6834

>>6781

Thanks, man. That makes sense.

Is there a tutorial for ffmpeg written for retards? Especially in regards to changing the format/file type of the video (e.g. .mp4 to .webm). The one on the site is for people who know what they're doing.


 No.6835

Does anyone know how exactly lag-in-frames and auto-alt-ref affect the quality and filesize?

And in general, just what it does?

When I tried encoding something with lag-in-frames 25, auto-alt-ref and -arnr-strength at 3, it gave me a larger filesize…

I'm not sure the quality increased too.

I thought it changed how many frames the encoder looked ahead, so it would decrease the filesize and increase quality for animation.

>>6781

When I tried doing this, I had to put -ss before input in order for it to work, otherwise I got a segmentation fault.

>>5833

bumping this. Whenever I encode shit, the bitrate increases as I encode the video, which is really fucking annoying.


 No.6887


 No.6888

Would anyone know how I would convert stuff to webm while retaining the same quality? It seems like I have to keep converting to webm via trial and error to get the right bitrate. I'd like to be able to convert an entire folder of porn without having to try each and every video individually guessing the bitrate.


 No.6897


 No.6912

>>6897

Pretty good. You don't need to add -c:v libopus and -c:v libvpx-vp9 anymore if you want to encode your video as vp9/opus. They are ffmpeg's standard codecs, so when you name your outputfile *.webm it uses vp9 and opus automatically.


 No.6951

File: 1451449085200.gif (7.6 MB, 480x270, 16:9, source.gif)

Question: has anyone else experienced glitched outputs when converting short gifs with auto-alt-ref on?

Here is the source file for this example.


 No.6952

File: 1451449238213-0.webm (1.05 MB, 480x270, 16:9, auto alt ref 0.webm)

File: 1451449238214-1.webm (912.06 KB, 480x270, 16:9, auto alt ref 1.webm)

Here are the outputs, the only setting changed was auto-alt-ref, all other parameters are the same.


 No.6956

>>6951

>>6952

Not until now. This is the first one that showed these particular problems, although I don't convert gifs a lot myself. I did have a few slightly related problems converting non-lossy picture formats to video with ffmpeg. Ffmpeg is far from perfect. I tried this gif with VP9 instead and then it shows a yellow line to the right, but at least it doesn't glitch. Sometimes that stuff just happens. Usually I'd suggest giving avconv a shot instead, but that one has its own problems with animated gifs.

If the alt-ref setting is very important you can always extract the frames and build a webm straight from those, but in this case it's probably not worth it..


 No.6959

>>6956

Oh it's not a very big problem for me, it's just somewhat unexpected.

So the problem is more to do with ffmpeg than VP8/9?


 No.6960

File: 1451554240819.jpg (73.32 KB, 800x578, 400:289, 4414af_4728155.jpg)


 No.6977

File: 1452035219884.webm (460 KB, 480x270, 16:9, gif2vp8-out.webm)

>>6959

I cannot be 100% sure, but as similar problems have often been solved by trying another encoder I would say it's very likely. Here is a VP8 version with all options enabled made by extracting all frames to separate images, then turning them into a webm with avconv.

You can quickly extract all frames with imagemagick using the following command:

convert -coalesce source.gif out%05d.png
(p.s. if you use windows, know that convert will probably get path issues with the system's convert, so just rename it)

You can then use the same as input for avconv/ffmpeg (so simply "-i out%05d.png"). Don't forget to set the framerate before the input though. In this case "-r 10", because that information is lost when extracting frames.


 No.7015

>>2961

If we're doing a 2 pass why do we have the null at the end of pass 1? As I understand, that makes sure no file is outputted is intended for benchmarking purposes.


 No.7022

There's something wrong with my .webm. I can't actually post it on this site at all. I hate to advertise other chans so if mods wish to remove my post, that's okay but here's my .webm, right at the bottom:

https://sushigirl.tokyo/tunes/res/49.html

The .webm runs fine on that page. You'll notice that when you try to open it as a separate, direct link, you get weird writing. I've tried everything I know and I don't see the problem.

All I've done is crop out a section of a piece I liked with Audacity, made it into its own .flac and then made that into a .webm. Following youtube Audacity tutorials and using WebmForRetards, it all seemed fairly simple. I genuinely don't see what I could've done wrong.


 No.7030

>>7022

webm is a media format, meant for video with or without audio. Technically it's perfectly capable of containing just audio (making it a .weba), like yours does, but browsers and websites will usually expect video content included.

Plain audio webm/a doesn't really make a lot of sense, because audio is already contained within it's own container, so putting it in a webm would make it double. Therefor, websites that allow webm, but not ogg/flac/mp3/etc usually do this to prevent becoming a music sharing service, so they check if video is included before accepting.

TL;DR: your file is technically fine, but to make it accepted here you should include some video, if only a static image in vp8/9 format, see >>6394


 No.7032

>>7015

The first pass doesn't make any video yet, it just collects data from the source video, so when the actual encoding begins (pass 2) it knows what to expect and can prepare (like distribute bits) accordingly.

I'm not entirely sure why a null output has to be included though. I'd say that's implied when doing a first pass. Maybe it's for those who also want to have a draft version before the final, who knows.


 No.7047

>>7030

Thank you!


 No.7102

File: 1453295009827-0.webm (1.18 MB, 962x824, 481:412, wybm-demo.webm)

File: 1453295009827-1.webm (3.02 MB, 1280x1024, 5:4, wybm-demo2.webm)

File: 1453295009827-2.png (534.88 KB, 962x825, 962:825, wybm-4.png)

Repost from /a/.

This utility allows you to download & cut to limit any YouTube clip within few seconds.

It works on both Windows and GNU/Linux. Installation/usage is very simple, see attached demos.

Code & releases: https://github.com/Kagami/wybm/releases


 No.7199

File: 1454910101364.jpg (131.05 KB, 800x800, 1:1, 12400793_1149389221745365_….jpg)

hello, used ffmpeg again after not too long. managed to make the webm, but when i want to post the webm, it does not let me. i have no idea why. tried looking for solutions but nothing. if someone is able to help me, i would appreciate it. thank you.


 No.7200

File: 1454948720294.webm (7.81 MB, 1920x1080, 16:9, How to make a WebM 2016 e….webm)

Thought I would upload my edited version of the "How to make a webM" here


 No.7201

File: 1454949182132.webm (7.99 MB, 1920x1080, 16:9, Simpsons couch gag by Syl….webm)

>>7200

Also let me add that the new 2pass in FFMpeg is fucking amazing quality, they updated it like a month ago


 No.7208

>>7199

You may want to give a bit more information than that.


 No.7210

File: 1454985571965.png (85.29 KB, 294x258, 49:43, 1452463892588.png)

>>7208

>>7208

well, i used ffmpeg to convert an mp3 file to a webm as well as looping an album cover art.

i use this code to do so: " ffmpeg -loop 1 -i <album art image> -i <sound file> -crf 10 -shortest output.webm "

when i try to post the webm, it hits 99% and a message pops up saying "invalid webm uploaded". maybe im doing something wrong. im not to sure. hope this is enough info


 No.7211

File: 1454986134642.jpg (47.55 KB, 800x445, 160:89, 1452413445276.jpg)

>>7208

gonna try xmedia when the weekend comes. though if you are able to help me in anyway with the ffmpeg situation, i would appreciate it.


 No.7212

>>7210

You've probably stumbled upon one of the (many) ffmpeg bugs. For some reason it can give all kinds of errors when the input is a lossless picture, so if your image is not a jpeg, that is probably the reason.

There are two solutions. Either convert the image it to JPG before encoding of course, of try libav/avconv as converter instead. It's a fork of ffmpeg by people who wanted to clean it up. Sadly it barely gets any updates, but it's usually a good alternative if ffmpeg bugs out.

>>7211

xmedia doesn't do images, only video.


 No.7213

File: 1455060075742.jpg (67.12 KB, 400x280, 10:7, 1452400581615.jpg)

>>7212

the image is a jpeg. i made sure of it. though i will try libav/aconv for sure. thanks for the help and responding. i appreciate it.

oh, and thanks for the heads up about xmedia


 No.7214

File: 1455112642386.jpg (31.85 KB, 564x423, 4:3, 8decf87b0bfd5316da21842a2d….jpg)

>>2573

http://www.mirror.co.uk/news/weird-news/watch-insect-breeder-playing-creepy-7328511

Not sure if you can webm the footage from this video but please take a look. That spider is pretty monstrous with those long arms and snippers.


 No.7215

>>7200

thanks for this, going to try it


 No.7218

File: 1455140816450.webm (7.96 MB, 854x480, 427:240, Euphrynichus amanica.webm)

>>7214

This is not the request thread, but that's a cool spider.


 No.7222

>>7218

Ah, I love tailless whips. They think they're so ferocious, it's hilarious.


 No.7338

>>6960

starcraft pros


 No.7490

Can one of you maybe tell me how to fix a fucked up webm?

So I used xmedia, I cut off 10 seconds from the start and a few from the end and then hit encode.

But the encoded file has still the 10 seconds from start and end, but the screen is gray in those parts. What is the fastest way to cut that shit out?

No idea why this happened, I probably crated 50 webm's by now and this is the first time this happened.


 No.7532

File: 1459912746535-0.jpg (142.84 KB, 1049x600, 1049:600, 2016-04-06_05-15-12.jpg)

File: 1459912746591-1.jpg (85.42 KB, 424x794, 212:397, 2016-04-06_05-13-39.jpg)

File: 1459912746593-2.jpg (28.27 KB, 414x386, 207:193, 2016-04-06_05-13-58.jpg)

Can you guys help me out with this shit?

I just recorded some gameplay using a software called "Action!". The gameplay is in .avi. For some unknown reason xmedia doesn't recognizes the video.

So I thought I make the video in adobe Premiere instead. The problem is the video looks like shit while it has a huge file size.

I first set bitrate to 800 because that's what I do in xmedia. The filesize was 2mb but the video looked like total trash. So I tried 1.500 instead, the file size is now 5mb while the video still looks like shit.

Any idea how to if this or what to do in adobe premiere to make the videos look better?


 No.7619

>>5921

what's that game called?

Also can someone explain to me why it takes so long to encode in xmedia? Adobe Premiere and Sony Vegas are way faster while doing the same.


 No.7621

>>7619

I think the game is DeadCore.

About speed differences, that can have multiple reasons. If you were truly doing the exact same thing it could be because the commercial products have (better) Cuda/OpenCL support.

The other reason would be that you're not doing the exact same thing. Say, using vp8 instead of vp9, or using different settings, like "best" (which is sadly the default for xmedia) instead of "good" for vp9 (for vp8 it's fine), which slows the process down about 20x for a barely noticeable quality gain. You should not use "best" for vp9, it's not worth it.


 No.7634

>>7621

What about realtime in xmedia?

I still have some problems in premiere, like sometimes it just adds black bars around my video for no reason even thought the output res is same as input one.


 No.7635

File: 1461808778919.webm (Spoiler Image, 6.27 MB, 1920x1080, 16:9, mia.webm)

Premiere fucked up again. Can anyone explain this to me, why is mia.webm in a decent quality but mia1.webm, as well as mia2 and 3 in shit quality?

I used the same settings for all. All I did was to split the long ass video into short 1 min parts.


 No.7636

File: 1461810320984.webm (Spoiler Image, 6.91 MB, 1920x1080, 16:9, mia1.webm)

Now look at mia1, why does it look so shit even thought it has the same settings?


 No.7637

I really want to use adobe premiere, for several reasons. The editor is nice, but the more important part is, it allows me to pause the progress and continues even after a reboot.


 No.7644

>>7634

Realtime is meant for live streaming. It is a setting that will try encoding at the same framerate as the output video. It's the fastest setting, but you will get a lower quality/bitrate ratio. Use it if encoding speed is more important than filesize.

>>7635

>>7636

>>7637

The difference in quality has to do with the source material.

In the first video, it's all pretty much static, except for some slow camera movement, which is very easy to process and encode for modern video codecs.

The second video has water in it. This water not only has a lot of movement, it's also very random and chaotic. It's like noise: completely different at every frame. This make it hard to predict and reuse for the encoder, so it wastes a lot of bits on trying to encode the water just as well as the rest, even though for us it's just background.

Maybe future codecs will get even smarter, but for now you can't really help this. You'll just have to accept the lower quality, or higher required bitrate for those specific scenes.


 No.7645

>could not purge

Haven't seen that error message here yet.


 No.7646

File: 1461939186947.png (1.55 KB, 505x82, 505:82, 2016-04-29 16_12_04-_webm_….png)

Haven't seen that error message here yet.


 No.7651

/wake thread


 No.7653

Pretty sure there used to be a tool that could convert YouTube videos to time-cropped webms in one single step.


 No.7667

>>7653

There should be one. They use DASH so it should be possible to select a range and get that instead of the whole video, yet every tool I found so far downloads the whole video first.


 No.7684

>>5594

>unknown encoder '500k'

what gives? I just want to make low file size webms without sacrificing (too much) quality. Send help.


 No.7689

>>7684

Post the exact commands you used.


 No.7690

File: 1462422165169.png (31.43 KB, 677x685, 677:685, nowebm4u.png)

>>7689

>ffmpeg -i dark.avi -ss 00:06:05.000 -to 00:06:52.000 -c:v libvpx-vp9 -c:a opus -c:v 500k -b:a 96k -cpu-used 0 darkoutput.webm

Basically the same as the post I replied to but with the added -ss and -to commands.


 No.7694

>>7690

-c:v 500k

should be

-b:v 500k


 No.7695

Is there anyway to fool a site which only accepts VP8 webm to accept a VP9 stream?

I tried changing the video id like so:

mkvpropedit foo.webm -e track:1 –set codec-id="V_VP8"

But naturally that makes the player also try to read the video as VP8, and it crashes.


 No.7697

>>7694

Thank you, good sir.


 No.7713

File: 1462852025871.jpg (9.71 KB, 240x250, 24:25, 1398499176637.jpg)

>>6557

>>7200

What's the secret to getting resized webms not to look like absolute ass? I get compression artifacts all over the place.


 No.7715

>>7713

I fucked around with something and fixed it. Could have been setting Quality from "best" or "good" to "real-time".


 No.7727

File: 1462975824187.webm (6.44 MB, 1280x720, 16:9, Starships size comparison….webm)

Do you guys know why some webm's end up with no thumbnail? This happens to me a lot lately while it never happened back then when I was using xmedia.


 No.7738

>>7713

When resizing use lanczos which is the industry standard for resizing

Or if you have staxrip, use lanc4zos which is basically that but on overkill


 No.7769

File: 1463699796905.png (24.39 KB, 397x341, 397:341, screenshot.png)

You guys have any idea what to put into the custom arguments text field for best results?


 No.7770

>>7769

for example, can I somehow use my xmedia settings in there? like max number of frames to lag, or tile clumns and crap like that.


 No.7792

>>6331

What do I have to do in order to get that program to do vp9 video? VP8 encodes just fine but VP9 just quits on me after ~30 seconds.


 No.7829

>>7792

Install a slightly older version. The latest is bugged again. Happens a lot.


 No.7885

File: 1465738531679.webm (6.31 MB, 360x270, 4:3, Parov Stelar - Catgroove ….webm)

I am still trying to figure out why some webm's end up having no thumbnail. Here is a webm I made in xmedia. It should have a thumbnail


 No.7886

File: 1465738576444.webm (6.5 MB, 644x270, 322:135, Parov Stelar - Catgroove ….webm)

Now here is the same webm created with adobe premiere, this one has no thumbnail.


 No.7893

>>7886

Yeah, the premiere one seems to be slightly corrupted. I think there's something wrong with the keyframe indextable. Most players seem to have at least some problem seeking through the content, or flip out when you do. It would explain the missing thumbnail, because that's simply a grab of the centermost keyframe, which in this case, can't be found correctly.


 No.8003

>>2573

this tutorial fucking sucks, it's as bad as that shit tutorial webm.


 No.8021

File: 1467967621010.webm (979.13 KB, 480x480, 1:1, butthurt-faggot.webm)


 No.8032

>>7893

>I think there's something wrong with the keyframe indextable.

Do you happen to know a way to prevent that from happening or a fix? Sometimes when I open a video in vlc it asks me if it should fix the index of something, would something like that help?


 No.8034

>>8032

I can't help with prevention. Best I can say is to use another encoder, considering it's one particular encoder that always generates these problems. Send a note with a corrupted file to the developers perhaps, they may be able to fix it.

About fixing the streams: technically, if it's playable, it should be fixable. The problem is that someone needs to have written a repair tool that rebuilds the index (assuming that's truly it) and I don't know if any of those tools exist. VLC can do it for certain files, but I don't think it can do this with webms. It's just not as common of a problem as it used to be in the AVI era. Best bet it to just re-encode it. You may lose a bit of quality in the process though.


 No.8037

>>8034

I am using this guys plugin https://github.com/fnordware/AdobeWebM maybe he is going to be able to help me out here.

Because I noticed that certain videos just end up broken once turned into a webm, no matter what settings I use or even if I make totally different cuts.


 No.8082

>>8037

that guy was nice enough to help me out here.

>my personal preference is somewhere in the 1-10x frame rate range, so for 30 frames/second input, 30-300.

so what you basically do is you look at the fps and then you x10 it.

–kf-max-dist=300 if your video has 30 fps.


 No.8094

>>8082

I'm a bit confused by that answer. The default maximum distance between keyframes should not be the reason why they get indexed wrong.

Then again, he probably knows his own software best, so if that happens to fix the bug, then that's great.


 No.8110

>>8094

"This is basically an encoder settings problem. The file has only 2 keyframes, 1 at the beginning, and then none until 3:56 (just before the end).

Chrome doesn't like that– possibly a conscious choice to avoid the processor intensive work involved in this sort of a seek since all frames between the scrub start and stop points must be decoded before frames can be shown at the scrub stop point.

VLC shows the first few frames and then garbage for me when I play this file. I can try later on when I have access to a more up-to-date build of VLC (on my desktop here I must run an oldish custom build because $reasons).

But, regardless of my VLC troubles, if you want this file to seek properly in chrome some more keyframes will be needed."

That's how he explained it.


 No.8112

File: 1469046864165.webm (6.86 MB, 711x1000, 711:1000, Rob Dougan - Clubbed To D….webm)

Can you guys help me figure out why my webm's turn out so huge?

I want to recreate my webms that don't have thumbnails, problem is, they end up being 50-200mb for some reason.

I formatted my computer a few weeks ago, tried to backup everything but you know how this shit goes, people always forget some things.

I have lost my plugin for importing flacs.

So what I do now is I import a picture, then the .flac and use my usually settings then I hit export.

But instead of getting my 3-7mb webm's I end up getting these huge fucking webm's. Is there a way to reduce the size? I already turned down audio quality.


 No.8122

File: 1469217461873.webm (Spoiler Image, 7.72 MB, 800x450, 16:9, tngfbobbirocco.webm)

>>8112

is it maybe possible to make decent music webm's with cmd? Is it possible to take a picture, add some music to it and turn that shit into a webm using ffmpeg?

And another thing, my 23 fps videos always turn out like shit, you guys have any idea why?

This is a recent example, but movies that I turn into webm's look the same.


 No.8132

I am lately getting this "Invalid webm uploaded." error when trying to upload a webm created with xmedia, one of you happens to know why?

uploaded it here https://mega.nz/#!nEt1BThL!myaAo3vZR4cMuYXdyOxjhUBdd_ILfloQhbAttBrvzAc can one of you maybe check that file?


 No.8140

>>8110

This all made me curious to what the default value for the max keyframe distance/GOP length is. Apparently it's set 5 seconds by the official encoder, but the for the recommended "best quality" they suggest changing it to 9999 (frames). I'm guessing that the creator took that advice for his plugin and I can't really blame him for doing so. He just wanted best quality.

Normally keyframes/i-frames would be automatically inserted at scene changes anyway, as max-length is just a restriction, but the video(s) you've been using are one-shot takes, so there was no incentive for the encoder to create new keyframes as most visual information doesn't change much per frame.

Anyway, if you put "9999" in the GOP length box in xmedia you should get the same results as the premiere plugin, assuming there aren't any other non-default settings.

I'm still a bit confused why the thumbnail grabber didn't simply take the first keyframe though, but I suppose it has it's reasons/bugs.

Anyway, just can forget about this stuff. I just wanted to make sense of this all myself.


 No.8141

>>8112

>>8122

I don't know what software and settings you're using, but assuming the audio encoder settings are pretty standard, it's most likely the video getting too big.

This post has an example of encoding music and a picture:

>>5593

Some settings are now obsolete/unnecessary. This should do the same while shorter:

ffmpeg -loop 1 -i input.jpg -i input.flac -r 5 -b:a 96k -shortest output.webm

(!) Using anything but a jpeg could cause problems for some reason.

Most default settings are good enough, so this should produce a small file, but further tweaking is possible. Very low bitrates and variable, or quality based (not constant!) bitrate encoding is most important. Lower framerates help too (it's not like things move). With small static pictures there isn't much visual information, so the video can be remain very small (even below 10kbps they should be good). How this translates to your software, I don't know, but I hope this helps.


 No.8142

>>8122

>This is a recent example, but movies that I turn into webm's look the same.

I can't really tell what the problem is. Am I missing something? It looks exactly like the quality I'd expect from a 4 minute long 8mb video at such a resolution. Actually, I'd expect worse, considering they're not exactly still images. I doubt you can do much better than this in vp9.


 No.8143

File: 1469380112847.webm (7.52 MB, 648x350, 324:175, The Fountain [Фонтан] (20….webm)

>>8132

The file seems a bit strange for what I'd expect from xmedia, considering subtitles are included and it carries a movie name field. Embedded subtitles aren't supported by webm, only by mkv, but while it looks like an mkv, it has the webm ID. Removing those subtitles and saving it as a proper webm should fix it. Anyway, I don't know what could be the reason for xmedia to make these corrupt webms. I have the latest version (3.3.3.3) of xmedia and it works fine here.


 No.8148

File: 1469473222165.webm (5.79 MB, 960x400, 12:5, [VIDEO] Batman.Begins.200….webm)

>>8142

The problem was that those videos are stuttering, uploading a new one here. You notice how it kinda stops for a short time like every second? Anyway, I managed to fix this by setting the output fps to 30, that way those don't stutter anymore. I will upload a 23 fps one followed by 30 fps.

>>8143

The problem was when I changed those alt reference settings to 25 and 6 I also accidentally hit altref type and changed it from centered to backward. Must have accidentally clicked it. Took me a while to figure it out and I created like 6 corrupted webm's before I finally fixed it.


 No.8149

File: 1469473307134.webm (7.17 MB, 1000x418, 500:209, Batman.Begins.2005.DUAL.B….webm)

>>8148

and here is the 30 fps one. In both cases the source files had 23 fps. When exporting those with 23 fps they would turn out lagging, but when I set it to 30 fps it looks better.


 No.8150

>>8141

I am currently trying this and it takes forever. I don't remember the exact time I started, but at least two hours have passed and I am barely half way in. Is this normal?

Anyway, I think the problem here is me not resizing the cover. The jpg I use is 4997x6972 and about 33mb. Is there a way to rescale this without the picture losing it's aspect ratio? Or should I just use these calculators on the internet? like this one http://andrew.hedges.name/experiments/aspect_ratio/


 No.8151

>>8150

lol, yeah, that's insanely big for a video picture. I kinda hinted at using small ones in my original post, but big sizes are technically possible, as long as you can deal with the obvious consequences. Anyway, I assume you know how to resize a picture? That would be the best solution. Unless you really want to have such large pictures as video (can't imagine, but hey). Then I can only advise upping the encoding speed setting, by adding f.e. "-speed 4 -threads 16 -tile-columns 6 -tile-rows 2" to the command line. This will increase the video size a little, but the encoding speed will probably more than double (depending on CPU and picture size).


 No.8152

>>8151

>>8150

>Is there a way to rescale this without the picture losing it's aspect ratio?

Oh, wait, I guess you don't know how to resize.

Well, even most picture viewers support resizing and they pretty much all have the option "keep aspect ratio".

If you're on windows, just download irfanview or xnview, or any of the hundreds of other picture viewers. Open the picture, go to the resize option and change it to something more manageable. You could even use paint, just set equal percentages for height and width in the resize window.

Anyway, I'm sure a simple google search can help you with this if you get stuck.


 No.8153

I am trying again now with new settings, after 3 hours I got a 10mb webm that vlc wont even play lol.

anyway, trying these settings now "ffmpeg -loop 1 -i "Page #11-0000.jpg" -i "songname.flac" -r 5 -b:a 48k -shortest output1.webm -speed 4 -threads 16 -tile-columns 6 -tile-rows 2"

>>8152

>Oh, wait, I guess you don't know how to resize.

Well I do know how to resize a picture, I just didn't remember that resizing the picture was also a option. Idk why, I was kinda braindead there for a second. Probably because I am used to xmedia and adobe premiere where I can just throw in whatever I want and it resizes it itself.


 No.8154

>>8148

>alt reference settings to 25 and 6

You shouldn't use those settings. And if you do, never set them to those values. Those make no sense whatsoever. Only in very very rare cases does changing those values to anything but 0 help, and if you do, being low, like 3 frames max and a filter intensity of like 4. But it's best to just forget about this experimental feature.

The alt-ref type doesn't even function yet, so you can change it to anything you want, it doesn't do anything.

Anyway, those settings couldn't be the reason for he file being corrupt the way it was. The corruption was in the webm container, the video itself was fine.


 No.8155

File: 1469489026970.webm (7.98 MB, 2048x1152, 16:9, How to Make a WebM! 2016 ….webm)

>>8154

I did that because it was recommended in the attached webm.

I think it is due to the alt ref changes. Because I made 4 webm's, non of them could be uploaded. So I deleted them and tried again and they once again couldn't be uploaded.

So I checked my settings and I noticed that I had changed Ref type from centered to backward. Once I put it back to centered the new webm's could be uploaded. I didn't change anything else other than that one.


 No.8156

>>8153

I should've mentioned where they should be located, because ffmpeg can be picky about it. I'm not sure if they won't simply get ignored if you put them last like that.

ffmpeg -loop 1 -i "Page #11-0000.jpg" -i "songname.flac" -r 5 -b:a 48k -speed 4 -threads 16 -tile-columns 6 -tile-rows 2 -shortest output1.webm

P.S. I see you lowered the audio bitrate to 48k. Considering you use flac as originals, be aware that the music will start to sound kinda crap, even with opus.


 No.8157

File: 1469489432052.webm (3.39 MB, 716x1000, 179:250, output1.webm)

thanks for that. Now idk if they got ignored or not, but this time it got encoded really fast. ~10 min vs 3 hours is a improvement lol.


 No.8158

>>8155

>For quality, select realtime

Yeah, I stopped watching there. I think this is a troll video (comically done though, got to hand it to 'm).

Realtime if for live streaming and will seriously restrict quality in favor of keeping up with the framerate. You should always use good for regular videos. Best would be used for maximum possible quality, but it has issues for vp9 and is insanely slow too, so "good" is the way to go.


 No.8159

>>8157

Hey great, good to see it all worked out! That file size certainly looks a lot better too.

Music doesn't even sound too bad either at that bitrate, although I'm listening through laptop speakers, so that doesn't say much :)


 No.8160

>>8148

>>8149

The thing with framerates is that it can be a very complex issue. Stuttering has been a problem for a long time, because screen-refresh rate can differ from video framerates giving frame-sync problems. This was already a problem way back in the PAL vs NTSC era, with the 50Hz and 60Hz TV's. There are many solutions to make things look smoother this and most modern hardware or players do this for you, but it doesn't go right all the time. If changing the video from 23 fps to 30 makes it work for you, then apparently the fps upgrade function in your encoding software does a better job than your webm videoplayer does in this case.

Anyway, I'm no expert on the subject, but there's a lot to find on places like the doom9 forums on framerates, changing them and what works best. In case you want to find out more.

For me neither of the videos don't really seem to stutter though, so I'm afraid I can't really help you much more with this.


 No.8193

hi guys. I got some wmv files that are sometimes not working probably. I want to convert those files to a different format so I can later turn them into a webm. Is there a good way to do so? I want those files to lose no (if possible) or little quality.


 No.8319

I managed to run into a new error, anyone happens to know what this means?

Undefined variable: recommendedBoards /srv/http/inc/instance-config.php:176

this happens when I try to upload a webm.


 No.8364

Maximum file size: 8,388,608 bytes

Your file's size: 8,390,835 bytes

hate it when this happens…


 No.8365

>>8364

Been there. Try to remux it with mkvtools, webm mode. It often takes a fair amount of bytes off.


 No.8367

>>2574

>WebM for Retards.

Is unsafe.

Just saying.


 No.8376

File: 1470921911267.webm (4.01 MB, 1066x600, 533:300, How To Webm 8Chan.webm)

There are lots of outdated info and guides in this thread. I'll write my optinions and dump something I've discovered on other sites.

The best and easiest option for webm making is Webm for Retards.

https://gitgud.io/nixx/WebMConverter

I've tried other programs and none can do webms as well as it can. It's not perfect (doesn't always use the latest FFmpeg, has some shady commands by default, doesn't have some useful sliders and has some unnecessary ones etc.) but the GUI cropping and trimming and overlay alone make it 1000x easier to use than FFmpeg.

The only hard thing you need to do when making webms with W4R is how to calculate the bitrate:

>((size limit in MB*8*1024)/video length in sec)-audio bitrate

or here it's just 65536/video length - 96

Some tips if you want better quality or the webm is too big:

-Make sure you're using 2-pass AND VP9

-Lower the resolution. Imo 640x360 is a good minimum value and 1280x720 a maximum.

-Trim the start and end off it they have unnecessary black parts. Also you could make for example a webm of a chorus of a song, not the whole song.

-Crop the black borders or letterboxes off

-Set audio bitrate to 64K

-Changing framerates is not worth it.

Also remember that dark and static videos result in better quality than bright and ones with lots of movement. If you really want to go that far you can play with the AviSynth levels to make dark more dark and white more white so that the video doesn't need to use that much bitrates to them.

I don't get why people use Xmedia Recode. It's not open source, the GUI is shitty, it's complicated to use, it has lots of useless stuff and so on. Surely it has lots of options and can result in good webms if you know how to use it, but you can do everything much easier with W4R or FFmpeg.

>>8149

Are you defining the framerate somewhere? Because the movie isn't 23fps, it's something like 23.976fps and if you put it to 24 or 23 it needs to some additional frames.

Overall you should never touch the framerate or things like your webm happens

>>8367

What do you mean?


 No.8377

File: 1470924626187.png (134.54 KB, 1210x684, 605:342, 2pass.png)

Most of how to use FFmpeg is already explained itt but here's something more:

You always want to use 2-pass and variable bitrate (-v:b), it's the best option. Don't use CRF or constrained bitrate (-crf and -b:v). 2-pass increases the quality dramatically with VP9 and adds keyframes that wouldn't normally be there (for better seeking and quality after the scene changes). To do this use -pass 1 and -pass 2. This happens in two stages. First is:

ffmpeg -ss 20 -i input.mp4 -t 15 -vf scale=960:-1 -b:v 1000k -pass 1 -f webm /null

Then after that use

ffmpeg -ss 20 -i input.mp4 -t 15 -vf scale=960:-1 -b:v 1000k -pass 2 output.webm

The first part goes through the file with those settings and sees what parts need more bits and what less. Then it also checks where the scene changes and adds keyframes to that. The second is where the actual encoding happens but now it's using the data from the first pass.

HOWEVER currently VP9 has a "problem" with keyframes so that if the clip is short and/or has little movement then it doesn't create keyframes other than the one in the beginning. When you seek a webm the browser/player needs to find the nearest keyframe and then seek from there to the part you clicked. So if a video has a keyframe every second there's no problems seeking, but if it only has one and you want to skip to the end of the video it needs to process through the whole video before finding your part.

So to fix this you need to force some keyframes. It's a wasteful technique but currently only one that makes the video seeking work:

1. Make a 2-pass VP9 webm

2. If it doesn't have scene changes and the seeking seems laggy check if it has any keyframes (plotframes is a good program)

3. Add -g X into the code (either in FFmpeg code or the arguments line in Advanced tab in W4R)

X is in what frames you want the code. Usually every ~3 seconds is fine (2 or 4 too), if you make them too dense the video ends up being too big in size. So for 30fps video you can use -g 90. For 60fps -g 180 and so on.

(There is a neat feature in x264 that's called scenecut which chooses the threshold where to insert keyframes (currently VP9 does it in scene changed but not in continious shots) so adjusting that value you can add keyframes even if the scene doesn't change but the video still moves.)

Don't bother using any additional commands other than filters (things like -qmin -qmax, -auto-alt-ref and -lag-in-frames). The reason being that they are often already the defaults or there are some that don't work anymore.

The defaults atm are:

>-qmin 0, -qmax 50 and -speed 1 -tile-columns 6, -frame-parallel 1, -auto-alt-ref 1 and -lag-in-frames 25 -c:v libvpx-vp9 -c:a libopus -pix_fmt yuv420p (plus -v:b 200kbps and -a:b 96kbps)

So unless you really know what they do and want to change them you can do it, but they're the best optimized values and you shouldn't need to change them.

Always use the latest FFmpeg because they update it really frequently and new versions can speed up the encoding times and use better default values.


 No.8378

File: 1470924749694.png (137.83 KB, 1208x683, 1208:683, 1pass.png)

Programs I use and recommend:

Webm for Retards (simple and easy converting)

FFmpeg (manual converting)

PlotFrames (an addition to FFmpeg that makes a graph of the video frames and bitrate)

4K Video Downloader (downloading videos/audio)

VirtualDub (video editing)

Avidemux (video editing)

MediaInfo (file information)

Audacity (audio editing)

VLC/MPC-HC (video playback)

Blender (advanced video editing)

GIMP (image editing)

+ some others


 No.8391

>>8376

nice tutorial you got there.

Can you guys recommend me software to create tutorials like that?

I used to have a yt channel in like 2008 (?) or something like that. I was creating tutorials on how to pirate games back then which got my account deleted lol. Anyway, I forgot wtf I used back then. I think It was camtasia, but the thing is, I pirated it a few weeks ago and it is a pain in the ass to use. Maybe I used sony vegas, idk to be honest.

But I noticed that simple things are a pain in the ass to make, e.g. pause the recorded video so I can add text and explain shit. I remember this being really easy, but I have no idea how I would do that in adobe premiere today.

Anyway, if one of you has time one day, can you please give me some tips on this?


 No.8397

>>8391

Sony Vegas or Adobe Premiere Elements are the most common video editors today.

>pause the recorded video

There's a freeze frame option. It's not that hard, just get either of those and experience yourself.


 No.8417

[mp3 @ 0000000000d38220] Header missingkB time=00:06:40.05 bitrate= 60.2kbits/s dup=0 drop=8095 speed=6.12x

Error while decoding stream #1:0: Invalid data found when processing input

frame= 2042 fps= 31 q=0.0 Lsize= 2965kB time=00:06:48.20 bitrate= 59.5kbits/s dup=0 drop=8164 speed=6.16x

video:440kB audio:2386kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 4.921289%

guys, how do I fix this? I tried to make a music webm using this >>8156 but it doesn't work.


 No.8418

>>8417

post your code


 No.8419

>>8417

>Error while decoding stream #1:0: Invalid data found when processing input

Your source MP3 seems to be somewhat corrupted, or at least ffmpeg doesn't like it for some reason. It does that sometimes.

Quickest fix is to just convert it to a .wav or .flac first using something like Audacity or Ocenaudio, then use that file to make the webm.

If those won't even load the mp3, you may want to get a better mp3.


 No.8433

Is there a tool that lets you download only certain parts of a yt video? There is one that I would like to turn into a webm, but the entire clip is over 2 hours and I don't want all of that.


 No.8435

>>8433

I'm not aware of any tools that will do it for you out of the box, but there are ways.

You can use youtube-dl to get the true video and/or audio urls of the youtube video, then use those url within ffmpeg to grab the part you want.

Here is a quick example for downloading the basic vp8's, because those have audio embedded.

This retrieves a direct download URL for ffmpeg:

youtube-dl -f 43 -g <youtubeID>

This copies the part you want from youtube:

ffmpeg -ss <start> -i "<youtube-dl-output>" -t <duration> -c copy output.webm

You may want to turn this into a script, especially if you want to download other formats that require audio and video downloads separately.


 No.8457

>>8082

I need help with this again. For some reason my webm's end up having no thumbnail again.

I used the –kf-max-dist=300 command and these webm's still have no thumbnail

>>>/v/10506079

>>>/v/10506075

>>>/v/10506060

but the weird thing is, the same webm's posted in /v/ have thumbnails.

>>>/b/6130185

>>>/b/6130186

>>>/b/6130187

you guys have any idea why? I first thought this happened because of this new duplicate feature, but this does not happen for every webm.

because this webm >>>/v/10506117 was already posted here >>8308 and it has a thumbnail.


 No.8460

File: 8174c233254cc81⋯.png (379.23 KB, 854x480, 427:240, keyframe00021.png)

File: 5ae9e1f2b3fc51e⋯.jpg (6.64 KB, 255x143, 255:143, Fredricks-result.jpg)

>>8457

Hmmm.. I've checked the video and I can't really find anything wrong with it. The framerate is slightly unusual, but that shouldn't be a problem. Different thumbnail extractors had no issues at all and there doesn't seem to be anything weird about the rest of it either. The /b/ uploads are gone, so I can't look at those, but I doubt the files would be different there for some reason.

It seems hotwheels had some issues like this before btw:

https://trac.ffmpeg.org/ticket/4362

Although he did build in a workaround for that:

function make_webm_thumbnail($filename, $thumbnail, $width, $height, $duration) {
global $board, $config;

$filename = escapeshellarg($filename);
$thumbnailfc = escapeshellarg($thumbnail); // Should be safe by default but you
// can never be too safe.
$ffmpeg = $config['webm']['ffmpeg_path'];

$ret = 0;
$ffmpeg_out = array();
exec("$ffmpeg -strict -2 -ss " . floor($duration / 2) . " -i $filename -v quiet -an -vframes 1 -f mjpeg -vf scale=$width:$height $thumbnailfc 2>&1", $ffmpeg_out, $ret);
// Work around for https://trac.ffmpeg.org/ticket/4362
if (filesize($thumbnail) === 0) {
// try again with first frame
exec("$ffmpeg -y -strict -2 -ss 0 -i $filename -v quiet -an -vframes 1 -f mjpeg -vf scale=$width:$height $thumbnailfc 2>&1", $ffmpeg_out, $ret);
clearstatcache();
// failed if no thumbnail size even if ret code 0, ffmpeg is buggy
if (filesize($thumbnail) === 0) {
$ret = 1;
}
}
return $ret;
}

When I run this ffmpeg command against your current video I do get a nice correct thumbnail, so what's happening to your videos here could be a whole other issue altogether. It does seem to be a problem that only happens with webm's from that fnord encoder, but the cause of the problems is probably a fault at ffmpeg's side, who just can't deal with it for some reason.

Give this issue a try at >>>/operate/ It could perhaps be solved simply by updating ffmpeg.


 No.8468

File: 5f390e539193a86⋯.webm (6.87 MB, 854x480, 427:240, the vagina tax.webm)

>>8460

operate seems to be a pretty dead board.

Anyway, I think the files are fine, this new update to the board messed something up. I see this happen to others too. You upload a webm, and it is normal, has a thumbnail and everything. But then when you upload the exact same file to a different thread or board it will end up having no thumbnail.

>The /b/ uploads are gone, so I can't look at those, but I doubt the files would be different there for some reason.

lol I got banned from b and my posts got deleted as well.


 No.8510

File: 9b51a8411f2965a⋯.webm (3.21 MB, 640x480, 4:3, macross.webm)

How 2 WebM in Linux

You can download directly from youtube with youtube-dl it's so fucking simple

Let me explain a bit further

youtube-dl -f 43 "someytlink.com"

this will download a vp8 360p webm

but if you want to feel the complete webm flow do it like this

youtube-dl -f 'bestvideo[ext=webm]+bestaudio[ext=webm]/bestvideo+bestaudio' --merge-output-format webm "https://www.youtube.com/watch?v=zE07nT146Q0"

This is how you get WebM videos from youtube.

But most chans dont allow files bigger than 4,8 or 10MB so you need to get them converted.

>have python installed

>install webm.py

sudo pip install webm

and then for 8ch do following:

webm -i myshitty.mp4 -l 8 myshitty.webm


 No.8570

>ctrl+f "shotcut"

>0 results

n00bz


 No.8577

File: 29f7ec194eb8793⋯.webm (7.99 MB, 1920x1080, 16:9, How to Make a WebM! FINAL….webm)

Can someone find this guy who created that attached webm and tell him to do a new one since we can now upload 10mb webm's?


 No.8640

>>8577

I wouldn't bother yet tbh. Codemonkey mentioned he's probably going to keep uping the file limit by 2MB or so every now and then until it gets to 16MB so we probably won't be at 10MB forever.

>>>/sudo/6021


 No.8641

>>8577

Just change the filesize to 10 in the bitrate calculator, that's the only difference.


 No.8648

>>8641

It's not for me but for all the new people that ask how to make webm's. /v/ has decent webm threads but /b/ is full of 360p webm's that are slightly over a minute but for some reason still like 5mb.


 No.8649

>>2961

>ffmpeg -i "input.mp4" -an -vf unsharp,scale=-1:720 -sws_flags lanczos -c:v libvpx-vp9 -cpu-used:v 1 -auto-alt-ref:v 1 -lag-in-frames:v 16 -keyint_min:v 0 -g 360 -b:v 800k -quality:v good -pass:v 1 -f null

Error on linux

At least one output file must be specified


 No.8677

YouTube embed. Click thumbnail to play.

I've been using webm for retards and trimming embed related to start at 1:31, but when I do the resulting webm ends at 1:48 (3:18 in the original video since it starts at 1:31). I even tried not trimming it and it still cuts off at that part. Anyone know why that might be happening or want to give a go at making a 12mb webm?


 No.8682

>>8649

fix would be

ffmpeg -i "input.mp4" -an -vf unsharp,scale=-1:720 -sws_flags lanczos -c:v libvpx-vp9 -cpu-used:v 1 -auto-alt-ref:v 1 -lag-in-frames:v 16 -keyint_min:v 0 -g 360 -b:v 800k -quality:v good -pass:v 1 -f null yourmoma.webm


 No.8694

The new ffmpeg version keeps ignoring my bitrate instructions whenever i'm using seek ( -ss ) and convert to webm. The bitrate keeps rising until reaches the rate of the input video, even though my specified rate was much lower. As a result the filesize is enormous.

>Cleaned up example:

ffmpeg -i input.mp4 -ss 0 -to 60 -b:v 350k output.webm

When i am doing a 2 pass everything works fine, when i am trying something simple like the above, it gradually goes up to the input bitrate. Infuriating.


 No.8697

>>8694

Yeah, every ffmpeg update is like rolling the dice on what will be fixed, or be broken now.


 No.8791

File: 8e328e3eebd8a0c⋯.webm (2.02 MB, 1280x720, 16:9, test.webm)

Anyone know a good way to reverse video and audio playback in webms? I tried the following that I found on stackexchange, but the results were disappointing to say the least. The input file was high quality ~3700 kb/s.

ffmpeg -i input.webm -vf reverse -af areverse test.webm


 No.8796

>>8791

you didn't specify a bitrate or quality for your output file.

ffmpeg -i input.webm -b:v 3700k -vf reverse -af areverse test.webm

you might want to add -cpu-used:v 0 or -cpu-used:v 1 too


 No.8797

File: 26e58ca8e0e7dff⋯.webm (32.97 KB, 46x38, 23:19, bloodlust.webm)

test


 No.8836

It's me or Xmedia have issues with MKV and AVI files now?


 No.8962

>>8640

are we ever going to get those 16mb?

also can you guys help me out here? I try to upload this webm I just created but it tells me that it is invalid. I made it using xmedia.

https://mega.nz/#!jA8G0TQY!1zk-QHoOBnhvLVAjCiXlTiTRUAB22aHXOInURExKdtg


 No.8963

>>8836

What exactly do you mean? Are you not able to import them at all? I can add them into xmedia, but the exported webm doesn't seem to work.


 No.9002

>>8963

When I load them they are all laggy


 No.9012

File: e8c6989664d22d7⋯.webm (11.95 MB, 2048x1152, 16:9, How to Make a WebM! Final….webm)

>>8577

Some settings were changed, but here's a 12mb version

This is so far the only changes to the webm, everything else remains the same


 No.9210

File: efb53115ca66807⋯.jpg (47.32 KB, 369x368, 369:368, 1304938223524.jpg)

>>6331

>this to 64 for 6-10x faster encode speeds

I'm using this now but it's been an hour and twenty minutes since I started encoding and it still says there's 40 minutes remaining, which is what it said half an hour ago.


 No.9211

File: 92cb145ad51f076⋯.mp4 (347.45 KB, 400x400, 1:1, kill me.mp4)

>>9210

Gives me an error at the end of it now. Lovely.


 No.9217

File: 4d0602d11620970⋯.png (745.28 KB, 2400x3420, 40:57, 96e5bd1624ccb3e7b09cc0c7f1….png)

Who is the wonderful faggot who made this?


 No.9275

File: 6c2d33be1ba876d⋯.mp4 (6.54 MB, 1280x720, 16:9, 6c2d33be1ba876d3ba14420f13….mp4)

>>9217

VP8M8 from /a/. I don't know if he's still around but if he is he'll be in the webm threads.


 No.9292

File: 2c58e85eaaba54d⋯.webm (10.87 MB, 622x350, 311:175, Reddit is Being Manipulat….webm)

>>8640

To bad we didn't get the 16mb, I had already made some 16mb webm's. But the best thing about 16mb limit would be that we could attach 2 of our old 8mb webms to a single post.


 No.9301

I need to cut like two minutes out of a 1:27:00 movie, how can I got about this? Im chekcing the thread but I cant find anything, sorry if its posted and my dumb ass hasnt seen the instructions.


 No.9343

File: 3c9fb2c39741b9c⋯.mp4 (6.19 MB, 1280x720, 16:9, Donkey Kong Loves Winning ….mp4)

File: 3da40c5d683e064⋯.png (205.85 KB, 611x886, 611:886, dsptest.png)

File: 8b3fc4f8e01e5a5⋯.webm (2.94 MB, 1280x720, 16:9, testing123.webm)

Guys I am working on something and I need your help. What I want to do is to copy dsp's face over that over that losers face. But the problem is the black borders, it looks stupid when the face goes pass that part. In photoshop I would just create a new layer, but what are these things called in video editing?


 No.9344

File: f063e759b3e8c6c⋯.png (19.42 KB, 421x383, 421:383, 2017-03-10_13-19-01.png)

>>9301

xMedia recode, just chose the original format and then select copy instead of convert. This way you can remove a short part of the video while it stays the same quality. Then you can use those short clips in other software.


 No.9345

File: 97b9470d4cd6800⋯.webm (2.95 MB, 1280x720, 16:9, testing1234.webm)

>>9343

okay so these things are called masks, I tried something and good this. Not perfect but imo good to go for now.


 No.9444

File: 0f746fbc885873b⋯.webm (12 MB, 1920x1080, 16:9, truckflip.webm)

Good news everyone. A change was checked into libvpx that improves multithreaded encoding: https://groups.google.com/a/webmproject.org/forum/#!topic/codec-devel/oiHjgEdii2U

Just pass the –row-mt=1 option if you're using libvpx (-row-mt 1 should work with a recent ffmpeg but I haven't tested it yet). Just remember to set your tile-columns and threads to recommended values (see here: https://developers.google.com/media/vp9/settings/vod/)


 No.9456

File: 177c5d49ad1edb8⋯.png (11.27 KB, 580x379, 580:379, XMedia Recode_2017-04-15_0….png)

I am trying to change a video from VP8 to VP9 and it is going to take an hour for a 2 minute video? Am I missing something?


 No.9457

>>9456

Change the encoding quality from 'best' to 'good'. It's retardedly slow.


 No.9478

File: e489bf6b89517d2⋯.webm (4.62 MB, 319x525, 319:525, FKHW.webm)

Can I somehow loop a .gif to use as video for an audio .webm?

Still images are fine but I've only been able to get a file where the gif plays once, with the last frame being stuck for the remainder of the audio.


 No.9479

>>9478

It's possible!

ffmpeg -ignore_loop 0 -i tumblr_oexdx4J7wF1tzwetro1_500.gi' -i 1.mp3 -c:a libopus -c:v libvpx-vp9 -b:v 500K -b:a 144k -shortest nice.webm

Result in my case is: https://b.w0bm.com/1484593596.webm


 No.9481

>>3989

seconded

i use youtube dlg, a neat gui for windows retards like me


 No.9485

File: 303da0b7bcaca90⋯.webm (9.96 MB, 400x400, 1:1, Shit's Fucked Up.webm)

>>9479

Thanks so much.

I PRESENT MY MAGNUM OPUS It's a joke because I used vorbis.


 No.9578

i want to make something in a vein similar to gondola videos. what will i need?


 No.9589

>>9456

Adobe Premiere is a lot faster


 No.10121

File: 338aacc313a6bbc⋯.png (113.91 KB, 669x1042, 669:1042, ffmpeg error.png)

This has been happening whenever I try to convert larger files (720p tv rips and above). I'm sure it's my own mistake but it works fine in older versions of ffmpeg.

>2-pass webm first pass

<this happens


 No.10238

File: 08622c6a39d1da2⋯.webm (Spoiler Image, 9.27 MB, 1400x933, 1400:933, [F4M] Little Bro, I Reali….webm)

Could one of you help me figure out why my webm's are so huge lately? I tried to make a audio webm using that post >>8141

ffmpeg -loop 1 -i "part2.jpg" -i "input.m4a" -r 5 -b:a 32k -shortest "output.webm"

I am always using this, and normally my webm's are tiny, but my latest ones are huge. The attached one is 9mb, and I have no idea why. Shouldn't it be lower than that?


 No.10241

>>10238

Know your stuff


 No.10242

File: 27b9ac2d187f809⋯.jpg (1.44 MB, 766x3149, 766:3149, 2017-07-30_09-38-40.jpg)

>>10238

>>10241

Something is seriously off there. So far I was always using "ffmpeg-20160718-450cf40-win64-static" but I recently updated to version "ffmpeg-20170718-012620a-win64-static" and since then the filesizes are huge. I used to be able to make 30 min vids. Some of my older audios are 3mb 12mins.


 No.10245

>>10238

>>10242

Have you tried limiting the video bitrate with -b:v?

Also, set a encoding quality with -crf while you're at it, usually somewhere between 20 ~ 30. CRF will only use as many bits as it needs to achieve that quality, so I usually set the bitrate to something ridiculously high like -b:v 10M and just tunes the CRF until I get a good balance between quality and filesize.


 No.10262

File: ea43b41b9c52803⋯.webm (Spoiler Image, 6.07 MB, 550x513, 550:513, [F4M] The Cool Aunt.webm)

>>10245

I don't know, but I think I tried -b:v and I think ffmpeg didn't like it because I tried to apply it to a jpg. But I am not sure. I tried a few things back then. Anyway, I fixed it by adding -r 1. The webm that would previously end up being 13mb (attached one) is now only 6mb.

Next time I make a audio webm I will try -crf 20 + that -b:v stuff.


 No.10265

>>10262

tried -crf 25 today and I get this

Codec AVOption crf (Select the quality for constant quality mode) specified for input file #0 (1.jpg) is not a decoding option.


 No.10271

>>8577

>Decided to start making webms instead of using timestamped youtube links.

>Download Jewtube video

>Open in Xmedia

>Go to preview to set beginning and end

>Audio and video are already out of sync.

What the fuck did I do wrong? I haven't even done anything yet.


 No.10274

File: b2065c339691e74⋯.webm (599.09 KB, 704x528, 4:3, butthurt.webm)

>>10271

Yeah I don't know why that happens, but I had that happen to me too using xmedia.


 No.10348

File: 1ced84f5c6c3c53⋯.webm (11.16 MB, 768x432, 16:9, The.Boondocks.S03E13.The.….webm)

File: 251da79611827b5⋯.png (59.15 KB, 671x960, 671:960, 2017-08-28_03-35-27.png)

Can you guys help me out with StaxRip? I just created my first webm using it, but the audio quality seems to suck badly. I am redoing it now right now using the attached settings, I used 32 Kbps on audio the first time but I feel like it sounds worse than it should be.


 No.10349

File: ea26a11f565d1fe⋯.webm (10.18 MB, 391x300, 391:300, The Simpsons 08x07 - Lisa….webm)

>>10348

for comparition, the attached one is also 32 Kbps but in my opinion sounds better.


 No.10353

File: 47eaf978f364f36⋯.webm (11.2 MB, 768x432, 16:9, The.Boondocks.S03E13.The.….webm)

>>10348

okay the problem was that I had audio in 5.1, after setting it to stereo it sounds normal again.


 No.10393

>>8577

>>9012

>Doesn't play

>Failed no file

Forget this shit.


 No.10419

>>10393

a lot of older webm's don't play anymore. Back then in april 1 8chan got attacked and they had to restore this place. Some, or all the files posted before that date don't play anymore. It's the same in >>>/wx/, if you open one of the older threads and try to open a webm, they don't play.


 No.10438

File: 79f48a1c9af0e01⋯.png (31.68 KB, 921x453, 307:151, Screenshot_3.png)

I'm trying to direct someone to a download for Webm For Retards, but I can't seem to find where I downloaded the one I have. The one on github and the other similar site both serve a similar zip file called WebmConverter-master or something similar. I'm looking for one with the .exe in the folder that lets pops open the UI like pic related. Can anyone help me remember where I got it?


 No.10485


 No.10512

>>10438

>>10485

What's the difference between the one you linked to, and this one?

https://www.videohelp.com/software/WebMConverter

The one I link to here has an .exe to click on and launch the GUI. I can't seem to find it in the one you linked to on nixx


 No.10513

>>10438

>>10485

What's the difference between the one you linked to, and this one?

https://www.videohelp.com/software/WebMConverter

The one I link to here has an .exe to click on and launch the GUI. I can't seem to find it in the one you linked to on nixx>>10438


 No.10763

>>10512

>>10513

I don't know about the site you linked. But the gitgud.io repository is maintained by the actual developer.


 No.10766

Is there a way to enable sound in StaxRip? I need sound when cutting webm's so I don't end up cutting in the middle of a sentence. If Stax can't do that, can you guys name me a video editing software? Currently using StaxRip and Adobe Premiere. The problem with StaxRip is that I can't edit shit properly, and the problem with premiere is that it doesn't support all file types but more importantly desynchs audio sometimes.


 No.11276

File: 58d9e9b2b4cd65a⋯.webm (1.93 MB, 1000x500, 2:1, Audio Sequenz.webm)

Anyone here happens to know how to work with After Effects? Pirated it today and it feels very strange so far. One thing I dislike is that I have to set the duration of the clip first, in premiere it would automatically adjust to the shit I drop in it. I attached something I created, work in progress, not yet done with this shit.


 No.11278

File: 71a9a5b0e350723⋯.webm (11.95 MB, 1280x500, 64:25, TESTING Albinoni, Giazott….webm)

>>11276

This shit is a total bitch


 No.11279

File: e5eeeb028309945⋯.webm (11.91 MB, 1280x500, 64:25, Albinoni, Giazotto. Adagi….webm)

The idea was to create a project where I can just replace the song and album cover, but turns out that shit is not that easy either. Have to adjust a shitload of settings for every webm. It's way easier to just do it the old ffmpeg way. Still messing around here, but if anyone is interested I can share the project files.


 No.11294

mr webm tutorial guy, time for a 16mb version of your webm.


 No.11360

File: f6e27161e66abe1⋯.webm (13.5 MB, 1280x686, 640:343, anon's waifu wedding redu….webm)

check the metadata


 No.11367

File: 1fa9d83fe3112b7⋯.webm (3.18 MB, 1920x1080, 16:9, ParallelJovialAfricanjaca….webm)

How to get similar quality webm for such a low bitrate as webmrelated, what kind of magic is this? I get total crap AND overweight files when I try to do it via WebmForRetards.

With XMedia I just get much worse quality/size ratio (similar quality I can only get with around 10mbps).

Plz halp!


 No.11445

IMPORTANT

"row-mt" is a thing and while not a release feature and you have to fucking compile a non release version of the library you can now get VP9 with multi threading without having to scale the resolution up

IMPORTANT

>>11367

most of us are using ffmpeg

see the metadata in >>11360 for some code I used


 No.11446

>>11367

fuckit I'll just give you some code

ffmpeg -y -i "sourcevideo.extension" -c:v libvpx-vp9 -v:b 299kbps -cpu-used:v 0 -c:a libopus -a:b 65kbps "outputvideo.extension"

look for examples like this in 2 pass as well


 No.11447

>>11446

Woohooo finally somebody alive! Thanks I'll try using that (I'm totally bad at code lel)


 No.11448

File: a793a306bc04886⋯.png (26.32 KB, 1354x332, 677:166, ClipboardImage.png)

>>11446

Looks like something's wrong, I don't get it :/


 No.11451

File: be660694ea920b6⋯.png (5.66 KB, 301x175, 43:25, Screenshot_2.png)

WHYYYYYYYYY


 No.11452

File: 84cadfa2b12d4e0⋯.png (3.43 KB, 905x20, 181:4, Screenshot_2.png)

>>11451

Sorry for my autistic screeching there. I'm just totally baffled. When I tell youtube-dl to ignore my config, the resulting video works with Webm For Retards. When it uses this config, it gives me that error. What about this config is so wrong? Is it the way I tell it to download 720p? Is there a better way?


 No.11453

File: c014447c9b613c6⋯.webm (10.94 MB, 500x376, 125:94, NES Solstice OST.webm)

Does anyone have some advice as to how I could make this smaller using Xmedia?


 No.11455

>>11447

>>11448

>ffmpeg

runs the program, run this in the binaries folder with the executable, SHIFT+RMB in an explorer folder will give you an option for the command prompt

>-y

auto answer yes on overwrite prompts and stuff

>-i "sourcevideo.extension"

the -i indicates input, you can use it multiple times for multiple inputs and the quotes should include directory if it's not in the current folder

>-c:v libvpx-vp9 -v:b 299kbps -cpu-used:v 0

These 3 sets of commands set the video codec, the desired bit rate and the speed at which it will encode for the video stream

> -c:a libopus -a:b 65kbps

These 2 commands set the audio codec and bit rate for the audio stream

>"outputvideo.extension"

this is the output file so if you're converting to a webm its gonna read like video_name.webm

>>11448

is "G:\DISTRIB\_AV editors\Webm for retards\Binaries\win64>" the location of the ffmpeg binaries?

also kek it looks like I switched -v:b with -b:v

try this

ffmpeg -y -i "sourcevideo.extension" -c:v libvpx-vp9 -b:v 299kbps -cpu-used:v 0 -c:a libopus -a:b 65kbps "outputvideo.extension"


 No.11456

>>11455

shit I probably switched the audio one too with -a:b instead of -b:a

try this instead

ffmpeg -y -i "sourcevideo.extension" -c:v libvpx-vp9 -b:v 299kbps -cpu-used:v 0 -c:a libopus -b:a 65kbps "outputvideo.extension"


 No.11458

File: 4bef5cb0b09cdff⋯.webm (4.78 MB, 400x400, 1:1, NesSolstice Soundtrack re….webm)

>>11453

I figured something out, but no longer using Xmedia. I think this turned out pretty well. What do you guys think?


 No.11459

File: b8195304b409946⋯.webm (3.14 MB, 400x400, 1:1, NES Solstice OST low bitr….webm)

>>11458

took one more shot at it, but my ears aren't good enough to tell if there was a significant dip in audio quality.


 No.11461

>>11458

>>11459

what was the bit rate for audio on nes?


 No.11462

YouTube embed. Click thumbnail to play.

>>11461

I have no idea. For the two webm's I posted, I used 64kbps and 45kbps respectively. I don't notice any difference between the two bitrates, so it may be much lower than 45kbps. Embed related, it's the original video that I pulled the audio from.


 No.11464

>>11462

anon you're gonna have to look up the details for the Nintendo Entertainment System APU

I'm afraid I'm too sick for critical thinking and sifting through the details

you're probably fine since if I read it right the processor was 1.7something mhz


 No.11465

>>11462

>>11464

realized if I blast the heat I can function better

http://forums.nesdev.com/viewtopic.php?t=5900

thats gonna be it

but also it seems the bitch or whatever in the first few seconds is off from the original audio source on youtube

if memory serves youtube uses 128kbps audio

with that in mind you could just rip the audio and use the picture for the video https://i.ytimg.com/vi/rd8ZiNHHhKo/maxresdefault.jpg resizing it as necessary

are you using ffmpeg?


 No.11466

>>11465

"the pitch" not the bitch I mean


 No.11467


 No.11468

File: 471c0d6e7040ff5⋯.webm (6.56 MB, 1920x1080, 16:9, output.webm)

>>11456

Thanks for explanations! I had to change "kbps" to just "k" for it to work. It worked oh so slow, seems to be using only 1 core with 0,3 fps speed - took over two hours to complete! Doesn't seem OK if you ask me.

Still the results are not even close in terms of quality compared to original video I posted: >>11367

You can't even read the text on this one, I guess the creator was using some special optimization there.


 No.11470

>>11468

>Thanks for explanations! I had to change "kbps" to just "k" for it to work. It worked oh so slow, seems to be using only 1 core with 0,3 fps speed - took over two hours to complete! Doesn't seem OK if you ask me.

Yeah they only started doing multi threading on vp9 that isn't based on resolution, however with your resolution you should be able to get 4 cores running of you add "-threads 4 -tile-columns 6 -frame-parallel 1" that shit should get your vid running on 4 cores tops

I grabbed the code from here if you want to see the talk about multithreading

https://stackoverflow.com/questions/41372045/vp9-encoding-limited-to-4-threads

also row-mt is a thing but I need to get around to learning to compile it before I really start the multithread magic

VP8 has further along multithreading

also, multithreading aside the longer it takes to encode the better its gonna be

>Still the results are not even close in terms of quality compared to original video I posted: >>11367

dude you're comparing a minute long vid at 6mb to a 10 second vid at 3mb on vp8, not only is it probably mutithread it's probably 2 pass and is definitely higher bit rate

>You can't even read the text on this one, I guess the creator was using some special optimization there.

ok man, I'm gonna share 2 pass code with you now

assuming you are using windows these are the 2 lines of code you use

ffmpeg -y -i "sourcevideo.extension" -c:v libvpx-vp9 -b:v 299k -cpu-used:v 0 -c:a libopus -b:a 65kbps -pass:v 1 -f webm NUL && ^
ffmpeg -y -i "sourcevideo.extension" -c:v libvpx-vp9 -b:v 299k -cpu-used:v 0 -c:a libopus -b:a 65kbps -pass:v 2 "outputvideo.extension"

see how that turns out on your 1 minute video for comparison


 No.11471

File: 9b1c092ec7d561d⋯.webm (15.74 MB, 1280x720, 16:9, Merrie_Melodies_-_Daffy_D….webm)

oh and this is what it looks like for linux

ffmpeg -y -i "sourcevideo.extension" -c:v libvpx-vp9 -b:v 299k -cpu-used:v 0 -c:a libopus -b:a 65kbps -pass:v 1 -f webm /dev/null && \
ffmpeg -y -i "sourcevideo.extension" -c:v libvpx-vp9 -b:v 299k -cpu-used:v 0 -c:a libopus -b:a 65kbps -pass:v 2 "outputvideo.extension"

also have a 2 pass webm I made running 489k


 No.11472

>>11471

also notice that the video is about 4 minutes long averaging 4mb per minute


 No.11473

File: 9f5816c3af72931⋯.webm (6.6 MB, 400x300, 4:3, output_6.webm)

File: ef9b98806df32f9⋯.webm (3.56 MB, 400x300, 4:3, output_7.webm)

>>11467

>>11465

Thanks anon, I gave this a try, and I got some decent results. Output 6 was as small as I was able to make it without editing the audio bitrate, so it should sound identical to the original audio. Output 7 is much smaller, but I set the bitrate to 64kpbs instead of 128. I don't have very good ears, so I can't tell much of a difference; if anyone here is an audiophile, could they please critique?


 No.11475

>>11473

I think they are both good anon but my hearing is shot right now because I'm sick

why not ask anons on /v/ and add the youtube link for comparison?


 No.11521

I've used this Video Downloader for a long time - no problem with it.

http://www.freemake.com/free_video_downloader/


 No.11522

File: d92f594f076090c⋯.jpg (293.74 KB, 1920x1344, 10:7, justin-cherry-somnium-ecli….jpg)

Nightly builds of ffmpeg at https://ffmpeg.zeranoe.com/builds/

just got updated with new vpx 1.7.0

Main new feature is "-row-mt 1" which enables new multithreading and allows for better cpu use for vp9.

https://chromium.googlesource.com/webm/libvpx/+/v1.7.0


 No.11532

File: 94e093963e1a8f8⋯.jpg (49.64 KB, 600x450, 4:3, armitage III.jpg)

>>11522

noice


 No.11534

How do I know what video/audio quality to use?

Should I use the highest quality I can that gives a file under 16MB?

I'm trying to convert a 2:32 1280x720 51.8MB video to be postable here. This command gave me a 15.9MiB file, but I haven't learned how to into videos yet and I'm not sure if I fucked up anywhere.

ffmpeg -i input.mp4 -b:a 64k -b:v 810k -vf scale=640:360 output.mp4

Side note, does 8chan use MB or MiB for filesize limits? The file is 15.9 MiB but 16.6MB.


 No.11541

>>11534

READ MANUALS ABOVE and here https://github.com/Kagami/webm.py/wiki/Related-links

https://github.com/VP8M8/WebM-Guide

grab nightly static build from https://ffmpeg.zeranoe.com/builds/

stable versions of 3.4.1 and below have old vpx

>How do I know what video/audio quality to use?

audio - 64k libopus for speech only, 96k for more music emphasis

video - see this calculator https://my.mixtape.moe/zcstsi.xlsx - open in excel or libreoffice

to check parameters of source vidya use https://mediaarea.net/en/MediaInfo with TEXT output mode - most useful form imho

generally for vp9 stick to 0.05 BPP for normal high motion videos and you can go lower to 0.03 if its more static like photo slieshow for example. its experimenting

>>5260

>I'm not sure if I fucked up anywhere.

you did. this will give you x264/mp4 but you need vp9/webm

this simple batch converts all mp4's in a folder *without rescaling*. edit "bitrate"/"audio" on top to tune


@echo off
SETLOCAL ENABLEDELAYEDEXPANSION
REM Create "processed" folder to move encoded mp4's into it, to save progress
md processed
SET /A bitrate = 614
SET /A audio = 64
for %%a in ("*.mp4") do (
SET name=%%a
set name=!name:~0,-4!
ffmpeg -i "%%a" -c:v libvpx-vp9 -an -y -b:v %bitrate%k -g 9999 -crf 25 -row-mt 1 -tile-columns 0 -threads 4 -f webm -pass 1 NUL
ffmpeg -i "%%a" -c:v libvpx-vp9 -c:a libopus -b:a %audio%k -ac 2 -y -b:v %bitrate%k -g 9999 -crf 25 -row-mt 1 -tile-columns 0 -auto-alt-ref 1 -lag-in-frames 25 -threads 4 -f webm -pass 2 "!name!".webm
move /y "%%a" processed
)
del ffmpeg2pass-0.log
ENDLOCAL

this does the same, has scaling added


@echo off
SETLOCAL ENABLEDELAYEDEXPANSION
REM Create "processed" folder to move encoded mp4's into, to save progress
md processed
rem scale is video height you want
SET /A bitrate = 340
SET /A scale = 357
SET /A audio = 96
for %%a in ("*.mp4") do (
SET name=%%a
set name=!name:~0,-4!
ffmpeg -i "%%a" -c:v libvpx-vp9 -an -y -b:v %bitrate%k -g 9999 -crf 25 -row-mt 1 -tile-columns 0 -sws_flags lanczos -vf scale=-1:%scale% -threads 4 -f webm -pass 1 NUL
ffmpeg -i "%%a" -c:v libvpx-vp9 -c:a libopus -b:a %audio%k -ac 2 -y -b:v %bitrate%k -g 9999 -crf 25 -row-mt 1 -tile-columns 0 -sws_flags lanczos -vf scale=-1:%scale% -auto-alt-ref 1 -lag-in-frames 25 -threads 4 -f webm -pass 2 "!name!".webm
move /y "%%a" processed
)
del ffmpeg2pass-0.log
ENDLOCAL

change "-threads" to a value how many physical cores your cpu has

these batches use Constrained Quality (both crf and bitrate specified) which is pretty cool because encoder automatically can lower bitrate for low motion scenes resulting in smaller file. your upper calculated limit is the bitrate.

http://wiki.webmproject.org/ffmpeg/vp9-encoding-guide

according to https://github.com/VP8M8/WebM-Guide you may want to remove "-sws_flags lanczos" completely to save on bitrate for very small files and/or long clips


 No.11650

File: 2ca2672965cedaa⋯.webm (7.18 MB, 240x320, 3:4, output.webm)

I'm trying to automate turning unzipped vgm folders into webms, but I'm not sure how to add chapter markers or if it's even possible to automate. If it's not supported on webms a mpeg4 is fine too. Feel free to make it more aidsey.

https://github.com/vgmrips/vgmplay

https://github.com/ImageMagick/ImageMagick

https://github.com/FFmpeg/FFmpeg


#/bin/bash

for a in *.vgz; do vgm2wav --loop-count 1 "$a" "${a%*.vgz}".wav; done
for a in *.wav; do convert *.png -fill yellow -undercolor green -gravity Center -annotate +0+0 "${a%.wav}" "${a%.wav}".jpg; done
for a in *.jpg; do ffmpeg -r 1 -loop 1 -i "$a" -i "${a%.jpg}".wav -c:v libvpx -c:a libvorbis -b:a 48k -shortest "${a%.jpg}".webm; done
rename "s/'//g" *.webm
for a in *.webm; do echo "file '$a'" >> mylist.txt; done
ffmpeg -f concat -safe 0 -i mylist.txt -c copy output.webm


 No.11651

Anyone have experience changing the default thumbnail of a webm? If so, how is it done?

ffmpeg can do mp4s, but not webms, and exiftool doesn't support writing thumbnails to webm either.


 No.11652

>>11650

> I'm not sure how to add chapter markers

The webm spec mentions ability to handle chapter markers under the "Chapter" section near the bottom of…

https://www.webmproject.org/docs/container/

- so it definitely is supported on webms, though I too, am not sure of how it is done.


 No.11661

>>11652

I found a way to get this to work with MPEG4, but the chapter markers are worthless in web browser as there is no forward and backward arrows. This sucks balls.

>stream must have only h264 and aac for uploading to chans

All of this time and effort flushed down the toilet :(


 No.11703

File: 7cca56d3ce2ac10⋯.webm (15.09 MB, 500x700, 5:7, zen_seal.webm)

Does anyone have any idea why this webm is so bloated/how I can reduce the filesize some?


 No.11704

File: 9b3ef69acd56e4f⋯.gif (784.14 KB, 500x700, 5:7, zen_seal.gif)

>>11703

almost forgot, gif related is the source file, and the mp3 source is a 3mb file. I used webms for retards to loop the gif and dub the audio, and encoded using vp9/opus.


 No.11705

File: d57ab1a3d5788c9⋯.webm (3.75 MB, 500x700, 5:7, zen_seal.webm)

>>11703

>>11704

disregard this, I figured it out. Side note, if anyone thinks that there is a song that would better fit this gif, please share it with me. I don't think that this song quite captures the feel of the image but it's pretty close.


 No.11706

>>11705

Now that I'm looking more closely i can't help but notice a slight stuttering whenever the gif loops. Does anyone have any idea why that might be?

Here is the argument I used to create this one:

ffmpeg -ignore_loop 0 -i D:\misc\zen_seal.gif -i D:\tunes\vidya\Hylics_Filter.mp3 -shortest -c:v libvpx-vp9 -pix_fmt yuv420p -threads 16 -slices 2 -metadata title="zen_seal" -ac 2 -c:a libopus -b:v 900k -bufsize 540k -rc_init_occupancy 3600k -qcomp 0 -b:a 64k D:\zen_seal_3.webm


 No.11707

>>11706

whoops made a slight mistake, that should be a video bitrate of 128k not 900k


 No.11709

File: 58705f7ac7fc4de⋯.webm (3.13 MB, 500x700, 5:7, zen_seal.webm)

>>11707

>>11706

>>11705

>>11704

>>11703

You know what disregard all of this I just can't fill my mouth with enough cocks to keep me satisfied.


 No.11996

File: c1495b6bfc478d6⋯.webm (7.37 MB, 640x480, 4:3, c.webm)

File: e83d3311af8fbd0⋯.webm (7.5 MB, 640x480, 4:3, e.webm)

New to ffmpeg and I was trying to cut down the size of this video, I tried double pass and this fucking happened.

c.webm is the video after a bit of encoding, e.webm is c.webm reencoded with doublepass.

From what I understand double pass first checks the video for areas that won't suffer as much from lower bitrate and then encodes them on a second pass with lower bitrate on those areas. Somehow the second video has a bigger filesize though, any idea what caused it?

I encoded it with

ffmpeg -i c.webm -pass 4 e.webm


 No.11997

File: 72925781465511e⋯.webm (6.17 MB, 640x480, 4:3, d.webm)

>>11996

Also here's the end video I got from lowering the b:v to 150k and the a:b to 15k.

Any idea how I could make it smaller?


 No.12074

File: 8555b0c5fb3b16e⋯.webm (13.29 MB, 854x480, 427:240, Bad_Friends_Alpha.webm)

File: 96e5bd1624ccb3e⋯.png (1.14 MB, 2400x3420, 40:57, ffmpeg_WebM_Guide_v1.0.1.png)

I made a webm with:

ffmpeg -i input.mp4 -c:v libvpx-vp9 -b:v 272k  -maxrate 272k -c:a libopus -b:a 69k -speed 0 -lag-in-frames 25 -auto-alt-ref 1 -frame-parallel 0 -tile-columns 6 -row-mt 1 -quality best -sn -ac 2 -an -y -cpu-used 0 -threads 8 -g 9999 -colorspace bt709 -filter_complex minterpolate="fps=60:mi_mode=mci:mc_mode=aobmc:me_mode=bidir" -f webm -pass 1 /dev/null

ffmpeg -i input.mp4 -c:v libvpx-vp9 -b:v 272k -maxrate 272k -c:a libopus -b:a 69k -speed 0 -lag-in-frames 25 -auto-alt-ref 1 -frame-parallel 0 -tile-columns 6 -row-mt 1 -quality best -sn -ac 2 -cpu-used 0 -threads 8 -g 9999 -colorspace bt709 -filter_complex lumakey="threshold=255:tolerance=128:softness=100",minterpolate="fps=60:mi_mode=mci:mc_mode=aobmc:me_mode=bidir" -pix_fmt yuva420p -f webm -pass 2 "output.webm"

but 8chan says it's invalid even though it plays fine in mpv and Firefox. Why is that?

Webm in question:

QmaR6yx1yMJAbtWhywUvvttb2dK6WjYX4yDkBqj5iPEEbc

>>11996

<


 No.12085

>>12074

-pix_fmt yuv420p


 No.12088

>>5394

>>2963

Works with wine too


 No.12152

Is there a better solution to repackaging .mkv into .mp4 than using VLC? Right now it is the only reason I use it and, since repackaging it through ffmpeg leaves the headers in confusing some video editors like Vegas, I am kind of forced to keep that shit on my toaster.


 No.12183

File: 7deafe5698024a5⋯.webm (2.44 MB, 854x480, 427:240, gondola_cabin.webm)

So I combined a gif and an mp3 to make this webm, but after about 7 seconds, it seems like the webm stutters on the last frame of the gif. Webm related. Here's the argument I used in ffmpeg. Is there a parameter that I forgot to tweak or something?

ffmpeg -ignore_loop 0 -i gondola.gif -i sinatra.mp3 -shortest -pix_fmt yuv420p -c:v libvpx-vp9 -c:a libopus -vf scale=854:480 output.webm


 No.12184

File: 5bdb915d3f45f1d⋯.webm (2.68 MB, 1200x900, 4:3, gondola_cabinlarge.webm)

>>12183

I figured something out, webm related, although it wasn't pretty. Instead of using a gif as my input, instead took each frame (which was a jpg) and converted them directly into a webm using this:

ffmpeg -framerate 2 -loop 1 -i D:\gondola%d.jpg -vf scale=1200:900 -c:v libvpx-vp9 D:\gondola.webm

I knew that the mp3 file I want to play over the webm is 2:38 long, so I stopped the encoding once the output was about 2:40 long. Then I copied the video stream and added audio using:

ffmpeg -i D:\gondola2.webm -i D:\sinatra.mp3 -c:v copy -c:a libopus D:\gondola_cabin.webm

I feel like this was an "incorrect" way to do this, but it worked and now the webm doesn't "stutter" like the other one I posted does. If someone knows a better way, please let me know.


 No.12185

>>12184

That's bizarre, the webm is still stuttering when I post it, but if I play it locally it doesn't stutter. Well know I understand even less than when I started.


 No.12186

File: fb78e704ced17e9⋯.webm (2.68 MB, 1200x900, 4:3, gondola_cabin_final.webm)

I added an extra parameter to the second step to make sure the framerate got set to 2, hopefully that will fix it.


 No.12187

File: dbb5b5a62a51b80⋯.webm (4.77 MB, 1200x900, 4:3, gondola_cabin.webm)

>>12186

Took one more go at it, but the filesize is bloated now. If it works I'll try and get the filesize down.


 No.12188

>>12186

>>12187

>>12185

>>12184

>>12183

Disregard all these posts, I can't stop shoveling dick into my mouth. Palemoon has issues playing back these webms for whatever reason. I have no trouble viewing them with Firefox (for example).


 No.12248

this werks

ffmpeg -i "The Suicide of Europe-stR5nWkq3LU.mkv" -b 200k -s 640x480 The_Suicide_of_Europe.webm

not only did I reduce the bitrate, but I scaled it down.

What I want to know is if I can reduce the AUDIO bitrate and make it mono instead of stereo


 No.12264

>>12248

>What I want to know is if I can reduce the AUDIO bitrate and make it mono instead of stereo

ffmpeg -i input.mkv -ac 1 -b:v 200k -b:a 32k -s 640x480 The_Suicide_of_Europe.webm

"-ac 1 " is the option to make it mono, but that's not as effective as reducing the audio bitrate

"-b:a 16k" reduces the audio bitrate to 16k, opus can go as low as 8k if i remember correctly


 No.12282

File: 134bb9a24ed791f⋯.mp4 (10.16 MB, 1280x720, 16:9, Family fued nekid gramma f….mp4)

>>2573

Anyone can tell me why webms and mp4s have been slow as shit for a few days on my firefox browser? It's not my internet.


 No.12301

>>11541

bitrate calculator for scripts, old got deleted

https://nofile.io/f/vzfQjjrQZqo/!webm_calc.xlsx


 No.12333


 No.12336

ffmpeg -i "joint resolution37 amendment 13 Feb 2019 sm.mp4" -b 125k "Joint_House_Resolution_37_amendment_13_Feb_2019.mp4"

took a 22+MB mp4 and downgraded the bitrate so that it was just over 15MB in size

So, I dropped the bitrate down to 125k and changed the filename a little

$  ffmpeg -i "joint resolution37 amendment 13 Feb 2019 sm.mp4" -b 125k "Joint_House_Resolution_37_amendment_13_Feb_2019.mp4"

Now doing the same thing except I want to convert it to webm

$  ffmpeg -i "joint resolution37 amendment 13 Feb 2019 sm.mp4" -b 125k "Joint_House_Resolution_37_amendment_13_Feb_2019.webm"

Its taking a much longer time.

$  ffmpeg -i Joint_House_Resolution_37_amendment_13_Feb_2019.mp4 -b 125k -ac 1 -ar 32000 -ab 96 Joint_House_Resolution_37_amendment_13_Feb_2019_Smaller.mp4

(-b 125K reduces video bitrate to 125K)

(-ac 1 (one) : converts stereo to mono)

(-ab 96 : reduces audio bitrate to 96)

(-ar 32000 : reduces the 44100 to 32000)

-filter:v scale=1280:720 -c:a copy —- scaling

or

-s 1280x720 -c:a copy

>By The Way - -ar is limited now to 12000, 24000, 36000, 48000 and maybe higher

The following command will compress and reduce the output file’s size.

$ ffmpeg -i input.mp4 -vf scale=1280:-1 -c:v libx264 -preset veryslow -crf 24 output.mp4

Please note that you will lose the quality if you try to reduce the video file size. You can lower that crf value to 23 or lower if 24 is too aggressive.

## started with 28.9 Mb filesize

Duration: 00:08:38.50, start: -0.007000, bitrate: 445 kb/s

Stream #0:0(eng): Video: vp9 (Profile 0), yuv420p(tv, bt709), 1280x720, SAR 1:1 DAR 16:9, 29.97 fps, 29.97 tbr, 1k tbn, 1k tbc (default)

Stream #0:1(eng): Audio: opus, 48000 Hz, stereo, fltp (default

## converter command

$ ffmpeg -i "Demographic Hypocrisy-A19oaNXrapE.webm" -b:v 125k -ac 1 -ab 96k -ar 24000 -s 544:306 "Demographic_Hypocrisy_from_Know_More_News_Youtube.webm"  

## thinking that this might reduce it below 16Mb)

## 2:30 = 5Mb

## 38 sec = 0.633333333333

## calculations say 17.26 Mb

came out as 17.6 Mb

Adding a picture to an audio file

$ ffmpeg -loop 1 -i inputimage.jpg -i inputaudio.mp3 -c:v libx264 -c:a aac -strict experimental -b:a 192k -shortest output.mp4


 No.12337

>>12336

$ ffmpeg -i "nasim halo2a.png" -i "how does it feel roy harper Acoustic Attempt number 1.mp3" -b:v 175k -ar 24000 -s 544:306 "nasim_music.webm"


 No.12338

>>12337

>>12336

> Audio + Image = Video with Still Picture

Those last 2 commands - I still haven't gotten this down

I've been outputting the music with no video in a video frame.

I am doing something wrong.




[Return][Go to top][Catalog][Nerve Center][Cancer][Post a Reply]
Delete Post [ ]
[]
[ / / / / / / / / / / / / / ] [ dir / b2 / choroy / clang / dempart / doomer / porn / trueb / vichan ]