View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 184 posts ] 
Go to page Previous  1, 2, 3, 4, 5 ... 13  Next

Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject:
PostPosted: Thu Oct 20, 2005 8:33 pm 
Offline
Joined: Tue Mar 22, 2005 9:18 pm
Posts: 1422
Location: Brisbane, Queensland, Australia
By default it should work, check your settings for Mythvideo and if then you still are havingf a problem I suggest you start a new topic on your problem.

Cheers

_________________
Girkers


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 20, 2005 11:00 pm 
Offline
Joined: Mon Jun 21, 2004 11:25 am
Posts: 291
Location: Ontario, CA
well on sort of a whim, and the encouragement of my wife... I upgraded my 2.5 year old 20 gig iPod to a shiny new 60 gig with video. Umm... NICE. Granted yes I am somewhat of a fan boy, this thing is very cool. And for quick TV watching on the go, this will be very fun indeed. The iPod really is something I use every day anyway, both as an external drive to move content from home<->work, but for listening on the ride to work.

Back to video: my first impressions. The video quality really is is spectacular on this screen with the purchased content. I however, have not gotten QuickTime's export for iPod to complete on any of my recorded shows from my PVR-250 cards. Although QT plays the files fine once given an .mpg extension, the export has failed at some point in the file each time. I have switched to ffmpegX, and so far my first attempt failed to play in QT, and I am awaiting my send try to finish encoding.

My goal is to find a setting that works here, then focus on a script on the mythbox to do this work their. Manually at first, but in hope either I, or someone else will figure out how to elaborate on the ideas that have floated around.

UPDATE: Browsing through the Apple Discussion boards for the new iPod and QT, the best Mac based solution right now to convert your myth tv content for the iPod is to use PSPWare. http://www.nullriver.com/index/products/pspware. I have converted about 5 shows with this, and it is working well. Now to get an export file from the myth box.


Last edited by wififun on Fri Oct 21, 2005 9:40 am, edited 3 times in total.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 20, 2005 11:25 pm 
Offline
Joined: Tue Mar 22, 2005 9:18 pm
Posts: 1422
Location: Brisbane, Queensland, Australia
I have looked up Apples website and here is the details on the Video capabilities of the iPod:

Quote:
H.264 video: up to 768 Kbps, 320 x 240, 30 frames per sec., Baseline Profile up to Level 1.3 with AAC-LC up to 160 Kbps, 48 Khz, stereo audio in .m4v, .mp4 and .mov file formats
MPEG-4 video: up to 2.5 mbps, 480 x 480, 30 frames per sec., Simple Profile with AAC-LC up to 160 Kbps, 48 Khz, stereo audio in .m4v, .mp4 and .mov file formats


So I suspect that unless it meets these specs it would not work.

With the H.264 codec there is a thread on here http://mysettopbox.tv/phpBB2/viewtopic.php?t=6043&highlight=264 that talks about converting files to this format, check it out.

_________________
Girkers


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 21, 2005 6:53 am 
Offline
Joined: Sat Sep 10, 2005 12:45 pm
Posts: 4
Location: Canada
If anyone is consistently successful at moving videos from Myth to the new iPod, they might consider adding their method of doing so to the knoppmyth Wiki.

http://www.knoppmythwiki.org/

I'm sure we would all appreciate it. :)


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 21, 2005 3:40 pm 
Offline
Joined: Wed Feb 02, 2005 4:07 pm
Posts: 141
hobbit wrote:
If anyone is consistently successful at moving videos from Myth to the new iPod, they might consider adding their method of doing so to the knoppmyth Wiki.


Well I don't know if it warrents adding to the Wiki, but thanks to the information on this thread, I have been able to move video easily to my iPod. Below are the steps I took. I should note that I use a MAC, but there are windows versions of these tools as well. What I did:

Setup:
1) Got pretty working on my R5A16 KnoppMyth box by editing the existing pretty script to SU ROOT from SU MYTHTV
2) Downloaded a free program called FUGU which has an FTP like interface.
3) Downloaded PSPWARE which is a cheap shareware program, and set the preferences for the output to be on my desktop

Transfer Video to iPod:
1) Using FUGU I connected to my MythTV box (as MythTV user) and then went up a couple directories until I saw the Myth directory, then down a directory to Pretty
2) I selected the show I was interested in watching and "transfered" it to my desktop. FUGU is nice that it transfers the actual file not the symbolic link and gives the MUV file the name of the file in pretty.
3) Using PSPWARE I selected the file and it autoconverted it to an MP4 file. The only problem is that it creates a folder with the file's name and places the video file in there. However the video file is named some random thing (for PSP) so you need to manually rename the file to the show name
4) I dragged the video file from 3 into my iTunes library, and then deleted the folder PSPWARE created as well as the file transfered over from my KnoppMyth box that was on my desktop (not need for these anymore)
5) I connected my iPod, and let it sync with iTunes.
6) The show was listed on my iPod under movies and plays great!

I might even play with the new Automator function in OS X to do this all in one step! :-)


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 22, 2005 2:27 am 
Offline
Joined: Mon Jun 21, 2004 11:25 am
Posts: 291
Location: Ontario, CA
rteichman, PSPWare is not apple scriptable, and also does not have any built in Automator actions. However. Forty-TwoDVD-VXPlus http://kaisakura.com/fortytwovx.php Has an export for iPod setting, and does have an "Encode Item" Automator action. But it's Automator action does not have the iPod Type, but does have the PSP. This did work. I have spent some time today with trying different setting for doing this on the myth box. I will post if I have sucess.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 22, 2005 8:22 am 
Offline
Joined: Wed Feb 02, 2005 4:07 pm
Posts: 141
OK, now that I have the "how" to do it working, I'd like some help on optimizing. Ideally I would like most of the processing (if not all) to be done on the KnoppMyth box. I am assuming that the longest part of the processing time is to convert from MPEG-2 to MPEG-4, and that the time to convert to the iPod screen size is minimal. Is that correct? If yes I would want to setup MythTV to transcode my shows to MPEG-4. Somewhere I read that if you have MythTV remove commercials it automatically transcodes to MPEG-4 is that correct?

Update: I just looked at my KnoppMyth Settings and I see I can automatically transcode to MPEG-4 and under transcoders I can set the MPEG-4 file to be the bitrate, and frame size required by iPod. So here is a reall dumb question.... why can't I just set that up, and then copy the file to my desktop and onto the iPod without any other processing??


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 22, 2005 10:57 am 
Offline
Joined: Mon Jun 21, 2004 11:25 am
Posts: 291
Location: Ontario, CA
I tried that. I did a recording of a 30 min show. Then I went in and setup transcode settings. 320x240, bitrate 500k turned off high quality, and the 4 vector, but left the other two checked. Set the audio quality to 5. It transcoded in about 7 min, but on the make QuickTime nor VLC were able to play the resulting file.

The other reason this method may not be the best... When transcoding is finished, it replaces the new file with the old one. So if this is something you may want to watch on your big tv, then you may not want this lower resolution file as the only version. I don't think that as it stands, there is a way to prevent this. I think you can run a script as a job option, if this works, then we just need a script that will transcode the file and save it to an alternate location, and not modify the original recording.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 22, 2005 6:56 pm 
Offline
Joined: Wed Feb 02, 2005 4:07 pm
Posts: 141
wififun wrote:
I tried that. I did a recording of a 30 min show. Then I went in and setup transcode settings. 320x240, bitrate 500k turned off high quality, and the 4 vector, but left the other two checked. Set the audio quality to 5. It transcoded in about 7 min, but on the make QuickTime nor VLC were able to play the resulting file.

Yeah I ran into the same issue. I wonder why transcoding on the KnoppMyth box does not work :-(


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 22, 2005 8:21 pm 
Offline
Joined: Mon Jun 21, 2004 11:25 am
Posts: 291
Location: Ontario, CA
I have spent some (read: to much) time today playing with different mencoder setting trying to get something that plays on the iPod. Using the posts around here on getting x264 and the cvs mplayer installed, I got those running fine. I have been using ffmpegX on the mac which uses mencoder and x264, and although I can get a file that plays in iTunes, it will not play on the iPod. Looking at other sites it seems that we may need to wait for a firmware upgrade for the iPod before these h264 vids will work.[/i]


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 24, 2005 8:44 am 
Offline
Joined: Wed Feb 02, 2005 4:07 pm
Posts: 141
wififun wrote:
Looking at other sites it seems that we may need to wait for a firmware upgrade for the iPod before these h264 vids will work.[/i]

Why bother? The PSPware and Forty-Two both work fine on the Mac converting .NUV files into iPod playable files. I know I watched 2 shows this morning on my trip to work. The goal should be some transcoding on the KnoppMyth box so the processing can be done right after recording and thus all that is needed is to transfer the file to the iPod


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 24, 2005 9:55 am 
Offline
Joined: Mon Jun 21, 2004 11:25 am
Posts: 291
Location: Ontario, CA
Quote:
Why bother? The PSPware and Forty-Two both work fine on the Mac converting .NUV files into iPod playable files. I know I watched 2 shows this morning on my trip to work. The goal should be some transcoding on the KnoppMyth box so the processing can be done right after recording and thus all that is needed is to transfer the file to the iPod


PSPware is great also because you can que up a bunch of videos and it will hammer through them very quickly. But like you said, the myth side transcoding is what is needed. However, I have not managed to get a single mythside transoded file to play. I upgraded mencoder, and have tried mpeg4 and x264 with zero luck so far. I have gotten files that import into iTunes, and play fine, but will not transfer to the iPod. h264 offers the best quality/size, so it would be the best option, but I will take anything at this point. Once someone can get a working video made on the myth side, then we are getting somewhere.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 24, 2005 9:57 am 
I do not own an iPod but if it requires H.264 encoded video, I think you could use MPlayer/Mencoder with x264 to transcode your video to a compatible format. I placed wrote a "howto" description for getting started. Please post your findings/experiences with H.264 video and MythTV.

http://mysettopbox.tv/phpBB2/viewtopic. ... highlight=

Thanks!

Andrew Lynch


Top
  
 
 Post subject:
PostPosted: Mon Oct 24, 2005 4:29 pm 
Offline
Joined: Mon Jun 21, 2004 11:25 am
Posts: 291
Location: Ontario, CA
Andrew, I used a lot of your work from that post in my experements trying to get x264 and mencoder to create an iPod compatible file. Right now, this just doesn't work due to some h.264 parts I don't understand fully now, and the current state of the new iPod. Soon, I hope... but in the mean time...

Here is a quick hack based on andrews work, and some guy named snowmoon on a mac board.

First you must grab ffmpeg and recompile it with a couple of missing items. Very easy to do, so don't worry.
Code:
cvs -z9 -d:pserver:anonymous@mplayerhq.hu:/cvsroot/ffmpeg co ffmpeg
cd ffmpeg
./configure --enable-xvid --enable-gpl --enable-faac
make
make install

This will install another ffmpeg into /usr/local/bin. ffmpeg aready resides in a few other places on a default Knoppmyth install, but I do not want to replace them with this in case it breaks something.

Here is the script. I placed mine in /usr/local/bin/mpg2ipod and made it executable "chmod +x mpg2ipod".

Code:
# mpg2ipod
# quick script to transcode to an 5G iPod compatible video file
# requires recompiling of ffmpeg with xvid, and facc enabled
# you can tweak any of the crop, bitrate, etc.
# video size has worked for me up to 480x352
# this does a 2nd pass because it decreases file size greatly
# remove this pass to speed things up
# this was a quick hack, but is works for now

for file in $*
do
/usr/local/bin/ffmpeg -i $file -cropleft 4 -cropright 10 -deinterlace -vcodec xvid -s 320x240 -r 29.97 -b 384 -qmax 5 -bufsize 4096 -acodec aac -ab 96 -g 300 -pass 1 -passlogfile mpg2ipod_log -f mov $file.pass1.mov
/usr/local/bin/ffmpeg -i $file -cropleft 4 -cropright 10 -deinterlace -vcodec xvid -s 320x240 -r 29.97 -b 384 -qmax 5 -bufsize 4096 -acodec aac -ab 96 -g 300 -pass 2 -passlogfile mpg2ipod_log -f mov $file.ipod.mov
rm -f $file.pass1.mov
rm -f mpg2ipod_log*
done


This is working great for me so far. I set some hard coded crop settings, based on the sample files I was using. This and the scaling could be tweaked a lot to ensure maximum quality, but right now I am just happy to have something that works.

UPDATE: I have made a great deal of head way in the last several hours. Using myths user job functions, I now have an updated script that creates iPod compatible mpeg4 files, and saves them to a folder /myth/ipod. I am going to do some more test before I post it, but I should be able to also generate the RSS feed that iTunes would need to subscribe to, and get the files automatically. If anyone wants to test the above script and pass on feedback, I will use the input in the updated one before posting.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 25, 2005 2:54 am 
Offline
Joined: Mon Jun 21, 2004 11:25 am
Posts: 291
Location: Ontario, CA
Ok here is my first real push at this. It is working. You can subscribe to the feed from iTunes, and transfer the videos to your iPod. The perl code is really bad. It has been so long since I have touched perl that this is just atrocious. Please someone with more experience lend a hand. There are a couple of things missing, first, I did not take the time to convert the %STARTTIME% format of YYYYMMDDHHMMSS into the format required by iTunes for the publishing date, so I used the current date as of when the script is run to do this. There are lots of other little issues with opening and closing the xml file, that could be cleaned up. Again any input and changes would be more than welcome. I would like for this to be a starting point, and have more help polishing this off. I did not use any other perl libs since the ones I tried to sue for parsing XML were not there, I wanted to limit what the users had to install.


Code:
#!/usr/bin/perl
#
# First things first this is a quick hack, so use at your own risk
# it is working well for me right now with Knoppmyth R5A22
#
# VERSION: Beta .1 - mpg2ipod
# Author: Chris aka Wififun - email: wififun-at-gmail.com
#
# Requirements: recompile ffmpeg with --enable-xvid --enable-gpl --enable-faac
# mythweb should be accessable to your iTunes machine you can edit your hosts
# file to have mythtv point the right IP
# create a folder /myth/ipod and make sure to chown mythtv:mythtv
# then create a symlink ln -s /myth/ipod /var/www/ipodfeed
# put this script in /usr/local/bin and make sure mythtv can run it
# it may need chown root:mythtv
# open mythtv-setup and under General set up one of your User Jobs to run it:
# /usr/local/bin/mpg2ipod "%DIR%" "%FILE%" "%TITLE%" "%SUBTITLE%" "%STARTTIME%"
# Give the job a name like "Copy for iPod feed" and exit setup
# Then edit your recording schedules for each show you want in the feed.
# under Post Processing, add the newly created job to the list.
# you can also select it after a recording is finished, from the Job Options
# item when you get info for a previously recorded program.
# In iTunes, select "Subscribe to Podcast" from the Advanced menu
# enter the url http://mythtv/ipodfeed/mythtvforipod.xml
# have fun


if ($#ARGV != 4) {
    print "usage: mpg2ipod DIRECTORY TITLE SUBTITLE STARTTIME\n";
    exit;
}

$directory = $ARGV[0];
$file = $ARGV[1];
$title = $ARGV[2];
$subtitle = $ARGV[3];
$recorddate = substr $ARGV[4], 0, 8;
my( $rightnow ) = `date`;
$filename = $title."-".$subtitle."-".$recorddate;
$filename =~ s/ //g;

printf("Starting pass 1 of 2...\n");
   DoPassOne();
printf("Pass 1 competed, starting pass 2 of 2...\n");
   DoPassTwo();
printf("cleaning up temporary files\n");
   $cmd = "rm -f /tmp/mpg2ipod_log*";
      print $cmd."\n";
      if(system($cmd)) { print "Removing log files failed\n"; }
   $cmd = "rm -f /myth/ipod/'$filename'.pass1.mov";
      print $cmd."\n";
      if(system($cmd)) { print "Removing pass 1 file failed\n"; }
printf("$title is ready for your iPod\n");
printf("Generating RSS feed for iTunes\n");
   GenerateRSSFeed();
printf("Done\n");

sub DoPassOne {
    $cmd = "/usr/local/bin/ffmpeg -i $directory/$file -cropleft 4 -cropright 10 -deinterlace -vcodec xvid -s 320x240 -r 29.97 -b 384 -qmax 5 -bufsize 4096 -acodec aac -ab 96 -g 300 -pass 1 -passlogfile /tmp/mpg2ipod_log -f mov /myth/ipod/'$filename'.pass1.mov";
    print $cmd."\n";
    if(system($cmd)) { print "Pass one failed\n"; }
    return 0;
}

sub DoPassTwo {
    $cmd = "/usr/local/bin/ffmpeg -i $directory/$file -cropleft 4 -cropright 10 -deinterlace -vcodec xvid -s 320x240 -r 29.97 -b 384 -qmax 5 -bufsize 4096 -acodec aac -ab 96 -g 300 -pass 2 -passlogfile /tmp/mpg2ipod_log -f mov /myth/ipod/'$filename'.ipod.mov";
    print $cmd."\n";
    if(system($cmd)) { print "Pass two failed\n"; }
    return 0;
}

sub GenerateRSSFeed {
   if ( ! -r "/myth/ipod/mythtvforipod.xml" ) {
      open(XML, ">/myth/ipod/mythtvforipod.xml");
       print XML "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
       print XML "<rss xmlns:itunes=\"http://www.itunes.com/DTDs/Podcast-1.0.dtd\" version=\"2.0\">\n";
       print XML "<channel>\n";
       print XML "<title>MythTV Recorded Programs</title>\n";
      print XML "<itunes:author>MythTV</itunes:author>\n";
      print XML "<link>http://mythtv/ipodfeed/</link>\n";
      print XML "<itunes:subtitle>Transcoded recording for your iPod Video.</itunes:subtitle>\n";
      print XML "<itunes:summary>Myth TV Recorded Programs for the iPod v.1</itunes:summary>\n";
      print XML "<description>Myth TV Recorded Programs for the iPod v.1</description>\n";
      print XML "<itunes:owner>\n";
      print XML "<itunes:name>MythTV</itunes:name>\n";
      print XML "<itunes:email>mythtv@localhost</itunes:email>\n";
      print XML "</itunes:owner>\n";
      print XML "<itunes:explicit>No</itunes:explicit>\n";
      print XML "<language>en-us</language>\n";
      print XML "<copyright>Copyright 2005.</copyright>\n";
      print XML "<lastBuildDate>Today.</lastBuildDate>\n";
      print XML "<webMaster>mythtv@localhost</webMaster>\n";
      print XML "<itunes:image href=\"http://mythtv.org/themes/Myth_bb2/images/mythtv-logo.jpg\" />\n";
      print XML "<itunes:category text=\"TV Shows\"></itunes:category>\n";
      print XML "<category>TV Shows</category>\n";
      print XML "<image>";
      print XML "<url>http://mythtv.org/themes/Myth_bb2/images/mythtv-logo.jpg</url>\n";
      print XML "</image>\n";
      print XML "</channel>\n";
      print XML "</rss>\n";
      close(XML);

       }
      my @xmlarray = '/myth/ipod/mythtvforipod.xml';
      open(XML, "</myth/ipod/mythtvforipod.xml") or die "no xml file to open\n";
      @xmlarray = <XML>;
      close(XML);   
      foreach my $line (@xmlarray) {
         $line =~ s/<\/channel>\n//gi;
         $line =~ s/<\/rss>\n//gi;
      }

      push @xmlarray, "<item>\n"; 
       push @xmlarray, "<title>".$_."</title>\n"; 
       push @xmlarray, "<itunes:author>MythTV</itunes:author>\n"; 
       push @xmlarray, "<author>MythTV</author>\n"; 
       push @xmlarray, "<itunes:category text=\"TV Shows\"></itunes:category>\n"; 
       push @xmlarray, "<description>".$subtitle."</description>\n"; 
       push @xmlarray, "<pubDate>".$rightnow."</pubDate>\n"; 
       push @xmlarray, "<enclosure url=\"http://mythtv/ipodfeed/".$filename.".ipod.mov\" type=\"video/quicktime\" />\n"; 
       push @xmlarray, "<itunes:duration></itunes:duration>\n"; 
       push @xmlarray, "<itunes:keywords>".$title."</itunes:keywords>\n"; 
       push @xmlarray, "</item>\n";
      push @xmlarray, "</channel>\n";
      push @xmlarray, "</rss>\n";
      
      open(XML, ">/myth/ipod/mythtvforipod.xml") or die "no xml file to open\n";
      foreach my $line (@xmlarray) {
         print XML $line;
      }
      close(XML);   
   return 0;
}


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 184 posts ] 
Go to page Previous  1, 2, 3, 4, 5 ... 13  Next



All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu