Video_TS to ISO

Come up with a useful post-processing script? Share it here!
AndyPanerai
Newbie
Newbie
Posts: 8
Joined: March 9th, 2008, 2:24 pm

Video_TS to ISO

Post by AndyPanerai »

Hi all,

Is there a script that will convert a video_ts directory (movie) to a iso file ?

I' am asking this because i have running sabnznb on my synology ds207 and i stream from it to a media player (wireless) but video_ts
folders are slower (buffer) then a iso so thats why i ask it.

Thanks.

Greetz,
Andy
User avatar
jcfp
Release Testers
Release Testers
Posts: 989
Joined: February 7th, 2008, 12:45 pm

Re: Video_TS to ISO

Post by jcfp »

Creating a script that does this shouldn't be too much work, assuming your device runs some flavour of linux or unix. Check the mkisofs command.
User avatar
thaylok
Newbie
Newbie
Posts: 29
Joined: November 20th, 2008, 11:39 am

Re: Video_TS to ISO

Post by thaylok »

Using mkisofs in posix systems:

mkisofs -dvd-video -o /video.iso /videofolder/

Make sure to have a AUDIO_TS folder along with your VIDEO_TS folder
in your "/videofolder" to make your iso DVD standards-compilant.

e.g.
Videofolder-> AUDIO_TS = DVD
                    VIDEO_TS
auskento
Moderator
Moderator
Posts: 77
Joined: January 21st, 2008, 8:45 pm
Location: Melbourne, AUS

Re: Video_TS to ISO

Post by auskento »

I have this an option in my media processing script.
doubledrat
Release Testers
Release Testers
Posts: 180
Joined: February 20th, 2008, 3:16 pm

Re: Video_TS to ISO

Post by doubledrat »

or use imgburn if you are on windoze
virtual
Newbie
Newbie
Posts: 1
Joined: January 13th, 2009, 11:24 am

Re: Video_TS to ISO

Post by virtual »

Im not trying to steal the tread.

is it posible to do ISO to VIDEO_TS (unpack a ISO)

im runing my sabnzbd on a QNAP 209 Pro
User avatar
jcfp
Release Testers
Release Testers
Posts: 989
Joined: February 7th, 2008, 12:45 pm

Re: Video_TS to ISO

Post by jcfp »

Since an iso file is just an entire filesystem inside a file, on a linux or unix system the thing can be mounted like any other filesystem using something along the lines of "mount -o loop ", where is an existing (and usually empty) directory. After that, normal file operations can be used (i.e. the cp command), and when your script is done copying simply "umount ".

Note that mounting and unmounting may need privileges via sudo or su, and loopback support is required (very standard on a desktop but just so you know...).
shanghei
Newbie
Newbie
Posts: 8
Joined: May 17th, 2009, 1:55 am

Re: Video_TS to ISO

Post by shanghei »

I am also looking for a script that does this in windows.

A script that will convert a Video_TS dvd download directory into an iso image.

Has a script like that been made yet for Windows?
doubledrat
Release Testers
Release Testers
Posts: 180
Joined: February 20th, 2008, 3:16 pm

Re: Video_TS to ISO

Post by doubledrat »

you can use "imgburn" to do this.

the script will look something like this -

Code: Select all

set dirname=%1
set dirname=%dirname:"=%
set name=%3
set name=%name:"=%
set nbID=%4
set DLTYPE=%5

IF EXIST "%dirname%\video_ts" CALL makeISO

GOTO :EOF

:makeISO
"C:\Program Files\ImgBurn\ImgBurn.exe" /MODE BUILD /BUILDMODE IMAGEFILE /SRC "%dirname%\video_ts" /DEST "C:\somewhere\%name%.ISO" /START /CLOSE
GOTO :EOF
NOTE: THIS IS NOT TESTED CODE - it's just a guide of the sort of thing you need

there is a full list of imgburn command line options in the readme.txt which is in the install directory.
Last edited by doubledrat on May 17th, 2009, 7:08 am, edited 1 time in total.
doubledrat
Release Testers
Release Testers
Posts: 180
Joined: February 20th, 2008, 3:16 pm

Re: Video_TS to ISO

Post by doubledrat »

and for unpacking ISOs, 7zip claims to do that.  download the command line version and use something like

7z x isofilename -ooutputlocation -r
shanghei
Newbie
Newbie
Posts: 8
Joined: May 17th, 2009, 1:55 am

Re: Video_TS to ISO

Post by shanghei »

doubledrat wrote: you can use "imgburn" to do this.

the script will look something like this -

Code: Select all

set dirname=%1
set dirname=%dirname:"=%
set name=%3
set name=%name:"=%
set nbID=%4
set DLTYPE=%5

IF EXIST "%dirname%\video_ts" CALL makeISO

GOTO :EOF

:makeISO
"C:\Program Files\ImgBurn\ImgBurn.exe" /MODE BUILD /BUILDMODE IMAGEFILE /SRC "%dirname%\video_ts" /DEST "C:\somewhere\%name%.ISO" /START /CLOSE
GOTO :EOF
NOTE: THIS IS NOT TESTED CODE - it's just a guide of the sort of thing you need

there is a full list of imgburn command line options in the readme.txt which is in the install directory.
Looks promising, put it in a cmd and it didnt make it to imgburn.

I looked at logfile and it showed this.



C:\Program Files\SABnzbd>set dirname="D:\downloads\Movies\American Time Capsule (1968)"



C:\Program Files\SABnzbd>set dirname=D:\downloads\Movies\American Time Capsule (1968)



C:\Program Files\SABnzbd>set name="American Time Capsule (1968)"



C:\Program Files\SABnzbd>set name=American Time Capsule (1968)



C:\Program Files\SABnzbd>set nbID=4925838



C:\Program Files\SABnzbd>set DLTYPE=movies



C:\Program Files\SABnzbd>IF EXIST "D:\downloads\Movies\American Time Capsule (1968)\video_ts" CALL makeISO

'makeISO' is not recognized as an internal or external command,

operable program or batch file.



C:\Program Files\SABnzbd>GOTO :EOF
Last edited by shanghei on May 17th, 2009, 9:53 pm, edited 1 time in total.
Eejit
Sr. Member
Sr. Member
Posts: 267
Joined: September 10th, 2008, 5:46 pm

Re: Video_TS to ISO

Post by Eejit »

Change

Code: Select all

IF EXIST "%dirname%\video_ts" CALL makeISO
to

Code: Select all

IF EXIST "%dirname%\video_ts" GOTO makeISO
Should work then
Eejit - The name say's it all !!
Image
shanghei
Newbie
Newbie
Posts: 8
Joined: May 17th, 2009, 1:55 am

Re: Video_TS to ISO

Post by shanghei »

That fixed it, thanks alot both of you !
shanghei
Newbie
Newbie
Posts: 8
Joined: May 17th, 2009, 1:55 am

Re: Video_TS to ISO

Post by shanghei »

Anyone else in windows looking to do this here is the script I use that works perfect

Code: Select all

set dirname=%1
set dirname=%dirname:"=%
set name=%3
set name=%name:"=%
set nbID=%4
set DLTYPE=%5

IF EXIST "%dirname%\video_ts" GOTO makeISO

GOTO :EOF

:makeISO
"C:\Program Files\ImgBurn\ImgBurn.exe" /MODE BUILD /BUILDMODE IMAGEFILE /NOIMAGEDETAILS /VOLUMELABEL "%name%" /SRC "%dirname%\video_ts" /DEST "D:\downloads\movies\%name%.ISO"  /START /CLOSE
GOTO :EOF
Just change /DEST to wherever you want the iso at. The cool thing about imgburn is if a Audio_TS folder isnt included in the download it automatically adds one. That command for imgburn will make it run minimized and make the volume label the name of the movie folder.

Thanks guys for the help this will make my life easier!
shanghei
Newbie
Newbie
Posts: 8
Joined: May 17th, 2009, 1:55 am

Re: Video_TS to ISO

Post by shanghei »

You know what would also be usefull, a command to delete the folder with the video_ts folder after it has created an iso.

Anyone know the command for that?
Post Reply