Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
MythTV avi exporter (and file transcoder v0.41-r85)
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3  
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
johnbobjamesson
n00b
n00b


Joined: 20 Jun 2007
Posts: 7

PostPosted: Fri Jul 13, 2007 7:30 am    Post subject: Reply with quote

I'm on vacation the next 2 weeks, but will try after that. Thanks for getting rid of the /o error. Personally I wouldn't need anything more than a console output for knowing how long I have to wait. No fancy stuff needed there. Do you still need midentify in 2 weeks from me?

J
Back to top
View user's profile Send private message
pteppic
l33t
l33t


Joined: 28 Nov 2005
Posts: 781

PostPosted: Fri Jul 13, 2007 7:45 pm    Post subject: Reply with quote

johnbobjamesson wrote:
I'm on vacation the next 2 weeks
Me too, lol
johnbobjamesson wrote:
Do you still need midentify in 2 weeks from me?
Only if you have trouble.
_________________
Current Project Thread (myth2avi)
Back to top
View user's profile Send private message
belcampo
n00b
n00b


Joined: 27 Jul 2007
Posts: 3

PostPosted: Fri Jul 27, 2007 10:09 am    Post subject: Small problem Reply with quote

Hi all,

Downloaded from svn, installed pyqt and get the following:
[mythtv@mdk070 myth2avi]$ python myth2avi.py -d3
DBHostName=192.168.0.100
DBUserName=mythtv
DBPassword=mythtv
DBName=mythconverg
Traceback (most recent call last):
File "myth2avi.py", line 823, in run
obj.basename= str(q.value(5).toString())
UnicodeEncodeError: 'ascii' codec can't encode characters in position 35-36: ordinal not in range(128)

I'm doing this from 192.168.0.120, where files are renamed to human readable
'Erlebnis Erde - Namibia - Die Rückkehr der Wüstenlöwen.mpg'
Can this be solved somehow ?
Thanks in advance.

Henk from The Netherlands
Back to top
View user's profile Send private message
pteppic
l33t
l33t


Joined: 28 Nov 2005
Posts: 781

PostPosted: Sat Jul 28, 2007 6:54 pm    Post subject: Re: Small problem Reply with quote

belcampo wrote:
'Erlebnis Erde - Namibia - Die Rückkehr der Wüstenlöwen.mpg'
Can this be solved somehow ?
OK, it's a pyqt problem converting the 'Erlebnis Erde - Namibia - Die Rückkehr der Wüstenlöwen.mpg' characters.

I'll look into it, but my understanding of multilingual support is limited...

EDIT: WTF, I fixed it allready, rev86.
_________________
Current Project Thread (myth2avi)
Back to top
View user's profile Send private message
belcampo
n00b
n00b


Joined: 27 Jul 2007
Posts: 3

PostPosted: Sun Jul 29, 2007 12:05 pm    Post subject: Reply with quote

Hi pteppic,

Thanks a lot, that did the trick.
Back to top
View user's profile Send private message
belcampo
n00b
n00b


Joined: 27 Jul 2007
Posts: 3

PostPosted: Sun Jul 29, 2007 1:05 pm    Post subject: Reply with quote

Hi,

I was a little to fast with my conclusion, it starts OK, me thinking everything solved, but when adding a file to the job queue I get:
File "/home/mythtv/myth2avi/exports.py", line 59, in run
self.export(obj)
File "/home/mythtv/myth2avi/exports.py", line 140, in export
outfile='%s%s'%(item.Eoutdir,outfile)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 29: ordinal not in range(128)
Back to top
View user's profile Send private message
pteppic
l33t
l33t


Joined: 28 Nov 2005
Posts: 781

PostPosted: Sun Jul 29, 2007 3:04 pm    Post subject: Reply with quote

I can't seem to simulate the problem this time, can you post the full path of the expected exported file?

If not change lines 139-141 of exports.py to look like this
Code:
               i+=1
            print (item.Eoutdir,outfile)
            outfile='%s%s'%(item.Eoutdir,outfile)
and it will spit it out to the command line for you, thanks.
_________________
Current Project Thread (myth2avi)
Back to top
View user's profile Send private message
johnbobjamesson
n00b
n00b


Joined: 20 Jun 2007
Posts: 7

PostPosted: Sun Jul 29, 2007 3:30 pm    Post subject: Reply with quote

OK, back from vacation, I tried it today and it works fine. The console is quite funny, though. The mencoder output line is scrolled from left to right while also (which is logical) adding a new line each mencoder output. It makes it quite unreadable, though.

Other than that I noticed myth2avi always takes the first audio stream in a recording. Now, being blessed with dvb-s and some occasional 5.1 ac3 streams, I'd love to save those streams, which are sometimes stream no. 2 - and thus not coppied by myth2avi. Can I add something in the profile to simply copy all audio streams until you make it to the audio section?

J
Back to top
View user's profile Send private message
pteppic
l33t
l33t


Joined: 28 Nov 2005
Posts: 781

PostPosted: Sun Jul 29, 2007 4:10 pm    Post subject: Reply with quote

johnbobjamesson wrote:
It makes it quite unreadable, though.
That's why I put the start/stop button in :wink:
johnbobjamesson wrote:
Other than that I noticed myth2avi always takes the first audio stream in a recording. Now, being blessed with dvb-s and some occasional 5.1 ac3 streams, I'd love to save those streams, which are sometimes stream no. 2 - and thus not coppied by myth2avi. Can I add something in the profile to simply copy all audio streams until you make it to the audio section?

J
AVI files can (AFAIK) only have one stream, hence people using mkv etc. You can create direct profiles to do '-oac copy' and '-aid <track no>' but not encode more than one per file.

EDIT: I am looking into a bit of a re-structure of the classes to enable using ffmpeg as well as mencoder, I'll look into doing a mkv profile too.
_________________
Current Project Thread (myth2avi)
Back to top
View user's profile Send private message
pteppic
l33t
l33t


Joined: 28 Nov 2005
Posts: 781

PostPosted: Fri Feb 08, 2008 8:54 pm    Post subject: Reply with quote

I finally pulled my finger out and wrote an ebuild for it. It's the first I have *cough* written *cough* from scratch so comments please.
Code:
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils subversion

EAPI="1"

ESVN_REPO_URI="http://craven.dyndns.org/svn/QTMyth2avi"

DESCRIPTION="A mencoder GUI for exporting programs from mythtv to Xvid/x264"
HOMEPAGE="http://craven.dyndns.org/"
LICENSE="GPL-2"

KEYWORDS="amd64 x86"
SLOT="0"
IUSE=""

DEPEND=">=dev-python/PyQt-3.1
        >=x11-libs/qt-3.0.0
        >=dev-lang/python-2.0
        media-video/mplayer
        media-libs/x264-svn
        media-tv/mythtv"

RDEPEND="${DEPEND}"

pkg_setup (){
        local will_die=false

        if built_with_use media-tv/mythtv frontendonly ; then
                eerror "media-tv/mythtv must be built without the frontendonly use flag"
                will_die=true
        fi

        if ! built_with_use =x11-libs/qt-3* mysql ; then
                eerror "=x11-libs/qt-3* must be built with the mysql use flag"
                will_die=true
        fi

        if ! built_with_use media-video/mplayer x264 ; then
                eerror "media-video/mplayer must be built with the x264 use flag"
                will_die=true
        fi

        if ! built_with_use media-video/mplayer encode ; then
                eerror "media-video/mplayer must be built with the encode use flag"
                will_die=true
        fi

        if ! built_with_use media-video/mplayer aac && ! built_with_use media-video/mplayer mp3 ; then
                eerror "media-video/mplayer must be built with the either aac or mp3 use flags (preferably both)"
                will_die=true
        fi

        if ${will_die} ; then
                die "Please rebuild packages with the correct use flags listed above."
        fi
}

src_install (){
        cd "${S}"
        export INSDIR=/usr/lib/${PF}

        #Install main package
        insinto ${INSDIR}
        doins *.py

        #Install icon and licence
        doins myth2avi.png
        doins Licence.txt

        #Install profiles
        insinto ${INSDIR}/profiles
        doins ./profiles/*.py

        #Create bash wrapper to start program & add .desktop entry
        echo "#!/bin/sh" >> ${T}/myth2avi
        echo "cd ${INSDIR}" >> ${T}/myth2avi
        echo "exec python ${INSDIR}/myth2avi.py" >> ${T}/myth2avi
        dobin ${T}/myth2avi
        make_desktop_entry myth2avi "Myth2avi" "${INSDIR}/myth2avi.png" AudioVideo "${INSDIR}"

}

_________________
Current Project Thread (myth2avi)
Back to top
View user's profile Send private message
Theophile
Apprentice
Apprentice


Joined: 31 Mar 2004
Posts: 285

PostPosted: Mon Jul 14, 2008 3:00 am    Post subject: Reply with quote

Hi! Just wanted to pop in here and ask if this has been upgraded for 0.21. I used to use this with 0.20 and it's great, much better output than nuvexport. But now with 0.21, it doesn't seem to work. When I run it, I get an endless sea of dialogs telling me it could not locate the files.

I'd love to get this working again. Thanks for your work!
_________________
Monopedilos
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Goto page Previous  1, 2, 3
Page 3 of 3

 
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