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 > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 8th December 2002, 16:46   #21  |  Link
hanfrunz
Registered User
 
hanfrunz's Avatar
 
Join Date: Feb 2002
Location: Germany
Posts: 540
Thanks a lot MarcFD, you are my hero!

will you release the source code, so everybody can learn how itīs done?

hans runz
hanfrunz is offline   Reply With Quote
Old 8th December 2002, 17:06   #22  |  Link
Marc FD
XviD fan
 
Marc FD's Avatar
 
Join Date: Jun 2002
Location: France
Posts: 907
it's ugly, sbasic (~150 lines) and i don't have time to release it, but if someone really want it, i'm an opensource coder after all ^__^
Marc FD is offline   Reply With Quote
Old 8th December 2002, 22:43   #23  |  Link
WarpEnterprises
C64
 
WarpEnterprises's Avatar
 
Join Date: Apr 2002
Location: Austria
Posts: 830
Please, what's "sbasic" ?
WarpEnterprises is offline   Reply With Quote
Old 8th December 2002, 23:04   #24  |  Link
scmccarthy
Registered User
 
Join Date: Oct 2002
Posts: 462
Mark FD -

I am definitely interested in seeing the code. Did you write it in a programming language other that C++? I finally figured out how to write a YUV version of colorbars(). Dividee told me how to handle the audio, so now it works. I am using the invert filter as a pattern. I need to compare that with simple filters that work entirely differently.

Stephen
scmccarthy is offline   Reply With Quote
Old 9th December 2002, 13:06   #25  |  Link
Marc FD
XviD fan
 
Marc FD's Avatar
 
Join Date: Jun 2002
Location: France
Posts: 907
>Please, what's "sbasic" ?

i wrote first : "simple", then i delete it simpl simp sim so s and i wrote basic => sbasic . it's a typo ^^

@stephen

i'll pack it a day with the sources if i write some new stuff.
Marc FD is offline   Reply With Quote
Old 9th December 2002, 16:19   #26  |  Link
scmccarthy
Registered User
 
Join Date: Oct 2002
Posts: 462
No, no, sbasic is really a neat new programming language!

If you can really write a filter in basic instead of cpp I'd like to see how that is done.

Stephen
scmccarthy is offline   Reply With Quote
Old 9th December 2002, 16:48   #27  |  Link
Marc FD
XviD fan
 
Marc FD's Avatar
 
Join Date: Jun 2002
Location: France
Posts: 907
quoting myself :
>i wrote first : "simple"

i didn't mean basic as a langage. "basic instinct" is not a film about computers
Marc FD is offline   Reply With Quote
Old 31st January 2003, 00:38   #28  |  Link
hanfrunz
Registered User
 
hanfrunz's Avatar
 
Join Date: Feb 2002
Location: Germany
Posts: 540
Hello MarcFD,

the new 2.5 beta is out and your fantastic filter is not running anymore :

"Plugin raw422.dll is not an AviSynth 2.5 plugin"

would be cool, if you had time to fix it.

Thanks again,
hanfrunz
hanfrunz is offline   Reply With Quote
Old 31st January 2003, 23:45   #29  |  Link
WarpEnterprises
C64
 
WarpEnterprises's Avatar
 
Join Date: Apr 2002
Location: Austria
Posts: 830
MarcFD has abandoned development and this filter has no source code.
Stick to 2.0 for this application (you can safely use two versions)
WarpEnterprises is offline   Reply With Quote
Old 15th February 2004, 22:17   #30  |  Link
WarpEnterprises
C64
 
WarpEnterprises's Avatar
 
Join Date: Apr 2002
Location: Austria
Posts: 830
I made a new version for importing YUV-files (WITH source code):

http://www.avisynth.org/warpenterprises/

RawSource(filename, width, height, pixeltype)

e.g.

RawSource("d:\src6_ref__625.yuv",720,576,"UYVY")

Change the framerate with AssumeFPS(30) if it is not 25fps.

"pixeltype" isn't the internal AviSynth-format, but the format in the YUV-file. This will be mapped correctly, without any resampling.
Supported types:
RGB, RGBA, BGR, BGRA, YUYV, UYVY, YVYU, VYUY

Remember, this plugin reads video files which contain many frames.
It works for reading ONE frame, but not for file sequences (they must be loaded separately).

Last edited by WarpEnterprises; 16th February 2004 at 22:53.
WarpEnterprises is offline   Reply With Quote
Old 16th February 2004, 09:26   #31  |  Link
sh0dan
Retired AviSynth Dev ;)
 
sh0dan's Avatar
 
Join Date: Nov 2001
Location: Dark Side of the Moon
Posts: 3,480
Actually I think Richards ImageReader/ImageWriter supports YUV images by now (in ebmp mode).
__________________
Regards, sh0dan // VoxPod
sh0dan is offline   Reply With Quote
Old 16th February 2004, 10:30   #32  |  Link
Wilbert
Moderator
 
Join Date: Nov 2001
Location: Netherlands
Posts: 6,364
@WarpEnterprises,

1) what do you use to make such a yuv clip?

2) No NTSC support?
Wilbert is offline   Reply With Quote
Old 16th February 2004, 14:59   #33  |  Link
ac-chan123
Registered User
 
Join Date: Jan 2004
Posts: 219
I have request a filter for using .yuv file in avisynth.
Sources of .yuv:
-VQEG
-xiph
-on the homepage of the most codec standardization group like mpeg and avc

AC-Chan(Robert Vincenz)
ac-chan123 is offline   Reply With Quote
Old 16th February 2004, 21:39   #34  |  Link
Wilbert
Moderator
 
Join Date: Nov 2001
Location: Netherlands
Posts: 6,364
Sorry, I misread the docs. There is NTSC support.

I have one small request thought Could you add I420 and YV12 support?

The only free avi2yuv tool I could find:

http://www.ee.surrey.ac.uk/Personal/S.Worrall/dloads/

converts uncompressed RGB stuff (= tried XviD encoding, didn't work) to I420.

Last edited by Wilbert; 16th February 2004 at 21:43.
Wilbert is offline   Reply With Quote
Old 16th February 2004, 23:04   #35  |  Link
WarpEnterprises
C64
 
WarpEnterprises's Avatar
 
Join Date: Apr 2002
Location: Austria
Posts: 830
I hate YV12 :-)

ac-chan123, your problems with the xiph videos come from that format.

It is a little more typing to add this and I have to download some frames first, but I will give it a try (which gives the answer to Wilbert, too).
WarpEnterprises is offline   Reply With Quote
Old 17th February 2004, 01:13   #36  |  Link
WarpEnterprises
C64
 
WarpEnterprises's Avatar
 
Join Date: Apr 2002
Location: Austria
Posts: 830
OK, get the new version with YV12 and I420 support.

@ac-chan: try

RawSource("d:\blue_sky.yuv",1920,1080,"YV12")
WarpEnterprises is offline   Reply With Quote
Old 17th February 2004, 03:33   #37  |  Link
ac-chan123
Registered User
 
Join Date: Jan 2004
Posts: 219
@WarpEnterprises: i try it and it work realy good. but if i (Source) playback "YV12" yuv file per avs in VDMod v1.5.10.1, there change the color. when i go one frame after an other, the color is ok.
ac-chan123 is offline   Reply With Quote
Old 17th February 2004, 06:26   #38  |  Link
Richard Berg
developer wannabe
 
Richard Berg's Avatar
 
Join Date: Nov 2001
Location: Brooklyn, NY
Posts: 1,211
Quote:
Originally posted by sh0dan
Actually I think Richards ImageReader/ImageWriter supports YUV images by now (in ebmp mode).
This is true. Right now it uses a small custom RIFF header to set the image parameters, but these could be specified as filter arguments (to the Reader) if there was demand.
Richard Berg is offline   Reply With Quote
Old 17th February 2004, 23:04   #39  |  Link
WarpEnterprises
C64
 
WarpEnterprises's Avatar
 
Join Date: Apr 2002
Location: Austria
Posts: 830
@Richard:

- Is that ebmp == the custom RIFFed filed?
- ImageWriter: would it be possible to APPEND all written images to ONE file (without header), with this it would be possible to generate those YUV files, maybe useful for testing purposes.

It is clear that we (ImageReader/RawSource) have some overlapping functionality but I don't see how to combine it nicely.
WarpEnterprises is offline   Reply With Quote
Old 21st February 2004, 01:30   #40  |  Link
Wilbert
Moderator
 
Join Date: Nov 2001
Location: Netherlands
Posts: 6,364
I added YV12 support for you! Not bad for someone who can't program

I failed to add I420 (which is what I really want). I tried to add the code of SwapUV, but I couldn't get that to work. But there might be a simplier way.

Could you have a look at I420 support?

I420 clip (640x480, 25 fps):

http://www.geocities.com/wilbertdijkhof/raw.yuv

source+dll:

http://www.geocities.com/wilbertdijkhof/RawSource.zip

Note that if you open the clip as YV12, you will see that the output is correct except that the U and V channels are swapped. Thus YV12 input is correct since YV12 = I420 with swapped U and V.

Last edited by Wilbert; 21st February 2004 at 01:48.
Wilbert 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 15:14.


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