knoppmyth.net Forum Index knoppmyth.net
The home of KnoppMyth.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

new video iPod?
Goto page Previous  1, 2, 3, 4, 5 ... 11, 12, 13  Next
 
Post new topic   Reply to topic    knoppmyth.net Forum Index -> General
View previous topic :: View next topic  
Author Message
nickrout



Joined: 29 Oct 2005
Posts: 42

PostPosted: Sun Oct 30, 2005 1:03 pm    Post subject: Reply with quote

Quote:
2) VNC and mythtv-setup do NOT work together. Have no idea why but after answering "No" to reseting my video cards or channels it always dumped me back into the shell. I finally gave up and had to connect a monitor to my KnoppMyth box to run mythtv-setup locally


It will work over X though - not sure if you have X11 set up on your mac, but on my linux machine I run:

ssh -Y media
(then put in password)

Then you are logged into the mythtv box, and running mythsetup makes it appear on your screen.
Back to top
View user's profile Send private message
nickrout



Joined: 29 Oct 2005
Posts: 42

PostPosted: Sun Oct 30, 2005 1:30 pm    Post subject: Reply with quote

Quote:
3) For some reason I needed to use the parameter "%DIR%/" as opposed to what is stated in the instructions (there it says to use "%DIR%" ...without the slash). I found that my script file required the directory input to be /myth/tv/ as oppsed to the standard directory of /myth/tv (notice the extra slash?). This might have something to do wiht my 1st issue.


In unix extra slashes (/) do not seem to hurt, eg /myth/tv/filename is equivalent to /myth/tv////filename, but of course both are different to /myth/tvfilename

therefore you are better to put in an extra / than to omit it.

A problem that you might run into in mixed environments is the line termination character. In unix it is <LF> (ascii decimal 10). In Windows it is <CR><LF> (ascii 13 followed by ascii 10) and in mac I believe it is traditionally <CR> - although whether this is still true in OS X (based on unix) I do not know.

And yes you have to be careful cutting and pasting out of a web page as odd characters do creep in. Someone needs to properly package these scripts and post a tarball or zip file on the web. When they have settled a bit I can do that if desired.
Back to top
View user's profile Send private message
wififun



Joined: 21 Jun 2004
Posts: 291
Location: Ontario, CA

PostPosted: Sun Oct 30, 2005 7:34 pm    Post subject: Reply with quote

I am stoked so many are playing with this. Very cool!. Pegli has started a mythweb interface, and I hope to have some time this week to help on that end. I have been dusting of the cobwebs in the php part of my brain.

cortez, yea, they play great on the iPod. Actually that is where I started. The first thing was to find a ffmpeg mencoder line that outputted a playable file. Everything else built from there.

thelynches, soon I hope to get this centralized. I will see about setting up up some space and putting this in a downloadable format so that updates are always available, and no more cut and pasting. This should solve some of the other problems. UPDATE: i have setup:
Quote:
www.myth2ipod.com
It should be up in a day or so, with the files.

rteichman, glad you got it working. The problems you have other than vlc, seem to be related to the cut and paste. You should not need the slash, but if it works for you, good. This was done in TextWrangler on a mac, so there should be little trouble, but I do use unix line feeds, not the old mac ones.

You should all be using the newest version .6 that outputs a php feed file, and individual xml intem files. This should be the final format, and any updates at this point on should not compromise any encodings you have done so far.
Back to top
View user's profile Send private message
wififun



Joined: 21 Jun 2004
Posts: 291
Location: Ontario, CA

PostPosted: Tue Nov 01, 2005 11:01 pm    Post subject: Reply with quote

the script and install directions are up at:
http://myth2ipod.com/

Check out the change log for new features.
Back to top
View user's profile Send private message
steff



Joined: 02 Nov 2005
Posts: 10

PostPosted: Wed Nov 02, 2005 2:54 am    Post subject: Re: Pretty neat Reply with quote

First, I have to say Great job with this! It really is very smooth when it comes to both myth and itunes. The script works brilliantly, and it generates the xml just fine, BUT:

ffmpeg however does not seem to recognize the format of MythTVs transcoded .nuv files.
I don't have a happauge-based hardware encoder card, but instead an ordinary saa7134 tuner card, so I use MythTVs transcoding to automatically reduce the .nuv files to manageable sizes, as well as to cut out the commercials from the files.

here's what happens when i try to encode using mpg2ipod (from mythbackend.log):

Code:
/usr/local/bin/ffmpeg -i /mnt/store//1000_20050825195500_20050825202500.nuv -comment '1000_20050825195500_20050825202500.nuv' -title 'TopGear' -author 'MythTV - mpg2ipod' -timestamp 'Wed Nov  2 09:01:56 CET 2005 ' -y -cropleft 10 -cropright 10 -croptop 8 -cropbottom 8 -deinterlace -vcodec xvid -s 320x240 -r 25 -b 384 -qmin 2 -qmax 5 -bufsize 4096 -acodec aac -ab 96 -g 300 -pass 1 -passlogfile /tmp/mpg2ipod_log -f mov /mnt/store/ipod/'TopGear--20050825'.pass1
ffmpeg version CVS, build 3277056, Copyright (c) 2000-2004 Fabrice Bellard
  configuration:  --enable-xvid --enable-gpl --enable-faac
  built on Nov  2 2005 10:09:53, gcc: 3.3.4 20040623 (Gentoo Linux 3.3.4-r1, ssp-3.3.2-2, pie-8.7.6)

/mnt/store//1000_20050825195500_20050825202500.nuv: Unknown format


Even something as simple as this doesn't work:
Code:
/usr/local/bin/ffmpeg -i /mnt/store/1000_20050825195500_20050825202500.nuv -target pal-vcd vcd.mpg
ffmpeg version CVS, build 3277056, Copyright (c) 2000-2004 Fabrice Bellard
  configuration:  --enable-xvid --enable-gpl --enable-faac
  built on Nov  2 2005 10:09:53, gcc: 3.3.4 20040623 (Gentoo Linux 3.3.4-r1, ssp-3.3.2-2, pie-8.7.6)

/mnt/store/1000_20050825195500_20050825202500.nuv: Unknown format


I'm using ffmpeg from cvs.
Back to top
View user's profile Send private message
wififun



Joined: 21 Jun 2004
Posts: 291
Location: Ontario, CA

PostPosted: Wed Nov 02, 2005 7:04 am    Post subject: Reply with quote

Quote:
ffmpeg however does not seem to recognize the format of MythTVs transcoded .nuv files.

Yea, I noticed this yesterday when I set a few older items to copy for the ipod. I had forgotten that I transcoded them, and they failed. Now that .8 is up with the changes it has, I will see what I can do to get a working ffmpeg line that will work with the transcoded files.
Back to top
View user's profile Send private message
stealthboy



Joined: 03 Nov 2005
Posts: 5

PostPosted: Thu Nov 03, 2005 1:06 pm    Post subject: Reply with quote

There are some slight differences in the filename conventions for the newer builds of Myth off of Subversion. The filenames no longer have the endtime, so the section of Perl that splits up the $start and $end vars are just a bit off. For the $start var you just need to add a substr() in the assignment to pull out the first 14 chars of $file[1]. FYI.
Back to top
View user's profile Send private message
wififun



Joined: 21 Jun 2004
Posts: 291
Location: Ontario, CA

PostPosted: Thu Nov 03, 2005 2:01 pm    Post subject: Reply with quote

stealthboy, could you post a couple of the filenames for me please. Thanks for the input.
Back to top
View user's profile Send private message
stealthboy



Joined: 03 Nov 2005
Posts: 5

PostPosted: Thu Nov 03, 2005 2:03 pm    Post subject: Reply with quote

wififun wrote:
stealthboy, could you post a couple of the filenames for me please. Thanks for the input.


Sure:

1176_20051024011500.mpg
1122_20051027010000.mpg

It's the channid, then the starttime. No more end time.
Back to top
View user's profile Send private message
jamesarm97



Joined: 04 Nov 2005
Posts: 3

PostPosted: Fri Nov 04, 2005 6:02 am    Post subject: changes to support iPod widescreen / hdtv Reply with quote

Is there any way to detect a widescreen formated video and either add the black bars at the top or (preferably) chop / crop the width to 320 (4:3)? I am recording alot of hdtv shows and when I convert them using this script they playback squished because of the aspect ratio. The script squishes the 16:9 video into a 4:3 screen. I think because of the small screen just cropping the extra info on the sides of the video would be best instead of having black bars at the top and bottom.

Any update for the new mythtv filename formats yet?

Thanks,
James
Back to top
View user's profile Send private message
wififun



Joined: 21 Jun 2004
Posts: 291
Location: Ontario, CA

PostPosted: Fri Nov 04, 2005 7:28 am    Post subject: Reply with quote

James.. I do know what you mean. The widescreen stuff gets copressed on the sides, and the letter-boxed content gives up so much screen space to the black bars that on such a small screen it really stands out.
The quickest thing you can do, is create a copy of the script and call it something like myth2ipod.hd. Edit the $encodeopt variable and adjust the crop options. If it is true HD 16:9 content, then just crop the left and right a little more until you get what is acceptable. If it is letter-boxed content, then you need to crop the top, bottom, and the sides more. Then set this new script as a second user job, and run this one for your hd or letter-boxed content.
I am working on a way to detect the format, and give the user options for cropping and even cutting out the flagged commercials. Beta .9 will include a few bug fixes including the new filename fix, and 1.0 has some cool things on the todo list. .9 should be up Friday sometime.
Back to top
View user's profile Send private message
hydo



Joined: 04 Nov 2005
Posts: 1

PostPosted: Fri Nov 04, 2005 12:29 pm    Post subject: Reply with quote

Quote:

Not ready yet. How do you send the cd command from perl?


chdir()

I get the feeling though that that isn't what you are asking judging by the level of perl code in the script.
Back to top
View user's profile Send private message
cortez



Joined: 30 Oct 2005
Posts: 5

PostPosted: Sun Nov 06, 2005 8:59 pm    Post subject: Pretty badass... Reply with quote

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%"
Back to top
View user's profile Send private message
wififun



Joined: 21 Jun 2004
Posts: 291
Location: Ontario, CA

PostPosted: Sun Nov 06, 2005 9:50 pm    Post subject: Reply with quote

when you say you can run it manually, does that mean you can run it from the command line by giving it something like:
Quote:
/usr/local/bin/myth2ipod "/myth/tv" "1107-2005101354687-2005101355600.nuv"

If that works, and ffmpeg does its thing, then I would guess the problem is permissions. There is a problem with transcoded files, and I think the script may only run on pvrx50 recordings. If you know it works from the command line, then the problem is either the mythtv user can not run the script or.... Um I just though of something. Running the script from the job queue literally puts it in the queue. So if you have anything else going before it, like commercial flagging, or your queue is scheduled to run at a certain time, then it will not show up right away. Check the backend status from mythweb to see if it has been added to the queue.
Back to top
View user's profile Send private message
mdrovdahl



Joined: 01 Jan 2005
Posts: 5

PostPosted: Mon Nov 07, 2005 7:33 am    Post subject: Reply with quote

wififun wrote:
There is a problem with transcoded files, and I think the script may only run on pvrx50 recordings.


1) From what I udnerstand...files in the nuv container (i.e those generated by the mythtranscode daemon) will be a serious challenge. Best to turn off auto-transcoding for any programs you wish to myth2ipod-ize.

2) Permisssions will bite you in the a**. Get them sorted out with manual runs first, then automate it as a UserJob.

3) On another note, is two pass encoding the only way to get acceptable quality? I run a seriously underpowered mythtv backend and don't have a lot of cpu cycles to spare.

4) Thanks for script. As I get the kinks worked out, I plan to use it as my default archive method.

Mark
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    knoppmyth.net Forum Index -> General All times are GMT - 8 Hours
Goto page Previous  1, 2, 3, 4, 5 ... 11, 12, 13  Next
Page 4 of 13

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group