Author |
Message |
wififun
|
Posted: Fri Jan 27, 2006 10:28 am |
|
Joined: Mon Jun 21, 2004 11:25 am
Posts: 291
Location:
Ontario, CA
|
Yep.. no go with that setup. Last week I saw a similar note at another form, and played with a few different setting. I dropped the video bitrate, the audio bitrate, the audio sampling, and the fps. Got a nice small file size, but that was about it. I do have another idea, and will be looking at it this weekend. I really like the FF RW on the 1.1 update, so I want that back. It also made it snappier. To bad it broke our myth2ipod videos. I will have an answer by the end of the weekend...  I hope.
|
|
Top |
|
 |
fromar
|
Posted: Sat Feb 04, 2006 8:20 pm |
|
Joined: Sat Feb 04, 2006 7:16 pm
Posts: 2
|
Hello! I have been using myth2ipod for a couple months now and I love it. Keeps me up with my shows when I'm out on the road.
I have recorded some shows with an apostrophy in the title. "Egypt's Golden Empire". When I run myth2ipod on the file though, myth2ipod reads the info from the DB and isn't able to start transcoding. The xml file is created just fine. Has anyone else run into this? Any ideas on how to modify the script to handle this?
Let me know if you have a good idea. Thanks!
|
|
Top |
|
 |
tony_mythtv
|
Posted: Sun Feb 05, 2006 5:00 am |
|
Joined: Sun Feb 05, 2006 4:02 am
Posts: 1
|
I'm having the same issues. I tried adding:
$filename =~ s/'//g;
to the myth2ipod script and get this output, and no .mov file generated.
$myth2ipod /video/tv 1206_20060204083000_20060204101500.nuv
Starting pass 1 of 2...
/usr/local/bin/ffmpeg -i /video/tv/1206_20060204083000_20060204101500.nuv -comment '1206_20060204083000_20060204101500.nuv' -title 'Ferris Bueller's Day Off' -author 'MythTV - myth2ipod' -timestamp 'Sun Feb 5 05:40:15 GMT 2006
' -y -cropleft 10 -cropright 10 -croptop 8 -cropbottom 8 -deinterlace -vcodec xvid -s 320x240 -r 29.97 -b 384 -qmin 2 -qmax 5 -bufsize 4096 -acodec aac -ab 96 -g 300 -pass 1 -passlogfile /tmp/myth2ipod_log -f mov /video/ipod/'Ferris_Bueller's_Day_Off--20060204'.pass1
FFmpeg version CVS, Copyright (c) 2000-2004 Fabrice Bellard
configuration: --enable-xvid --enable-gpl --enable-faac
libavcodec version: 51.1.0
libavformat version: 50.0.0
built on Jan 22 2006 07:00:40, gcc: 4.0.2 20051125 (Red Hat 4.0.2-8)
Input #0, mpeg, from '/video/tv/1206_20060204083000_20060204101500.nuv':
Duration: 01:44:52.4, start: 0.333844, bitrate: 5190 kb/s
Stream #0.0[0x1e0], 29.97 fps(r): Video: mpeg2video, yuv420p, 480x480, 6000 kb/s
Stream #0.1[0x1c0]: Audio: mp2, 48000 Hz, stereo, 384 kb/s
Unable for find a suitable output format for 'Day'
sh: line 1: -y -cropleft 10 -cropright 10 -croptop 8 -cropbottom 8 -deinterlace -vcodec xvid -s 320x240 -r 29.97 -b 384 -qmin 2 -qmax 5 -bufsize 4096 -acodec aac -ab 96 -g 300 -pass 1 -passlogfile /tmp/myth2ipod_log -f mov /video/ipod/Ferris_Buellers_Day_Off--20060204.pass1: No such file or directory
Pass one failed
Pass 1 competed, starting pass 2 of 2...
/usr/local/bin/ffmpeg -i /video/tv/1206_20060204083000_20060204101500.nuv -comment '1206_20060204083000_20060204101500.nuv' -title 'Ferris Bueller's Day Off' -author 'MythTV - myth2ipod' -timestamp 'Sun Feb 5 05:40:15 GMT 2006
' -y -cropleft 10 -cropright 10 -croptop 8 -cropbottom 8 -deinterlace -vcodec xvid -s 320x240 -r 29.97 -b 384 -qmin 2 -qmax 5 -bufsize 4096 -acodec aac -ab 96 -g 300 -pass 2 -passlogfile /tmp/myth2ipod_log -f mov /video/ipod/'Ferris_Bueller's_Day_Off--20060204'.pass2
FFmpeg version CVS, Copyright (c) 2000-2004 Fabrice Bellard
configuration: --enable-xvid --enable-gpl --enable-faac
libavcodec version: 51.1.0
libavformat version: 50.0.0
built on Jan 22 2006 07:00:40, gcc: 4.0.2 20051125 (Red Hat 4.0.2-8)
Input #0, mpeg, from '/video/tv/1206_20060204083000_20060204101500.nuv':
Duration: 01:44:52.4, start: 0.333844, bitrate: 5190 kb/s
Stream #0.0[0x1e0], 29.97 fps(r): Video: mpeg2video, yuv420p, 480x480, 6000 kb/s
Stream #0.1[0x1c0]: Audio: mp2, 48000 Hz, stereo, 384 kb/s
Unable for find a suitable output format for 'Day'
sh: line 1: -y -cropleft 10 -cropright 10 -croptop 8 -cropbottom 8 -deinterlace -vcodec xvid -s 320x240 -r 29.97 -b 384 -qmin 2 -qmax 5 -bufsize 4096 -acodec aac -ab 96 -g 300 -pass 2 -passlogfile /tmp/myth2ipod_log -f mov /video/ipod/Ferris_Buellers_Day_Off--20060204.pass2: No such file or directory
Pass two failed
Pass 2 competed, building video XML file
"Ferris_Bueller's_Day_Off--20060204" has been added to the feed.
XML file created for "Ferris_Bueller's_Day_Off--20060204" : Cleaning up temporary files
mv -f /video/ipod/'Ferris_Bueller's_Day_Off--20060204'.pass2 /video/ipod/'Ferris_Bueller's_Day_Off--20060204'.ipod.mov
mv: missing file argument
Try `mv --help' for more information.
Moving pass2 to final .mov failed
rm -f /tmp/myth2ipod_log*
rm -f /video/ipod/'Ferris_Bueller's_Day_Off--20060204'.pass1
sh: -c: line 0: unexpected EOF while looking for matching `''
sh: -c: line 1: syntax error: unexpected end of file
Removing pass 1 file failed
Ferris Bueller's Day Off is ready for your ipod
Other than the apostrophe glitch, the script has always worked. I am using FC4 and the latest myth2ipod script w/out using the transcode patch.
Is there a way to fix this apostrophe glitch in the myth2ipod script?
Since I can't get the script to work with apostrophes, I would like to do this manually w/out using the myth2ipod script.
Is it possible to run ffmpeg from the command line to convert the .nuv file to the ipod? I've tried various options (just to convert the .nuv, no .xml stuff) which resembled the myth2ipod script w/ negative results.
-Tony
|
|
Top |
|
 |
jsprenkle
|
Posted: Thu Feb 09, 2006 10:17 am |
|
Joined: Sun Dec 04, 2005 1:54 pm
Posts: 17
|
cortez wrote: OK I installed myth2ipod and can set it to run manually. I set up the user job, but it doesnt seem to activate the transcode - it just shows up in my mythweb status window as "queued" and when i run ps it doesnt show up.
the user job command i'm using is /usr/local/bin/myth2ipod "%DIR%" "%FILE%"
In the setup program (hit alt-s on your keyboard), in the general section,
there are four options to allow running "user job 1" - 'user job 4".
Did you turn those on? It won't start queued jobs without those being
turned on.
|
|
Top |
|
 |
haertig
|
Posted: Sat Feb 18, 2006 10:42 pm |
|
Joined: Mon Oct 10, 2005 2:00 pm
Posts: 29
|
Since this thread appears to be fairly general - as long as the post relates somehow to myth2ipod - I'm hoping this post is in the proper place.
How long does this transcoding take? I was quite surprized (negatively) when I just ran a test. I gave it a 1.3Gb file (about 35 minutes worth of video) that was in MPEG-2 format from a Hauppauge PVR150 capture.
I aborted PASS ONE after about 15 minutes!!! I estimate I was less than a quarter of the way done with pass one, given the running frame count. I was estimating about 30*35*60 frames total (30 fps, 35 minutes, 60 seconds per minute). I estimate this test would put me in the neighborhood of 2 hours to transcode a 30 minute show!
---
My computer isn't a barn-burner, but it's not a total dog either.
Athlon64 3000+ with 1Gb ram running Debian
I don't think I've ever seen this thing breathing so hard. 0% idle with a CPU temp of 60 Celcius! Normally this thing sits at 100% idle and CPU temp at 35 Celcius. Despite the high load indicated by "top" and "sensors" the computer was still responding as normal. No slowdowns at the console. But 60 Celcius is pushing the limit I want to go with this processor (AMD specs it with T-case-max of 70 Celcius).
Is this load I'm seeing anywhere near normal for ffmpeg?
|
|
Top |
|
 |
fromar
|
Posted: Sun Feb 19, 2006 10:14 am |
|
Joined: Sat Feb 04, 2006 7:16 pm
Posts: 2
|
You are correct that transcoding takes a ton of time. That's just the way it is. It takes me about 45 minutes to do a 30 minute show. The machine does seem to be smart enough to allow other processes to take priority, so I believe you are seeing 100% of spare CPU being used. Your best bet is to set the transcoding up as a user job to run automatically on your recordings. Since transcoding won’t slow down your computer much, you probably won’t notice it happening.
|
|
Top |
|
 |
goudiemark
|
Posted: Wed Feb 22, 2006 11:22 am |
|
Joined: Tue Oct 04, 2005 3:14 pm
Posts: 21
|
Code: <?php header("Content-Type: text/xml"); echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"; ?> <rss xmlns:itunes="http://www.itunes.com/DTDs/Podcast-1.0.dtd" version="2.0"> <channel> <title>MythTV - <? if ($_GET['title'] == "") { $title = "*"; echo "Recorded Programs"; } else { $title = $_GET['title']; echo str_replace("_"," ",$_GET['title']); } ?> </title> <itunes:author>MythTV - myth2ipod</itunes:author> <link>http://10.10.0.48/mythweb</link> <itunes:subtitle>Transcoded recording for your iPod Video.</itunes:subtitle> <itunes:summary>Myth TV Recorded Programs for the iPod v.1</itunes:summary> <description>Myth TV Recorded Programs for the iPod v.1</description> <itunes:owner> <itunes:name>MythTV</itunes:name> <itunes:email>mythtv@localhost</itunes:email> </itunes:owner> <itunes:explicit>No</itunes:explicit> <language>en-us</language> <copyright>Copyright 2005.</copyright> <webMaster>mythtv@localhost</webMaster> <itunes:image href="http://myth2ipod.com/mythipod_200.jpg" /> <itunes:category text="TV Shows"></itunes:category> <category>TV Shows</category> <itunes:image href="http://myth2ipod.com/mythipod_200.jpg"/><image><url>http://myth2ipod.com/mythipod_200.j pg</url> <title>MythTV 2 iPod</title> <link>http://10.10.0.48/mythweb</link> <width>200</width> <height>200</height> </image> <? foreach (glob($title."*.ipod.xml") as $file) {include $file;} ?> </channel> </rss> Code: sh-3.00$ ls -l total 676516 -rw-r--r-- 1 mythtv mythtv 217797805 Jan 23 08:45 Alias-Masquerade-20060122.ipod.mov -rw-r--r-- 1 mythtv mythtv 702 Jan 23 08:45 Alias-Masquerade-20060122.ipod.xml -rw-r--r-- 1 mythtv mythtv 217833482 Jan 22 22:35 Charmed-Repo_Manor-20060122.ipod.mov -rw-r--r-- 1 mythtv mythtv 702 Jan 22 22:35 Charmed-Repo_Manor-20060122.ipod.xml -rw-r--r-- 1 mythtv mythtv 57873534 Jan 19 18:34 Matlock-The_Dating_Game-20060119.ipod.mov -rw-r--r-- 1 mythtv mythtv 636 Jan 19 11:50 Matlock-The_Dating_Game-20060119.ipod.xml -rw-r--r-- 1 mythtv mythtv 734 Jan 21 14:47 My_Name_Is_Earl-Stole_P's_HD_Cart-20060119.ipod.xml -rw-r--r-- 1 mythtv mythtv 198489719 Jan 19 22:19 Smallville-Lockdown-20060119.ipod.mov -rw-r--r-- 1 mythtv mythtv 721 Jan 19 22:19 Smallville-Lockdown-20060119.ipod.xml -rw-r--r-- 1 mythtv mythtv 19129 Jan 21 14:48 The_Office-The_Secret-20060120.ipod.mov -rw-r--r-- 1 mythtv mythtv 636 Jan 21 14:48 The_Office-The_Secret-20060120.ipod.xml -rwxrwxrwx 1 mythtv mythtv 1389 Feb 22 11:19 feed.php
Above is the feed.php file and a ls -l of the /myth/ipod dir. Does that rss feed look correct?
|
|
Top |
|
 |
tlianza
|
Posted: Fri Feb 24, 2006 12:54 am |
|
Joined: Thu Feb 23, 2006 5:36 pm
Posts: 1
|
I'm just getting started with this, but so far it's really great. Being able to drop my ipod in the cradle and have it grab a bunch of shows that have been recorded and pre-transcoded is a really powerful thing.
Thank you so much for the great work!
|
|
Top |
|
 |
SteveGodfrey
|
Posted: Fri Feb 24, 2006 9:47 am |
|
Joined: Sat Oct 29, 2005 1:22 pm
Posts: 11
|
I get myth2ipod working just right on my Knoppmyth install then decide I want to run Unbuntu!!
Any I've got the myth2ipod script working but I have a, hopefully small, problem with accessing the feed.php page.
I just get a grey page with a white box and this text in the box
'An unknown module was specified
ipodfeed'
There aren't any errors in the apache2 logs so I guess something in the script is causing it.
Any suggestions?
Thanks
|
|
Top |
|
 |
arriflex
|
Posted: Mon Feb 27, 2006 8:31 pm |
|
Joined: Thu Feb 23, 2006 2:41 pm
Posts: 68
|
I finally got the rss portions of the script to work, for those other noobs like me, I had to make the directories that myth2ipod uses, and also create links to them from the webserver directories. If there is a better way of doing this, please someone let me know as I have zero experience with linux. Wififun, I found the symlink instruction in a previous version of the scirpt, it might be nice to have that and the directories that need to be created listed in the instructions on your website.
But, I still can't get the transcoding to take place, even from command line, hopefully the following output means more to others than I've been able to put together myself... I'm pretty sure it has to do with my ffmpeg config, and have tried recompiling it a few times, maybe that is creating problems too...
Code: mythtv@mythtv:/myth/tv$ myth2ipod "/myth/tv" "1017_20060222160000_20060222170000 .nuv" Starting pass 1 of 2... /usr/local/bin/ffmpeg -i /myth/tv/1017_20060222160000_20060222170000.nuv -commen t '1017_20060222160000_20060222170000.nuv' -title 'XX Olympic Winter Games' -aut hor 'MythTV - myth2ipod' -timestamp 'Mon Feb 27 18:10:31 PST 2006 ' -y -cropleft 10 -cropright 10 -croptop 8 -cropbottom 8 -deinterlace -vcodec xv id -s 320x240 -r 29.97 -b 384 -qmin 2 -qmax 5 -bufsize 4096 -acodec aac -ab 96 - g 300 -pass 1 -passlogfile /tmp/myth2ipod_log -f mov /myth/ipod/'XX_Olympic_Wint er_Games-Snowboarding,_Cross_Country_Skiing-20060222'.pass1 FFmpeg version CVS, Copyright (c) 2000-2004 Fabrice Bellard configuration: --enable-xvid --enable-gpl --enable-faac libavutil version: 49.0.0 libavcodec version: 51.7.0 libavformat version: 50.3.0 built on Feb 23 2006 21:30:21, gcc: 3.3.5 (Debian 1:3.3.5-12) Input #0, mpeg, from '/myth/tv/1017_20060222160000_20060222170000.nuv': Duration: 00:59:55.1, start: 0.333811, bitrate: 5168 kb/s Stream #0.0[0x1e0], 29.97 fps(r): Video: mpeg2video, yuv420p, 480x480, 6000 kb /s Stream #0.1[0x1c0]: Audio: mp2, 48000 Hz, stereo, 384 kb/s Could not open '/myth/ipod/XX_Olympic_Winter_Games-Snowboarding,_Cross_Country_S kiing-20060222.pass1' Pass one failed Pass 1 competed, starting pass 2 of 2... /usr/local/bin/ffmpeg -i /myth/tv/1017_20060222160000_20060222170000.nuv -commen t '1017_20060222160000_20060222170000.nuv' -title 'XX Olympic Winter Games' -aut hor 'MythTV - myth2ipod' -timestamp 'Mon Feb 27 18:10:31 PST 2006 ' -y -cropleft 10 -cropright 10 -croptop 8 -cropbottom 8 -deinterlace -vcodec xv id -s 320x240 -r 29.97 -b 384 -qmin 2 -qmax 5 -bufsize 4096 -acodec aac -ab 96 - g 300 -pass 2 -passlogfile /tmp/myth2ipod_log -f mov /myth/ipod/'XX_Olympic_Wint er_Games-Snowboarding,_Cross_Country_Skiing-20060222'.pass2 FFmpeg version CVS, Copyright (c) 2000-2004 Fabrice Bellard configuration: --enable-xvid --enable-gpl --enable-faac libavutil version: 49.0.0 libavcodec version: 51.7.0 libavformat version: 50.3.0 built on Feb 23 2006 21:30:21, gcc: 3.3.5 (Debian 1:3.3.5-12) Input #0, mpeg, from '/myth/tv/1017_20060222160000_20060222170000.nuv': Duration: 00:59:55.1, start: 0.333811, bitrate: 5168 kb/s Stream #0.0[0x1e0], 29.97 fps(r): Video: mpeg2video, yuv420p, 480x480, 6000 kb /s Stream #0.1[0x1c0]: Audio: mp2, 48000 Hz, stereo, 384 kb/s Could not open '/myth/ipod/XX_Olympic_Winter_Games-Snowboarding,_Cross_Country_S kiing-20060222.pass2' Pass two failed Pass 2 competed, building video XML file print() on closed filehandle ITEM at /usr/local/bin/myth2ipod line 158. print() on closed filehandle ITEM at /usr/local/bin/myth2ipod line 159. print() on closed filehandle ITEM at /usr/local/bin/myth2ipod line 160. print() on closed filehandle ITEM at /usr/local/bin/myth2ipod line 161. print() on closed filehandle ITEM at /usr/local/bin/myth2ipod line 162. print() on closed filehandle ITEM at /usr/local/bin/myth2ipod line 163. print() on closed filehandle ITEM at /usr/local/bin/myth2ipod line 164. print() on closed filehandle ITEM at /usr/local/bin/myth2ipod line 165. print() on closed filehandle ITEM at /usr/local/bin/myth2ipod line 166. print() on closed filehandle ITEM at /usr/local/bin/myth2ipod line 167. print() on closed filehandle ITEM at /usr/local/bin/myth2ipod line 168. print() on closed filehandle ITEM at /usr/local/bin/myth2ipod line 169. print() on closed filehandle ITEM at /usr/local/bin/myth2ipod line 170. "XX_Olympic_Winter_Games-Snowboarding,_Cross_Country_Skiing-20060222" has been a dded to the feed. XML file created for "XX_Olympic_Winter_Games-Snowboarding,_Cross_Country_Skiing -20060222" : Cleaning up temporary files mv -f /myth/ipod/'XX_Olympic_Winter_Games-Snowboarding,_Cross_Country_Skiing-200 60222'.pass2 /myth/ipod/'XX_Olympic_Winter_Games-Snowboarding,_Cross_Country_Ski ing-20060222'.ipod.mov mv: cannot stat `/myth/ipod/XX_Olympic_Winter_Games-Snowboarding,_Cross_Country_ Skiing-20060222.pass2': No such file or directory Moving pass2 to final .mov failed rm -f /tmp/myth2ipod_log* rm -f /myth/ipod/'XX_Olympic_Winter_Games-Snowboarding,_Cross_Country_Skiing-200 60222'.pass1 XX Olympic Winter Games is ready for your ipod
Thanks to all that have contributed so far, your comments have been amazing and invaluable. I've already learned much about Linux and Mythtv that has been helpful in going a step beyond the wonderfully simple Knoppmyth installation.
edgar
|
|
Top |
|
 |
goudiemark
|
Posted: Mon Feb 27, 2006 8:33 pm |
|
Joined: Tue Oct 04, 2005 3:14 pm
Posts: 21
|
Can you post about the links you used?
|
|
Top |
|
 |
arriflex
|
Posted: Tue Feb 28, 2006 11:11 pm |
|
Joined: Thu Feb 23, 2006 2:41 pm
Posts: 68
|
All of the links I used were located within this thread, some of the info came from an early version of the script from Wififun, much came from his website... http://www.myth2ipod.com/ and a little smidgen from the knoppmyth wiki... http://knoppmythwiki.org/index.php?page=VideoIpod
hope that helps as much as it helped me.
somehow the script started working from the command line tonight, dunno what I did outside of reboot last night. I thought I tried it afterward without success, but it's working now!
edgar
|
|
Top |
|
 |
wififun
|
Posted: Sun Mar 05, 2006 11:00 pm |
|
Joined: Mon Jun 21, 2004 11:25 am
Posts: 291
Location:
Ontario, CA
|
After a long wait, and a bit of work there is a new version of the myth2ipod script. I have been testing this one for a few days, and have not had any problems. The install directions are a little longer than before, but they are more complete and much easier to do. Installation not including compiling time should take about 5 minuets.
There is one important note though. It only works with MythTV .19. I have only tested it with the yet to be released Knoppmyth version. So, you will need to have some patience before jumping into this. A new release of Knoppmyth is on its way, but will not be released until it is ready, so don't ask.
This version of myth2ipod is compatible with the 1.1 iPod with Video firmware. It relies on nuvexport for a couple of reasons.
1. It should work with ALL myth recordings, not just PVRx50 like the previous version. 2. If you are satisfied with myth's commercial flagging for your show, then you can enable cutlist generations and usage so that commercials are removed in your ipod feed shows. Very Cool! Now, go get it and tell me what's broken.  Be gentle.
http://www.myth2ipod.com
UPDATE: I have added an installer script that will almost completely setup myth2ipod for you. Including gather and compiling the needed dependencies, and building the feed structure. However, this has ONLY been tested with the upcoming Knoppmyth, on a clean box. So be careful. I have not broken anything yet with it, but you are warned.
Last edited by wififun on Mon Mar 06, 2006 2:39 am, edited 1 time in total.
|
|
Top |
|
 |
spalVl
|
Posted: Mon Mar 06, 2006 12:13 am |
|
Joined: Mon Aug 29, 2005 4:04 pm
Posts: 729
Location:
Philadelphia, PA US
|
Quote: Now, go get it and tell me what's broken.
Off Topic: Really like the new look to the webpage very proffesional.
|
|
Top |
|
 |
wififun
|
Posted: Mon Mar 06, 2006 1:07 am |
|
Joined: Mon Jun 21, 2004 11:25 am
Posts: 291
Location:
Ontario, CA
|
spalVl wrote: :D Off Topic: Really like the new look to the webpage very proffesional.
Thanks, but I really can't take credit. I was playing with Apple's new iWeb app. It is pretty much a template. Very cool little tool for the average joe to make nice looking stuff. I showed my mom, a teacher, how to use it in about an hour. Though, as a web developer, it really generates some crap for html...  The nice thing is, this took just minutes to do.
|
|
Top |
|
 |