Author |
Message |
brfransen
|
Posted: Wed Apr 16, 2008 4:33 pm |
|
Joined: Fri Jul 21, 2006 11:12 pm
Posts: 1194
Location:
SC
|
neutron68 wrote: Any thoughts about the xvid file being 2 times the size of the original HDTV mpeg2 file (which has a bitrate of about 14 mb/s, by the way)? I expected an xvid file with a bitrate of 5 mb/s (script set for 5000) would be considerably smaller, but it wasn't.
I am not really sure about that. But I have never used a bitrate over 2500 myself.
I have updated both the myth2xvid and myth2xvid-noscale to fix the overwrite problem. I would suggest re-downloading.
Britney
|
|
Top |
|
|
neutron68
|
Posted: Wed Apr 16, 2008 6:27 pm |
|
Joined: Tue Mar 28, 2006 8:26 pm
Posts: 804
Location:
Minneapolis, MN
|
Well, it was a silly typing error, dangit!
I missed a % sign and ended up with this in my command line:
/usr/local/bin/myth2xvid "%FILE%" "%TITLE% - SUBTITLE%" "%CHANID%" "%STARTTIME%"
I just looked at the xvid HDTV file (1920x1080) that was created overnight. It looks perfect with the bitrate set at 5000, but the downside is that the new file is 2x the size of the original.
Now I will reduce the bit rate to your 1900 and try this on another show tonight!
I grabbed your new no-scale script and chmod-ed it. I'm set.
Eric
_________________ KnoppMyth R5.5, Asus A8N-VM CSM (nvidia 6150 onboard video), AMD Athlon 64 dual-core 4200+, two 1GB sticks DDR 400, HD-3000 HDTV card, PVR-150 card, Iguanaworks RS-232 IR receiver/transmitter, Pioneer DVR-110 DVD burner
|
|
Top |
|
|
neutron68
|
Posted: Thu Apr 17, 2008 8:40 am |
|
Joined: Tue Mar 28, 2006 8:26 pm
Posts: 804
Location:
Minneapolis, MN
|
I ran another record-transcode test with the newer no-scale script last night.
I set the bitrate to 1900 in the script. The original HDTV mpeg2 file is 14GB. The HDTV xvid file is 21GB and is named "The Truth About Cancer - .avi".
The myth2xvid log shows this: Code: Wed Apr 16 22:00:26 CDT 2008 File to encode: /myth/tv/1202_20080416200000.mpg Name: The Truth About Cancer - Encoding... File Encoded Sucessfully: /myth/video/The Truth About Cancer - .avi Encoding Time: 7 hour(s) 473 minute(s) 1 second(s)
It looks like the %SUBTITLE% %CHANID% and %STARTTIME% are getting ignored by the script?
_________________ KnoppMyth R5.5, Asus A8N-VM CSM (nvidia 6150 onboard video), AMD Athlon 64 dual-core 4200+, two 1GB sticks DDR 400, HD-3000 HDTV card, PVR-150 card, Iguanaworks RS-232 IR receiver/transmitter, Pioneer DVR-110 DVD burner
|
|
Top |
|
|
brfransen
|
Posted: Thu Apr 17, 2008 10:00 am |
|
Joined: Fri Jul 21, 2006 11:12 pm
Posts: 1194
Location:
SC
|
Think I figured out why the file is getting larger. I was playing with 2 pass encoding some time ago and had accidently left an option in the mencoder command that would basically ignore the bitrate setting. Sorry. I think I have fixed it now if you want to redownload it.
I am guessing that that particular show just doesn't have a subtitle. Look in MythWeb to confirm. The CHANID and STARTTIME are only needed if you are using the cutlist.
Britney
|
|
Top |
|
|
brfransen
|
Posted: Thu Apr 17, 2008 7:33 pm |
|
Joined: Fri Jul 21, 2006 11:12 pm
Posts: 1194
Location:
SC
|
neutron68,
I killed myth2xvid-noscale and incorporated it into myth2xvid. To make it not scale just enter -1 for the RESOLUTION option in the script.
I also found some better encoding settings. Let me know how this works for you.
Thanks,
Britney
|
|
Top |
|
|
neutron68
|
Posted: Thu Apr 17, 2008 9:37 pm |
|
Joined: Tue Mar 28, 2006 8:26 pm
Posts: 804
Location:
Minneapolis, MN
|
Thanks very much for all the edits
I've got a conversion running on tonight's My Name Is Earl using your 0.5 script. I can't get the job to stop so I'll have to let it go (the Stop Job button in Information Center's menu doesn't stop the job).
So, I'll have to try it Friday or Saturday and give feedback then.
Also, it's time for bed.
One of my goals is to have a script that will transcode to h.264. I think I could substitute some of the h.264 mencoder conversion lines I've seen into your script and have a working h.264 script. I was experimenting with this little script a year ago: Code: for file in $* do mencoder -ovc x264 -x264encopts bitrate=5000:pass=1 -vf lavcdeint -oac faac -o $file.x264.avi $file mencoder -ovc x264 -x264encopts bitrate=5000:pass=2:8x8dct:i8x8 -vf lavcdeint -oac faac -o $file.x264.avi $file done
What do you think?
Thanks again!
_________________ KnoppMyth R5.5, Asus A8N-VM CSM (nvidia 6150 onboard video), AMD Athlon 64 dual-core 4200+, two 1GB sticks DDR 400, HD-3000 HDTV card, PVR-150 card, Iguanaworks RS-232 IR receiver/transmitter, Pioneer DVR-110 DVD burner
|
|
Top |
|
|
neutron68
|
Posted: Fri Apr 18, 2008 9:50 am |
|
Joined: Tue Mar 28, 2006 8:26 pm
Posts: 804
Location:
Minneapolis, MN
|
Using the 0.5 (bitrate-fixed) script, I ran a transcode on last night's My Name Is Earl episode (30 minute, 1080i show, KARE-DT). I set the bitrate to 5000, which is 5MBit/sec. I believe.
Original mpeg file was 3.34 GB. Xvid version is 1.21 GB.
I don't know how the quality looks yet, so maybe the bitrate will need to go up a bit from 5000.
Code: Thu Apr 17 21:42:45 CDT 2008 File to encode: /myth/tv/2101_20080417190000.mpg Name: My Name Is Earl - No Heads and a Duffel Bag Encoding... File Encoded Sucessfully: /myth/video/My Name Is Earl - No Heads and a Duffel Bag.avi Encoding Time: 1 hour(s) 52 minute(s) 9 second(s)
So, it looks like it takes about 2 hours to transcode a 30 minute 1080i program with the AMD Athlon 64 4200+ dual core processor.
_________________ KnoppMyth R5.5, Asus A8N-VM CSM (nvidia 6150 onboard video), AMD Athlon 64 dual-core 4200+, two 1GB sticks DDR 400, HD-3000 HDTV card, PVR-150 card, Iguanaworks RS-232 IR receiver/transmitter, Pioneer DVR-110 DVD burner
|
|
Top |
|
|
neutron68
|
Posted: Sat Apr 19, 2008 7:29 am |
|
Joined: Tue Mar 28, 2006 8:26 pm
Posts: 804
Location:
Minneapolis, MN
|
Friday night after work, I looked at the quality of the xvid transcode made at a rate of 5000. I use mplayer as my default Mythtv Videos player. It looked pretty good. Scenes with little motion in them looked perfect. Scenes with lots of motion got a little blocky. Audio sync was off for the first couple of seconds, but was synced ok after that.
I noted periods of jerkiness to the video. Have you ever seen that, brfransen? I wonder if this was due to un-corrected transmission errors in the original off-air recording? Or perhaps this is what happens when the xvid codec encounters interlaced video?
This has been a good learning experience. I now understand the how-to of installing a custom User Job! Thanks for that!
_________________ KnoppMyth R5.5, Asus A8N-VM CSM (nvidia 6150 onboard video), AMD Athlon 64 dual-core 4200+, two 1GB sticks DDR 400, HD-3000 HDTV card, PVR-150 card, Iguanaworks RS-232 IR receiver/transmitter, Pioneer DVR-110 DVD burner
|
|
Top |
|
|
brfransen
|
Posted: Sat Apr 19, 2008 6:49 pm |
|
Joined: Fri Jul 21, 2006 11:12 pm
Posts: 1194
Location:
SC
|
|
Top |
|
|
cecil
|
Posted: Sun Apr 20, 2008 6:31 pm |
|
|
Site Admin |
Joined: Fri Sep 19, 2003 6:37 pm
Posts: 2659
Location:
Whittier, Ca
|
Thanks Britney,
Both myth2xvid and x264 will be in the next release!
|
|
Top |
|
|
turpie
|
Posted: Sun Apr 20, 2008 6:36 pm |
|
Joined: Wed Apr 28, 2004 10:42 pm
Posts: 405
Location:
Bendigo, Victoria, Australia
|
Just a quick question. Can these userjobs be used to replace the builtin transcoding, so that transcoded recordings are still found in the Watch Recordings screen, so that they can still be easily found, watched, and deleted?
Thanks,
Paul T.
_________________ Paul Turpie
-------------
<--Is your location in your profile? Why not?
|
|
Top |
|
|
brfransen
|
Posted: Thu Apr 24, 2008 11:27 am |
|
Joined: Fri Jul 21, 2006 11:12 pm
Posts: 1194
Location:
SC
|
turpie wrote: Can these userjobs be used to replace the builtin transcoding, so that transcoded recordings are still found in the Watch Recordings screen, so that they can still be easily found, watched, and deleted?
The original recording remains in Watch Recordings and the transcoded recording will be in /myth/video by default. You could change the OUT_DIR= variable in the scripts to have the transcoded video placed in a different directory.
Britney
|
|
Top |
|
|
brfransen
|
Posted: Thu Apr 24, 2008 11:38 am |
|
Joined: Fri Jul 21, 2006 11:12 pm
Posts: 1194
Location:
SC
|
I have updated myth2xvid and myth2x264 so that the progress will be shown (percent complete and fps) in the status screen and in MythWeb. Also, both scripts will monitor the Pause, Resume and Stop functions in the User Jobs Status screen and respond appropriately.
Britney
|
|
Top |
|
|
knappster
|
Posted: Thu Apr 24, 2008 11:47 am |
|
Joined: Thu Sep 27, 2007 5:44 pm
Posts: 580
|
I have been having some issues with the myt2xvid3 script failing, so I have just started using this myth2xvid script, thanks for providing it brfransen.
I'm just curious what the motivation for the script was and how it differs from the myt2xvid3 script. If you don't have time to explain it's no biggie.
|
|
Top |
|
|
brfransen
|
Posted: Thu Apr 24, 2008 1:59 pm |
|
Joined: Fri Jul 21, 2006 11:12 pm
Posts: 1194
Location:
SC
|
knappster wrote: I'm just curious what the motivation for the script was and how it differs from the myt2xvid3 script.
myt2xvid3 does alot more than I was looking for because it was adapted from myth2ipod; ie the RSS feed. myt2xvid3 uses nuvexport and I have found that for xvid mencoder is much quicker, I am not sure why. Also, I could never get myt2xvid3 to copy the ac-3 audio to the xvid so that dolby digital would be preserved. Since my myth box is digital only (I have no analog capture cards) I wanted the ac-3 and mencoder makes copying the audio very easy. Lastly, I am fairly new to shell scripting and thought this might be a good way to learn.
I am glad that it is working for you.
Britney
|
|
Top |
|
|