Author |
Message |
rando
|
Posted: Thu Jan 04, 2007 8:35 pm |
|
Joined: Sat Feb 11, 2006 5:26 pm
Posts: 282
Location:
Winnipeg - Canada
|
spalVl wrote: Doesn't look like you commented out the lines 150 - 152. That is causing these lines Quote: Cleaning up temporary files rm -f /myth/video/archive/1002_20070104184700.temp.mp4
I've just double checked the /usr/local/bin/myth2xvid and lines 151, 151, and 152 are in fact commented out. Is it possible that the version of myth2ipod that I'm working (I just downloaded it today) is newer and slightly changed from the version that you were/are working with? From looking at my script, it seems to me that these two lines of text are being generated by lines 117 and 118. Quote: But that should not cause to fail from User Job. Are you setting the job to run from the recording playback window? /var/log/mythtv/mythbackend.log should show job being submitted, I don't have and XviD job on my box yet, but here is a log of a myth2flash video encoding on my backend.
I'm going into my list of recorded shows, and selecting "xvid" from the job options. I've also tried scheduling a new recording, and setting up the "xvid" job to be run automatically. Both seem to yield the same results. I will setup a small sample recording and tail the mythbackend.log to see what happens. I'll post my results here shortly. Quote: Maybe make sure your quotes are in place too. Quote: /usr/local/bin/myth2xvid "%DIR%" "%FILE%"
My quote marks are in place.
_________________ Currently Running:
Too lazy to update this with my current hardware, I'll redo it during my next install =)
|
|
Top |
|
 |
rando
|
Posted: Thu Jan 04, 2007 8:45 pm |
|
Joined: Sat Feb 11, 2006 5:26 pm
Posts: 282
Location:
Winnipeg - Canada
|
here is the relevant portion of the mythbackend.log
Code: 2007-01-04 20:38:59.853 MainServer::HandleAnnounce Monitor 2007-01-04 20:38:59.860 adding: backend as a client (events: 0) 2007-01-04 20:39:03.202 MainServer::HandleAnnounce Monitor 2007-01-04 20:39:03.213 adding: backend as a client (events: 0) 2007-01-04 20:39:35.966 MainServer::HandleAnnounce Monitor 2007-01-04 20:39:35.975 adding: backend as a client (events: 0) 2007-01-04 20:39:36.684 Reschedule requested for id 186. 2007-01-04 20:39:37.806 MainServer::HandleAnnounce Monitor 2007-01-04 20:39:38.889 adding: backend as a client (events: 0) 2007-01-04 20:39:48.742 MainServer::HandleAnnounce Monitor 2007-01-04 20:39:49.393 adding: backend as a client (events: 0) 2007-01-04 20:40:02.345 Scheduled 485 items in 25.7 = 23.35 match + 2.31 place 2007-01-04 20:40:02.464 MainServer::HandleAnnounce Monitor 2007-01-04 20:40:02.476 adding: backend as a client (events: 0) 2007-01-04 20:40:03.236 TVRec(2): Changing from None to RecordingOnly changing to 2 2007-01-04 20:40:04.298 ret_pid(0) child(24250) status(0x0) 2007-01-04 20:40:05.304 ret_pid(24250) child(24250) status(0x0) 2007-01-04 20:40:05.323 External Tuning program exited with no error 2007-01-04 20:40:05.433 Started recording: Test "Thu Jan 4 20:39:00 2007": channel 2002 on cardid 2, sourceid 2 2007-01-04 20:40:07.625 MainServer::HandleAnnounce Monitor 2007-01-04 20:40:07.638 adding: backend as a client (events: 0) 2007-01-04 20:40:15.789 Commercial Flagging Starting for Test "Thu Jan 4 20:39:00 2007" recorded from channel 2002 at Thu 4 20:40:00 2007 2007-01-04 20:40:17.549 Using runtime prefix = /usr 2007-01-04 20:40:17.755 New DB connection, total: 1 2007-01-04 20:40:17.841 Connected to database 'mythconverg' at host: localhost 2007-01-04 20:40:17.872 New DB connection, total: 2 2007-01-04 20:40:17.882 Connected to database 'mythconverg' at host: localhost 2007-01-04 20:40:17.923 Connecting to backend server: 192.168.0.200:6543 (try 1 of 5) 2007-01-04 20:40:17.954 Using protocol version 26 2007-01-04 20:40:17.973 MainServer::HandleAnnounce Monitor 2007-01-04 20:40:17.974 adding: backend as a client (events: 0) 2007-01-04 20:40:18.030 MainServer::HandleAnnounce Monitor 2007-01-04 20:40:18.034 adding: backend as a client (events: 1) [mpeg @ 0xb71a2278]Parser not found for Codec Id: 94210 ! 0: start_time: 0.036 duration: 4.739 1: start_time: 1947.874 duration: 4.748 2: start_time: 0.026 duration: 4.711 stream: start_time: 0.289 duration: 21695.504 bitrate=12 kb/s 2007-01-04 20:41:00.209 AFD: Opened codec 0x80f46e0, id(MPEG2VIDEO) type(Video) 2007-01-04 20:41:00.250 AFD: Opened codec 0x80f4ec0, id(MP2) type(Audio) 2007-01-04 20:41:00.285 TVRec(2): Changing from RecordingOnly to None 2007-01-04 20:41:00.303 Finished recording Test "Thu Jan 4 20:39:00 2007": channel 2002 2007-01-04 20:41:00.360 Reschedule requested for id 0. [mpeg @ 0xb7199278]Parser not found for Codec Id: 94210 ! 0: start_time: 0.036 duration: 4.766 1: start_time: 1947.874 duration: 4.775 2: start_time: 0.026 duration: 4.737 stream: start_time: 0.289 duration: 21695.804 bitrate=12 kb/s 2007-01-04 20:41:01.264 AFD: Opened codec 0x82cf820, id(MPEG2VIDEO) type(Video) 2007-01-04 20:41:01.305 AFD: Opened codec 0x81d3590, id(MP2) type(Audio) 2007-01-04 20:41:02.523 Finished recording Test "Thu Jan 4 20:39:00 2007": channel 2002 2007-01-04 20:41:03.538 Scheduled 484 items in 3.2 = 0.03 match + 3.15 place 2007-01-04 20:41:15.008 RingBuf(/myth/tv/2002_20070104204000.mpg): Waited 2 seconds for data to become available... 2007-01-04 20:41:15.485 Commercial Flagging Finished, 1 break(s) found. [mpeg @ 0xb7199278]Parser not found for Codec Id: 94210 ! 0: start_time: 0.036 duration: 4.766 1: start_time: 1947.874 duration: 4.775 2: start_time: 0.026 duration: 4.737 stream: start_time: 0.289 duration: 21695.804 bitrate=12 kb/s 2007-01-04 20:41:15.539 AFD: Opened codec 0x81f9ba0, id(MPEG2VIDEO) type(Video) 2007-01-04 20:41:15.540 AFD: Opened codec 0x8241d00, id(MP2) type(Audio) 2007-01-04 20:41:20.814 Started "XviD" for "Test" recorded from channel 2002 at Thu Jan 4 20:40:00 2007 Use of uninitialized value in substr at /usr/local/bin/myth2xvid line 80. Opps, the file %DIR%FILE does not exist. 2007-01-04 20:41:21.043 Finished "XviD" for "Test" recorded from channel 2002 at Thu Jan 4 20:40:00 2007.
I'm thinking the third from last line is the one that is indicative of my troubles.... clearly the job is getting run, it's just not liking the syntax that I have in there, I'm gonna run upstairs and double double check (it's more like a quintuple check at this point) what I have in there for the path to the myth2xvid script.
_________________ Currently Running:
Too lazy to update this with my current hardware, I'll redo it during my next install =)
|
|
Top |
|
 |
rando
|
Posted: Thu Jan 04, 2007 8:52 pm |
|
Joined: Sat Feb 11, 2006 5:26 pm
Posts: 282
Location:
Winnipeg - Canada
|
Ok, fixed it. Turn out you need both a % before, and *after* the DIR and FILE variables in the job path.
Silly me, I had neglected to type in the 2nd (and 4th) %.
Job seems now to be running fine.
I think I'm on track now, all I gotta do is play with my nuvoptions and set it to downsize the rez as well (320 by 240 is my target) and I think I might swap the variable name when it writes the file so that my fiance can work with something a little bit prettier than the myth naming convention.
Thanks a heap for your help!
_________________ Currently Running:
Too lazy to update this with my current hardware, I'll redo it during my next install =)
|
|
Top |
|
 |
spalVl
|
Posted: Thu Jan 04, 2007 9:45 pm |
|
Joined: Mon Aug 29, 2005 4:04 pm
Posts: 729
Location:
Philadelphia, PA US
|
Quote: I've just double checked the /usr/local/bin/myth2xvid and lines 151, 151, and 152 are in fact commented out. Is it possible that the version of myth2ipod that I'm working (I just downloaded it today) is newer and slightly changed from the version that you were/are working with?
These are 3 lines I intended instructions to comment out Code: #$cmd = "/usr/local/bin/MP4Box -add $feedpath$chanid\_$start.temp.mp4 $feedpath$chanid\_$start.$portable.mp4"; #print $cmd."\n"; #if(system($cmd)) { print "MP4Box cleanup seems to have failed\n"; }
Ultimatley I probably shouldn't link to the myth2ipod script because if stuff on their script changes I have to update my instructions. I have the myth2xvid script on WIKI, but is optinal step. http://knoppmythwiki.org/index.php?bina ... 2f93e0.binGreat you got it working, Quote: I might swap the variable name when it writes the file so that my fiance can work with something a little bit prettier than the myth naming convention.
Can you post back how you make out with the variable name stuff, I may be able to help. The filename is something a lot of ppl request in forum and I just have not gotten around to it. Is some posts around too about scripts that remove bad charcters such at '. "That 70's show" etc...
Long term I would like the get the myth2xvid stuff working so it would transcode the videos to XviD, update MySQL recording in DB, to replace MPEG2 file with XviD file name, build new seek table, and delete orginal MPEG2 recording. Could save a boat load of space and XviD quality is good.
Last edited by spalVl on Fri Jan 05, 2007 10:24 am, edited 1 time in total.
|
|
Top |
|
 |
rando
|
Posted: Fri Jan 05, 2007 9:37 am |
|
Joined: Sat Feb 11, 2006 5:26 pm
Posts: 282
Location:
Winnipeg - Canada
|
I will certainly get back to you (in this thread) and let you know about my results once I've fussed with better naming and such.
I'm running another test right now (yesterday I didn't use the cutlist) this time I'm using a cutlist, I'm deinterlacing, and I'm pretty sure that I'm resizing down to 320 by 240 (my understanding is that a '--width=320' will also resize my height because it will attempt to maintain the ratio). Another 2 hours or so and this transcode will be finished, then I can download it to my laptop and try to play it (and peek at the resolution of the file to see if it resized properly).
If all goes well I'll be loading it up onto my Fiance's Zen this evening and we'll give it a try.
_________________ Currently Running:
Too lazy to update this with my current hardware, I'll redo it during my next install =)
|
|
Top |
|
 |
loco_hombre
|
Posted: Fri Jan 05, 2007 9:16 pm |
|
Joined: Wed Feb 01, 2006 12:49 pm
Posts: 42
|
You know, I followed the myth2XviD stuff in the WIKI to manipulate the myth2ipod script to smash some of my files for playback on my Nintendo DS. Actually, I just wanted a decent quality file at a much smaller size, and I then use another program on my windows computer to convert that to the proper nintendo file (DPG) format. I know that is blasphemy to you video-quality-minded people, but it entertains me!
I had it working for XVID, but for some reason my windows computer could not recognize the XviD file generated, and only played back audio. I tried installing some CODECS (i.e. K-Lite pack) and making sure my my ffmpeg version was current and never managed to resolve this....
Eventually, I just changed the compression type to DivX, instead of XviD by using this command in myth2xvid (line 19):
Code: my $nuvoptions ="--ffmpeg --mode=DivX --nice=19 --cutlist --nodenoise --nodeinterlace --crop --multipass";
I will reference http://mysettopbox.tv/phpBB2/viewtopic.php?t=10678&postdays=0&postorder=asc&highlight=xvid&start=0
Anyways, if you have problems with the script with XviD, try switching to DivX or one of the other formats.....
BTW, I am running Knoppmyth version R5D1.....
-Loco
|
|
Top |
|
 |
rando
|
Posted: Fri Jan 05, 2007 11:14 pm |
|
Joined: Sat Feb 11, 2006 5:26 pm
Posts: 282
Location:
Winnipeg - Canada
|
I've got a file that's sized properly, and playing properly when manually loaded onto the Creative Zen Vision:M.
I'm a happy camper =)
I'm gonna play a bit more with the settings, try some diff bitrates and see how small I can go before I see the quality take a dive.
Thank you to all who've helped out along the way!
_________________ Currently Running:
Too lazy to update this with my current hardware, I'll redo it during my next install =)
|
|
Top |
|
 |
spalVl
|
Posted: Fri Jan 05, 2007 11:26 pm |
|
Joined: Mon Aug 29, 2005 4:04 pm
Posts: 729
Location:
Philadelphia, PA US
|
Quote: I had it working for XVID, but for some reason my windows computer could not recognize the XviD file generated, and only played back audio. It is because ffmpeg creates a non standard XviD file, I mention in on the WIKI and in the thread associated with that howto. Use transcodeQuote: I then use another program on my windows computer to convert that to the proper nintendo file (DPG) format. I know that is blasphemy to you video-quality-minded people, but it entertains me!
That is the great thing about OpenSource, your software, your media, do what you want with it and enjoy. If you want to write a script to get it to play on Zune, cool would be nice to see any howto.
|
|
Top |
|
 |
rando
|
Posted: Sat Jan 06, 2007 8:34 pm |
|
Joined: Sat Feb 11, 2006 5:26 pm
Posts: 282
Location:
Winnipeg - Canada
|
Hey Loco, have you given this a try yet?
Code: #! /usr/bin/python # DPG Converter by Anton Romanov (c) 2006 # released under GPL-2 # """A script to transcode video files to DPG format suitable for Nintendo DS (tm) dpgconv.py /home/foo/blah.avi /home/foo/blah2.avi command line options: --dpg 0,1,2 sets DPG version.. default is DPG2 --pf sets pixel format, default is 3 0 RGB15 1 RGB18 2 RGB21 3 RGB24
-q,--hq high quality video -l,--lq low quality video(takes no effect when --hq,-q is set)] default is normal quality -v,--vbps xxx sets video stream bps in kb/s(default: 256) -a,--abps xxx sets audio stream bps kb/s (default: 128) -f,--fps xx sets video frames per second (default:15) -z,--hz sets audio frequency (default:32000) -c,--channels 2 - stereo, 1 - mono default is to leave as is unless input audio channels number is bigger then 2 ... then default is stereo --height xxx destination video height --width xxx destination video width
--mv additional parameters for mencoder for video
--ma additional parameters for mencoder for audio Hardcoding subtitles --nosub do no try autoloading of subtitles (default is to try to load subtitle with matching filename) --sub,-s xxx Specify subtitles for hardcoding into video output (is obviously only usable if you specify one file at a time) --subcp xxx specify subtitles encoding --font xxx specify font for subtitles EXAMPLE: --font ~/arial-14/font.desc --font ~/arialuni.ttf --font 'Bitstream Vera Sans'
You can specify font, subcp and other additional mencoder parameters in ~/.mplayer/mencoder.conf EXAMPLE: font=/usr/local/share/fonts/msfonts/comic.ttf subcp=cp1251
""" import sys, os, optparse MP2TMP="mp2tmp.mp2" MPGTMP="mpgtmp.mpg" HEADERTMP="header.tmp" GOPTMP="gop.tmp" STATTMP="stat.tmp"
MENCODER="mencoder" MPLAYER="mplayer" MPEG_STAT="mpeg_stat"
#Print a help message if requested. if "-h" in sys.argv or "-help" in sys.argv or "--help" in sys.argv: print __doc__ raise SystemExit
def cleanup_callback(a,b): print "Removing temporary files" if os.path.lexists ( MPGTMP ): os.unlink ( MPGTMP ) if os.path.lexists ( MP2TMP ): os.unlink ( MP2TMP ) if os.path.lexists ( HEADERTMP ): os.unlink ( HEADERTMP ) if os.path.lexists ( GOPTMP ): os.unlink ( GOPTMP ) if os.path.lexists ( STATTMP ): os.unlink ( STATTMP )
def conv_vid(file): if options.dpg == 0: v_pf = "format=rgb24," options.pf = 3 elif options.pf == 3: v_pf = "format=rgb24," elif options.pf == 2: v_pf = "format=rgb21," elif options.pf == 1: v_pf = "format=rgb18," elif options.pf == 0: v_pf = "format=rgb15," else: v_pf = "format=rgb24," options.pf = 3
if options.hq: v_cmd = ( " \""+ file +"\" -v -ofps " + `options.fps` + " -sws 9 -vf " + v_pf + "scale=" + `options.width` + ":" + `options.height` +":::3 -nosound -ovc lavc -lavcopts vcodec=mpeg1video:vstrict=-2:mbd=2:trell:cbp:mv0:cmp=6:subcmp=6:precmp=6:dia=3:predia=3:last_pred=3:vbitrate=" + `options.vbps` + " -o " + MPGTMP + " -of rawvideo" ) elif options.lq: v_cmd = ( " \"" + file + "\" -v -ofps " + `options.fps` + " -vf " + v_pf + "scale=" + `options.width` + ":" + `options.height` + " -nosound -ovc lavc -lavcopts vcodec=mpeg1video:vstrict=-2:vbitrate=" + `options.vbps` + " -o " + MPGTMP + " -of rawvideo" ) else : v_cmd = ( " \""+ file +"\" -v -ofps " + `options.fps` + " -sws 9 -vf " + v_pf + "scale=" + `options.width` + ":" + `options.height` + ":::3 -nosound -ovc lavc -lavcopts vcodec=mpeg1video:vstrict=-2:mbd=2:trell:cbp:mv0:cmp=2:subcmp=2:precmp=2:vbitrate=" + `options.vbps` + " -o " + MPGTMP + " -of rawvideo") if options.nosub: if options.sub != None: v_cmd = " -sub \"" + options.sub + "\" " + v_cmd else: basename = os.path.splitext ( file )[0] if options.sub != None: v_cmd = " -sub \"" + options.sub + "\" " + v_cmd elif os.path.exists ( basename + ".ass" ): v_cmd = " -sub \"" + basename + ".ass" + "\" " + v_cmd elif os.path.exists ( basename + ".srt" ): v_cmd = " -sub \"" + basename + ".srt" + "\" " + v_cmd elif os.path.exists ( basename + ".sub" ): v_cmd = " -sub \"" + basename + ".sub" + "\" " + v_cmd elif os.path.exists ( basename + ".ssa" ): v_cmd = " -sub \"" + basename + ".ssa" + "\" " + v_cmd if options.subcp != None: v_cmd = " -subcp " + options.subcp + v_cmd if options.font != None: v_cmd = " -font \"" + options.font + "\"" + v_cmd
v_cmd = MENCODER + " " + v_cmd proc = subprocess.Popen(v_cmd,shell=True,stdout=subprocess.PIPE,universal_newlines=True,stderr=open('/dev/null', 'w')) # v_out = "" p = re.compile ("f (\(.*%\))") # f = re.compile ("([0-9]*)\/([0-9]*)\/([0-9]*)") for line in proc.stdout: # v_out = v_out + line m = p.search( line ) if m: print "Transcoding video: " + m.group(1) + "\r" , # m = f.search(line) # if m: # duplicate_frame = int (m.group (1)) # bad_frames = int (m.group(2)) # skipped_frames = int (m.group(3))
print "Transcoding video: done" # p = re.compile ("secs ([0-9]*)( frames)") # m = p.search( v_out ) # origframes = int(m.group(1)) # frames = origframes - bad_frames + duplicate_frame # print "Original file total frames:" + `origframes` # print "Skipped " + `skipped_frames` + " frames" # print "Duplicated " + `duplicate_frame` + " frames" # print `bad_frames` + " bad " + " frames" # print "Output file total frames:" + `frames` # return frames
def conv_aud(file): a_cmd = ( MENCODER + " \"" +file + "\" -v -of rawaudio -oac lavc -ovc copy -lavcopts acodec=mp2:abitrate=" + `options.abps` + " -o " + MP2TMP ) identify = commands.getoutput( MPLAYER + " -frames 0 -vo null -ao null -identify \"" + file + "\" | grep -E \"^ID|VIDEO|AUDIO\"") p = re.compile ("([0-9]*)( ch)") m = p.search( identify ) if m: c = m.group(1) if options.channels == None: if c > 2: a_cmd = a_cmd + " -af channels=2,resample=" +`options.hz`+ ":1:2" else: a_cmd = a_cmd + " -af resample=" +`options.hz`+ ":1:2" elif options.channels >= 2: a_cmd = a_cmd + " -af channels=2,resample=" +`options.hz`+ ":1:2" else: a_cmd = a_cmd + " -af channels=1,resample=" +`options.hz`+ ":1:2"
proc = subprocess.Popen(a_cmd,shell=True,stdout=subprocess.PIPE,universal_newlines=True,stderr=subprocess.STDOUT)
v_out = "" p = re.compile ("f (\(.*%\))") for line in proc.stdout: m = p.search( line ) if m: print "Transcoding audio: " + m.group(1) + "\r" , print "Transcoding audio: done"
def write_header(frames): print "Creating header"
audiostart=36 if options.dpg == 1: audiostart += 4 elif options.dpg == 2: audiostart += 12 audiosize = os.stat(MP2TMP)[stat.ST_SIZE] videosize = os.stat(MPGTMP)[stat.ST_SIZE] videostart = audiostart + audiosize videoend = videostart + videosize f=open(HEADERTMP, 'wb') DPG = "DPG" + `options.dpg` headerValues = [ DPG, int(frames), options.fps, 0, options.hz , 0 ,int(audiostart), int(audiosize), int(videostart), int(videosize) ] f.write (struct.pack( "4s" , headerValues[0])) f.write (struct.pack ( "<l" , headerValues[1])) f.write (struct.pack ( ">h" , headerValues[2])) f.write (struct.pack ( ">h" , headerValues[3])) f.write (struct.pack ( "<l" , headerValues[4])) f.write (struct.pack ( "<l" , headerValues[5])) f.write (struct.pack ( "<l" , headerValues[6])) f.write (struct.pack ( "<l" , headerValues[7])) f.write (struct.pack ( "<l" , headerValues[8])) f.write (struct.pack ( "<l" , headerValues[9]))
if options.dpg == 0: f.write (struct.pack ( "<l" , options.pf )) if options.dpg == 2: gopsize = os.stat(GOPTMP)[stat.ST_SIZE] f.write (struct.pack ( "<l" , videoend )) f.write (struct.pack ( "<l" , gopsize)) f.write (struct.pack ( "<l" , options.pf ))
f.close() def mpeg_stat(): p = re.compile ("frames: ([0-9]*)\.") s_out = commands.getoutput( MPEG_STAT + " -offset " + STATTMP + " " + MPGTMP ) m = p.search( s_out ) frames = m.group(1) if options.dpg == 2: gop=open(GOPTMP, 'wb') stat=open(STATTMP, 'rb') frame = 0 for line in stat: sline = line.split() if sline[0] == "picture" : frame += 1 elif sline[0] == "gop": gop.write (struct.pack ( "<l" , frame )) gop.write (struct.pack ( "<l" , int(sline[1])/8 - 140 )) gop.close() stat.close() return frames
def conv_file(file): print "Converting " + file conv_vid (file) conv_aud(file) frames = mpeg_stat() write_header(frames) dpgname = os.path.basename ( os.path.splitext ( file )[0] ) + ".dpg" print "Creating " + dpgname commands.getoutput( "cat \"" + HEADERTMP + "\" \"" + MP2TMP + "\" \"" + MPGTMP + "\" > \"" + dpgname + "\"") if options.dpg == 2: commands.getoutput( "cat \"" + GOPTMP + "\" >> \"" + dpgname + "\"") cleanup_callback (0,0) print "Done converting \"" + file + "\" to \"" + dpgname + "\""
from optparse import OptionParser parser = OptionParser() parser.add_option("-f","--fps", type="int", dest="fps" , default=15) parser.add_option("-q","--hq",action="store_true", dest="hq", default=False) parser.add_option("-l","--lq",action="store_true", dest="lq", default=False) parser.add_option("-v","--vbps", type="int", dest="vbps", default=256) parser.add_option("-a","--abps", type="int", dest="abps", default=128) parser.add_option("--height", type="int", dest="height", default=192) parser.add_option("--width", type="int", dest="width", default=256) parser.add_option("-z","--hz", type="int", dest="hz", default=32000) parser.add_option("-c","--channels", type="int", dest="channels") parser.add_option("--subcp", dest="subcp") parser.add_option("-s","--sub", dest="sub") parser.add_option("--font", dest="font") parser.add_option("--mv", dest="mv") parser.add_option("--ma", dest="ma") parser.add_option("--nosub",action="store_true", dest="nosub", default=False) parser.add_option("--dpg", type="int" , dest="dpg", default=2) parser.add_option("--pf", type="int" , dest="pf", default=3)
(options, args) = parser.parse_args()
import signal
signal.signal(signal.SIGINT, cleanup_callback) signal.signal(signal.SIGTERM, cleanup_callback)
import commands,re,stat,struct,subprocess if options.dpg > 2: options.dpg = 2 if options.dpg < 0: options.dpg = 2
for file in args: conv_file(file)
Here is the page I found it at if you'd like to give things a bit more of a read.
click me
_________________ Currently Running:
Too lazy to update this with my current hardware, I'll redo it during my next install =)
|
|
Top |
|
 |
ed3120
|
Posted: Sat Jan 06, 2007 8:49 pm |
|
Joined: Sun Dec 04, 2005 1:44 pm
Posts: 403
Location:
Central NJ
|
Myth2ipod works great with my 30GB Ipod Video.
_________________ Currently running: R5.5, HD5000 x 2, PVR150, Athlon 64 3000+, Chaintech VNF4, 1GB RAM, 2 x 250GB in LVM, MSI NX6200TC -> AA 9A60 -> HDTV
|
|
Top |
|
 |
rando
|
Posted: Mon Jan 08, 2007 1:57 am |
|
Joined: Sat Feb 11, 2006 5:26 pm
Posts: 282
Location:
Winnipeg - Canada
|
I am currently encoding files down to 320x240 and it is working perfectly. The files play wonderfully on the creative Zen Vision:M I'm very happy with things in terms of image quality.
My next stumbling block is that the feed.php file that is being generated doesn't seem to working. I'm not really familiar with how it should be structured, and what a proper working feed.php file will look like, so it's tricky for me to really know where to start with this.
Does anyone know if the feed.php file generated by an unmodified myth2ipod script works? or is it a non-functional part of the script that is still in the works?
_________________ Currently Running:
Too lazy to update this with my current hardware, I'll redo it during my next install =)
|
|
Top |
|
 |
rando
|
Posted: Thu Jan 11, 2007 5:25 pm |
|
Joined: Sat Feb 11, 2006 5:26 pm
Posts: 282
Location:
Winnipeg - Canada
|
I mostly have things working the way I'd like them, the only thing that I need (aside from tiny tweaks regarding filenaming) is that I'd like to toss a little logo or something onto the first 30 seconds or so of my recordings.
Does anybody by chance know how to get a little bit of watermarking on the go here? I'm using the modified myth2ipod scripts, with the -transcode flag if that matters. I searched around a little and didn't come up with much. Perhaps this is easy and someone can simply point me in the right direction or perhaps it's a bit trickier and I've got a lot of digging on the net to find an answer.
Anything someone can offer would be fabulous.
_________________ Currently Running:
Too lazy to update this with my current hardware, I'll redo it during my next install =)
|
|
Top |
|
 |
spalVl
|
Posted: Thu Jan 11, 2007 6:19 pm |
|
Joined: Mon Aug 29, 2005 4:04 pm
Posts: 729
Location:
Philadelphia, PA US
|
|
Top |
|
 |
rando
|
Posted: Thu Jan 11, 2007 8:18 pm |
|
Joined: Sat Feb 11, 2006 5:26 pm
Posts: 282
Location:
Winnipeg - Canada
|
That's one way to do things, it might be good enough.
Thanks for the tip
_________________ Currently Running:
Too lazy to update this with my current hardware, I'll redo it during my next install =)
|
|
Top |
|
 |
spalVl
|
Posted: Thu Jan 11, 2007 8:37 pm |
|
Joined: Mon Aug 29, 2005 4:04 pm
Posts: 729
Location:
Philadelphia, PA US
|
I think opening MythTV intro or watermak would kinda be a free advertisement for MythTV or your Myth2Go project.
Great idea.
|
|
Top |
|
 |