Author |
Message |
mythman13
|
Posted: Mon Sep 29, 2008 2:58 am |
|
Joined: Sun Sep 02, 2007 2:30 pm
Posts: 94
|
Hi,
I also think mythtv isn't running the job because nothing appears in the myth2mp3.log file no matter how long you reasonably wait for the job to run.
However myth2ipod and commerical flagging and transcode to Xvid all seem to work fine when you select to run them as jobs.
It is as though myth dosen't want to run this as a job?
Thanks,
Mythman
_________________ Running Knoppmyth R5.5 on a Compaq EVO D510 (sff) w/ P4 1.8GHz, 1GB RAM, 330GB 7200rpm Maxtor IDE HDD, XFX Nvidia GeForce 6200 (AGP low profile, p/n: PV-T44A-WANG) and Huappauge NOVA-T 500 DVB-T dual tuner PCI card.
|
|
Top |
|
|
brfransen
|
Posted: Mon Sep 29, 2008 11:30 am |
|
Joined: Fri Jul 21, 2006 11:12 pm
Posts: 1194
Location:
SC
|
mythman,
I expect that the UserJob is enabled in the Backend setup because you can trigger the job, but I don't remember how that works exactly. Check you backend settings to confirm the User Job is enabled.
The other thing is you could look in the database at the jobqueue table and see if there is a job that has a status other than 272. 272 means it completed successfully. Look at the type. UserJob1 is 256, UserJob2 is 512, UserJob3 is 1024, UserJob4 is 2048. If you have jobs with your UserJob type listed that show other than 272 you should be safe to delete them. That may be hanging up the job.
Britney
|
|
Top |
|
|
mythman13
|
Posted: Tue Sep 30, 2008 9:59 am |
|
Joined: Sun Sep 02, 2007 2:30 pm
Posts: 94
|
Hi,
Thanks for that, I was just being an idot with the mythtv-setup pages actually sorry!
The screen before the one where you enter the commands for a job has all the buttons to enable jobs and I hadn't noticed this on my tv when I was looking through it. However I've got X11forwarding working now on my computer and I noticed it on there when I ran it using SSH!
Sorry about that - I didn't realise the job had to be enabled as well as created!
Thanks anyway and it seems to be working fine now with the cutlist. However one other thing, the file names seem a little weird when I ran it on a file it came back with TPHR7A~C.MP3 instead of the title - subtitle I was expecting. I've ensured the job command is as you specified so I'm sure about this one?
Thanks,
Mythman
_________________ Running Knoppmyth R5.5 on a Compaq EVO D510 (sff) w/ P4 1.8GHz, 1GB RAM, 330GB 7200rpm Maxtor IDE HDD, XFX Nvidia GeForce 6200 (AGP low profile, p/n: PV-T44A-WANG) and Huappauge NOVA-T 500 DVB-T dual tuner PCI card.
|
|
Top |
|
|
mythman13
|
Posted: Tue Sep 30, 2008 10:27 am |
|
Joined: Sun Sep 02, 2007 2:30 pm
Posts: 94
|
Two things....it would be good to get this to do an RSS feed like /usr/local/bin/myth2ipod and then I could access my mp3s much easier as a podcast! Secondly, any idea how to encode the mp3 at a higher volume as atm its seems a little quieter to what I'm used to? Just a few little ideas...
Thanks very much anyway for this...its great!
Mythman
_________________ Running Knoppmyth R5.5 on a Compaq EVO D510 (sff) w/ P4 1.8GHz, 1GB RAM, 330GB 7200rpm Maxtor IDE HDD, XFX Nvidia GeForce 6200 (AGP low profile, p/n: PV-T44A-WANG) and Huappauge NOVA-T 500 DVB-T dual tuner PCI card.
|
|
Top |
|
|
brfransen
|
Posted: Tue Sep 30, 2008 11:55 am |
|
Joined: Fri Jul 21, 2006 11:12 pm
Posts: 1194
Location:
SC
|
The file name thing seems to be samba messing up the file name. ls /myth/music shows the correct file name on my machine.
The rss thing shouldn't be too hard to do as most of the code is already in myth2ipod. Have at it.
I haven't noticed the volume issue at all. There may be an ffmpeg option that would help with that.
Britney
|
|
Top |
|
|
Verbetex
|
Posted: Wed Nov 05, 2008 6:08 am |
|
Joined: Thu Sep 08, 2005 6:24 am
Posts: 22
Location:
UK
|
Hey
I used to have this working nicely under a previous version but am having problems under 5.5.
I'm using your updated version of the script... but the resulting MP3 just has noise on the left channel, has the proper sound on the right, but is played at half speed!!
I've not had much time to play with it yet, but looking for any ideas??
Cheers
Paul
_________________ Knoppmyth: R5F27
CASE: Silverstone LC11-M
MB: ASUS M2NPV-VM
DTV: Hauppauge WinTV Nova-T-500
FORMAT: PAL (UK)
RAM: 1GB
HDD: 400GB Samsung Spinpoint 401
TV: Samsung LE32R74BDX (via Component)
|
|
Top |
|
|
brfransen
|
Posted: Wed Nov 05, 2008 10:17 am |
|
Joined: Fri Jul 21, 2006 11:12 pm
Posts: 1194
Location:
SC
|
Paul,
I haven't seen any of the issues you are describing. Is this happening on every video file? What format is it? DTV or analog?
Britney
|
|
Top |
|
|
Verbetex
|
Posted: Wed Nov 05, 2008 10:37 am |
|
Joined: Thu Sep 08, 2005 6:24 am
Posts: 22
Location:
UK
|
I've tried it on 2 DTV recordings (Radio 1) and had the same result with each.
I'll give it a go with some others tonight and see what happens...
_________________ Knoppmyth: R5F27
CASE: Silverstone LC11-M
MB: ASUS M2NPV-VM
DTV: Hauppauge WinTV Nova-T-500
FORMAT: PAL (UK)
RAM: 1GB
HDD: 400GB Samsung Spinpoint 401
TV: Samsung LE32R74BDX (via Component)
|
|
Top |
|
|
mihanson
|
Posted: Fri Dec 19, 2008 3:46 pm |
|
Joined: Sun Sep 25, 2005 3:50 pm
Posts: 1013
Location:
Los Angeles
|
I have modified bfransen's script to output a 16-bit PCM wav file (for uncompressed audio that I can burn to CD-R). It's worked really well for me, but I recently ran into an issue that has me stumped. I was trying to dump the audio for an episode of Sesame Street so I could make an audio CD of a song my son likes. However, I'm getting a mix of the program audio plus a descriptive narration for the "visually impaired." I've tried adding audio bitstream filters (-absf) "dump_extra" and "remove_extra" as well as mapping (-map) different audio tracks to the output to wav, but I can't seem to shake the narration. I do not hear the narration as I watch the program in mythfrontend. Any ideas anyone?
[EDIT] I figured it out. I was not using the correct syntax for the -map option. When I ran the ffmpeg command by hand, I saw the error of my ways. If anyone needs to know, you should use -map like this -map 0.1:0 where 0.1 is the 1st audio track in the program and 0 is the audio track on the output file. If you run the ffmpeg command by hand, it will become more apparent. How can we make the logging more verbose so I would not need to run the command by hand?[/EDIT]
Code: #!/bin/sh # convert recordings to wav audio only # version 0.6
# usage: # first parameter must be %DIR%/%FILE% of the recording # second parameter must be the desired base name of the output # third parameter must be %CHANID% if you set USECUTLIST=Y # fourth parameter must be %STARTTIME% if you set USECUTLIST=Y # In the mythtv setup screen invoke this script like this: # MYTHTV User Job Command: # /usr/local/bin/myth2wav "%DIR%/%FILE%" "%TITLE% - %SUBTITLE%" "%CHANID%" "%STARTTIME%"
# options: USECUTLIST=Y #Y or N
# where the converted audio is stored OUT_DIR=/myth/music
# create temp filename so multiple instances won't conflict TMPNAME=toWAV-$$ TMPFILE=/myth/tmp/$TMPNAME.wav TMPCUTFILE=/myth/tmp/$TMPNAME.mpg FFINPUTFILE=$1
# log file location LOGFILE=/var/log/mythtv/myth2wav.log CDate="`date`" echo "" >> $LOGFILE echo $CDate >> $LOGFILE echo "File to encode: $1 Name: $2" >> $LOGFILE
# start timer beforetime="$(date +%s)"
# check if using cutlist if [ $USECUTLIST = Y ];then MYTHCOMMFRAMES=`mythcommflag --getcutlist -f $FFINPUTFILE | grep 'Cutlist:' | cut -d \ -f 2` if [ -n "$MYTHCOMMFRAMES" ]; then echo "Extracting Cutlist..." >> $LOGFILE /usr/bin/nice -n19 /usr/bin/mythtranscode --chanid "$3" --starttime "$4" --outfile "$TMPCUTFILE" --mpeg2 --honorcutlist FFINPUTFILE=$TMPCUTFILE fi fi
# run ffmpeg to do conversion echo "Encoding..." >> $LOGFILE /usr/bin/nice -n19 /usr/bin/ffmpeg -i $FFINPUTFILE -vn -acodec pcm_s16le -ar 44100 -ac 2 $TMPFILE ERROR=$?
# make output filename unique OUTPUTFILE=$OUT_DIR/$2.wav i=1 while [ -e "$OUTPUTFILE" ] do OUTPUTFILE=$OUT_DIR/$2-$i.wav i=`expr $i + 1` done
# move temp file to output location chown mythtv "$TMPFILE" && mv "$TMPFILE" "$OUTPUTFILE"
# stop timer aftertime="$(date +%s)" seconds="$(expr $aftertime - $beforetime)"
if [ $ERROR -eq 0 ]; then echo "File Encoded Sucessfully: $OUTPUTFILE" >> $LOGFILE hours=$((seconds / 3600)) seconds=$((seconds % 3600)) minutes=$((seconds / 60)) seconds=$((seconds % 60)) echo "Encoding Time: $hours hour(s) $minutes minute(s) $seconds second(s)" >> $LOGFILE else echo "ERROR: $ERROR" >> $LOGFILE fi
# clean up left over files unlink $TMPFILE 2> /dev/null unlink $TMPCUTFILE 2> /dev/null unlink $TMPCUTFILE.map 2> /dev/null
_________________ Mike
My Hardware Profile
|
|
Top |
|
|