Author Topic: Resizing ingame screens (image and movie)  (Read 36879 times)

Hellbringer616

  • *
  • Posts: 1913
    • View Profile
Re: Resizing ingame screens (image and movie)
« Reply #50 on: 2009-06-20 17:11:05 »
Well, guess it's back to the drawing board.

Hmm well this explains the lack of support

I'm getting conflicting information. the main site says it only supports MP4 with something like divX or Fddshow. But it works But on Wiki it says it supports H.264/MPEG-4 AVC
« Last Edit: 2009-06-20 17:30:46 by hellbringer616 »

DLPB_

  • Banned
  • *
  • Posts: 11006
    • View Profile
Re: Resizing ingame screens (image and movie)
« Reply #51 on: 2009-06-20 18:43:11 »
INFO: J:\PFilesX\FF7\Movies\opening.avi; h264/aac 1280x896, 15.000000 FPS, duration: 127.666667, frames: 1915
ERROR: couldn't create sound buffer: The parameter is incorrect.

WM_CLOSE
Field Quit
MIDI stop - OK

I am guessing this is an issue with AAC audio?

Aali

  • *
  • Posts: 1196
    • View Profile
Re: Resizing ingame screens (image and movie)
« Reply #52 on: 2009-06-20 18:53:54 »
Setting up the audio buffer is mostly guesswork since I haven't figured out how to get the relevant information from FFMpeg.
Using a simpler audio format will work for now (MP3 should work, any raw PCM format will work if all else fails), but that's not a very good solution and the fault lies with the driver on this one.

DLPB_

  • Banned
  • *
  • Posts: 11006
    • View Profile
Re: Resizing ingame screens (image and movie)
« Reply #53 on: 2009-06-20 18:58:42 »
aali you are a genius.  The mp4 works now :)  It is just an audio issue with AAC.  MP3 CBR 224 would work but isn't ideal..

I will wait until there is support for it. I will now make sure I have the frame total exact with this opening.avi and allow people to download and test it :)

Hellbringer616

  • *
  • Posts: 1913
    • View Profile
Re: Resizing ingame screens (image and movie)
« Reply #54 on: 2009-06-20 19:00:36 »
So it's the audio causing our crashes? Not sure how since i don't have audio on my video. But oh well :-D

Aali

  • *
  • Posts: 1196
    • View Profile
Re: Resizing ingame screens (image and movie)
« Reply #55 on: 2009-06-20 19:05:18 »
Nah, the crashing probably happens because it doesn't handle unsupported video codecs properly.

Also, I should probably add proper support for >15 FPS movies... It's not very difficult after all.

DLPB_

  • Banned
  • *
  • Posts: 11006
    • View Profile
Re: Resizing ingame screens (image and movie)
« Reply #56 on: 2009-06-20 19:07:08 »
well from an update pov of psx, the increase in frame rate isn't needed but obviously if people are using other movie files :)  and hellbringer, your h264 encoder is obviously not to the proper spec.  That is why the likes of vegas are a better option.

Hellbringer616

  • *
  • Posts: 1913
    • View Profile
Re: Resizing ingame screens (image and movie)
« Reply #57 on: 2009-06-20 19:10:08 »
well from an update pov of psx, the increase in frame rate isn't needed but obviously if people are using other movie files :)  and hellbringer, your h264 encoder is obviously not to the proper spec.  That is why the likes of vegas are a better option.

Hmm, how would i do it in Vegas? And how much does it cost? Because there are a few things i could do with that program

DLPB_

  • Banned
  • *
  • Posts: 11006
    • View Profile
Re: Resizing ingame screens (image and movie)
« Reply #58 on: 2009-06-20 19:14:33 »
On their website :)  And in vegas all you do is set the project to 1280*896 and add a few effects, then exporting is as simple as render as> sony mp4/aac > settings.

And that is it.

Hellbringer616

  • *
  • Posts: 1913
    • View Profile
Re: Resizing ingame screens (image and movie)
« Reply #59 on: 2009-06-20 19:16:29 »
Yeah don't think it's worth the $600 haha.... But they have a trial, I'll use that give it a wirl :-D

Yeah, it didn't work =\

Same error no codec.

Saved as a Sony AVC (.mp4; .m2ts; .avc)
Settings i used at

Video Format: AVC (only other option is Memorystick that doesn't let me resize..)
Profile: Main
Entropy Coding: CABAC
Frame Rate: 15.000 (multimedia)
Field Order: None (progressive Scan)
Pixal Aspect Ratio: 1.0000
Bit Rate: 4,000,000

Audio (which since i don't have shouldn't be an issue..) Default AAC settings.
« Last Edit: 2009-06-20 19:41:05 by hellbringer616 »

DLPB_

  • Banned
  • *
  • Posts: 11006
    • View Profile
Re: Resizing ingame screens (image and movie)
« Reply #60 on: 2009-06-20 21:24:06 »
ok here is one you can use to replace the original opening.avi using aalis driver.

Bare in mind there are a few problems.

1.  The audio AAC doesnt work with driver so I have removed sound

2.  There is, for some reason, a very long time between the FMV ending and the main scene beginning.

ftp://apps:[email protected]:2121/opening.avi

Hellbringer616

  • *
  • Posts: 1913
    • View Profile
Re: Resizing ingame screens (image and movie)
« Reply #61 on: 2009-06-20 22:38:01 »
Is that just resized and to be modded? Or not? If it's a release then it's in .avi, thought we were using .mp4

DLPB_

  • Banned
  • *
  • Posts: 11006
    • View Profile
Re: Resizing ingame screens (image and movie)
« Reply #62 on: 2009-06-20 22:38:56 »
an mp4 is just an extension.  That avi file on my serveer is an mp4 wrapped H.264 file.

Hellbringer616

  • *
  • Posts: 1913
    • View Profile
Re: Resizing ingame screens (image and movie)
« Reply #63 on: 2009-06-20 22:42:20 »
Ahh, Might be why my files don't play then. right? I just leave them as .mp4

DLPB_

  • Banned
  • *
  • Posts: 11006
    • View Profile
Re: Resizing ingame screens (image and movie)
« Reply #64 on: 2009-06-20 22:45:32 »
that is definately why they aren't working....without renaming them, the application won't see them.

Hellbringer616

  • *
  • Posts: 1913
    • View Profile
Re: Resizing ingame screens (image and movie)
« Reply #65 on: 2009-06-20 22:47:17 »
I didn't know it had to be .avi though haha

Works like a charm  :-D

DLPB_

  • Banned
  • *
  • Posts: 11006
    • View Profile
Re: Resizing ingame screens (image and movie)
« Reply #66 on: 2009-06-20 23:55:25 »
I am afraid no matter how much you use video enhancer or any other method, the result will be less than perfect.

However, the psx vids are far superior to PC and that was the objective here :)  When/if aali can get AAC to work with the driver and iron out the slow down at the end of the FMV I will begin work on reencoding the lot.

Kranmer

  • *
  • Posts: 766
    • View Profile
Re: Resizing ingame screens (image and movie)
« Reply #67 on: 2009-06-21 09:08:56 »
hey seifer i aint sure but i dont think the slowdown at the end of the video's is aali's problem but i think its yours. Try this video. Its a remake of yours (yes i kept it in Mp4 format renamed to AVI) and see if the slowdown still happens for you.
http://www.mediafire.com/?nzydhn4mkxh

EDIT:-
Now i have also managed to add sound by changing the headers of the Mp4 file to H264 then dubbing sound over in virtualdub using the IMA ADPCM codec (tried mp3 codec but it didnt work right in ff7 but this could be my problem) and it seems to come out alright so you can try that here if you want to take a look
http://www.mediafire.com/?wgz55rmz1ej
« Last Edit: 2009-06-21 11:31:07 by kranmer »

DLPB_

  • Banned
  • *
  • Posts: 11006
    • View Profile
Re: Resizing ingame screens (image and movie)
« Reply #68 on: 2009-06-21 14:47:48 »
ADPCM is a poor codec if I remember correctly.  What we need is AAC support and I am sure it will come in time.  I will test your video now and see if the slow down still occurs.  I have used 2 encoders now mainconcept and sony and both slowed down....I can try other settings to like baseline as opposed to main but we will see how your video file goes

Kranmer

  • *
  • Posts: 766
    • View Profile
Re: Resizing ingame screens (image and movie)
« Reply #69 on: 2009-06-21 15:42:36 »
hi seifer. I know its a poor codec but since the original audio aint that great i really dont think it makes worlds of difference. I have only currently tried using AAC, DIVX and Mp3 audio but none of them have worked so far, It only seems to work correctly with PCM audio codecs so far (although i cant say none others work since i only have a few audio codecs installed). Also let me know if my video makes any difference for you.

DLPB_

  • Banned
  • *
  • Posts: 11006
    • View Profile
Re: Resizing ingame screens (image and movie)
« Reply #70 on: 2009-06-21 16:19:38 »
ahh yes, but the PSX version audio is better ;)  much better.

Any case....  I tested your FMV and noted that it has shaved some hundred + frames which is why it appears to work. (It has nothing to do with codec, it is the frame total it would appear)

The full frame of opening.avi is 1914, yours is in the 1700 region.  why this is , I do not know.  I can't see PSXMC adding 200 frames....but I will definately see what the frame rate was before converting using PSXMC.

Kranmer

  • *
  • Posts: 766
    • View Profile
Re: Resizing ingame screens (image and movie)
« Reply #71 on: 2009-06-21 16:52:57 »
yes i shaved the file down to the same amount of frame as the original PC video's. all your video's so far (the fire and the opening) have both had long spots at the end of the file. i am not sure what added them but one of your encoders or converters may have done this or maybe the PSX videos are just longer (i have the PSX orignal PAL version of FF7 but i remember converting the videos used to be a real pain with "PSXvideo" so now i stick to PC formats)
i made the video match the PC frames exactly (i opened virtual dub and check the frames then deleted the extra frames which seemed to be added to your video. Your fire video was the same and the black screen at the end of the video went on way to long. And i wasnt sure if it was your encoder adding the frames or if it was your original conversion or if the PSX videos actually did run longer (but i doubt this last one)

Also on a side note, since PSX PAL and NTSC are supposed to have different video resoultions would that make any difference ? i wonder if it would be better to convert from PAL or NTSC ? (i cant remember exactly but i seem to remember somthing about PSX videos being different frame rates and different resolutions depending on region)

DLPB_

  • Banned
  • *
  • Posts: 11006
    • View Profile
Re: Resizing ingame screens (image and movie)
« Reply #72 on: 2009-06-21 16:58:16 »
Whilst NTSC and PAL do use different colour, frame rate and resolution, this does not seem to be true of FF7.

15 fps is more cartoon frame rate.  Movie original is  24 fps, PAL 25 fps, NTSC 29.97 fps  

Resolution of PAL is 720 (or 768) X 576  and NTSC is 720 X 480

[the only advantage of NTSC over PAL is frame rate.  The colour and resolution of PAL is better]

It appears as if FF7 video does not use any defined spec at all ( 15fps @ 320 X 224), it certainly isn't PAL or NTSC.  And I think you have worked out the problem.  The psx videos are longer.  I will watch out for that, well spotted

I am baffled by the resolution of the FF7 video's....half of 640*480 is 320 * 240  yet it uses 320*224.....
« Last Edit: 2009-06-21 17:04:55 by Seifer Almasy »

Kranmer

  • *
  • Posts: 766
    • View Profile
Re: Resizing ingame screens (image and movie)
« Reply #73 on: 2009-06-21 17:03:44 »
ah ok i havent really looked into ff7 videos that much fior PSX. but i have just put my FF7 CD into my PC and used "PSXVIDEO" and the videos to me seem to be the same length as the PC ones. it could be the converter your using or somthing like that.

DLPB_

  • Banned
  • *
  • Posts: 11006
    • View Profile
Re: Resizing ingame screens (image and movie)
« Reply #74 on: 2009-06-21 17:05:00 »
ah ok i havent really looked into ff7 videos that much fior PSX. but i have just put my FF7 CD into my PC and used "PSXVIDEO" and the videos to me seem to be the same length as the PC ones. it could be the converter your using or somthing like that.

In that case it must be PSXMC adding frames to the original....I will test that right away