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. |
19th April 2005, 14:39 | #81 | Link |
Registered User
Join Date: Jan 2004
Posts: 219
|
here is an alternate source:
http://www1.mplayerhq.hu/MPlayer/samples/yuv4mpeg2/ |
25th April 2005, 05:04 | #83 | Link | |
Registered User
Join Date: Mar 2005
Posts: 22
|
Quote:
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 |
|
28th August 2005, 08:23 | #87 | Link |
interlace this!
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 |
21st September 2005, 16:02 | #89 | Link |
C64
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! |
22nd September 2005, 10:25 | #90 | Link |
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). |
26th September 2005, 13:41 | #93 | Link |
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) Code:
RawSource("x:\uncompressed_yuv_no_audio_720x486.mov", 720, 486,"UYVY", offset=48) |
7th October 2005, 13:51 | #94 | Link |
C64
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. |
8th October 2005, 12:43 | #95 | Link |
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. |
11th October 2005, 15:29 | #96 | Link |
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. |
11th October 2005, 23:13 | #99 | Link | |
Registered User
Join Date: Jun 2005
Location: Mid-South USA
Posts: 53
|
Quote:
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: |
|
11th October 2005, 23:28 | #100 | Link |
Moderator
Join Date: Nov 2001
Location: Netherlands
Posts: 6,364
|
@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). |
Thread Tools | Search this Thread |
Display Modes | |
|
|