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 6th April 2005, 20:46   #61  |  Link
ac-chan123
Registered User
 
Join Date: Jan 2004
Posts: 219
If i'm right, then this was something that mjpegtools createt and is now used by all Video Tools under Linux(ffmpeg, mplayer, transcode, ...)
Some c code can be found at http://parallel.vub.ac.be/~johan/MpegStills/ .
ac-chan123 is offline   Reply With Quote
Old 6th April 2005, 21:33   #62  |  Link
Wilbert
Moderator
 
Join Date: Nov 2001
Location: Netherlands
Posts: 6,364
avs2yuv also creates it (it creates planar I420)

http://students.washington.edu/loren...synth/avs2yuv/

akupenguin wrote it. So i'm sure he can help if necessary

This is newer c code:

http://cvs.sourceforge.net/viewcvs.p...utils/#dirlist

Apperently more colorformats are supported, but simply I420 would be sufficient for now.
Wilbert is offline   Reply With Quote
Old 7th April 2005, 08:20   #63  |  Link
WarpEnterprises
C64
 
WarpEnterprises's Avatar
 
Join Date: Apr 2002
Location: Austria
Posts: 830
1) Good news: if you use avs2yuv with -raw and then RawSource(filename, width, height, "YV12") it works already. When using "I420" U/V are permuted - I'm sorry I confused I420 and YV12.

2) Using the native format will be a little more work, as the frame positions are theoretically not equally spaced (the FRAME header can be different). But if I assume that there is no data in the frame header it makes it much easier. This will be always the case if the stream is not "interlaced mixed" - which AviSynth can't handle AND if there are no "metadata" of variable length.
WarpEnterprises is offline   Reply With Quote
Old 7th April 2005, 09:30   #64  |  Link
Wilbert
Moderator
 
Join Date: Nov 2001
Location: Netherlands
Posts: 6,364
Quote:
1) Good news: if you use avs2yuv with -raw and then RawSource(filename, width, height, "YV12") it works already.
I know. Fred asked me about it and he's using TyTool (which outputs YUV4MPEG). So, that's why i asked you. I asked Fred to send a sample stream to me.

Quote:
When using "I420" U/V are permuted - I'm sorry I confused I420 and YV12.
Are you sure? It's not the case that avs2yuv accidentely outputs YV12? I'm at work, can't check it now.

Quote:
2) Using the native format will be a little more work, as the frame positions are theoretically not equally spaced (the FRAME header can be different). But if I assume that there is no data in the frame header it makes it much easier. This will be always the case if the stream is not "interlaced mixed" - which AviSynth can't handle AND if there are no
"metadata" of variable length.
I asked Fred to check/ask what kind of YUV4MPEG stuff TyTool outputs. I will let you know if he responds.

btw, what kind of data is "metadata" of variable length?
Wilbert is offline   Reply With Quote
Old 7th April 2005, 11:15   #65  |  Link
WarpEnterprises
C64
 
WarpEnterprises's Avatar
 
Join Date: Apr 2002
Location: Austria
Posts: 830
I attach the specs for the header, there is not mentioned, what exactly the metadata should be used for. Maybe something like DG's hints?
Attached Files
File Type: txt yuv4mpeg.txt (3.1 KB, 216 views)
WarpEnterprises is offline   Reply With Quote
Old 9th April 2005, 05:26   #66  |  Link
FredThompson
Registered User
 
FredThompson's Avatar
 
Join Date: Feb 2002
Location: Charlotte, NC USA
Posts: 1,984
Quote:
Originally posted by Wilbert
I know. Fred asked me about it and he's using TyTool (which outputs YUV4MPEG). So, that's why i asked you. I asked Fred to send a sample stream to me.

..

I asked Fred to check/ask what kind of YUV4MPEG stuff TyTool outputs. I will let you know if he responds.
TyTool's author is now active here as "jdiner". There's some chatting between him and nic over in the MPEG2 encoders area. He's a better source than me for the samples you want. I can grab them as TyTool processes but it's quite awkward.
__________________
Reclusive fart.
Collecting Military, Trains, Cooking, Woodworking, Fighting Illini, Auburn Tigers
FredThompson is offline   Reply With Quote
Old 11th April 2005, 06:47   #67  |  Link
jdiner
Registered User
 
Join Date: Mar 2005
Posts: 22
I would be happy to provide some source metrics. I also sent out a PM with the details of what TyTool is doing with it.

I am new to this forum and uncertain what the rules are here for posting, size-wise etc... Until I can get caught up on such then please feel free to make requests and I will fill them as fast as I can.

EDIT: I suppose I should add that I can provide the C++ source I use to make the files, although it is small enough not to be of that much use, and if I can find it the C++ source I wrote to load the files as well. (haven't seen it in a while but a grep search should turn it up if anyone wants to see it.)

--jdiner

Last edited by jdiner; 11th April 2005 at 06:55.
jdiner is offline   Reply With Quote
Old 12th April 2005, 14:23   #68  |  Link
WarpEnterprises
C64
 
WarpEnterprises's Avatar
 
Join Date: Apr 2002
Location: Austria
Posts: 830
check this if it's doing what you thought of:

http://www.avisynth.org/warpenterpri...l_20050412.zip
WarpEnterprises is offline   Reply With Quote
Old 12th April 2005, 14:35   #69  |  Link
FredThompson
Registered User
 
FredThompson's Avatar
 
Join Date: Feb 2002
Location: Charlotte, NC USA
Posts: 1,984
Heh, you just might be my hero!

Not, like, in that way...harumph...how bout that football team, yeah!
__________________
Reclusive fart.
Collecting Military, Trains, Cooking, Woodworking, Fighting Illini, Auburn Tigers
FredThompson is offline   Reply With Quote
Old 12th April 2005, 16:08   #70  |  Link
Wilbert
Moderator
 
Join Date: Nov 2001
Location: Netherlands
Posts: 6,364
So, it works for you?

Btw, could you upload a YUV4MPEG sample?
Wilbert is offline   Reply With Quote
Old 14th April 2005, 07:05   #71  |  Link
jdiner
Registered User
 
Join Date: Mar 2005
Posts: 22
Quote:
Originally posted by Wilbert
So, it works for you?

Btw, could you upload a YUV4MPEG sample?
I have not tested it. Hopefully FredThompson has been able to do so.

Here is a sample y4m file, YUV4MPEG, as requested. It has been packed up as a zip file.

--jdiner
Attached Files
File Type: zip sample2.zip (157.0 KB, 248 views)
jdiner is offline   Reply With Quote
Old 14th April 2005, 07:06   #72  |  Link
jdiner
Registered User
 
Join Date: Mar 2005
Posts: 22
Humm. I am used to attachments showing up immediately in other forums. I assume it didn't here because there is some kind of moderator oversight.

Anyway it has been posted, hopefully it will appear here soon.

--jdiner
jdiner is offline   Reply With Quote
Old 14th April 2005, 08:02   #73  |  Link
WarpEnterprises
C64
 
WarpEnterprises's Avatar
 
Join Date: Apr 2002
Location: Austria
Posts: 830
There were two bugs in the rawsource-DLL. Please try the new version.
(rawsource_25_dll_20050414.zip)
WarpEnterprises is offline   Reply With Quote
Old 14th April 2005, 13:34   #74  |  Link
billou2k
Registered User
 
Join Date: Feb 2002
Location: Under the grey sky
Posts: 146
U and V swapped?

Hi thanks WarpEnt for still improving rawsource I think that is a very useful filter indeed!

I've just tried the latest version (20050414) and it looks like when importing raw YV12 the U and V channels are swapped. (swapUV() function fixes the colour problem)
I tried again the same clip with the 2004.05. version and colours are fine.

Could there be some code from the YV12 mode changed by adding the support for YUV4MPEG?

Cheers
__________________
Minds are like parachutes - they only function when open.
billou2k is offline   Reply With Quote
Old 14th April 2005, 21:38   #75  |  Link
Wilbert
Moderator
 
Join Date: Nov 2001
Location: Netherlands
Posts: 6,364
@jdiner,

If your sample consists out of one frame (?), then it loads fine
Wilbert is offline   Reply With Quote
Old 15th April 2005, 06:46   #76  |  Link
jdiner
Registered User
 
Join Date: Mar 2005
Posts: 22
Quote:
Originally posted by Wilbert
@jdiner,

If your sample consists out of one frame (?), then it loads fine
No. It had several frames in it. 4 I think.

I will have to download what was uploaded and make sure. I will post my results.

EDIT: My appologies. I remember now having to cut it down to get it small enough to post here. There are 2 frames in there.

HEADER FRAME (data) FRAME (data) [EOF]

I can make one of larger sized file with 10 or more frames in it if someone can host it. I will see if I can get my old BSD box un-mothballed. Until that happens anyone want to host a 4 or 5 meg ZIP file?

--jdiner

Last edited by jdiner; 15th April 2005 at 06:49.
jdiner is offline   Reply With Quote
Old 15th April 2005, 07:26   #77  |  Link
FredThompson
Registered User
 
FredThompson's Avatar
 
Join Date: Feb 2002
Location: Charlotte, NC USA
Posts: 1,984
Cut it into chunks (WinRAR, HJ-Split, etc.) and email it to me. I'll host it and any other samples you want posted.
__________________
Reclusive fart.
Collecting Military, Trains, Cooking, Woodworking, Fighting Illini, Auburn Tigers
FredThompson is offline   Reply With Quote
Old 17th April 2005, 21:49   #78  |  Link
WarpEnterprises
C64
 
WarpEnterprises's Avatar
 
Join Date: Apr 2002
Location: Austria
Posts: 830
Re: U and V swapped?

@billou2k: in the latest version U/V is intentionally swapped since I think it was wrong before. You can use "I420" or "YV12" as format strings, one of them will do it (no need to SwapUV, which of course will work too).
WarpEnterprises is offline   Reply With Quote
Old 19th April 2005, 01:39   #79  |  Link
FredThompson
Registered User
 
FredThompson's Avatar
 
Join Date: Feb 2002
Location: Charlotte, NC USA
Posts: 1,984
Here's a 29-frame YUV4MPEG sample from jdiner

http://home.mindspring.com/~utils/29frames.rar
__________________
Reclusive fart.
Collecting Military, Trains, Cooking, Woodworking, Fighting Illini, Auburn Tigers
FredThompson is offline   Reply With Quote
Old 19th April 2005, 09:19   #80  |  Link
WarpEnterprises
C64
 
WarpEnterprises's Avatar
 
Join Date: Apr 2002
Location: Austria
Posts: 830
29frames.y4m works for me.
WarpEnterprises 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 21:54.


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