Page 1 of 1

ASF Frame Extraction

Posted: Sun Jun 10, 2007 7:32 pm
by com3d
I would like to see XnView have the ability to extract ALL the frames from a ASF file.
The program can play the files, and extract individual frames, but right now it does not know the correct amount of frames a ASF file has.

In the Extract movie frames dialog box - save group - it would be nice to have a save all frames check box (of course it has to know how many frames there are).

In that same group it would be nice if we the users could provide the output file format template: for example: fl#####.jpg [where # would be the numeric with leading zeros ] or whatever, instead of the long names it outputs now.

Sounds doable, xnview ?

Re: ASF Frame Extraction

Posted: Mon Jun 11, 2007 6:37 am
by xnview
com3d wrote:I would like to see XnView have the ability to extract ALL the frames from a ASF file.
The program can play the files, and extract individual frames, but right now it does not know the correct amount of frames a ASF file has.
Could you send a sample?
In the Extract movie frames dialog box - save group - it would be nice to have a save all frames check box (of course it has to know how many frames there are).

In that same group it would be nice if we the users could provide the output file format template: for example: fl#####.jpg [where # would be the numeric with leading zeros ] or whatever, instead of the long names it outputs now.
Ok

Posted: Tue Jun 12, 2007 2:09 am
by com3d
Most examples are large 3MB and over, and would require a broadband connection to upload, I have dial-up. But it is my belief that you can get _any_ ASF video file and you can see that Xnview is lost when it comes to the number of frames [the numbers it displays are ~whacky~ and wrong].

Now if someone else on the forums with broadband can upload a ASF video file that would be great. If no one does or you can not find one, I will see what I can do.

Now you might be saying 'how am I suppose to know when Xnview is right/fixed'. You can go to www.onestopsoft.com they have 'video decompiler' it gives the correct number and extracts all the frames. When Xnview matches the other program (number displayed and number of frames extracted) you know it's fixed. Right now Xnview will extract the first frame (of a ASF file) and all the other extracted frames are copies of the last frame; and it appears to get caught in some sort of loop.

=============================
[ this is not that important, but it may be connected with the above ]
Here is something else you can try to fix for both AVI and ASF(sorry for so much bad news), in the Extract Movie Frames dialog box - the Number Of Frames input box - the user should not be able to input a number that is higher than the number of frames or number of frames left in the video (for example if you have a 75 frame AVI (or ASF) and the slider is at frame 15 if you click the up arrow you should not be able be get past 60, because 60 would be the end for that video.

[ this has nothing to do with this topic but you xnview/Pierre should be aware of it]
Have you ever heard the saying "you can't get there from here" ?
This is true for these Forums; go to your Homepage - you can not get here from there!! You should update you Homepage links (and the links on the other pages of your site that are suppose to bring people here) to these forums.

Posted: Mon Jun 18, 2007 8:31 am
by foxyshadis
Something that'll make this difficult is that ASF indexes don't have a framecount or an index of all frames, like AVI, and not all splitters will parse the whole file for a framecount. AFAIK xnview uses directshow only currently, which means it's at the mercy of the splitter. (MS ASF parser is one of the worst, in fact, as it was mostly designed in the pre-antitrust days for lock-in and DRM. As far as I know the only software that can use frame-accurate editing of ASF has to write their own parser or use ffmpeg's.) Complicating matters is that wmv9 uses vfr pretty agressively, where 1 second may be 30 frames in one place and only 10 in another. Working with timecodes ends up being simpler and usually closer to what you want, when working with vfr.

Here's a sample: Legend of Zelda Dance (wmv is asf)