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.

 

Go Back   Doom9's Forum > Video Encoding > New and alternative video codecs

Reply
 
Thread Tools Search this Thread Display Modes
Old 5th June 2004, 14:30   #1  |  Link
bond
Registered User
 
Join Date: Nov 2001
Posts: 9,779
ffmpeg2theora

ok, i now had the time to play around a little bit with the 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) 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)
Code:
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)
__________________
Between the weak and the strong one it is the freedom which oppresses and the law that liberates (Jean Jacques Rousseau)
I know, that I know nothing (Socrates)

MPEG-4 ASP FAQ | AVC/H.264 FAQ | AAC FAQ | MP4 FAQ | MP4Menu stores DVD Menus in MP4 (guide)
Ogg Theora | Ogg Vorbis
use WM9 today and get Micro$oft controlling the A/V market tomorrow for free

Last edited by bond; 2nd August 2004 at 22:59.
bond is offline   Reply With Quote
Old 6th June 2004, 02:38   #2  |  Link
Rash
Registered User
 
Rash's Avatar
 
Join Date: Aug 2002
Posts: 403
Re: ffmpeg2theora

Quote:
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.
Rash is offline   Reply With Quote
Old 6th June 2004, 21:10   #3  |  Link
tiki4
Registered User
 
tiki4's Avatar
 
Join Date: Dec 2001
Location: Who Knows?
Posts: 929
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
tiki4 is offline   Reply With Quote
Old 6th June 2004, 22:12   #4  |  Link
bond
Registered User
 
Join Date: Nov 2001
Posts: 9,779
Quote:
Originally posted by tiki4
Hehe, with quality -v 85 it looks very good. Unfortunately, I couldn't play the file in Windows
you can play it with the dshow filter set from illiminable (as mentioned in the theora sticky)
__________________
Between the weak and the strong one it is the freedom which oppresses and the law that liberates (Jean Jacques Rousseau)
I know, that I know nothing (Socrates)

MPEG-4 ASP FAQ | AVC/H.264 FAQ | AAC FAQ | MP4 FAQ | MP4Menu stores DVD Menus in MP4 (guide)
Ogg Theora | Ogg Vorbis
use WM9 today and get Micro$oft controlling the A/V market tomorrow for free
bond is offline   Reply With Quote
Old 7th June 2004, 10:43   #5  |  Link
tiki4
Registered User
 
tiki4's Avatar
 
Join Date: Dec 2001
Location: Who Knows?
Posts: 929
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...?

Last edited by tiki4; 7th June 2004 at 10:54.
tiki4 is offline   Reply With Quote
Old 7th June 2004, 11:27   #6  |  Link
bond
Registered User
 
Join Date: Nov 2001
Posts: 9,779
on the illiminable homepage it says:
Quote:
Known issues:
Seeking in theora occasionally seg faults
and yes, i also cant reach the xiph hps
__________________
Between the weak and the strong one it is the freedom which oppresses and the law that liberates (Jean Jacques Rousseau)
I know, that I know nothing (Socrates)

MPEG-4 ASP FAQ | AVC/H.264 FAQ | AAC FAQ | MP4 FAQ | MP4Menu stores DVD Menus in MP4 (guide)
Ogg Theora | Ogg Vorbis
use WM9 today and get Micro$oft controlling the A/V market tomorrow for free
bond is offline   Reply With Quote
Old 7th June 2004, 12:39   #7  |  Link
savage747
Registered User
 
Join Date: Mar 2004
Posts: 40
Quote:
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.
savage747 is offline   Reply With Quote
Old 7th June 2004, 12:50   #8  |  Link
tiki4
Registered User
 
tiki4's Avatar
 
Join Date: Dec 2001
Location: Who Knows?
Posts: 929
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
tiki4 is offline   Reply With Quote
Old 20th June 2004, 16:11   #9  |  Link
bond
Registered User
 
Join Date: Nov 2001
Posts: 9,779
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
__________________
Between the weak and the strong one it is the freedom which oppresses and the law that liberates (Jean Jacques Rousseau)
I know, that I know nothing (Socrates)

MPEG-4 ASP FAQ | AVC/H.264 FAQ | AAC FAQ | MP4 FAQ | MP4Menu stores DVD Menus in MP4 (guide)
Ogg Theora | Ogg Vorbis
use WM9 today and get Micro$oft controlling the A/V market tomorrow for free
bond is offline   Reply With Quote
Old 13th July 2004, 14:17   #10  |  Link
satori
Registered User
 
Join Date: Sep 2003
Posts: 13
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.
satori is offline   Reply With Quote
Old 15th July 2004, 08:23   #11  |  Link
Atamido
Seņor Member
 
Atamido's Avatar
 
Join Date: May 2002
Location: Austin, Texas
Posts: 915
It is also worth noting that the Ogg Theora files produced by the new Illiminable DirectShow filters are not decodeable by FFDshow.
Atamido is offline   Reply With Quote
Old 15th July 2004, 20:14   #12  |  Link
bond
Registered User
 
Join Date: Nov 2001
Posts: 9,779
Quote:
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?
__________________
Between the weak and the strong one it is the freedom which oppresses and the law that liberates (Jean Jacques Rousseau)
I know, that I know nothing (Socrates)

MPEG-4 ASP FAQ | AVC/H.264 FAQ | AAC FAQ | MP4 FAQ | MP4Menu stores DVD Menus in MP4 (guide)
Ogg Theora | Ogg Vorbis
use WM9 today and get Micro$oft controlling the A/V market tomorrow for free
bond is offline   Reply With Quote
Old 18th July 2004, 23:39   #13  |  Link
bond
Registered User
 
Join Date: Nov 2001
Posts: 9,779
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
__________________
Between the weak and the strong one it is the freedom which oppresses and the law that liberates (Jean Jacques Rousseau)
I know, that I know nothing (Socrates)

MPEG-4 ASP FAQ | AVC/H.264 FAQ | AAC FAQ | MP4 FAQ | MP4Menu stores DVD Menus in MP4 (guide)
Ogg Theora | Ogg Vorbis
use WM9 today and get Micro$oft controlling the A/V market tomorrow for free
bond is offline   Reply With Quote
Old 21st July 2004, 11:19   #14  |  Link
Atamido
Seņor Member
 
Atamido's Avatar
 
Join Date: May 2002
Location: Austin, Texas
Posts: 915
Quote:
Originally posted by bond
when connected to the illiminable splitter/parser?
Yes.
Atamido is offline   Reply With Quote
Old 19th August 2005, 13:43   #15  |  Link
sugala
Registered User
 
Join Date: Jul 2005
Location: G.C.Giza
Posts: 13
Could someone make a GUI for this program?
How is the quanlity of this format?
sugala is offline   Reply With Quote
Old 19th August 2005, 14:25   #16  |  Link
bond
Registered User
 
Join Date: Nov 2001
Posts: 9,779
the reference theora encoder's quality doesnt reach xvid or x264, but i wouldnt say that the quality sucks hard
__________________
Between the weak and the strong one it is the freedom which oppresses and the law that liberates (Jean Jacques Rousseau)
I know, that I know nothing (Socrates)

MPEG-4 ASP FAQ | AVC/H.264 FAQ | AAC FAQ | MP4 FAQ | MP4Menu stores DVD Menus in MP4 (guide)
Ogg Theora | Ogg Vorbis
use WM9 today and get Micro$oft controlling the A/V market tomorrow for free
bond is offline   Reply With Quote
Old 31st August 2005, 09:19   #17  |  Link
Kurtnoise
Swallowed in the Sea
 
Kurtnoise's Avatar
 
Join Date: Oct 2002
Location: Aix-en-Provence, France
Posts: 5,183
2005-08-31 new version released - 0.15

changelog:
Quote:
* 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).
Kurtnoise is offline   Reply With Quote
Old 31st August 2005, 10:16   #18  |  Link
hellfred
FFmpeg fan
 
Join Date: Dec 2003
Location: Germany
Posts: 427
Quote:
Originally Posted by Kurtnoise13
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
Code:
 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

Code:
:: Batch encoding of several files.
ffmpeg2theora avi1.mpg
ffmpeg2theora avi2.avi
PAUSE
Hellfred
hellfred is offline   Reply With Quote
Old 31st August 2005, 18:18   #19  |  Link
Kurtnoise
Swallowed in the Sea
 
Kurtnoise's Avatar
 
Join Date: Oct 2002
Location: Aix-en-Provence, France
Posts: 5,183
Quote:
So i recomend a classic batch file for this kind of porpose
Yep...I think it's the best only solution for the moment.
Kurtnoise is offline   Reply With Quote
Old 1st September 2005, 22:11   #20  |  Link
bond
Registered User
 
Join Date: Nov 2001
Posts: 9,779
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
__________________
Between the weak and the strong one it is the freedom which oppresses and the law that liberates (Jean Jacques Rousseau)
I know, that I know nothing (Socrates)

MPEG-4 ASP FAQ | AVC/H.264 FAQ | AAC FAQ | MP4 FAQ | MP4Menu stores DVD Menus in MP4 (guide)
Ogg Theora | Ogg Vorbis
use WM9 today and get Micro$oft controlling the A/V market tomorrow for free
bond is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:16.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.