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

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

Thread replies: 22
Thread images: 5
File: my-brain-is-full-of-fuck.jpg (13 KB, 268x268) Image search: [Google]
my-brain-is-full-of-fuck.jpg
13 KB, 268x268
tried to post a vp8 webm clip and got:

> Error: File contains an invalid stream

there are no webm guidelines in the FAQ https://www.4chan.org/faq

what are the correct specs for a 4chan webm?
>>
happens to me too, just re-encode it
>>
>>54691689

here's what i used

> ffmpeg -i infile.mkv -ss 00:12:54 -t 7 -c:v libvpx -b:v 3.3M -an -vf scale=1280:720 outfile.webm

outfile.web is under 3MB
>>
>>54691705

> re-encode it

using what settings?
>>
File: outfile.webm (3 MB, 1280x720) Image search: [Google]
outfile.webm
3 MB, 1280x720
>>54691735
>ffmpeg -i VID_20160522_151947.mp4 -ss 00:00:00 -t 7 -c:v libvpx -b:v 3.3M -an -vf scale=1280:720 outfile.webm
>>
>>54691847

hmmm, i'm doing the exact same thing, except my source file is .mkv

here's the output of "ffmpeg -i" for my invalid webm:

Input #0, matroska,webm, from 'colbert_girl_kek.vp8.webm':
Metadata:
encoder : Lavf57.29.101
Duration: 00:00:08.08, start: 0.000000, bitrate: 2850 kb/s
Stream #0:0: Video: vp8, yuv420p, 1280x720, SAR 1:1 DAR 16:9, 59.94 fps, 59.94 tbr, 1k tbn, 1k tbc (default)
Stream #0:1(eng): Subtitle: webvtt
>>
>>54691847

your file is:

Input #0, matroska,webm, from '1463956918525.webm':
Metadata:
encoder : Lavf56.40.101
Duration: 00:00:07.02, start: 0.000000, bitrate: 3362 kb/s
Stream #0:0: Video: vp8, yuv420p, 1280x720, SAR 1:1 DAR 16:9, 29.78 fps, 29.78 tbr, 1k tbn, 1k tbc (default)


is it the fps? does 4chan not support 60fps?
>>
>>54691944
Has to be the fps.
>>
File: 024_pics.jpg (24 KB, 315x450) Image search: [Google]
024_pics.jpg
24 KB, 315x450
changed the fps to 30 - still getting the same error

wtf?!
>>
>>54691689
Webvtt subtitles aren't supported, use -sn to disable subtitles, then it'll be accepted.
>>
>>54691735
Do -sn to make sure there's no subtitles stream.

If even that fails, do ffprobe on your source and -map out all the non video streams during the encode.
>>
>>54692191
I didn't even notice he had that second stream derp.
>>
>>54691735
Why do you put -ss after -i?
>>
File: test.webm (3 MB, 1280x720) Image search: [Google]
test.webm
3 MB, 1280x720
>>54692191

-sn worked! thank you!!
>>
>>54692298

i wanted to grab a 7 second clip from a long video, starting at 00:12:54

> -ss 00:12:54 -t 7
>>
>>54692407
You should put -ss before -i and -t/-to after both, its much faster.
>>
File: assholedisease.jpg (162 KB, 600x725) Image search: [Google]
assholedisease.jpg
162 KB, 600x725
>>54692450
>>
>>54692572
But it really is way faster and recommended by ffmpeg documentation.
>>
>>54692572
If you put in the -ss after the input file then ffmpeg will decode every single frame up until the time specified by -ss. That means that if you tried to cut 10 seconds from a movie 1 hour and 40 minutes after the start, ffmpeg will decode every single frame up until this point before encoding, which could take a long while (e.g. 30x realtime -> 2 minutes or so).

Putting -ss before the input file will seek to the nearest keyframe and only decode a couple of frames (should be no longer than a few tens of miliseconds).


But hey, don't take my word for it, test it. Get a movie and try taking the last 20 seconds, with both cases.
>>
>>54692684

interesting, will try it.
>>
>>54692450

what did you mean by "after both"?
>>
>>54692450
>>54692684

you're right. thanks 4 pro tip!

$ time ffmpeg -i in.mkv -ss 00:12:54 -t 7 -sn -c:v libvpx -b:v 3.3M -an -vf scale=1280:720 out.webm

> real 2m12.565s

$ time ffmpeg -ss 00:12:54 -i in.mkv -t 7 -sn -c:v libvpx -b:v 3.3M -an -vf scale=1280:720 out.webm

> real 1m11.507s
Thread replies: 22
Thread images: 5

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

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