View unanswered posts    View active topics

All times are UTC - 6 hours





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

Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject:
PostPosted: Thu Feb 15, 2007 5:23 pm 
Offline
Joined: Sat Oct 14, 2006 8:25 am
Posts: 14
I have a quick question, that would be useful for this thread. In the script you say that mysql needs to have passwordless access for mythtv, how do I do this or make sure this is setup on my machine?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 15, 2007 7:40 pm 
Offline
Joined: Tue Apr 19, 2005 10:30 am
Posts: 50
by default (at least in my knoppmyth install) the security on the mysql database is set to allow the user 'root' password-less access to the database if connecting from the same computer the database is on. So all you need to do is put "-u root" on the mysql command line to tell it you want access under that user name. I modified the script to do that already.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 16, 2007 8:58 am 
Offline
Joined: Fri Jul 21, 2006 11:12 pm
Posts: 1194
Location: SC
uzik,
I added the following code to determine the FPS and then replaced 29.97 with $FPS in the mysql code.
Code:
FPS=`mencoder -o /dev/null $REC_DIR/$1 2>/dev/null | egrep 'fps:' | cut -d" " -f8 | cut -d: -f2`

I found for some HD recordings the FPS is not 29.97 so the EDL what coming out wrong.

Thanks for the script.
Britney


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 16, 2007 11:52 pm 
Offline
Joined: Tue Apr 19, 2005 10:30 am
Posts: 50
Excellent! Thanks for the update.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 22, 2007 7:19 am 
Offline
Joined: Fri Oct 20, 2006 12:04 pm
Posts: 905
Location: LA, CA
Thanks for this script it looks great. Trying to get it to work with R5F1 and getting a 0k file. Took a log. Is it a codec problem? Any suggestions?

Code:
MEncoder 1.0rc1-4.1.2 (C) 2000-2006 MPlayer Team
CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 3800+ (Family: 15, Model: 75, Step
ping: 2)
CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
success: format: 0  data: 0x0 - 0xe440cbc
TS file format detected.
VIDEO MPEG2(pid=49) AUDIO A52(pid=52) NO SUBS (yet)!  PROGRAM N. 1
VIDEO:  MPEG2  1920x1080  (aspect 3)  29.970 fps  19392.8 kbps (2424.1 kbyte/s)
[V] filefmt:29  fourcc:0x10000002  size:1920x1080  fps:29.97  ftime:=0.0334
==========================================================================
Opening audio decoder: [liba52] AC3 decoding with liba52
AUDIO: 48000 Hz, 2 ch, s16le, 384.0 kbit/25.00% (ratio: 48000->192000)
Selected audio codec: [a52] afm: liba52 (AC3-liba52)
==========================================================================
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 1920 x 1080 (preferred colorspace: Mpeg PES)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b
Selected video codec: [mpeg12] vfm: libmpeg2 (MPEG-1 or 2 (libmpeg2))
==========================================================================
There are no EDL actions to take care of.
VDec: vo config request - 1920 x 1080 (preferred colorspace: Planar YV12)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
Writing header...2f ( 0%)  0.00fps Trem:   0min   0mb  A-V:-0.003 [0:0]
ODML: vprp aspect is 4:3.
Setting audio delay to 0.024s.
Writing header...
ODML: vprp aspect is 4:3.
Setting audio delay to 0.024s.
Writing header...4f ( 0%)  0.00fps Trem:   0min   0mb  A-V:-0.010 [0:0]
ODML: vprp aspect is 4:3.
Setting audio delay to 0.024s.
Pos:   0.2s      8f ( 0%)  0.00fps Trem:   1min  12mb  A-V:-0.020 [0:0]
Pos:   0.3s     11f ( 0%)  8.21fps Trem:   2min  14mb  A-V:-0.033 [0:0]


Code:
Pos:  56.9s   1701f (40%)  4.91fps Trem:   8min 105mb  A-V:-0.053 [6239:123]
Pos:  57.0s   1703f (40%)  4.91fps Trem:   8min 105mb  A-V:-0.054 [6253:123]
Flushing video frames
Writing index...
Writing header...
ODML: vprp aspect is 4:3.
Setting audio delay to 0.024s.

Video stream: 6257.425 kbit/s  (782178 B/s)  size: 44602641 bytes  57.024 secs
1703 frames

Audio stream:  123.701 kbit/s  (15462 B/s)  size: 888048 bytes  57.432 secs
MEncoder 1.0rc1-4.1.2 (C) 2000-2006 MPlayer Team
CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 3800+ (Family: 15, Model: 75, Step
ping: 2)
CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
success: format: 0  data: 0x0 - 0xe440cbc
TS file format detected.
VIDEO MPEG2(pid=49) AUDIO A52(pid=52) NO SUBS (yet)!  PROGRAM N. 1
VIDEO:  MPEG2  1920x1080  (aspect 3)  29.970 fps  19392.8 kbps (2424.1 kbyte/s)
[V] filefmt:29  fourcc:0x10000002  size:1920x1080  fps:29.97  ftime:=0.0334
==========================================================================
Opening audio decoder: [liba52] AC3 decoding with liba52
AUDIO: 48000 Hz, 2 ch, s16le, 384.0 kbit/25.00% (ratio: 48000->192000)
Selected audio codec: [a52] afm: liba52 (AC3-liba52)
==========================================================================
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 1920 x 1080 (preferred colorspace: Mpeg PES)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b
Selected video codec: [mpeg12] vfm: libmpeg2 (MPEG-1 or 2 (libmpeg2))
==========================================================================
There are no EDL actions to take care of.
VDec: vo config request - 1920 x 1080 (preferred colorspace: Planar YV12)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.

Exiting...


TIA


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 22, 2007 5:27 pm 
Offline
Joined: Tue Apr 19, 2005 10:30 am
Posts: 50
Too Many Secrets wrote:
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 1920 x 1080 (preferred colorspace: Mpeg PES)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b
Selected video codec: [mpeg12] vfm: libmpeg2 (MPEG-1 or 2 (libmpeg2))
[/code]



"No edl actions" means you didn't cut out any of the video using the myth
editor. That should be fine.

I'm not an expert on mencoder, but the "init failed" message doesn't
look right. I'd go to the forums for mplayer/mencoder support and
see if they understand it. You might have a short clip ready to send
to them since they might ask for one. Are you using some unusual
tv tuner card?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 22, 2007 7:48 pm 
Offline
Joined: Fri Oct 20, 2006 12:04 pm
Posts: 905
Location: LA, CA
Thanks for the tips. HD recording, KWorld 110 card. I'll see if I can find something else.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 25, 2007 5:41 am 
When I follow the link from the first post it says

# copy the file from the link above to your /usr/bin/ directory.

I don't see a link above?

I see two links one for to770.sh and one for tomp4.sh


Top
  
 
 Post subject:
PostPosted: Sat Aug 25, 2007 7:26 am 
Offline
Joined: Tue Apr 19, 2005 10:30 am
Posts: 50
jmairs wrote:
When I follow the link from the first post it says

# copy the file from the link above to your /usr/bin/ directory.

I don't see a link above?

I see two links one for to770.sh and one for tomp4.sh


I've edited the link. I changed the site around since then and
forgot to edit that. Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 12, 2007 2:13 pm 
Offline
Joined: Sat Nov 12, 2005 7:19 pm
Posts: 23
Great script :D

I had a little trouble getting it to work but once I did SWEET

FYI I am running R5F27 with the mplayer upgrades. I added the permissions and commands to the job list but when I ran the job I would get a 0 byte file.

To get mine to work I had to add a bitrate to the first mencode line, there was a ratecontrol error in debug. I also remove the me=2 option in the second mencode line, the debug file stated that me was an unknown option.

I also replaced aspect with ...
-vf crop=712:456:4:6,lavcdeint,spp,scale=320:240 (personal preference on the video size and the debug said something about using -vf spp,scale)

so the 2 mencode lines look like this for me
Code:
$MENCODER $REC_DIR/$1 $AUDIO  -ovc x264 -x264encopts bitrate=1800:turbo=1:subq=1:frameref=1:bframes=2:pass=1 -vf crop=712:456:4:6,lavcdeint,spp,scale=320:240 $EDL -o "/dev/null"

$MENCODER $REC_DIR/$1 $AUDIO  -ovc x264 -x264encopts bitrate=1800:subq=4:8x8dct:frameref=3:bframes=2:b_pyramid:weight_b:pass=2 -vf crop=712:456:4:6,lavcdeint,spp,scale=320:240 $EDL -o "$OUT_FILE"


I still have to play with the biterates I used to use 1500 on the first pass and 500 on the second pass, so I will try that out and see how it looks.

Oh forgot to mention that is for the to264 script

_________________
R5.50


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 12, 2007 4:54 pm 
Offline
Joined: Tue Apr 19, 2005 10:30 am
Posts: 50
RCS wrote:
Great script :D
I had a little trouble getting it to work but once I did SWEET


Thanks :)
It seems that every version of mencoder/codec has different parameters.

I'll put your version up on the web page as well.

Does resizing the video from what it's recorded at impact the quality significantly?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 12, 2007 5:44 pm 
Offline
Joined: Sat Nov 12, 2005 7:19 pm
Posts: 23
uzik wrote:
Does resizing the video from what it's recorded at impact the quality significantly?


I really can not give a definitive answer on that, it really depends on what you watch your shows on. I watch most of the stuff I record on a Standard Definition TV and I think 320x240 (half the resolution of a SDTV) looks fine on it. I have seen some stuff recorded at a higher resolution and looks great on SDTV but at the cost of more than triple the file size. So for me 320x240 looks just fine on my SDTV, if I ever decide to upgrade my set (not going to happen anytime soon) to HDTV I am sure I will notice the quality difference more because because everything looks a bit softer when I watch something on the laptop.

_________________
R5.50


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 22, 2007 2:14 pm 
Offline
Joined: Sat Nov 12, 2005 7:19 pm
Posts: 23
Well my box just crashed this week :( so I had to rebuild the thing. I have most of the media but none of the settings backed up.

So I just downloaded your scripted again and I just can not seem to get it to run this time. Here is what I am getting with the script bone stock ...

Code:
+ $'\r'
/usr/local/bin/to264: line 19:
: command not found
+ MYSQL=$'/usr/bin/mysql\r'
+ NICE='/usr/bin/nice -n10
'
+ MENCODER='/usr/bin/nice -n10
 /usr/bin/mencoder
'
+ SED=$'/bin/sed\r'
+ ECHO=$'/bin/echo\r'
+ $'\r'
/usr/local/bin/to264: line 26:
: command not found
+ REC_DIR=$'/myth/tv\r'
+ $'\r'
/usr/local/bin/to264: line 29:
: command not found
+ OUT_DIR=$'/myth/video\r'
+ $'\r'
/usr/local/bin/to264: line 32:
: command not found
+ TMPFILE=$'/tmp/to264-10454\r'
+ $'\r'
/usr/local/bin/to264: line 35:
: command not found
++ /usr/bin/nice $'-n10\r' $'/usr/bin/mencoder\r' -o /dev/null $'/myth/tv\r/1005_20070922105800.mpg'
++ egrep fps:
++ cut '-d ' -f8
++ cut -d: -f2
+ FPS=
+ $'\r'
/usr/local/bin/to264: line 37:
: command not found
+ $'\r'
/usr/local/bin/to264: line 38:
: command not found
+ cat
++ $'/bin/echo\r' Legion of Super Heroes - The Man From the Edge of Tomorrow - Part 1
/usr/local/bin/to264: line 41: /bin/echo
: No such file or directory
++ $'/bin/sed\r' -f $'/tmp/to264-10454\r.sed'
/usr/local/bin/to264: line 41: /bin/sed
: No such file or directory


now if I take out the double spaces this is the result and I am stumped at this point

Code:
+ MYSQL=$'/usr/bin/mysql\r'
+ NICE='/usr/bin/nice -n10
'
+ MENCODER='/usr/bin/nice -n10
 /usr/bin/mencoder
'
+ SED=$'/bin/sed\r'
+ ECHO=$'/bin/echo\r'
+ REC_DIR=$'/myth/tv\r'
+ OUT_DIR=$'/myth/video\r'
+ TMPFILE=$'/tmp/to264-10476\r'
++ /usr/bin/nice $'-n10\r' $'/usr/bin/mencoder\r' -o /dev/null $'/myth/tv\r/1005_20070922105800.mpg'
++ egrep fps:
++ cut '-d ' -f8
++ cut -d: -f2
+ FPS=$'\r'
+ cat
++ $'/bin/echo\r' Legion of Super Heroes - The Man From the Edge of Tomorrow - Part 1
/usr/local/bin/to264: line 35: /bin/echo
: No such file or directory
++ $'/bin/sed\r' -f $'/tmp/to264-10476\r.sed'
/usr/local/bin/to264: line 35: /bin/sed
: No such file or directory


Any Idea what is going on??

Thanks
Rocky

ps just tried the to770.sh script and that seems to work fine so I I might just used that and change the mencoder lines

_________________
R5.50


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 22, 2007 2:34 pm 
Offline
Joined: Tue Apr 19, 2005 10:30 am
Posts: 50
I think it can't find the programs it uses.
At the front of the script is a block that sets the locations of the programs.
Looks like this:

# program locations
MYSQL=/usr/bin/mysql
NICE="/usr/bin/nice -n10"
MENCODER="$NICE /usr/bin/mencoder"
SED=/bin/sed
ECHO=/bin/echo


You could either edit out the paths and trust your system has
the correct path set already so it can find the programs itself,
or you could check and correct them yourself if necessary.
If you enter 'which xxxx' it will tell you where the xxxx program
is located. If that fails then enter
'find / -name xxxx -print' and it will search the whole
system for it.

For example. Check that 'which nice' tells you that the 'nice'
program is located at '/usr/bin/nice'. Your script has to match
your system. It looks like 'sed' and 'echo' aren't where they
used to be.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 22, 2007 3:21 pm 
Offline
Joined: Sat Nov 12, 2005 7:19 pm
Posts: 23
No dice on the file locations thought.

I am thinking that since I can get the to770 script to work but not the to264 to work I am thinking it has something to do with the frame/second line. this where we see that error ..

Code:
++ $'/bin/echo\r' Legion of Super Heroes - The Man From the Edge of Tomorrow - Part 1
/usr/local/bin/to264: line 41: /bin/echo
: No such file or directory
++ $'/bin/sed\r' -f $'/tmp/to264-10736\r.sed'
/usr/local/bin/to264: line 41: /bin/sed
: No such file or directory


I might be off here but if I am reading the debug correctly it is looking for this file .. /tmp/to264-10736\r.sed
So in theory it should be in the tmp dir, so would this file be the correct one?
to264-10736?.sed?
and if it is could the ? be throwing it off?

BTW Nice Ghost in the Shell .. Laughing Man if I remember correctly :)

_________________
R5.50


Top
 Profile  
 

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



All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 15 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