Using photoshop for movies issue

  • #1, by madisongeronimoWednesday, 26. July 2017, 09:40 7 years ago
    Okay I really need help. I've been having issues uploading videos to my game and it might be the format or the source.

    So I create my videos with photoshop CS6. And when I input my videos in my game,(Using visionaire studio 5, on MAC.)
    When I put my video in the game, it is distorted, audio is fine. But also the video doesn't end completely, it stays black at least for 20 seconds and moves onto the next scene. It should finish immediately. 

    I don't know if using Photoshop CS6 is good to render and make my videos. Is it the program? Or the format? I been told about a container and mkv? But really I need help for real. I don't even understand the whole video format thing. I just need to know why the videos I make is glitchy in my game.

    The video format I used in my game was mp4.

    I'm posting the settings when you render the video from Photoshop CS6. Cause I don't know if there's something I'm missing when I render my videos.



    Newbie

    33 Posts


  • #2, by esmeraldaWednesday, 26. July 2017, 12:37 7 years ago
    I don't know much about videos, encoding and containers, so I can't really tell what's the problem.
    Here is the recommendation:
    https://wiki.visionaire-tracker.net/wiki/Video_Encoding

    Maybe it's the mp4 format? "We recommed google's free VP8 video codec with ogg/vorbis audio for the mkv container."

    Key Killer

    533 Posts

  • #3, by afrlmeWednesday, 26. July 2017, 12:46 7 years ago
    The black screen after a video ends before changing scene is something to do with waiting for the scene to load or something. You can deactivate it with Lua script, but it says it will freeze on the last frame until scene is loaded instead.

    Insert this inside of an execute a script action part in the "at begin start following action" on the main game settings tab.
    game.ShowBlackScreenAfterVideo = false

    Here's what the data structure page of the wiki says about it...

    If true a black screen will be shown after the video is finished (until the next game scene is ready and all images are loaded). Otherwise the last frame of the video is shown until the game is continued.

    Anyway, if you don't want it to freeze then I recommend instantly switching to the next scene first then playing the video at the begin of the next scene. Should do the trick.

    As for the video format: it should be mkv with vp8 or vp9 (maybe) video codec & ogg or opus audio codec. Check the link Esmeralda shared with you. You will likely need to find another application to convert your videos with.

    P.S: I didn't even know Photoshop could export videos.

    Imperator

    7285 Posts

  • #4, by Simon_ASAWednesday, 26. July 2017, 18:59 7 years ago
    Yes AFRLme you can export videos since a few versions of photoshop! but I don't recommend it for a game. It's better to render videos from an editing software such as After Effects, Premiere, Final Cut or any other similar tool from other developers.

    Anyway it should work with Photoshop, it's just that you won't get the best of the possibilities of video making. Photoshop is to work with pictures before all.

    Now regarding the creation of videos for Visionaire:

    Create your video (photoshop or not). Export to MP4 as usual if you feel at ease with this (but I recommend temporary files in uncompressed AVI - very heavy files but perfect to work).
    Then you need to use an encoding software to get a smaller file with a good compression suited for VS. I personally like a lot Mediacoder when I work with video. It is a freeware and quite easy to use, with everything you need. There are other softwares such as Adobe Media Encoder: you can try the free trial if you want to continue with Adobe tools.

    If you use Mediacoder, you can easily set the recommended settings for Visionaire. Video = VP8, Audio = Ogg vorbis. Then you can choose the final format, which should be MKV. There are also bitrate options, you'll have to make some tests to find the best values but default settings should be ok.
    Check the other tabs and settings (optimize them if you know what to do) and you're good to go. Resulting videos should work fine in Visionaire games, I did hundreds of videos like that for my game Catyph. Good luck!

    Great Poster

    321 Posts

  • #5, by afrlmeWednesday, 26. July 2017, 19:35 7 years ago
    I guess we all learn something new each day. By the way, sent you a message on Patreon the other day.

    P.S: I see you've been making homemade apple juice. Any good? I don't mind it, but not a massive fan of what I've tried from supermarkets in the past.

    Imperator

    7285 Posts

  • #6, by madisongeronimoWednesday, 26. July 2017, 21:50 7 years ago
    okay I'm getting tired of this. I can't understand anything. I spent to hours trying to find the right program to convert my mp4 VIDEO. Please help. I am using media encoder cs6 BUT I do not know any settings!!

    The system preset is H.264 is what I chose and the format it converts is 3pg. And in the game the video is fine, its not distorted this time and it instantly ends without freezing in the end. BUT The video is blurry and I think the audio is low quality. PLEASE HELP. I'm young and I still can't understand. Sorry for the annoyance. 

    Newbie

    33 Posts

  • #7, by SimonSWednesday, 26. July 2017, 21:59 7 years ago
    Hi there, I remember you posted in the rc1 thread, I didn't answer that yet, sorry. But my lists are a little too long...

    The rc1 uses a hardware accelerated yuv decoding, that requires the width to be a multiple of 16 (not just 4 as the codec requires). So at best render to your game resolution, e.g. Full-HD.

    Daedalic often encodes the videos to high quality mp4 with adobe and then lets the scripter reencode them to the target format. If the video doesn't work you can try ffmpeg, but it's command line. Is linked here: https://wiki.visionaire-tracker.net/wiki/Video_Encoding I can prepare a cmd to drop the file on, if that helps you.

    Thread Captain

    1590 Posts

  • #8, by afrlmeWednesday, 26. July 2017, 22:08 7 years ago
    Hi there, I remember you posted in the rc1 thread, I didn't answer that yet, sorry. But my lists are a little too long...

    The rc1 uses a hardware accelerated yuv decoding, that requires the width to be a multiple of 16 (not just 4 as the codec requires). So at best render to your game resolution, e.g. Full-HD.

    Daedalic often encodes the videos to high quality mp4 with adobe and then lets the scripter reencode them to the target format. If the video doesn't work you can try ffmpeg, but it's command line. Is linked here: https://wiki.visionaire-tracker.net/wiki/Video_Encoding I can prepare a cmd to drop the file on, if that helps you.
    Pretty sure we'd all find that useful mate. Especially if you make it so we can link to multiple language audio & subtitle sources with a few tweaks.

    Imperator

    7285 Posts

  • #9, by madisongeronimoWednesday, 26. July 2017, 22:15 7 years ago
    Okay I downloaded FFmpeg but I don't know how to START! This script thing shows up and just how on earth do you convert a video with WORDS!? How to even? How I can I import my mp4 video and convert INTO MKV or whatever? Im sorry, I am just really frustrated because I can't continue making my game if I can solve this!!!!!

    Newbie

    33 Posts

  • #10, by SimonSWednesday, 26. July 2017, 22:27 7 years ago
    It might already work with mp4 if you set the right resolution, since the distortion was the only problem. If you want to convert to mkv:

    Oh dear. You're on Mac. Then I will have to write down the steps...

    Open a terminal (it's an application, just use spotlight).

    Then enter "cd" and a space, drag and drop the folder where ffmpeg is there, it should show something like

    cd /Users/...

    Press enter.

    type (you can copy it here and paste with right click):

    ./ffmpeg -i

    Put a space afterwards, then drop the source file. In the same line it continues (put a space after file).

    -c:a libvorbis -b:a 160k -aq 9 -strict experimental -c:v libvpx -b:v 2800k -y output.mkv

    Enter.

    Good luck.

    Thread Captain

    1590 Posts

  • #11, by madisongeronimoWednesday, 26. July 2017, 22:40 7 years ago
    Here's the results? *cries*


    Newbie

    33 Posts