View unanswered posts    View active topics

All times are UTC - 6 hours





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

Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject:
PostPosted: Mon Oct 09, 2006 9:22 pm 
Offline
Joined: Mon Aug 29, 2005 4:04 pm
Posts: 729
Location: Philadelphia, PA US
Ok after some testing looks like ffmpeg is not configured with xvid or mp3lame support out of the box on R5D1 and I have not had luck so far reinstalling ffmpeg with xvid or mp3lame support according to some of the myth2ipod posts. If anyone knows how to overcome please let me know or update the XviD encoding WIKI.

Given the earlier ffmpeg "non-standard" XviD file with R5C7 and the current R5D1 issues with ffmpeg I changed the WIKI to reflect using transcode rather than ffmpeg. I am more inclined to wait and see what the MythTV .20 changes and upcoming Knoppmyth release bring rather than spending too much time on the .19 versions.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 11, 2006 8:36 am 
Offline
Joined: Mon Jan 24, 2005 11:38 pm
Posts: 109
[quote="aaronb"]Follow up to my previous post, I updated to a newer version of nuvexport since I'm still running whatever version came with R5A15, and now I get the message:

[quote]
This version of nuvexport requires either the cvs or svn version of ffmpeg.[/quote]

So I followed the instructions on the wiki for updating ffmpeg from cvs, and after installing it still says I have the same version of ffmpeg as before, and I cannot run nuvexport anymore. Is this a problem of me running too old a version of Knoppmyth? My box has been working great for a long time so I didn't want to upgrade.[/quote]

Following up in case this happens to anyone else. I installed an older version of nuvexport, and everything is working great now. Now I just need to figure out an easy and automatic way to replace the original file with the newly encoded Xvid file without losing the db information (i.e. make this work just like the built in transcode)


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 11, 2006 2:16 pm 
Offline
Joined: Fri Apr 02, 2004 10:08 am
Posts: 1637
Location: Virginia, USA
I saw the same message about the nuvexport incompatibility with the ffmpeg version I installed from the myth2ipod docs. I'll have to see how best to downgrade nuvexport.

Could that be the reason why, although myth2ipod did seem to work, the files it created were waaaaay overcompressed. I was expecting 90MB or so for a 20 minute input file, but got a 25MB file instead. Speedy to download but didn't look very good, needless to say.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 11, 2006 10:48 pm 
Offline
Joined: Mon Jan 24, 2005 11:38 pm
Posts: 109
[quote="ceenvee703"] I'll have to see how best to downgrade nuvexport.[/quote]

It was pretty simple, I just grabbed an older version from here:

http://forevermore.net/files/nuvexport/archive/

untar'd it and ran make install


Top
 Profile  
 
 Post subject: Encode after x days
PostPosted: Wed Nov 01, 2006 8:05 am 
Offline
Joined: Sat Sep 16, 2006 5:25 pm
Posts: 5
Is it possible to not run the job right after the show is recorded but have it set up as a cron job or something that would check the files that are over 1 week old or X days old? Most shows I will delete right after watching but others I want to archive. Any thoughts?
Sorry if this is in another thread but I couldn't find any info on it.


Top
 Profile  
 
 Post subject: Re: Encode after x days
PostPosted: Wed Nov 01, 2006 8:32 am 
Offline
Joined: Mon Aug 29, 2005 4:04 pm
Posts: 729
Location: Philadelphia, PA US
dunham03 wrote:
Is it possible to not run the job right after the show is recorded but have it set up as a cron job or something that would check the files that are over 1 week old or X days old? Any thoughts?


I think it should be workable with cron and some shell scripting. This would be basic logic I had in mind.

If filename.XviD.avi does NOT exist in $feed directory
and if /myth/tv/recording#.mpg is greater than X days old.
command /usr/local/bin/myth2xvid /myth/tv myth/tv/recording#.mpg
loop

The script should go though and 1 by 1 convert everything to XviD until everything exists in feed directory and no files greater than X days exist.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 01, 2006 8:48 am 
Offline
Joined: Tue Jan 18, 2005 2:07 am
Posts: 1532
Location: California
Code:
find /input/directory -name \*.mpg -mtime +6 -exec command \{\} \;



This linux command will find every file in "/input/directory" whose name ends in ".mpg" that is over 6 days old and execute "command". "Command" will be passed the name of the file as it's first parameter. Assuming you have a knoppmyth install, typing the following in a shell window will show you what it does:

Code:
find /myth/avimanager -name \*.pl -exec ls -l \{\} \;


Marc


Top
 Profile  
 
 Post subject: myth2ipod and myth2xvid
PostPosted: Sat Nov 04, 2006 5:10 pm 
Offline
Joined: Wed Dec 28, 2005 8:35 am
Posts: 18
I got myth2ipod working yesterday and am working on myth2xvid right now.

It works from command line but not from the mythtv front end. Ipod was doing that at first but somehow it started working so I am not worried about that.

But, the xvid looks kind of crappy. I know you can edit ipod.pm and change the bitrate for myth2ipod. Is myth2xvid referencing that also? Can I set different bitrates and resolutions if I am running these on the same machine?

Any help appreciated.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 15, 2006 3:53 am 
Offline
Joined: Wed Jan 11, 2006 11:08 pm
Posts: 14
Location: NJ
I know this has been partially gone over in this thread, but I haven't seen a clear solution (if there is one). Basically, I did everything the wiki page told me to...setup ffmpeg, mp3lame, and xvid encoding (including the mythtv user job).

Now, if I run this command, after about 4 hours it spits out a perfectly encoded Xvid file, without commercials:

/usr/local/bin/myth2xvid -cut "/myth/tv/" "filename.mpg"

Yet, for some reason the user job that runs after a show has finished recording (and the commercial flagging process has run) fails. Here's what seems pertinent from mythbackend.log:

Code:
2006-12-15 00:23:24.103 Unknown video codec:
2006-12-15 00:23:24.107 Transcoding /myth/tv/1072_20061214233000.mpg failed
2006-12-15 00:23:24.122 Unknown socket closing
2006-12-15 00:23:24.183 Transcode Errored for The Colbert Report: 1.1 GB => 0 by
tes (Autodetect)


Here are my questions:

1. Why is this failing? Is there anything that I can do to fix it?
2. Is it possible to have things setup so that when the Xvid encoding finishes successfully, it replaces the MPEG2 file? The whole reason I did this was to prevent the hard drive from filling up so quickly. (I saw this question a few posts above, figured it was worth repeating in case someone missed it - I'd like it, too)

I'm running KnoppMyth R5C7 on a Pentium 2, Celeron, with a Hauppage PVR-150 (non-MCE).

I'm pretty happy with how far this has gotten, I just wish I understood what's going wrong here. Thanks for any and all help! :D

_________________
KnoppMyth R5E50
Pentium 2 - Celeron
Hauppage PVR-150 (non-MCE)


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 15, 2006 11:51 am 
Offline
Joined: Mon Aug 29, 2005 4:04 pm
Posts: 729
Location: Philadelphia, PA US
Quote:
1. Why is this failing? Is there anything that I can do to fix it?
2. Is it possible to have things setup so that when the Xvid encoding finishes successfully, it replaces the MPEG2 file? The whole reason I did this was to prevent the hard drive from filling up so quickly. (I saw this question a few posts above, figured it was worth repeating in case someone missed it - I'd like it, too)


1. Not sure, what does your user Job look like?

/usr/local/bin/myth2xvid -cut "%DIR%" "%FILE%"

Maybe on an existing recording go into Recording>Job Options> and making XviD encode run? I have to look in my logs to see what it should say when everything goes right. I find it strange works from command line but not Job definition.

Noted on wanting to use XviD to replace the MPEG2 recording.

Really it shouldn't be overly hard. I just haven't had time or need to sit down with the scripts. An open call if anyone want to give it a shot.

I would think all that has to be done is sit down with the existing myth2xvid perl script, the Nuvexport WIKI on MythTV.

    Change script around to remove all the RSS stuff there from Myth2ipod (don't think many are really using it for XviD)
    Add commands to delete existing MPG file entry for show in MySQL db.
    Add command to add new XviD.avi file entry for show in MySQL db.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 15, 2006 10:19 pm 
Offline
Joined: Wed Jan 11, 2006 11:08 pm
Posts: 14
Location: NJ
Thanks for the reply! :D

spalVl wrote:
1. Not sure, what does your user Job look like?


I just connected a monitor, it looks exactly as you put above:

spalVl wrote:
/usr/local/bin/myth2xvid -cut "%DIR%" "%FILE%"


The only difference I can think of, is that when I ran it through the command line, I was logged in as root...in fact, I did the entire Xvid setup as root. Should I have been logged in as mythtv, or the user I setup during installation?

If the problem was indeed that I used root, is that possible to undo without reinstalling KnoppMyth?

spalVl wrote:
An open call if anyone want to give it a shot.


Totally beyond my skill level, though I hope someone here has an interest in that. I can't imagine that most people are happy with having both copies.

As for the RSS feed, it'd be nice if it were somehow integrated, so that after the Xvid conversion is done and replaces the MPEG 2 copy, the feed could be updated to include the new show. While it's not so useful in an RSS feed reader, Democracy is gaining traction for "internet TV."

Heck, if KnoppMyth supported Democracy by default, I'm sure the Democracy team would be happy to promote KnoppMyth.

Edit: While poking around MythWeb, the 'Backend Status' page says that what failed was the transcoding, not the User Job. Should I not be transcoding, only running the User Job?

_________________
KnoppMyth R5E50
Pentium 2 - Celeron
Hauppage PVR-150 (non-MCE)


Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 16, 2006 10:16 am 
Offline
Joined: Mon Aug 29, 2005 4:04 pm
Posts: 729
Location: Philadelphia, PA US
Quote:
If the problem was indeed that I used root, is that possible to undo without reinstalling KnoppMyth?


No need to reinstall, just run the command

Code:
chmod 0755 /usr/local/bin/myth2xvid


That will make the file X to everyone.

One day I'd like to redo the stuff, maybe incorporate this addon for so could be a recording feed that could be subscribed to in something like Democracy.

http://www.mythtv.org/wiki/index.php/MythWebRSS


That is the great thing about OpenSouce software so much flexibility and so many directions to go too little time.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Dec 17, 2006 12:22 am 
Offline
Joined: Wed Jan 11, 2006 11:08 pm
Posts: 14
Location: NJ
Thanks!! Just set that, glad I don't have to start all over again.

MythWebRSS looks pretty nice...if everything could work through the transcoding mechanism, then that would fit in perfectly. :D

_________________
KnoppMyth R5E50
Pentium 2 - Celeron
Hauppage PVR-150 (non-MCE)


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 05, 2007 9:31 pm 
Offline
Joined: Wed Feb 14, 2007 10:37 am
Posts: 38
just a note, I was having an issue on my system using the myth2xvid script and I had to perform these steps to fix it:

Had to change lines in /etc/nuvexportrc
from
<ffmpeg::iPod>
to
<ffmpeg::mp4>

from
</ffmpeg::iPod>
to
</ffmpeg::mp4>

Otherwise myth2ipod would fail with the following messsage:

"Please be aware that the ffmpeg::ipod section of /etc/nuvexportrc should now be called ffmpeg:mp4
Compilation failed in require at /usr/local/bin/nuvexport line 37."

Tested it out on the command line first:




I stole this stuff from a thread regarding myth2ipod

_________________
noob. please forgive my ignorance.
running: r5e50, pvr350, p4 1.7ghz 512mb ram, nvidia fx5200, 27" flat tube tv


Top
 Profile  
 
PostPosted: Sun Apr 29, 2007 2:40 pm 
Offline
Joined: Tue Aug 16, 2005 7:45 am
Posts: 19
Location: San Marcos, CA
spalVl wrote:
Here is a WIKI howto with needed config file on configuring KnoppMyth to automatically encode recordings to XviD format using a modifed myth2ipod script.

http://www.knoppmythwiki.org/index.php? ... iDEncoding


Works like a champ with XviD on R5C7. This is after I had already used the automatic myth2ipod script. If you just run myth2ipod script, mpeg4 works on nuvexport, but nothing else. If you run the KM Wiki ./configure instructions for ffmpeg, everything but mpeg4 (ipod) works. Don't forget to add the following to the ./configure ... part so that mpeg4 works as well:

./configure --build i486-linux-gnu --enable-gpl --enable-pp --enable-zlib --enable-vorbis --enable-libogg --enable-theora --enable-a52 --enable-dts --enable-libgsm --disable-debug --enable-xvid --enable-faac --prefix=/usr

follow the same instructions on the wiki verbatim, then you have everything but PSP enabled on your nuvexport program from a fresh R5C7 install!!

_________________
R5F27
AMD Athlon 64/3000+
MSI/nVidia nForce3 mBoard
geForce 5200
Hauppauge PVR-250
Ione KBP20 Wireless RF USB Keyboard/Mouse
Sony 42" WEGA KDF-E42A10 (VGA)


Top
 Profile  
 

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



All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 10 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:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu