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 23rd July 2005, 13:49   #1  |  Link
bond
Registered User
 
Join Date: Nov 2001
Posts: 9,779
ffmpeg2theora with derf's theora codec support

j^ has ported his ffmpeg2theora tool to be able to be used with derf's theora encoder which makes use of the full features theora offers and not only the ones which were also there in vp3 (as supported in the reference theora encoder)

the sources can be found here: ffmpeg2theora-exp and derf's encoder

anyone wanting to make a compile for testing this?
__________________
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 23rd July 2005, 22:15   #2  |  Link
ak
Registered User
 
ak's Avatar
 
Join Date: Oct 2002
Posts: 89
You can get one here: http://4nykey.nm.ru/bin/ffmpeg2theora-svn.exe
ak is offline   Reply With Quote
Old 23rd July 2005, 22:22   #3  |  Link
bond
Registered User
 
Join Date: Nov 2001
Posts: 9,779
thx, but are you sure that this is with derf's encoder? did you do the compiles?
__________________
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 23rd July 2005, 22:28   #4  |  Link
ak
Registered User
 
ak's Avatar
 
Join Date: Oct 2002
Posts: 89
Well, yes, it says 'ffmpeg2theora-exp 0.13-svn' and oggs it produces decodable only with libtheora-exp. If I upped the right one that is
ak is offline   Reply With Quote
Old 23rd July 2005, 22:29   #5  |  Link
bond
Registered User
 
Join Date: Nov 2001
Posts: 9,779
thanks a lot!
__________________
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 28th July 2005, 08:31   #6  |  Link
hellfred
FFmpeg fan
 
Join Date: Dec 2003
Location: Germany
Posts: 427
cropping comand

I just cant get ffmpeg2theora to crop my clip

ffmpeg2theora -h states:
Code:
ffmpeg2theora-exp 0.13-svn

 usage: ffmpeg2theora-exp [options] input

Output options:
	 --output,-o		alternative output
	 --width, -x		scale to given size
	 --height,-y		scale to given size
	 --aspect		define frame aspect ratio: i.e. 4:3 or 16:9
	 --crop[top|bottom|left|right]	crop input before resizing
         ...
Here a list of commands that I have tried, all in vain.
Code:
::ffmpeg2theora --crop=8:8:8:8 -o out.ogg prodigy90_med.mpg
::ffmpeg2theora -croptop 32 -cropbottom 32 -cropleft 32 -cropright 32 -o out.ogg Suzuka.avi
::ffmpeg2theora -o out.ogg Suzuka.avi
::ffmpeg2theora -i Suzuka.avi -croptop 32 -cropbottom 32 -cropleft 32 -cropright 32 -o out.ogg 
::ffmpeg2theora --crop 8|8|8|8 -o out.ogg Suzuka.avi > out.txt
::ffmpeg2theora --crop 8 | 8 | 8 | 8 -o out.ogg Suzuka.avi > out.txt
::ffmpeg2theora --crop [8 | 8 | 8 | 8] -o out.ogg Suzuka.avi > out.txt
::ffmpeg2theora --crop [8|8|8|8] -o out.ogg Suzuka.avi > out.txt
::ffmpeg2theora --crop=[8|8|8|8] -o out.ogg Suzuka.avi > out.txt
::ffmpeg2theora --crop=[8 | 8 | 8 | 8] -o out.ogg Suzuka.avi > out.txt
::ffmpeg2theora --crop 8:8:8:8 -o out.ogg Suzuka.avi > out.txt
ffmpeg2theora --crop=8:8:8:8 -o out.ogg Suzuka.avi > out.txt
PAUSE


E:\Rechner\Neu\Import\ffmpeg2theora>ffmpeg2theora --crop=8:8:8:8 -o out.ogg Suzu
ka.avi  1>out.txt
ffmpeg2theora: ambiguous option -- crop
Input #0, avi, from 'Suzuka.avi':
  Duration: 00:24:03.8, start: 0.000000, bitrate: 1018 kb/s
  Stream #0.0: Video: mpeg4, yuv420p, 640x480, 23.98 fps
  Stream #0.1: Audio: mp3, 48000 Hz, stereo, 128 kb/s
  Resize: 640x480
  Resample: 48000Hz => 44100Hz
      0:00:00.04 audio: 0kbps video: 7480kbps
The output shows ffmpegg2theora`s typical error message, if ffmepg2theora starts up at all. As one can see, the source is modolo 16, and encoding without cropping works just fine. But I want to encode some TV-captures with bad edges that need to be cutted badly.
Can anybody please enlighten me, how to set cropping values.

Hellfred

EDIT:
Googling for "ffmpeg2thora crop" brought up the solution:

Code:
ffmpeg2theora --croptop 16 --cropbottom 16 --cropright 32 --cropleft 16 -o out.ogg Suzuka.avi > out.txt

Last edited by hellfred; 28th July 2005 at 08:37.
hellfred is offline   Reply With Quote
Old 28th July 2005, 08:48   #7  |  Link
bill_baroud
Registered User
 
Join Date: Feb 2002
Posts: 407
how's the quality compared to "reference" theora ?
bill_baroud is offline   Reply With Quote
Old 28th July 2005, 09:44   #8  |  Link
hellfred
FFmpeg fan
 
Join Date: Dec 2003
Location: Germany
Posts: 427
Quote:
Originally Posted by bill_baroud
how's the quality compared to "reference" theora ?
Sorry, that i do not know, as i never used that one. But just try yourself. Win32-binaries are available for both and the usage of ffmpeg2theora is quite simple. I have to hunt bugs right now.

Hellfred
hellfred is offline   Reply With Quote
Old 28th July 2005, 19:36   #9  |  Link
bond
Registered User
 
Join Date: Nov 2001
Posts: 9,779
hellfred, i also struggled with its crop option and this is how it works:
Code:
--croptop 82 --cropbottom 78
aso

Quote:
Originally Posted by bill_baroud
how's the quality compared to "reference" theora ?
i would say its worse than the reference one

but derfs decoder is both faster and complete
__________________
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 29th July 2005, 08:41   #10  |  Link
hellfred
FFmpeg fan
 
Join Date: Dec 2003
Location: Germany
Posts: 427
Yes, last night I encoded the same clip already used for testing derfs encoder with standardt ffmpeg2theora, featuring the mmx-enhanced reference encoder. Derfs encode was a little bit sharper (only set quality with -v 10 to max) but had much more block artefacts e.g. in the sky and more ringing. Source was a vob that needed to be deinterladed (-d).
hellfred is offline   Reply With Quote
Old 29th July 2005, 09:48   #11  |  Link
PatchWorKs
Registered User
 
PatchWorKs's Avatar
 
Join Date: Aug 2002
Location: Italy
Posts: 231
Err....

Why not porting these 'enhanced' features to ffvfw ?

...FairUse is going to become the 1st DVD Backup tool that encodes by it.
PatchWorKs is offline   Reply With Quote
Old 29th July 2005, 10:36   #12  |  Link
dimzon
BeHappy/MeGUI developer
 
dimzon's Avatar
 
Join Date: Oct 2003
Location: Moscow, Russia
Posts: 1,727
how about AviSynth support???
dimzon is offline   Reply With Quote
Old 30th July 2005, 08:54   #13  |  Link
hellfred
FFmpeg fan
 
Join Date: Dec 2003
Location: Germany
Posts: 427
Quality on analog capture

Hi
I have made yet anoter test comparing the two ffmpeg2theora. This time the source was a video clip, captured with my analog tv-card. The Source has only low quality, was captured als lossless MJPEG and was being properly deinterlaced croped and resized (modolo16) before encoding. Deinterlacing was done using kerneldeint.
Again, derf showed much more blocks as the mmx-enhanced reference encoder.

Hellfred
hellfred is offline   Reply With Quote
Old 31st July 2005, 15:47   #14  |  Link
bond
Registered User
 
Join Date: Nov 2001
Posts: 9,779
Quote:
Originally Posted by dimzon
how about AviSynth support???
you can feed ffmpeg2theora with .avs via akupenguin's avs2yuv tool

Quote:
Originally Posted by PatchWorKs
Why not porting these 'enhanced' features to ffvfw
ffvfw is not existing anymore

and ffdshow already includes the theora reference encoder and can even output to .ogg! (yeah .ogg, not .ogm)
__________________
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 5th August 2005, 09:26   #15  |  Link
PatchWorKs
Registered User
 
PatchWorKs's Avatar
 
Join Date: Aug 2002
Location: Italy
Posts: 231
Quote:
ffvfw is not existing anymore
What you mean ?
It's present in the last ffdshow build.
PatchWorKs is offline   Reply With Quote
Old 5th August 2005, 10:06   #16  |  Link
celtic_druid
Registered User
 
celtic_druid's Avatar
 
Join Date: Oct 2001
Location: Melbourne, Australia
Posts: 2,171
Well not exactly. There is a VfW wrapper called ff_vfw, but ffvfw as a project as said doesn't exist any more... There is just ffdshow.
celtic_druid is offline   Reply With Quote
Old 5th August 2005, 13:04   #17  |  Link
PatchWorKs
Registered User
 
PatchWorKs's Avatar
 
Join Date: Aug 2002
Location: Italy
Posts: 231
oh, well... you mean they merged. I know.
PatchWorKs is offline   Reply With Quote
Old 18th March 2006, 15:56   #18  |  Link
Sirber
retired developer
 
Sirber's Avatar
 
Join Date: Oct 2002
Location: Canada
Posts: 8,978
Quote:
Originally Posted by bond
you can feed ffmpeg2theora with .avs via akupenguin's avs2yuv tool
Any way to feed ffmpeg2theora with .avs and have sound?
__________________
Detritus Software
Sirber is offline   Reply With Quote
Old 18th March 2006, 16:15   #19  |  Link
celtic_druid
Registered User
 
celtic_druid's Avatar
 
Join Date: Oct 2001
Location: Melbourne, Australia
Posts: 2,171
Well I guess you could pipe from avs2wav to ffmpeg.
celtic_druid is offline   Reply With Quote
Old 18th March 2006, 17:21   #20  |  Link
Sirber
retired developer
 
Sirber's Avatar
 
Join Date: Oct 2002
Location: Canada
Posts: 8,978
Is there a way to pipe video and audio from .avs at the same time?
__________________
Detritus Software
Sirber 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 11:24.


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