Jump to content
The Dark Mod Forums

Converting .avi to .roq


Springheel

Recommended Posts

I'm trying to add some video to my mission. I've been looking for info on making .roqs for Doom3, but all the information I can find is about five years old now. Is Switchblade still the best program for doing this? Has anyone other than Goldcochobo tried adding .roqs to their missions yet?

Link to comment
Share on other sites

You can also use ffmpeg to quite easily convert to RoQ (it has a few bug fixes that the last Switchblade wont have):


  1.  
  2. ffmpeg win32 latest repo builds
  3. extract ffmpeg.exe into the directory you want to work in
  4. go to that directory in command prompt
  5. > ffmpeg -i inputvid.avi -r 30 -s 256x256 outputname.roq

 

Adjust as needed for size and such.

 

Guess I could make a little script for DR to give you the options and such in a nice interface? (tho this wouldn't be included with the release)

Link to comment
Share on other sites

  • 2 weeks later...

Man, this is a headache.

 

I've got Switchblade, but before I can use it I need to convert my video to 512x512. The instructions recommended VirtualDub, but VirtualDub won't read .wmv files. So I used another program to convert my video to an .avi, but when opening it VirtualDub complained about something and then crashed whenever I tried to manipulate it.

 

Can anyone recommend a good program to prepare .wmv videos for use in Switchblade? Will ffmpeg convert them directly to .roq?

Link to comment
Share on other sites

Spring, I'm using FormatFactory, and I'm quite happy with it. It's free, so just take a look. It should convert the WMV's to AVI's without a hassle.

My Eigenvalue is bigger than your Eigenvalue.

Link to comment
Share on other sites

# ffmpeg win32 latest repo builds

 

Ok, I followed that link but I can't figure out which file is actually ffmpeg. The names aren't very helpful. git-N-28849-ga82cfad?? :)

Link to comment
Share on other sites

I just downloaded the 7-zip (*.7z) file for "git-N-28849-ga82cfad" and it had an ffmpeg executable in it. So I imagine you can just look at the dates and choose the latest file with a 7z extension.

 

It also appears that this is a CLI only tool unless there's a frontend out there that I'm not aware of (I never even knew ffmpeg was available for Windows so what do I know...)

Please visit TDM's IndieDB site and help promote the mod:

 

http://www.indiedb.com/mods/the-dark-mod

 

(Yeah, shameless promotion... but traffic is traffic folks...)

Link to comment
Share on other sites

Ok, I followed that link but I can't figure out which file is actually ffmpeg. The names aren't very helpful. git-N-28849-ga82cfad?? :)

 

Just grab the latest one and extract it somewhere nice, place the video in the same folder and navigate to it in command prompt.

 

Lets say we've put the video we want to convert(inputvid.wmv) along with ffmpeg.exe into C:\temp\

 

  1. Start -> run -> cmd
  2. > cd C:\temp
  3. > ffmpeg -i inputvid.wmv -r 30 -s 256x256 outputname.roq

-r is the fps; iirc doom likes 30. -s is resolution you want, remember to keep it as a power of two and multiple of 8 if at all possible. Any other switches can be found in ffmpeg docs

 

I'll make a little script to give it an interface in DR next week, I've got a month of work-from-home time, should mean I can finish my tools or at least get them into the repos.

Link to comment
Share on other sites

Grrr. Another roadblock. I get the following error: "Error while opening encoder for output streem #0.1 - maybe incorrect parameters such as bit_rate, rate, width or height."

 

I used the parameters you listed, except I put 512x512 for the dimensions. But I get the same error when trying 256x256 as well.

Link to comment
Share on other sites

Indeed it did, thanks. It's processing now, though I'm getting a lot of "generated a frame too big" warnings. I hope they're not serious. Won't have time to test it until tomorrow.

Link to comment
Share on other sites

Indeed it did, thanks. It's processing now, though I'm getting a lot of "generated a frame too big" warnings. I hope they're not serious. Won't have time to test it until tomorrow.

 

Bit odd, I transcoded a bunch of random small vids to roq a few days ago to test stuff, most seemed to be just fine, dont recall seeing any of those errors - tho it does like to give a lot of pointless output. Let me know if it works out ok tho!

Link to comment
Share on other sites

Well, it does work. The resolution isn't great and the colours come out quite desaturated--nearly black and white, but it works.

Link to comment
Share on other sites

Well, it does work. The resolution isn't great and the colours come out quite desaturated--nearly black and white, but it works.

 

Hmmm, the frame size might have been to do with the input colour space that you were using in the wmv, I'll have a think about it. Most likely just need to tell it to do a slightly indirect conversion. If you have an avi/mkv or some other format of the same vid it might be worth trying that as the source. The encoder itself is the same one that switchblade uses. You can also try playing it back in MPC or something, I know that doom3's roq stuff was completely replaced during dev and the guy still felt it wasn't great :)

 

If you feel like it and have the bw to burn you can upload it somewhere and pm me a link?

Link to comment
Share on other sites

Bleh. I'm trying a different video now, and getting the same error as before, even when adding the -ar 22050 flag. <_<

Link to comment
Share on other sites

Doh. I added the -ar tag at the very end; apparently it needs to go before the output name. :P

Link to comment
Share on other sites

  • 2 weeks later...
Can already see what you're talking about - really quite odd.

 

Will let you know what I find

 

Any ideas here, Serp? I'm going to be creating another one soon and would like to avoid the desaturated look if possible.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recent Status Updates

    • Ansome

      Query: when was the last time a zombie in a video game was unnerving or scary to you? I'm chipping away at my anniversary submission and I've been trying to gather opinions on the subject. I'm perfectly capable of lighting them well, changing their sfx, and creating effective ambience, but I'm worried that zombies at their core are just too overdone to be an effective payoff to the tension I'm creating.
      · 0 replies
    • nbohr1more

      The Lieutenant 3 is out! Congrats Frost_Salamander! ( raising awareness )
      · 2 replies
    • OrbWeaver

      Has anyone had any luck with textures from Polyhaven? Their OpenEXR normal maps seem too washed out and give incorrect shading in the engine.
      · 5 replies
    • datiswous

      I tried to upscale the TDM logo video. First try:

      briefing_video.mp4 You can test it ingame by making a copy of the core tdm_gui.mtr and place it in your-tdm-root/materials/ , then edit line 249 of that file into the location where you placed the new briefing.mp4 file.
      What I did was I extracted all the image files, then used Upscayl to upscale the images using General photo (Real-Esrgan) upscale setting and then turn it back into a video.
      I might have to crop it a bit, the logo looks smaller on screen (or maybe it's actually better this way?). My video editor turned it into a 16:9 video, which I think overal looks better than 1:1 video of original.
      · 1 reply
    • nbohr1more

      Trying to be productive on my down-time before Capcom releases Akuma and my son is constantly on my PC playing Street Fighter...
      · 1 reply
×
×
  • Create New...