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. |
6th April 2005, 20:46 | #61 | Link |
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/ . |
6th April 2005, 21:33 | #62 | Link |
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. |
7th April 2005, 08:20 | #63 | Link |
C64
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. |
7th April 2005, 09:30 | #64 | Link | |||
Moderator
Join Date: Nov 2001
Location: Netherlands
Posts: 6,364
|
Quote:
Quote:
Quote:
btw, what kind of data is "metadata" of variable length? |
|||
9th April 2005, 05:26 | #66 | Link | |
Registered User
Join Date: Feb 2002
Location: Charlotte, NC USA
Posts: 1,984
|
Quote:
__________________
Reclusive fart. Collecting Military, Trains, Cooking, Woodworking, Fighting Illini, Auburn Tigers |
|
11th April 2005, 06:47 | #67 | Link |
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. |
12th April 2005, 14:35 | #69 | Link |
Registered User
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 |
14th April 2005, 07:05 | #71 | Link | |
Registered User
Join Date: Mar 2005
Posts: 22
|
Quote:
Here is a sample y4m file, YUV4MPEG, as requested. It has been packed up as a zip file. --jdiner |
|
14th April 2005, 13:34 | #74 | Link |
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. |
15th April 2005, 06:46 | #76 | Link | |
Registered User
Join Date: Mar 2005
Posts: 22
|
Quote:
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. |
|
15th April 2005, 07:26 | #77 | Link |
Registered User
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 |
17th April 2005, 21:49 | #78 | Link |
C64
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).
|
Thread Tools | Search this Thread |
Display Modes | |
|
|