Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
24th June 2010, 11:27 | #1 | Link |
Registered User
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
|
WebM encoding using ffmpeg
I'm not sure if WebM is well supported in ffmpeg, it is encoding but ignores setting a bitrate.
Code:
-i: input -y: overwrite -b: bitrate ffmpeg.exe -i "D:\sample.avs" -y -b 300 test.webm -
__________________
https://github.com/stax76/software-list https://www.youtube.com/@stax76/playlists Last edited by stax76; 24th June 2010 at 11:31. |
24th June 2010, 12:13 | #3 | Link |
Registered User
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
|
Thanks, that's not documented, maybe I should search a tutorial instead of using the official documentation, are there any good tutorials?
__________________
https://github.com/stax76/software-list https://www.youtube.com/@stax76/playlists |
24th June 2010, 12:26 | #4 | Link | |||
Registered User
Join Date: Mar 2005
Location: Finland
Posts: 2,641
|
Both the bits/s unit and the k suffix are described in official documentation:
ffmpeg -h: Quote:
Quote:
Quote:
|
|||
24th June 2010, 12:32 | #5 | Link |
Registered User
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
|
I missed that, thanks.
__________________
https://github.com/stax76/software-list https://www.youtube.com/@stax76/playlists |
24th June 2010, 18:14 | #6 | Link |
typo lover
Join Date: May 2009
Posts: 595
|
another tutorial for webm encoding with ffmpeg
http://micksam7.com/blog/index.php/?p=743 |
24th June 2010, 18:58 | #7 | Link |
Registered User
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
|
Thanks, exactly what I needed.
__________________
https://github.com/stax76/software-list https://www.youtube.com/@stax76/playlists |
24th June 2010, 20:51 | #8 | Link |
Registered User
Join Date: Mar 2005
Location: Portugal
Posts: 907
|
whatever i try ffmpeg (latest builds) give me oversized output and dont respect bitrate, if i select 450k it gives me 930k i tried several values and still the same.
i compared with other codecs (flv, h264, wmv) and at same video bitrate the ffmpeg webm output is way to big... its not a mediainfo bug... ivfenc is the only that respects video bitrate Last edited by ricardo.santos; 24th June 2010 at 21:39. |
4th July 2010, 11:21 | #9 | Link |
Registered User
Join Date: Oct 2001
Location: Germany
Posts: 7,259
|
@stax76: this spreadsheet might be interesting to you, it's a ffmpeg<>ivfenc parameter mapping I started to set up (it's free to edit, so if someone finds a mistake -> fix it!).
@ricardo.santos: how do your settings look like with ffmpeg and with ivfenc ? Last edited by Selur; 4th July 2010 at 12:16. |
4th July 2010, 14:27 | #10 | Link |
Registered User
Join Date: Nov 2007
Posts: 50
|
I did a little test with a very latest FFmpeg build (24035, July 4) and Nic's ivfenc 1.5 from the following sample :
399 frames at 55fps (~ 7,25 seconds) (no audio) ivfenc Command line : Code:
ivfenc.exe temp.avs temp.ivf --best --target-bitrate=700 mkvmerge.exe --timecode-scale 1000000 --disable-lacing -w temp.ivf -o temp.webm Final size : 587 KB ffmpeg Command line : Code:
ffmpeg.exe -i temp.avs -vb 700k -level 100 -an test.webm Final size : 1,66 MB FFmpeg does not seem to take care of parameters... Last edited by Leeloo Minaļ; 4th July 2010 at 21:06. |
4th July 2010, 18:37 | #11 | Link | |
Registered User
Join Date: Mar 2005
Location: Portugal
Posts: 907
|
Quote:
@selur will post it later... |
|
8th August 2010, 17:06 | #14 | Link |
Registered User
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
|
@Selur
spreadsheet was very helpful, thanks @all I need a command line to perform a compressibility check, with x264 I just use crf 18, has anybody a idea what I could use for webm with ffmpeg?
__________________
https://github.com/stax76/software-list https://www.youtube.com/@stax76/playlists |
11th September 2010, 09:34 | #15 | Link |
German doom9/Gleitz SuMo
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,753
|
ivfenc doesn't seem to have a 1-pass fixed quantizer mode. Might be related to the fact that WebM video has a purpose target of streaming up to a maximum bitrate.
It might be enforced by max=min quantizer options {ivfenc: --min-q=# --max-q=# | ffmpeg: -qmin # -qmax #} but possibly not without a dummy target bitrate -- to be tested how it behaves... - and if you can get a result in only 1 pass at all (I believe ifvenc creates only the stats file in the 1st, and the result only in the 2nd). |
11th September 2010, 09:44 | #16 | Link |
Registered User
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
|
I'll give it a try, thanks LigH.
__________________
https://github.com/stax76/software-list https://www.youtube.com/@stax76/playlists |
3rd May 2011, 17:10 | #17 | Link |
Registered User
Join Date: Mar 2005
Location: Portugal
Posts: 907
|
Hi everyone!
recently i started to test webm again with latest ffmpeg, but i still have video bitrate issues, altough i specified "-b 450k" or "-b 460800" i always end up with a video with twice as much video bitrate, i then convert the video with x264 and theora with same video and audio settings and their output has the correct bitrate and the file size is half of the webm file. i know this has been discussed in the past but i havent managed to solve this problem, can anyone share a 2 pass webm script for ffmpeg? Thanks |
3rd May 2011, 17:53 | #18 | Link |
Registered User
Join Date: Mar 2005
Location: Portugal
Posts: 907
|
i found out why its not working, i usually do all my test encodings with HD clips, and the video bitrate doubling issue only happens with m2ts videos, here's what mediainfo says about the source file, its an LG demo:
Format : BDAV Format/Info : Blu-ray Video File size : 35.1 MiB Duration : 30s 58ms Overall bit rate : 9 785 Kbps Maximum Overall bit rate : 35.5 Mbps Video #0 ID : 4113 (0x1011) Menu ID : 1 (0x1) Format : AVC Format/Info : Advanced Video Codec Format profile : High@L4.0 Format settings, CABAC : Yes Format settings, ReFrames : 3 frames Codec ID : 27 Duration : 29s 946ms Bit rate mode : Variable Bit rate : 8 610 Kbps Maximum bit rate : 25.0 Mbps Width : 1 920 pixels Height : 1 080 pixels Display aspect ratio : 16:9 Frame rate : 23.976 fps i've tried 720p clips and all encodings were sucessfull without bitrate issues, is this an ffmpeg bug with 1080p videos? |
14th May 2011, 21:45 | #20 | Link | |
Registered User
Join Date: Mar 2005
Location: Portugal
Posts: 907
|
Ligh it was a test... 450k was just one of the examples... i tried with higher bitrates but same thing.
just read any video converter as webm as input/output formats, set up a test conversion and located the CMD any video converter uses with mencoder and it works, tried a 2 pass conversion but a error popped up, does anyone know how to do 2 pass with mencoder? here's the 1 pass CMD: Quote:
|
|
Thread Tools | Search this Thread |
Display Modes | |
|
|