Jump to content
pyth0n3

Bin To Iso

Recommended Posts

Posted

Overview:

Transforma imaginile de tipul .bin in .iso

E un front-end pt bchunk

Feature:

L-am facut in asa fel incat sa genereze automat un file image.cue , care de multe ori lipseste iar bchunk cere ca argument un file de tipul .cue pt a putea crea imaginea iso

Daca fisierul .cue exista , bintoiso nu il va folosi ci va genera unul nou pt fiecare imagine

Salveaza imaginile cu numele out01.iso in directorul in care vine executat

Pt a rula are nevoie de pachetul bchunk si python-tk

snapshot12.png

Download archive installer : http://tinyurl.com/6efbbl2

#!/usr/bin/python
#Date:22.01.2011
#Purpose: Convert .bin to .iso ,command-line front-end tool
#Author: pyth0n3
#Blog: http://pyth0n3.blogspot.com/

import os
import Tkinter
from Tkinter import *
import tkMessageBox
import tkFileDialog,Tkconstants,collections

root =Tk()

def about():
tkMessageBox.showinfo(title=" Info: ", \
message="Convert .bin images to .iso\n \
Contact: python3aka@gmail.com ")

def callback():
file_path = tkFileDialog.askopenfilename(title="Open image", filetypes=[("bin image",".bin"),("All files",".*")])

tkMessageBox.showinfo( "Info:", "This may take a while depends on image size \
Please press the OK button to start processing ...")
image = file_path.split('/')[-1]
filename = "/tmp/image.cue"
file = open(filename,"w")
file.write("FILE "+image+ " BINARY\n" )
file.write("TRACK 01 MODE1/2352\n" )
file.write("INDEX 01 00:00:00" )
file.close()

var = 'bchunk -v ' + file_path +' '+filename + ' out'
cmd = var
os.system(cmd)
tkMessageBox.showinfo( "finish", "Image converted succesfull")

root.title('BIN TO ISO')

root["padx"] = 40
root["pady"] = 20
textFrame = Frame(root)

Button(root, text='Open image to process',fg='green',
bg='black',command=callback).pack(side= LEFT,padx=10,pady=10)
Button(root, text='Exit',fg='green',bg='black',command=quit).pack(side= RIGHT,padx=10,pady=10)
Button(root, text='About',fg='green',bg='black',command=about).pack(side= RIGHT,padx=10,pady=10)

root.mainloop()


#END

Download source code :

wget http://sprunge.us/MSAb bintoiso.py 

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.



×
×
  • Create New...