Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • 0
adasiok

Help me with GZDoom mod Intro!

Question

Hello again!

 

Ok, so I'm trying to add an intro to my doom mod so I looked on another topic there and found out how to make it but from what i read the file must be in IVF. However I didn't found any tool for this, tried ffmpeg but it seems to not work for me either. With this, I have a small question if someone would be able to do it for me? (This may sound a little awkward) if someone would do this I would be extremely grateful! I attached my file here: https://www.mediafire.com/file/d3x1sx3xd0gf8wc/Untitled+19_720p_1.mp4/file , Big Thanks!

Edited by adasiok

Share this post


Link to post

17 answers to this question

Recommended Posts

  • 1
On 10/13/2022 at 6:45 PM, adasiok said:

Almost worked, but it's a little little faster than the sound, it's delayed by a second.

This is weird.

Anyhow, you can try playing with "setpts=1.0*PTS", just changing the 1.0 to 0.9 or whatever, should slow it down. (can't actually remember if it was the opposite, sorry).

Share this post


Link to post
  • 2

Here you go: intro.pk3 (a zip file)

I used the following commands with ffmpeg to convert the video:

ffmpeg -i input.mp4 -c:v libvpx -b:v 1M -an output.ivf
ffmpeg -i input.mp4 -vn -c:a libvorbis output.ogg



 

Share this post


Link to post
  • 2

The sound needs to be provided by a secondary file with the same name. So if you have intro.ivf, the audio for it must be in audio.ogg.

Share this post


Link to post
  • 1
22 hours ago, adasiok said:

 

Yes i DID IT, BUT THE SOUND is misplaced, it's in the wrong spot, it's cut or idk what. I can send the file if you want. Can't even desribe it properly, maybe the intro speed is somehow slower.

First, you should just check if the video and the audio length coincide, if not you have to adjust one of the 2, or, if during the video conversion something went "wrong" (video is sped up or something else), you should make another conversion.

 

Share this post


Link to post
  • 1
28 minutes ago, adasiok said:

The video is longer than the extracted sound. I tried to convert it many times, the thing that showed in the console I noticed was the video speed changing in some places, how can I make ffmpeg not do this?

I used another command to get the intro that I got from here and slightly adjusted (I still barely know what I'm doing, so I bet there are better ways to do that)

ffmpeg -i YourFullFilePathHere\VideName.mp4 -s 960x540 -crf 12 -b:v 50M -minrate 25M -maxrate 50M -bufsize 35M -r 30 -filter:v "setpts=1.0*PTS" -preset slow VideName.ivf

You can specify the video quality you prefer, also I would not recommend to go for an aspect ratio bigger than 960x540, or you'll  get quite big files that would make your wad massive for just an intro.

Share this post


Link to post
  • 0
On 8/27/2022 at 2:28 PM, Worst said:

Here you go: intro.pk3 (a zip file)

I used the following commands with ffmpeg to convert the video:


ffmpeg -i input.mp4 -c:v libvpx -b:v 1M -an output.ivf
ffmpeg -i input.mp4 -vn -c:a libvorbis output.ogg

Thanks, but I still don't know how to use ffmpeg

 

 

Share this post


Link to post
  • 0
3 hours ago, Gez said:

The sound needs to be provided by a secondary file with the same name. So if you have intro.ivf, the audio for it must be in audio.ogg.

What? I don't understand what you are trying to say

Share this post


Link to post
  • 0
5 minutes ago, adasiok said:

What? I don't understand what you are trying to say

The IVF video will have no sound by default. You need to extract the sound into a separate file with the same name, except for the extension. So, if you have intro.ivf, you need to put intro.ogg in the same folder of your WAD.

Share this post


Link to post
  • 0
48 minutes ago, adasiok said:

What? I don't understand what you are trying to say 

For some reason, GZDoom cannot make use of the audio data from an IVF file -- I believe this is because animations and audio rendering are different subsystems, and the audio subsystem doesn't know how to play the audio track from video files.

 

Anyways that means that you need to provide the audio as a separate file. Look at what @Worst did:

On samedi 27 août 2022 at 2:28 PM, Worst said:

I used the following commands with ffmpeg to convert the video:


ffmpeg -i input.mp4 -c:v libvpx -b:v 1M -an output.ivf
ffmpeg -i input.mp4 -vn -c:a libvorbis output.ogg

 

That's basically what you need to do as well.

 

Or you can take a look at this thread:

https://forum.zdoom.org/viewtopic.php?t=76355

Hopefully it'll be more clear. I can't explain it in simpler terms.

Share this post


Link to post
  • 0
56 minutes ago, Rifleman said:

The IVF video will have no sound by default. You need to extract the sound into a separate file with the same name, except for the extension. So, if you have intro.ivf, you need to put intro.ogg in the same folder of your WAD.

 

10 minutes ago, Gez said:

For some reason, GZDoom cannot make use of the audio data from an IVF file -- I believe this is because animations and audio rendering are different subsystems, and the audio subsystem doesn't know how to play the audio track from video files.

 

Anyways that means that you need to provide the audio as a separate file. Look at what @Worst did:

That's basically what you need to do as well.

 

Or you can take a look at this thread:

https://forum.zdoom.org/viewtopic.php?t=76355

Hopefully it'll be more clear. I can't explain it in simpler terms.

Yes i DID IT, BUT THE SOUND is misplaced, it's in the wrong spot, it's cut or idk what. I can send the file if you want. Can't even desribe it properly, maybe the intro speed is somehow slower.

Share this post


Link to post
  • 0
41 minutes ago, Kan3 said:

First, you should just check if the video and the audio length coincide, if not you have to adjust one of the 2, or, if during the video conversion something went "wrong" (video is sped up or something else), you should make another conversion.

 

The video is longer than the extracted sound. I tried to convert it many times, the thing that showed in the console I noticed was the video speed changing in some places, how can I make ffmpeg not do this?

Share this post


Link to post
  • 0
On 10/10/2022 at 6:58 PM, Kan3 said:

I used another command to get the intro that I got from here and slightly adjusted (I still barely know what I'm doing, so I bet there are better ways to do that)


ffmpeg -i YourFullFilePathHere\VideName.mp4 -s 960x540 -crf 12 -b:v 50M -minrate 25M -maxrate 50M -bufsize 35M -r 30 -filter:v "setpts=1.0*PTS" -preset slow VideName.ivf

You can specify the video quality you prefer, also I would not recommend to go for an aspect ratio bigger than 960x540, or you'll  get quite big files that would make your wad massive for just an intro.

Almost worked, but it's a little little faster than the sound, it's delayed by a second.

Share this post


Link to post
  • 0

hey i know im late to this but i cannot figure out ffmpeg. my .bat file is ffmpeg -i C:\Users\thegr\Desktop\ffmpeg-n6.0-32-gd4a7a6e7fa-win64-lgpl-6.0\bin/intro.mp4" -s 250x200 -crf 12 -b:v 50M -minrate 25M -maxrate 50M -bufsize 35M -r 60 -filter:v "setpts=0.5*PTS" -preset slow intro.ivf however it does not appear to work for me so if anyone can help out i'd appreciate it 

(for context not working means when i use the bat it does nothing)

Share this post


Link to post
  • 0
7 hours ago, thegreatnahwhaile said:

hey i know im late to this but i cannot figure out ffmpeg. my .bat file is ffmpeg -i C:\Users\thegr\Desktop\ffmpeg-n6.0-32-gd4a7a6e7fa-win64-lgpl-6.0\bin/intro.mp4" -s 250x200 -crf 12 -b:v 50M -minrate 25M -maxrate 50M -bufsize 35M -r 60 -filter:v "setpts=0.5*PTS" -preset slow intro.ivf however it does not appear to work for me so if anyone can help out i'd appreciate it 

(for context not working means when i use the bat it does nothing)

Well, assuming that you are running your batch file from windows, then for starters you could try adding pause to your batch file after the line with the ffmpeg command. That way you can see if there is an error message before the console window closes. Like so:

ffmpeg -i C:\Users\thegr\Desktop\ffmpeg-n6.0-32-gd4a7a6e7fa-win64-lgpl-6.0\bin/intro.mp4" -s 250x200 -crf 12 -b:v 50M -minrate 25M -maxrate 50M -bufsize 35M -r 60 -filter:v "setpts=0.5*PTS" -preset slow intro.ivf
pause


 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×