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 12th April 2006, 00:26   #121  |  Link
billou2k
Registered User
 
Join Date: Feb 2002
Location: Under the grey sky
Posts: 146
ac-chan123: thank you for the idea, I've actually used that workaround in the past but I have several huge sequences to process that way and it is not just possible to do it like that this time. I'm currently looking at the rawsource code to see how that could be done, but i've never coded avisynth plugins
before so that could take some time.
__________________
Minds are like parachutes - they only function when open.
billou2k is offline   Reply With Quote
Old 12th April 2006, 19:51   #122  |  Link
billou2k
Registered User
 
Join Date: Feb 2002
Location: Under the grey sky
Posts: 146
I've actually done it
It's a quick and dirty mod but it seems to work.
I've tested it succesfully on very long raw UYVY sequences and it should also work on any other format with no headers (I actually ran into problems so I got rid of the header part as I don't work with these kind of files).
NB: it is ONLY for file sequences (1file=1frame).
If someone is interested I'll post the sources somewhere.

Last edited by billou2k; 12th April 2006 at 20:52.
billou2k is offline   Reply With Quote
Old 12th April 2006, 23:18   #123  |  Link
Wilbert
Moderator
 
Join Date: Nov 2001
Location: Netherlands
Posts: 6,364
Quote:
If someone is interested I'll post the sources somewhere.
We are always interested

Last edited by Wilbert; 13th April 2006 at 11:55.
Wilbert is offline   Reply With Quote
Old 13th April 2006, 10:21   #124  |  Link
billou2k
Registered User
 
Join Date: Feb 2002
Location: Under the grey sky
Posts: 146
RawsourceSeq

Here we go, I've called it RawsourceSeq, manual is included, it has only been tested by me on UYVY sequences so expect some bugs to occur
(all credits go to Warpentreprise, I've just modified Rawsource)
__________________
Minds are like parachutes - they only function when open.
billou2k is offline   Reply With Quote
Old 14th April 2006, 21:31   #125  |  Link
WarpEnterprises
C64
 
WarpEnterprises's Avatar
 
Join Date: Apr 2002
Location: Austria
Posts: 830
I'm a little bit sorry that I come too late, but I had some other code fragments lying around - so here is my version, too. It is built into imagesequence (as yours it does not use files with header, this makes no sense anyway for single pictures).
http://forum.doom9.org/showthread.php?t=109997
WarpEnterprises is offline   Reply With Quote
Old 28th July 2006, 16:24   #126  |  Link
Fizick
AviSynth plugger
 
Fizick's Avatar
 
Join Date: Nov 2003
Location: Russia
Posts: 2,183
I was need in Y8 raw video reading, and make new option to RawSource plugin. Sent it to WarpEnterprises.
__________________
My Avisynth plugins are now at http://avisynth.org.ru and mirror at http://avisynth.nl/users/fizick
I usually do not provide a technical support in private messages.
Fizick is offline   Reply With Quote
Old 2nd September 2006, 08:26   #127  |  Link
WorBry
Registered User
 
Join Date: Jan 2004
Location: Here, there and everywhere
Posts: 1,197
I'm trying to import some YUV archive sequences using RawSequence (in ImageSequence),

http://www.ldv.ei.tum.de/page70

The 1080p25 series load OK as the files are straight .yuv and pixel type I420. However, the image files of first three series (576i25, 720p 50/59.94 and 1080i 25/29.97) are in .qnt format and I just cant get then to load.

There are some image converson softs out there that support qnt files but they are either for Macs or costly professional programs (with no demo available).

I'm also having the same problem with some archives in SGI format, which I understand is an 16-Bit RGB variant.

Any idea how I can get these images into a format that ImageSequence will accept?

Cheers.

Edit:

I know DRMPEG has the sequences compiled as HD-MPEG2 transport streams on his webpage

http://www.w6rz.net/

but I would like to output the original image sequences as (FFDShow)HuffYuv-YV12 to serve as reference masters.

I've also found a tool that converts SGI to YUV, but its a command line utility and I havent a clue how to use it:

http://www.ldv.ei.tum.de/media/files...eg/sgi2yuv.zip

Last edited by WorBry; 2nd September 2006 at 08:59.
WorBry is offline   Reply With Quote
Old 8th September 2006, 14:36   #128  |  Link
WorBry
Registered User
 
Join Date: Jan 2004
Location: Here, there and everywhere
Posts: 1,197
Quote:
Originally Posted by WorBry
However, the image files of first three series (576i25, 720p 50/59.94 and 1080i 25/29.97) are in .qnt format and I just cant get then to load.
Got it now; change the file extension from .qnt to .yuv and load in RawSequence as pixel type UYVY (i.e. YUY2)

Last edited by WorBry; 8th September 2006 at 14:39.
WorBry is offline   Reply With Quote
Old 11th January 2011, 10:05   #129  |  Link
Chikuzen
typo lover
 
Chikuzen's Avatar
 
Join Date: May 2009
Posts: 595
I tried to read a Y4M file generated by ffmpeg with RawSource, but I got a message "YUV4MPEG2 header error." and faild.
Thus, I challenged to modify RawSource a little.

rawsource.zip

Apparently, it seem that I got success in correspondence to the Y4M header that ffmpeg generate(include C tag) and YUV4:2:2 Y4M.
However, I cannot judge whether the method adopted by me is good because only five days has passed since I start the study of C/C++ language.
Please confirm and give me suggestions.
__________________
my repositories
Chikuzen is offline   Reply With Quote
Old 11th January 2011, 13:51   #130  |  Link
ganymede
Registered User
 
Join Date: Aug 2010
Location: Paris
Posts: 52
I use to generate raw yuv files with ffmpeg (not y4m) :
Code:
ffmpeg -i yuv_source -an -vcodec rawvideo file.yuv
These files can be read with rawsource, eg. for 720x576 (default size) :
Code:
RawSource("file.yuv", pixel_type="I420")
You can use a different pixel_type argument, and add width and height parameters to adjust size.
ganymede is offline   Reply With Quote
Old 11th January 2011, 19:41   #131  |  Link
Wilbert
Moderator
 
Join Date: Nov 2001
Location: Netherlands
Posts: 6,364
Quote:
I tried to read a Y4M file generated by ffmpeg
Could you upload such a file somewhere?
Wilbert is offline   Reply With Quote
Old 11th January 2011, 20:53   #132  |  Link
Chikuzen
typo lover
 
Chikuzen's Avatar
 
Join Date: May 2009
Posts: 595
@Wilbert
here
__________________
my repositories
Chikuzen is offline   Reply With Quote
Old 12th January 2011, 06:46   #133  |  Link
Chikuzen
typo lover
 
Chikuzen's Avatar
 
Join Date: May 2009
Posts: 595
added mono(Y8) colorspace suport on YUV4MPEG2.
rawsource_20110112.zip

sample(mono Y4M)
__________________
my repositories
Chikuzen is offline   Reply With Quote
Old 21st May 2011, 15:38   #134  |  Link
Chikuzen
typo lover
 
Chikuzen's Avatar
 
Join Date: May 2009
Posts: 595
fix and small improvement.

*Fix parsing of YUV4MPEG2 stream header.
*Fix processing of interlaced YUV4MPEG2.
*Add support of ARGB / I422(YUV422planar) / YV411(YVU411planar) / YUV411planar .

sourcecode
https://github.com/chikuzen/RawSource_2.5x
__________________
my repositories

Last edited by Chikuzen; 29th May 2011 at 20:48.
Chikuzen is offline   Reply With Quote
Old 23rd May 2011, 12:05   #135  |  Link
Chikuzen
typo lover
 
Chikuzen's Avatar
 
Join Date: May 2009
Posts: 595
updated.

RawSource_25_dll_20110523.zip

*Add ABGR/NV12/NV21 support.
__________________
my repositories
Chikuzen is offline   Reply With Quote
Old 29th May 2011, 20:47   #136  |  Link
Chikuzen
typo lover
 
Chikuzen's Avatar
 
Join Date: May 2009
Posts: 595
updated.

RawSource_25_dll_20110529.zip
note:requires msvcr100.dll

*Change maximal width to 4096.
*Add new parameters fpsnum/fpsden.
__________________
my repositories
Chikuzen is offline   Reply With Quote
Old 22nd June 2011, 20:05   #137  |  Link
Chikuzen
typo lover
 
Chikuzen's Avatar
 
Join Date: May 2009
Posts: 595
RawSource for avisynth2.6

I rewrited RawSource.dll to support new features(pixel types) of avs2.6.

RawSource_26_dll_20110614.zip

requirement:
Avisynth2.6.0alpha2 or later
SSE capable CPU
msvcr100.dll
__________________
my repositories
Chikuzen is offline   Reply With Quote
Old 6th September 2011, 10:21   #138  |  Link
jmac698
Registered User
 
Join Date: Jan 2006
Posts: 1,867
Interesting, could someone modify this plugin to read the 10bit v210 format, and display it as the common convertion, where image is double height, with MSB at top and LSB at bottom? In this case, we can now import nicely, the 10bit data and process with existing tools (dither, deband, etc.) and also output to 10bit encode (with avs2yuv and 10bit x264)?
http://wiki.multimedia.cx/index.php?title=V210

It's a pain to decode, but doesn't take too long (I've done it in script).
For samples,
http://forum.doom9.org/showthread.ph...highlight=v210
jmac698 is offline   Reply With Quote
Old 25th September 2011, 13:29   #139  |  Link
Chikuzen
typo lover
 
Chikuzen's Avatar
 
Join Date: May 2009
Posts: 595
update

*change MAX_WIDTH into 65536

rawsource_26_dll_20110925.zip

requirement:
Avisynth2.6.0alpha2 or later
SSE capable CPU
msvcr100.dll(Microsoft Visual C++ 2010 Redistributable Package)
__________________
my repositories

Last edited by Chikuzen; 26th September 2011 at 11:01.
Chikuzen is offline   Reply With Quote
Old 25th September 2011, 16:19   #140  |  Link
jmac698
Registered User
 
Join Date: Jan 2006
Posts: 1,867
Updated http://avisynth.org/mediawiki/Extern...Source_Filters
Do you have a homepage of any type?
jmac698 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 03:35.


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