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 19th April 2005, 14:39   #81  |  Link
ac-chan123
Registered User
 
Join Date: Jan 2004
Posts: 219
here is an alternate source:
http://www1.mplayerhq.hu/MPlayer/samples/yuv4mpeg2/
ac-chan123 is offline   Reply With Quote
Old 20th April 2005, 20:59   #82  |  Link
Wilbert
Moderator
 
Join Date: Nov 2001
Location: Netherlands
Posts: 6,337
Quote:
29frames.y4m works for me.
If I open the clip it has 28 frames, not 29? (The other had one frame instead of two, perhaps a frame is dropped somewhere ?)
Wilbert is offline   Reply With Quote
Old 25th April 2005, 05:04   #83  |  Link
jdiner
Registered User
 
Join Date: Mar 2005
Posts: 22
Quote:
Originally posted by Wilbert
If I open the clip it has 28 frames, not 29? (The other had one frame instead of two, perhaps a frame is dropped somewhere ?)
It has 29 frames. I just verified that.

Open it up in a hex editor or your favorite tool for doing such viewing and search for the ASCII string "FRAME".

Everything before the first one is the header, the first occurance marks the transition from the file header into the first frame. Each occurance of frame after that marks the transition to the next frame.

In viewing it in that way it is clear that there are 29 frames. In running it through the currently used compressor it results in 29 output frames.

Would appear that there is still an issues in the current loader code.

--jdiner
jdiner is offline   Reply With Quote
Old 25th April 2005, 20:31   #84  |  Link
WarpEnterprises
C64
 
WarpEnterprises's Avatar
 
Join Date: Apr 2002
Location: Austria
Posts: 830
Yes, yes, yes, my fault.

http://www.avisynth.org/warpenterpri...l_20050425.zip
WarpEnterprises is offline   Reply With Quote
Old 25th April 2005, 21:37   #85  |  Link
Wilbert
Moderator
 
Join Date: Nov 2001
Location: Netherlands
Posts: 6,337
Thumbs up!
Wilbert is offline   Reply With Quote
Old 25th April 2005, 22:39   #86  |  Link
jdiner
Registered User
 
Join Date: Mar 2005
Posts: 22
Quote:
Originally posted by WarpEnterprises
Yes, yes, yes, my fault.
No insult intended. Just trying to be helpful.

--jdiner
jdiner is offline   Reply With Quote
Old 28th August 2005, 08:23   #87  |  Link
Mug Funky
interlace this!
 
Mug Funky's Avatar
 
Join Date: Jun 2003
Location: i'm in ur transfers, addin noise
Posts: 4,555
thread resurrection!

i'm playing with rawsource to load uncompressed mov. it's working pretty well on raw video files i've demuxed using mplayer (which couldn't play it, and wasn't very helpful in transmuxing to avi), but the frame headers mean the picture moves by 2 pixels per frame. chroma stays aligned, thankfully.

is it possible to mod rawsource to allow an arbitrary (constant...) header size to be input? or even a header string in hex? (it's "c0ad0a00"). that would be totally awesome, as it's totally stupid that it's so hard to get uncompressed UYVY out of quicktime and put it in avi without converting to RGB first...

rawsource is the closest i've come to getting these files converted (audio is handled fine by mplayer, so it's not a problem), and it's FAST, which is a good thing indeed
__________________
sucking the life out of your videos since 2004
Mug Funky is offline   Reply With Quote
Old 12th September 2005, 07:07   #88  |  Link
WarpEnterprises
C64
 
WarpEnterprises's Avatar
 
Join Date: Apr 2002
Location: Austria
Posts: 830
Can you send me a small sample? (~ 5 frames) I don't understand exactly what you mean.
WarpEnterprises is offline   Reply With Quote
Old 21st September 2005, 16:02   #89  |  Link
WarpEnterprises
C64
 
WarpEnterprises's Avatar
 
Join Date: Apr 2002
Location: Austria
Posts: 830
Try this (you can enter a constant header offset):
http://www.avisynth.org/warpenterpri...l_20050921.zip

I got a sample with an offset of 1024. The width of the video was 720, but it had strange 304 lines and is interlaced, so you have to use:

RawSource("c:\_video\test2.2vuy",720,304,"UYVY", offset=4*256)
AssumeFieldBased
Weave

I guess the 16 more lines are control data or such, you can simply crop it away.

Tell me if it works for you!
WarpEnterprises is offline   Reply With Quote
Old 22nd September 2005, 10:25   #90  |  Link
peter100m
Registered User
 
Join Date: Mar 2005
Posts: 36
@WarpEnterprises: Thank you for your work! The sample I sent you was indeed interlaced and had a height of 608. The extra lines (608-576) contains the visible vitc-code (and I guess other control data.) The constant header offset works and I've tested this so far with sources from 2 different editing systems.

@Mug Funky: There is no longer any need to go over ffmpeg or mplayer to demux the uncompressed Quicktime files to get the YUV-data. Open the .movs with the new version of Rawsource. One not though: the Quicktime files can not contain any audio or there will be garbage pixels visible (the audio data).
peter100m is offline   Reply With Quote
Old 23rd September 2005, 15:55   #91  |  Link
Wilbert
Moderator
 
Join Date: Nov 2001
Location: Netherlands
Posts: 6,337
Just curious. What's vitc-code?

@Mug Funky,

Could you upload 2-3 frames raw mov somewhere? I'd like to have it.
Wilbert is offline   Reply With Quote
Old 24th September 2005, 04:56   #92  |  Link
ac-chan123
Registered User
 
Join Date: Jan 2004
Posts: 219
http://www.google.com/search?q=vitc
ac-chan123 is offline   Reply With Quote
Old 26th September 2005, 13:41   #93  |  Link
peter100m
Registered User
 
Join Date: Mar 2005
Posts: 36
about VITC: http://en.wikipedia.org/wiki/Vertical_interval_timecode
An image of what the VITC looks like here . The white rectangles are bits of information visible in the picture. Note that this image includes the overscan area (which is why we see the VITC).

@Wilbert
I've uploaded two samples that works with the new Rawsource.
The first one is here (2mb)
Code:
RawSource("x:\blue_yuv_720x608.2vuy",720,304, "UYVY",offset=4*256)
AssumeFieldBased()
ComplementParity()
Weave()
AssumeFPS(25)
And the other one (2mb) is an uncompressed Quicktime movie.
Code:
RawSource("x:\uncompressed_yuv_no_audio_720x486.mov", 720, 486,"UYVY", offset=48)
edit: url typo
peter100m is offline   Reply With Quote
Old 7th October 2005, 13:51   #94  |  Link
WarpEnterprises
C64
 
WarpEnterprises's Avatar
 
Join Date: Apr 2002
Location: Austria
Posts: 830
using an index

I made a new version of RawSource which can use an index string (or index file).
You can specify the position of the first frame, a fixed interval, two interleaved intervals or only some arbitrary key frames.

http://www.avisynth.org/warpenterpri...html#rawsource

To find the intervals a little command line tool is included. It "may" work on YUV files (not with RGB) - it seaches for big blocks of valid YUV data.
WarpEnterprises is offline   Reply With Quote
Old 8th October 2005, 12:43   #95  |  Link
peter100m
Registered User
 
Join Date: Mar 2005
Posts: 36
Nice work WarpEnterprises!
This is really useful! The Yuvscan tool as well!
One issue though: RawSource can't parse the default index file from yuvscan. There's an extra line in the beginning of the file and white spaces on every line. If I remove those it works.

Will try more uncompressed Quicktime sources soon, but so far so good!

Last edited by peter100m; 8th October 2005 at 12:47.
peter100m is offline   Reply With Quote
Old 11th October 2005, 15:29   #96  |  Link
shorton
Registered User
 
Join Date: Jun 2005
Location: Mid-South USA
Posts: 53
Warpenterprises:

Wilbert's been helping me with a project where I'm now trying to import a particular raw YUV format to avoid any color conversions. Thread HERE. The author of the format I'm trying to use (drmpeg) says its a:

>> 720x480 4:2:2 YCbCr file in headerless planar format (720*480 bytes of
Y, followed by 360*480 bytes of Cb and then 360*480 bytes of Cr).
<<

A sample file is here:
http://www.w6rz.net/ycsd.yuv
It is my understanding these are single frame files.

I need to get Rawsource to read that format if possible. Wilbert may already be working on it (thanks Wilbert!), but I thought I'd mention it here since it's specific to rawsource and Wilbert may not have time to fiddle with it right now.

Any help getting this format to be read properly by Avisynth would be most appreciated.

Presuming Rawsource becomes able to read that format, I've still got to turn those single frames into multiple frames at 59.97fps like Imagesource, but that's a different thing to figure out

Thanks guys! Best, Scott

Last edited by shorton; 12th October 2005 at 02:19.
shorton is offline   Reply With Quote
Old 11th October 2005, 20:01   #97  |  Link
WarpEnterprises
C64
 
WarpEnterprises's Avatar
 
Join Date: Apr 2002
Location: Austria
Posts: 830
Doesn't give one of

RawSource("d:\avitest\ycsd.yuv",720,480,"I420")
RawSource("d:\avitest\ycsd.yuv",720,480,"YV12")

the correct result? It seems Ok, but the example is too meaningless to tell.
WarpEnterprises is offline   Reply With Quote
Old 11th October 2005, 20:07   #98  |  Link
Wilbert
Moderator
 
Join Date: Nov 2001
Location: Netherlands
Posts: 6,337
@WarpEnterprises

That sample file is 4:2:2 planar (not 4:2:0).
Wilbert is offline   Reply With Quote
Old 11th October 2005, 23:13   #99  |  Link
shorton
Registered User
 
Join Date: Jun 2005
Location: Mid-South USA
Posts: 53
Quote:
Originally Posted by WarpEnterprises
Doesn't give one of

RawSource("d:\avitest\ycsd.yuv",720,480,"I420")
RawSource("d:\avitest\ycsd.yuv",720,480,"YV12")

the correct result? It seems Ok, but the example is too meaningless to tell.
Thank you for the help:
I had been trying to open the files directly in the encoders. Both promptly crash either encoder. So per Wilberts suggestion I opened them in Virtualdub. They do open but they are not right. And either image crashes virtualdub on closing.

The image is supposed to look like the attached reduced jpeg:
Attached Images
 
shorton is offline   Reply With Quote
Old 11th October 2005, 23:28   #100  |  Link
Wilbert
Moderator
 
Join Date: Nov 2001
Location: Netherlands
Posts: 6,337
@WarpEnterprises,

I modified rawsource.cpp a bit. It can open raw YV16 (planar 4:2:2) now and converts it to YUY2.

But it still has the problem that VDub/VDubMod crashes upon exit (removing rawsource.dll outside the plugin folder didn't help).
Attached Files
File Type: zip RawSource.zip (3.7 KB, 176 views)
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 14:55.


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