SNM Movie Converter

Want to edit the game, build your own craft and missions? Here you'll find help, tools, guides and people to discuss with.

SNM Movie Converter

User avatar
JeremyaFr
XWAU Member
Posts: 3922
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Tue Oct 10, 2017 4:06 pm

Hello,

Here is a tool to convert SNM movie files to/from AVI files.
XwaSnmConverter.PNG

Download link:
https://github.com/JeremyAnsel/XwaSnmCo ... ses/latest
You do not have the required permissions to view the files attached to this post.
Last edited by JeremyaFr on Tue Jul 09, 2019 11:11 am, edited 1 time in total.

User avatar
Darksaber
Vice Admiral
Posts: 10931
Joined: Mon Jan 10, 2000 12:01 am
Contact:

Post by Darksaber » Wed Oct 11, 2017 8:24 am

Thank you :D
“You can please some of the people all of the time, you can please all of the people some of the time, but you can’t please all of the people all of the time”.”
- John Lydgate

Good Things Come To Those Who Wait....
Darksaber's X-Wing Station

User avatar
Rookie_One1
Rebel Alliance
Posts: 1656
Joined: Thu Feb 26, 2004 12:01 am

Post by Rookie_One1 » Wed Oct 11, 2017 3:42 pm

Jeremy, you miracle worker!
Rookie One, is that you?? - Ru Merleen, Rebel Spy at Imdaar Alpha
Current Holder of the Frying Pan of Death

User avatar
Darksaber
Vice Admiral
Posts: 10931
Joined: Mon Jan 10, 2000 12:01 am
Contact:

Post by Darksaber » Wed Oct 11, 2017 8:28 pm

Hi Jeremy,

I'm getting error message when trying to convert an .avi to snm

This is the error
snmerror.jpg
I started coverting the custom movies for the Impieral Hangar installation, I started converting the BriefRoom.avi, Ceremony.avi, LogoFinal.avi, Marko.avi everything went fine until I tried to convert the Pod.avi and Techroom.avi and I got the same error with both files

I even tried converting the sound wav to 22000Hz from 11000Hz and remaking the avi file, but I got the same error

Any Ideas?
Here are the original and new pod.avi files if that helps (New file named Pod5.avi)
Pod.rar
You do not have the required permissions to view the files attached to this post.
“You can please some of the people all of the time, you can please all of the people some of the time, but you can’t please all of the people all of the time”.”
- John Lydgate

Good Things Come To Those Who Wait....
Darksaber's X-Wing Station

User avatar
JeremyaFr
XWAU Member
Posts: 3922
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Wed Oct 11, 2017 8:49 pm

Hello,
Try to convert the audio to 22050 Hz, 16 bits per sample.

User avatar
Darksaber
Vice Admiral
Posts: 10931
Joined: Mon Jan 10, 2000 12:01 am
Contact:

Post by Darksaber » Wed Oct 11, 2017 9:08 pm

Thanks that worked :)
“You can please some of the people all of the time, you can please all of the people some of the time, but you can’t please all of the people all of the time”.”
- John Lydgate

Good Things Come To Those Who Wait....
Darksaber's X-Wing Station

User avatar
Darksaber
Vice Admiral
Posts: 10931
Joined: Mon Jan 10, 2000 12:01 am
Contact:

Post by Darksaber » Wed Oct 11, 2017 11:46 pm

Another question, does the .avi file have to be 15 frames per second, I only ask as my techroom.avi is 60 FPS which = 120 images, I converted the wav to 22050 Hz, 16 bits per sample but I still get the error due the increase in FPS, so I reduced the avi to 15FPS and it converted ok, but then the movie was 3 or times slower, so I then reduced the images in the avi to 30, and 15 FPS, but it reduces the quality for the movie.

I'm just wondering if there is anyway to increase the FPS in your convertor, if not don't worry I could always keep the Techroom as an avi as the TGsmush will of course still play it :) it would have been nice though to convert it to a SNM file :)

Thanks, other than that it works just fine, it takes a while converting large files like the Intro_Final.snm to .avi but its fine, well done there.

Oh can I point you to this thread, it might interest you Imperial IFF Chatter I'm not sure how it works or if it works as there hasn't been any feedback from ual002, and this Justagai fellow just seems to have given up on it.

Take a look at the thread though :D
“You can please some of the people all of the time, you can please all of the people some of the time, but you can’t please all of the people all of the time”.”
- John Lydgate

Good Things Come To Those Who Wait....
Darksaber's X-Wing Station

Bman
Lieutenant Commander
Posts: 1167
Joined: Mon Apr 05, 2004 11:01 pm

Post by Bman » Sat Nov 11, 2017 9:21 pm

Thanks Jeremy.
W-I-P: TFTC, MC Viscount Cr., ISD-II Avenger, NL-1 Platform, Ton-Falk Esc. Cr., & Misc.

User avatar
Ace Antilles
Admiral (Moderator)
Posts: 7829
Joined: Sat Jan 22, 2000 12:01 am
Contact:

Post by Ace Antilles » Thu May 14, 2020 2:11 pm

Bug report. Marcop000 has this issue when converting an Italian version of Prologue.snm to AVI.
marcop000 wrote:
Thu May 14, 2020 10:38 am
Hi, Unfortunatenly I can't upscaling the other files:
Battle*.snm and Prologue.snm
because I get this error while try to convert to avi:
bug1.png
hope will find a solution.
The
I have tried it with a standard Steam us/uk version of Prologue.snm and no problem.
When I tried to convert the Italian file myself I got this error.
snmbug.PNG
The actual SNM file will play fine through the old player program. Something odd in another language videos maybe?
Link below to the file Marcop000 gave to be tested.
https://we.tl/t-FMmnTqwlu7

Thanks Jeremy :)
You do not have the required permissions to view the files attached to this post.
Chief XWAU Team annoying nitpicker.
Ace Antilles - The X-Wing Outpost
Image

User avatar
JeremyaFr
XWAU Member
Posts: 3922
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Thu May 14, 2020 3:38 pm

UPDATE

Hello,
I've updated XwaSnmConverter.

When a snm file contains invalid data, the program throws an exception. I've fixed it. Now invalid data are ignored.

User avatar
JeremyaFr
XWAU Member
Posts: 3922
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Tue May 19, 2020 6:43 pm

WIP

Hello,
Here is a WIP version of XwaSnmConverter.

I've added support for mp4 exporting.

EDIT: link removed
Last edited by JeremyaFr on Fri May 22, 2020 2:09 pm, edited 1 time in total.

User avatar
Ace Antilles
Admiral (Moderator)
Posts: 7829
Joined: Sat Jan 22, 2000 12:01 am
Contact:

Post by Ace Antilles » Tue May 19, 2020 7:22 pm

JeremyaFr wrote:
Tue May 19, 2020 6:43 pm
WIP

Hello,
Here is a WIP version of XwaSnmConverter.
I've added support for mp4 exporting.
XwaSnmConverter_WIP.zip
Thanks so much for making this. :)
Firstly SNM to MP4 worked fine but there are some bugs.

Open an AVI file and try to convert to SNM and I get this
Capture.PNG
Converts fine in the old program
You do not have the required permissions to view the files attached to this post.
Chief XWAU Team annoying nitpicker.
Ace Antilles - The X-Wing Outpost
Image

User avatar
JeremyaFr
XWAU Member
Posts: 3922
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Fri May 22, 2020 2:14 pm

WIP

EDIT: link removed

Changelog:
- export avi files in Mpeg4 format instead of MotionJpeg format.
- import any video files with the Media Foundation APIs.

The supported formats are listed here:
Supported Media Formats in Media Foundation
Last edited by JeremyaFr on Sun May 24, 2020 12:53 pm, edited 1 time in total.

User avatar
Ace Antilles
Admiral (Moderator)
Posts: 7829
Joined: Sat Jan 22, 2000 12:01 am
Contact:

Post by Ace Antilles » Fri May 22, 2020 3:13 pm

JeremyaFr wrote:
Fri May 22, 2020 2:14 pm
WIP
XwaSnmConverter_WIP.zip

Changelog:
- export avi files in Mpeg4 format instead of MotionJpeg format.
- import any video files with the Media Foundation APIs.

The supported formats are listed here:
Supported Media Formats in Media Foundation
From what I can tell from my testing it's all working fine now :)
Great work!
Chief XWAU Team annoying nitpicker.
Ace Antilles - The X-Wing Outpost
Image

User avatar
keiranhalcyon7
Lieutenant JG
Posts: 599
Joined: Tue Jan 02, 2018 6:41 am

Post by keiranhalcyon7 » Fri May 22, 2020 7:34 pm

JeremyaFr wrote:
Fri May 22, 2020 2:14 pm
- export avi files in Mpeg4 format instead of MotionJpeg format.
Is that MPEG-4 part 2 or MPEG-4 part 10 (H.264)?

User avatar
Darksaber
Vice Admiral
Posts: 10931
Joined: Mon Jan 10, 2000 12:01 am
Contact:

Post by Darksaber » Fri May 22, 2020 7:38 pm

Does your TGSmush.dll support all these formats, or have I missed something?
“You can please some of the people all of the time, you can please all of the people some of the time, but you can’t please all of the people all of the time”.”
- John Lydgate

Good Things Come To Those Who Wait....
Darksaber's X-Wing Station

User avatar
JeremyaFr
XWAU Member
Posts: 3922
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Fri May 22, 2020 7:46 pm

@keiranhalcyon7
When exporting to avi file, the codec is MS MPEG-4 Video v3 (MP43) for video and PCM for audio.
When exporting to mp4 file, the codec is H264 - MPEG-4 AVC (part 10) (avc1) for video and MPEG AAC Audio (mp4a) for audio.

@Darksaber
The format are not all supported by TGSmush.dll as the dll restricts the file extensions.

User avatar
keiranhalcyon7
Lieutenant JG
Posts: 599
Joined: Tue Jan 02, 2018 6:41 am

Post by keiranhalcyon7 » Fri May 22, 2020 7:51 pm

:thumbs:

User avatar
JeremyaFr
XWAU Member
Posts: 3922
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Sun May 24, 2020 12:55 pm

UPDATE

Hello,
I've merged the changes from the WIP version into the stable version.

Now XwaSnmConverter supports mp4 files.

marcop000
Cadet 1st Class
Posts: 213
Joined: Fri Dec 27, 2019 7:08 pm

Post by marcop000 » Sun May 24, 2020 2:16 pm

just updated the first 2 cutscenes with IA upcalining:

https://we.tl/t-AvKrqk1ois

This this time I have used a professional software.

The result is not perfect but is better than previous.

marcop000
Cadet 1st Class
Posts: 213
Joined: Fri Dec 27, 2019 7:08 pm

Post by marcop000 » Mon May 25, 2020 6:44 am


highorph
Cadet 4th Class
Posts: 13
Joined: Mon Sep 30, 2019 5:52 am

Post by highorph » Mon May 25, 2020 12:56 pm

Great job!

User avatar
JeremyaFr
XWAU Member
Posts: 3922
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Mon Apr 26, 2021 6:29 pm

UPDATE

Hello,
I've updated XwaSnmConverter.

I've fixed a typo.

User avatar
JeremyaFr
XWAU Member
Posts: 3922
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Sat Feb 18, 2023 6:47 pm

WIP

Hello,
Here is a WIP of Xwa Snm Converter.

When converting a snm file to mp4, you have the option to add the subtitles.

XwaSnmConverterWithSubtitles_WIP_2302182111.zip
You do not have the required permissions to view the files attached to this post.

User avatar
JeremyaFr
XWAU Member
Posts: 3922
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Sun Feb 19, 2023 11:52 am

WIP

Hello,
Here is a WIP of Xwa Snm Converter With Substitles.

Changes are:
- fix the position of text
- add fade in and fade out

XwaSnmConverterWithSubtitles_WIP_2302191249.zip
You do not have the required permissions to view the files attached to this post.

Post Reply