Hacking [TOOL] BIN2MP4

Kakkoii

Old fart
OP
Member
Joined
Sep 14, 2007
Messages
631
Trophies
0
XP
586
Country
Canada
Whipped up a little tool tonight as an easier way for people to obtain MP4 versions of the things they compile or find online, as I know many people can have a hard time setting up PHP servers.
Also can be integrated into your compiling workflow scripts to go straight to MP4.

NYKtuIq.png

Source code

Command Line usage:
bin2mp4.exe [target system version] [input file] optional:[output directory + filename.mp4]
Example: bin2mp4.exe 540 "C:\src\some directory\blah.bin" "C:\www\some directory\blah.mp4"

*If you don't specify an output directory, it will place the .MP4 file in the same location as the input file.
*If you specify an output directory and no filename.mp4, it will use the same name from the input file.
*Console mode will return negative error levels if something goes wrong
**So an %errorlevel% < 0 will allow you to stop your script if something went wrong.
Changelog:
v0.3:
-Fixed some issues with 5.5.0/5.5.1 compatibility.
-Version text at bottom right now links to this thread so you can check for latest version.

v0.2:
-Added command line functionality.
--Simply use the .exe with command line arguments and it won't launch the GUI.
-Source code reorganized a bit.

v0.1:
-Initial release

**Note: As it may not be obvious to some, your .bin file still needs to have been compiled for the correct system version.
 

Attachments

  • bin2mp4_v0.3.zip
    195.9 KB · Views: 19,742
Last edited by Kakkoii,

rw-r-r_0644

Well-Known Member
Member
Joined
Jan 13, 2016
Messages
351
Trophies
0
Age
22
XP
741
Country
Italy
Nice program :)
I had the same idea but no time to make it. I will try to make a command line version so I can modify my libwiiu script to make the mp4 and move it to www folder automatically.
Thank you a lot! Also thank you for publishing source!
 
Last edited by rw-r-r_0644,
  • Like
Reactions: Kakkoii

Kakkoii

Old fart
OP
Member
Joined
Sep 14, 2007
Messages
631
Trophies
0
XP
586
Country
Canada
Nice program :)
I had the same idea but no time to make it. I will try to make a command line version so I cab modify my libwiiu script to make the mp4 abd move it to www folder automatically.
Thank you a lot! Also thank you for publishing source!
Thanks, I already plan to create a command line version or try to add it into this app so it can do both, so if you don't mind waiting a day or so that'll be out too :P
 
  • Like
Reactions: rw-r-r_0644

rw-r-r_0644

Well-Known Member
Member
Joined
Jan 13, 2016
Messages
351
Trophies
0
Age
22
XP
741
Country
Italy
Hmm... Have you tested the program? I actually successfully made a cmd version and tested but I found out the output mp4 wasn't working so I tried making one with your binary and it was still not working. I tryed with code550.bin from helloworld example. Have you got it to work? I'm on 551E
 

Kakkoii

Old fart
OP
Member
Joined
Sep 14, 2007
Messages
631
Trophies
0
XP
586
Country
Canada
Hmm... Have you tested the program? I actually successfully made a cmd version and tested but I found out the output mp4 wasn't working so I tried making one with your binary and it was still not working. I tryed with code550.bin from helloworld example. Have you got it to work? I'm on 551E
I only have a 5.4 console, so I was only able to test on that. Could you send me a .mp4 of something that has worked for you on 5.5.1?
Thanks
 

Kakkoii

Old fart
OP
Member
Joined
Sep 14, 2007
Messages
631
Trophies
0
XP
586
Country
Canada
Updated with command line functionality. If you pass it command line arguments, the GUI won't launch, so it can be used easily in scripted workflows.
Error codes are returned as well if something goes wrong. So a check with your script for an %errorlevel% < 0 will allow you to stop your script if something went wrong.

I don't have a 5.5.1 system, so if someone can supply me with a .mp4 that works for them on 5.5.1 that would be great.
 

Kakkoii

Old fart
OP
Member
Joined
Sep 14, 2007
Messages
631
Trophies
0
XP
586
Country
Canada
Updated with more solid support for 5.5.0 and 5.5.1.
Thanks to @rw-r-r_0644 for supplying a working 5.5.1 mp4 file for me to examine.

Hopefully can get some feedback from others!

@Kakkoii can you make a commandline version? it would be perfect to include them into a makefile like bin2s.
Added :)
 
Last edited by Kakkoii,

Kakkoii

Old fart
OP
Member
Joined
Sep 14, 2007
Messages
631
Trophies
0
XP
586
Country
Canada
Here's an experimental version that needs to be tested on other versions than 5.4.0 before I release it.
It should allow .BIN payloads of up to 29832 bytes (29.13kb), instead of the 20480 bytes that the current modified PHP files are able to do.
Hopefully will allow people to make some nicer homebrew on 5.5.0/5.5.1 especially.

I can't test it for 5.3.2/5.5.0/5.5.1, so anyone on that version that can test this with a >24kb .bin file would be helpful. (just fill it with a bunch of unused functions or something to bloat it.)
 

Attachments

  • bin2mp4_v0.4b.zip
    196.4 KB · Views: 195
Last edited by Kakkoii,
  • Like
Reactions: Net-KILLER

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    SylverReZ @ SylverReZ: @Psionic Roshambo, Thats pretty cool.