Log in

View Full Version : ffmpeg2theora


bond
5th June 2004, 13:30
ok, i now had the time to play around a little bit with the ffmpeg2theora (http://v2v.cc/~j/ffmpeg2theora/) tool
its basically the theora reference encoder (still very young and untuned), combined with ffmpeg, which means it allows all formats as inputs, which ffmpeg handles too (list (http://ffmpeg.sourceforge.net/ffmpeg-doc.html#SEC16)) and outputs to spec compliant .ogg files

for encoding i used the following commandline (copy it to a *.txt file, rename the file to *.bat and execute it)
ffmpeg2theora.exe -o theora_test.ogg --croptop 82 --cropbottom 78 --cropleft 2 --cropright 2 -x 640 -y 256 -v 6 "c:\path to\vts_02_5.vob"main options:
--output,-o: alternative output
--format,-f: specify input format
--width,-x: scale to given size
--height,-y: scale to given size
--crop[top|bottom|left|right]: crop input before resizing
--deinterlace,-d [off|on]: en/disable deinterlace (enabled by default right now)
--videoquality,-v [0 to 10]: encoding quality for video (variable bitrate/1pass - quality based/in my test -v 6 resulted in ~750kbps)
--audioquality,-a [-1 to 10]: encoding quality for audio
--samplerate,-H: set output samplerate in Hz
--nosound: disable the sound from input
--debug: output some more information during encoding

if you try it out, you will see that the encoder is still very basic and untuned (well, the format is some weeks old), but it already offers a nice output (still has a way to go to keep up with xvid) :)

Rash
6th June 2004, 01:38
Originally posted by bond
if you try it out, you will see that the encoder is still very basic and untuned (well, the format is some days old), but it already offers a nice output (tough not comparable to xvid or so of course) :)
But will hopefully get there. ;)

tiki4
6th June 2004, 20:10
Hehe, with quality -v 85 it looks very good. Unfortunately, I couldn't play the file in Windows, so I re-compiled MPlayer under Linux agains theora libs, I little bit unstable, but nice picture.

tiki4

bond
6th June 2004, 21:12
Originally posted by tiki4
Hehe, with quality -v 85 it looks very good. Unfortunately, I couldn't play the file in Windowsyou can play it with the dshow filter set from illiminable (as mentioned in the theora sticky)

tiki4
7th June 2004, 09:43
Somehow this didn't work for me, but I just tried it a few minutes. MPC does not start playing and if I try to seek in the file, it crashes immediately. Internal ogg splitter was of course disabled. System was Win2K SP4 with DirectX 9b.

tiki4

Off-topic: Can someone reach vorbis.com, theora.org or xiph.org the last days, it seems the DNS entries are not resolved for me...?

bond
7th June 2004, 10:27
on the illiminable homepage it says:
Known issues:
Seeking in theora occasionally seg faults and yes, i also cant reach the xiph hps

savage747
7th June 2004, 11:39
Originally posted by tiki4

Off-topic: Can someone reach vorbis.com, theora.org or xiph.org the last days, it seems the DNS entries are not resolved for me...?

Their old server is dying (or: has died now). A new server was bought, but itīs power-supply unit is broken. They are still waiting for a replacement AFAIK.

tiki4
7th June 2004, 11:50
I hope they get a replacement. With the freezing of the theora bitstream I think there are enough people who start getting interested in that format.

Thanks for the supplied info.

tiki4

bond
20th June 2004, 15:11
new version released (0.8)

- use ffmpeg aspect ration if possible
- normalize quality options to 0-10
- fix skipping issues with a/v sync

doesnt seem as if cropping is possible now :(

satori
13th July 2004, 13:17
I've tested ver 0.10 with win2000 SP4.But It doesn't work for me.
I've tested three clips(DivX and Mpeg1),but all Ogg theora files made by ffmpeg2theora doesn't synchronize.
Audios are OK but Videos are moving very slow.

Atamido
15th July 2004, 07:23
It is also worth noting that the Ogg Theora files produced by the new Illiminable DirectShow filters are not decodeable by FFDshow.

bond
15th July 2004, 19:14
Originally posted by Pamel
It is also worth noting that the Ogg Theora files produced by the new Illiminable DirectShow filters are not decodeable by FFDshow. when connected to the illiminable splitter/parser?

bond
18th July 2004, 22:39
a new version of ffmpeg2theora has been released!

changelog since 0.8:

0.10.2 2004-07-17
- add cropping support
- remove support for ffmpeg<0.4.9-pre1
- change configure.ac and Makefile.am to better build with
mingw32

0.10.1 2004-07-15 21:03:15
- fix problems with mpeg files using ffmpeg from cvs or versions
higher than 0.4.8.
- remove --with-ffmpegcvs and detect changes by LIBAVCODEC_BUILD

0.10 2004-07-10 18:14:15
- write eos at the end of the file.
- fix memleak due to not enough calls of ogg_stream_pageout

0.9 2004-07-04 13:14:15
- add presets
- add more comandline options


i updated the sample commandline in the first post in this thread

Atamido
21st July 2004, 10:19
Originally posted by bond
when connected to the illiminable splitter/parser? Yes.

sugala
19th August 2005, 12:43
Could someone make a GUI for this program?
How is the quanlity of this format?

bond
19th August 2005, 13:25
the reference theora encoder's quality doesnt reach xvid or x264, but i wouldnt say that the quality sucks hard

Kurtnoise
31st August 2005, 08:19
2005-08-31 new version released - 0.15 (http://v2v.cc/~j/ffmpeg2theora/download.html)

changelog:
* ti.dropframes_p = 0 so we do not loos half of the frames.
* also increase keyframe interval for better search support.
* this time the windows build als supports ac3 decoding again.


btw, I've a question : Is there a way to feed as input a list file in this tool ? (i.e a simple text file with the paths of the different input files).

hellfred
31st August 2005, 09:16
btw, I've a question : Is there a way to feed as input a list file in this tool ? (i.e a simple text file with the paths of the different input files).
From ffmpg2theora output when stated with --help

Examples:
ffmpeg2theora videoclip.avi (will write output to videoclip.avi.ogg)

cat something.dv | ffmpeg2theora -f dv -o output.ogg -

Live encoding from a DV camcorder (needs a fast machine)
dvgrab - | ffmpeg2theora -f dv -x 352 -y 288 -o output.ogg -

Live encoding and streaming to icecast server:
dvgrab --format raw - | \
ffmpeg2theora -f dv -x 160 -y 128 -o /dev/stdout - | \
oggfwd iccast2server 8000 password /theora.ogg

So under linux/unix, you can try to feed several souces via pipe to ffmpeg, but you will get the output i just one file. From Akupenguins problems when porting avs2yuv to win32 I know, that piping on win32 can have flaws. So i recomend a classic batch file for this kind of porpose


:: Batch encoding of several files.
ffmpeg2theora avi1.mpg
ffmpeg2theora avi2.avi
PAUSE


Hellfred

Kurtnoise
31st August 2005, 17:18
So i recomend a classic batch file for this kind of porpose
Yep...I think it's the best only solution for the moment.

bond
1st September 2005, 21:11
hm a nice alternative for virtualdub lover is also ffdshow which can output spec compliant theora in .ogg (yeah .ogg, not .ogm) from inside its interface

Sirber
23rd November 2005, 13:23
Any way to do 2 pass?

bond
23rd November 2005, 18:29
ffdshow afaik

PatchWorKs
24th November 2005, 18:03
The problem with ffdshow in my case is that only encode video and then output .ogg file.
Check my signature. A FairUse Mod (that supports .avi or mpg input) would be great, not just for you. ;)

Liisachan
19th March 2006, 07:54
I tested --optimize with several settings. The compressibility was slightly better with --optimize. The speed difference was only a little.

http://img145.imageshack.us/img145/9210/theora3sx.th.png (http://img145.imageshack.us/my.php?image=theora3sx.png)

btw celtic_druid's builds are here (http://ffdshow.faireal.net/mirror/Misc/).

Sirber
8th March 2007, 15:27
what's "skeleton support" ?

thanks for posting the changes :)

unskinnyboy
8th March 2007, 17:03
what's "skeleton support" ?Support for Ogg Skeleton (http://wiki.xiph.org/index.php/Ogg_Skeleton). Basically meta-data information for Ogg. Use -k or --skeleton to enable it.

kevo777
5th July 2007, 22:05
This is excellent! It's exciting to see Theora being actively developed. Have there been thoughts of supporting AviSynth input?

celtic_druid
6th July 2007, 17:33
It should support AVISynth already for some time since it is linked against ffmpeg which supports AVISynth input (also theora output).

garbii
18th July 2007, 11:34
so much time have passed since I have used this tool and still no 2pass :(

Sirber
18th July 2007, 15:59
2pass would deffinitly give a quality boost... sad :(

708145
18th July 2007, 17:24
2pass would deffinitly give a quality boost... sad :(

I don't promise anything but since
a) I'll touch my encoding framework FKA (formerly known as) ELDER next week again and
b) to encode for theora is on the TODO for over 2 years
it might happen that I get a working version out of it.

We'll see but at least I know where I can ask for testers :p

bis besser,
T0B1A5

LigH
22nd September 2008, 10:01
It should support AVISynth already for some time since it is linked against ffmpeg which supports AVISynth input (also theora output).

Unfortunately I could find neither an AviSynth enabled build (JuanCC's is not), nor a solution to pipe avs2yuv into ffmpeg2theora (http://forum.doom9.org/showthread.php?p=1185764#post1185764).

buzzqw
11th November 2008, 08:57
i have build a little gui for ffmpeg2theora
here is the full package http://www.64k.it/andres/data/autofftheora/autofftheora_1.1_full.rar

some image
http://www.64k.it/andres/data/autofftheora/autoffmpegtheora1.jpg
http://www.64k.it/andres/data/autofftheora/autoffmpegtheora2.jpg
http://www.64k.it/andres/data/autofftheora/autoffmpegtheora3.jpg
http://www.64k.it/andres/data/autofftheora/autoffmpegtheora4.jpg
http://www.64k.it/andres/data/autofftheora/autoffmpegtheora5.jpg
http://www.64k.it/andres/data/autofftheora/autoffmpegtheora6.jpg

BHH

buzzqw
4th December 2008, 16:47
update to 1.2

compatible with ffmpeg2theora 0.23 http://www.64k.it/andres/data/autofftheoraAutoFFmpegTheora-v1.2.exe

BHH

donaldtone
3rd November 2009, 22:11
after encoded a clip of ogv, this file could not rendered by last version of mpc home-theatre.
With kmplayer, only sound, no video.
Do you have any idea about it?

monsterogv
20th March 2023, 13:13
since the wiki uses ogv as its media code source I got an idea.
I'm not an advanced ogv user, but for skeleton I can use parameter "--title "Video Title" --artist "Artist Name" --date "1997-12-31" "

LigH
20th March 2023, 23:51
Necro alert ... this ffmpeg mod is obsolete.

benwaggoner
21st March 2023, 00:02
Wow, Theora. A slightly upgraded version of On2's VP3 codec (five big generations before VP8). They were giving it away as closed source in the late 90's. They tried to give it to Terran Interactive around 2000, but there wasn't a business model there. It was far behind even MPEG-4 simple profile.

monsterogv
25th March 2023, 15:13
ffmpeg mod to decode and optimize. PC mode

Jamaika
25th March 2023, 17:43
For me these are abandoned projects.
https://github.com/xiph/theora Oct 27, 2020
https://github.com/xiph/ogg Apr 21, 2022
https://github.com/xiph/vorbis May 12, 2021

ffmpeg -i london_eye.mov -s 1920x1080 -c:v libtheora -q:v 10 -c:a libvorbis -q:a 10 output.ogv
[ogg @ 000001e0f458c930] Broken file, non-keyframe not correctly marked.

filler56789
26th March 2023, 12:36
F.W.I.W.....

when I used to use ffmpeg2theora,
I always remuxed the reencode to .AVI :devil: with VirtualDub (often) or ffmpeg (seldom).

.OGG is a stupid container and since Theora doesn't have B-frames...

:sly:

benwaggoner
27th March 2023, 16:06
For me these are abandoned projects.
https://github.com/xiph/theora Oct 27, 2020
https://github.com/xiph/ogg Apr 21, 2022
https://github.com/xiph/vorbis May 12, 2021

ffmpeg -i london_eye.mov -s 1920x1080 -c:v libtheora -q:v 10 -c:a libvorbis -q:a 10 output.ogv
[ogg @ 000001e0f458c930] Broken file, non-keyframe not correctly marked.
Yeah, Opus has been the most important and competitive Xiph codec for a number of years. It's very nicely designed, and pioneered hybrid speech/general coding years before xHE-AAC. Really good quality @ bitrate from telephony up to perceptually lossless.

LigH
28th March 2023, 22:51
Well, my car radio does support Vorbis, but neither Opus nor AAC... but nobody cares about this niche, I guess.

benwaggoner
28th March 2023, 23:20
Well, my car radio does support Vorbis, but neither Opus nor AAC... but nobody cares about this niche, I guess.
If your car radio supports anything digital, it should support AAC. HE AAC is what digital radio in the USA uses, at least.

LigH
1st April 2023, 19:43
But I am in Europe, Germany. And it was cheap (Silvercrest, a LIDL discounter brand) and not very new. The manual reports it supports FLAC, MP3, WMA; but Ogg Vorbis was not even documented, I read about that secret in a web forum.

monsterogv
4th April 2023, 20:19
abandon, of course the main format that is often used is not theora. syncroniation of theora with audio formats (vorbis/ogg) requires a process with a large memory allocation (hardware). input here "--no-deinterlace" , without using "--nosync".

rwill
4th April 2023, 23:01
I think what LigH means is that he can burn Vorbis on a CD or put it on a Flash drive and use that with his cheap car stereo.

Car radios sold in Germany which support RDS (something like RBDS in the US) have to also have support for DAB+ (Digital Audio Broadcast+) since around 2021.

DAB+ is using HE AAC v2 for the audio part.

LigH
5th April 2023, 11:28
My radio did not yet support DAB+. Only analog FM (UKW ~ VHF) and CD/USB/SD as digital audio sources.

monsterogv
6th April 2023, 22:11
so it's like a cd rip. DAB+, for streaming you can use ffmpeg2theora but I'm still having trouble applying it. but too nice to introduce that technology