NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Add-ons (3rd party plugins, utilities and skins) Old Stuff (Legacy) GB-PVR Support (legacy) v
« Previous 1 … 1120 1121 1122 1123 1124 … 1231 Next »
TIP: save hdd space with transcoding

 
  • 0 Vote(s) - 0 Average
TIP: save hdd space with transcoding
lif
Offline

Member

Posts: 155
Threads: 76
Joined: Dec 2004
#1
2005-01-10, 02:04 PM
As you know, the HDD space fills very quickly and there is a little solution to this I have used. I don't post the complete code here yet (because I have to rewrite it a little bit), but the workflow/idea is here [Image: smile.gif]

1) edit postprocessing.bat to run comskip.exe on %1 and echo %1 >> \pvr\transcode.txt
2) edit \pvr\transcode.cmd to sth like that:
#!/bin/bash
f=`cat \pvr\transcode.txt`
for t in $f; do
\pvr\mencoder -oac mp3lame -ovc xvid -xvidencopts fixed_quant=4 $t -o $t.new
if [ %errorlevel% == 0]; do
del $t
ren $t.new $t
done
egrep -e $t \pvr\transcode.txt >\pvr\transcode
done
3) schedule a new task to be run on weekdays (Mo-Fr) at 9:00 \pvr\transcode.cmd and enable maximum run for 8h.

So what it does is after a new recording it runs comskip and marks out commercials and inserts new recording filename to processing queue. So, if you watch the recording before 9:00 on Monday, you will see original mpeg2 stream. At 9:00 on Monday morning it wakes up computer and transcodes as many mpeg2 streams from queue to xvid as it could in 8 hours and all left in queue are processed the next day (I choosed this time because the PVR is in living room and I don't want that the PVR makes any additional unwanted noise when my family is at home). It keeps the mpg extension on files and in original location. So, if you happen to playback this recording afterwards GB-PVR doesn't make difference that inside is avi not mpeg and allows to play back as normally it does (also commercial skipping and all other works).

All comments are welcome!
--- GBPVR system ---
Server: homemade (ASUS MB, AMD x2 5200+, 4G RAM, 3.2TB RAID5, 1Gbit) + DVB-T Hauppauge HVR1300 (h264 TS) + IPTV
Clients: ASUS Pundit-R (P4 3.2GHz Northwood!, 1G RAM, zero HDD - netboot, WinLIRC to use Hauppauge remote on system without Hauppauge devices) + IBM ThinkPad T42 (pvr over 802.11g) + FSC N560 WM6 (802.11g) + etc Smile
krypton_john
Offline

Member

Posts: 153
Threads: 27
Joined: Aug 2004
#2
2005-01-10, 10:40 PM
Nice!

Some comments:
- I don't think you'll be able to watch the xvids on MVP or PVR-350 tv-out
- I guess you have to install cygwin or mks tools to run all those *nix commands?

Cheers,
JohnO
lif
Offline

Member

Posts: 155
Threads: 76
Joined: Dec 2004
#3
2005-01-11, 07:50 AM
As I don't own MVP nor PVR-350 (I have PVR-150 and Pundit-R just fitting perfectly into my stereoanlage box), so can't comment on this topic much. But as I've read the threads here and followed the mailing lists of MythTV for months, I think that isn't impossible to pipe "live" xvid through mencoder/mplayer (or some filters or vlc?) to MVP or PVR-350 TV-OUT. In Linux world some people are watching other video formats than mpeg2 through PVR-350 TV-OUT. I did have couple of years ago Creative Dxr3 (which is also mpeg2 only) and with some chemistry and scripts I was able to watch some mpeg4 clips through it. Yes, bad thing is that it requires much CPU power to transcode formats on the fly and therefore HTPC hw isnt cool and quiet any more.

I'm with years of serious Linux background, so I like some scripting using *nix commands Wink Whats bad of using cygwin anyway? [Image: smile.gif] You don't need to have full cygwin installed to use its commands, you need only cygwin1.dll and some other dll-s in the same directory as exe-s are, if you dont want to install the whole thing.

Although there is out there precompiled *nix utilities for windows which are statically compiled and won't need any external dll-s nor cygwin. The keyword in Google is "unix utils win32" or to give shortcut http://unxutils.sourceforge.net/ . Also mplayer/mencoder win32 static binary is available from mplayer official webpage http://www.mplayerhq.hu/homepage/design7/dload.html .
--- GBPVR system ---
Server: homemade (ASUS MB, AMD x2 5200+, 4G RAM, 3.2TB RAID5, 1Gbit) + DVB-T Hauppauge HVR1300 (h264 TS) + IPTV
Clients: ASUS Pundit-R (P4 3.2GHz Northwood!, 1G RAM, zero HDD - netboot, WinLIRC to use Hauppauge remote on system without Hauppauge devices) + IBM ThinkPad T42 (pvr over 802.11g) + FSC N560 WM6 (802.11g) + etc Smile
arttext
Offline

Member

Posts: 118
Threads: 30
Joined: Sep 2004
#4
2005-01-11, 09:01 AM
He, sounds great, especially for X-card owners since most codecs play on the Xcard too.
When can we expect the first release?

cheers, arttext
[SIZE="1"]
Abit AN-M2HD*Radeon HD 3850 HDMI out*Athlon 64X2 4400+*2x VS1GB667D2*HD-DVD Toshiba SD-H802A*Enermax EG425AX-VE*Hauppage WINTV 250*GBPVR GUI*Silverstone Lascala Case*
[/SIZE]
jorm
Offline

Posting Freak

Posts: 2,014
Threads: 109
Joined: Aug 2004
#5
2005-01-11, 02:15 PM
Great tip. I would love to use it but I need to find a transcoding solution first so I convert the xvid back to mpeg so I can stream it on my mvp.

How big are the xvids you create per hour?

If you figure out to convert xvid back to mpeg we can then play the file in xrecord. I can have xrecord launch a thread to start the transcoding command line. If the user pics a divx file.

I was playing with ffmpeg to do the conversion back and actually was able to convert a divx file back to mpeg2. All was good. The problem was when I tried to play it in gbpvr it would not play the video. I started playing with the audio kps

And got the video to play but the mpeg had no sound. Still working on that. We should update the wiki site with the tip, do you have an account if not I will update it for you.
WinXP Home
3 X MVPs
Hauppauge 250 MCE
Hauppauge 150
P-4 2.4 GHz / 768 megs Ram
610 Gigs Of Media Storage
lif
Offline

Member

Posts: 155
Threads: 76
Joined: Dec 2004
#6
2005-01-12, 01:08 PM
I guess I don't have wiki account.

Had you tried transcoding on the fly with VLC? (http://www.videolan.org) This allows to use divx/xvid as input and mpeg2 ts/ps as output. As it is opensource project it shouldn't be hard to borrow some code from this and give VLC guys a credit [Image: smile.gif] Or if won't want to play with source too much, it is also possible to drive VLC from command line (or open as hidden and/or minimized in background as GBPVR is in foreground).

So:
Step 1) Give VLC a xvided show as input (also subtitles are supported if watching movies)
Step 2) Set as output MPEG2 TS
Step 3) Send it for example as UDP to 127.0.0.1Confusedomething
Step 4) Redirect MPEG2 TS from UDP 127.0.0.1Confusedth to MVP or PVR-350 TV-OUT and thats it!
Shouldn't be hard to do!
--- GBPVR system ---
Server: homemade (ASUS MB, AMD x2 5200+, 4G RAM, 3.2TB RAID5, 1Gbit) + DVB-T Hauppauge HVR1300 (h264 TS) + IPTV
Clients: ASUS Pundit-R (P4 3.2GHz Northwood!, 1G RAM, zero HDD - netboot, WinLIRC to use Hauppauge remote on system without Hauppauge devices) + IBM ThinkPad T42 (pvr over 802.11g) + FSC N560 WM6 (802.11g) + etc Smile
lif
Offline

Member

Posts: 155
Threads: 76
Joined: Dec 2004
#7
2005-01-12, 01:41 PM
PS. I use for MPEG2 -> XviD settings for:
audio: lame mp3 - CBR 128kbps (as ABR goes sometimes after half an hour out of sync vith video)
video: xvid VBR so 45min talkshow (without commercials) will be about 350 MB (720x576 PAL x25fps x24bit). GSpot (http://www.headbands.com/gspot/) shows that average bitrate is about 1300 kb/s. Original filesize was about 2,2 GB. Raw saving will be about 6-8 times with quite a good quality! :-)
--- GBPVR system ---
Server: homemade (ASUS MB, AMD x2 5200+, 4G RAM, 3.2TB RAID5, 1Gbit) + DVB-T Hauppauge HVR1300 (h264 TS) + IPTV
Clients: ASUS Pundit-R (P4 3.2GHz Northwood!, 1G RAM, zero HDD - netboot, WinLIRC to use Hauppauge remote on system without Hauppauge devices) + IBM ThinkPad T42 (pvr over 802.11g) + FSC N560 WM6 (802.11g) + etc Smile
bucknljake
Offline

Junior Member

Posts: 33
Threads: 5
Joined: Jan 2005
#8
2005-01-13, 04:27 AM
lif:

does comskip remove the commercials from the orig Mpeg1/2 recording first before encoding to xvid? also, does this create an intermediary file on the harddrive before incoding (concerned about how much HD buffer space I'd need)?

I've got an xcard so this set up would be sweet for me.

I've only got a 933mhz athlon in my HTPC, would it be better to run a script like this on one of my other desktops like an amd 3200+ (moving files back and forth, or mounting a network drive to the HTPC) ??
sub
Online

Administrator

NextPVR HQ, New Zealand
Posts: 107,103
Threads: 771
Joined: Nov 2003
#9
2005-01-13, 04:53 AM
No, it doesnt remove the commercials. It just creates a text file that lists the locations the commerical start and end.
lif
Offline

Member

Posts: 155
Threads: 76
Joined: Dec 2004
#10
2005-01-13, 07:19 AM
If you transcode with one pass, it don't make any intermediate file. But with one pass you coldn't have such a quality as with multiple passes. Also with multipass you could use VBR and have control of file size (predefined).

It depends how much you record shows per day, if only about hour or two, ~1GHz Athlon should transcode it in about 4 hours, if more then you may want to use faster CPU from other pc. In most cases you could just mount its drive (the network traffic used by encoding is quite low), but mounting keeps your htpc running. If you like to put your htpc to standby meanwhile, you need to copy files back and forward.
--- GBPVR system ---
Server: homemade (ASUS MB, AMD x2 5200+, 4G RAM, 3.2TB RAID5, 1Gbit) + DVB-T Hauppauge HVR1300 (h264 TS) + IPTV
Clients: ASUS Pundit-R (P4 3.2GHz Northwood!, 1G RAM, zero HDD - netboot, WinLIRC to use Hauppauge remote on system without Hauppauge devices) + IBM ThinkPad T42 (pvr over 802.11g) + FSC N560 WM6 (802.11g) + etc Smile
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Automatic Transcoding Not Working taz 3 2,410 2010-11-22, 09:01 AM
Last Post: goelectric
  GBPVR won't save channels in EPG After upgrading Capture Card hollow5555 15 6,433 2010-10-29, 09:13 PM
Last Post: hollow5555
  Hard drive format required, what to save crazy_gadgets 3 1,833 2010-02-26, 03:43 PM
Last Post: johnsonx42
  Transcoding dvr-ms to DivX and recording to Mpeg2 Boworr 23 11,509 2010-02-04, 07:54 AM
Last Post: LeCoux
  no transcoding in gb-pvr 1.4.7 alevideotestservice 6 3,014 2009-12-07, 11:15 PM
Last Post: alevideotestservice
  What has happened to the Manual Transcoding? Basher52 4 1,967 2009-09-21, 05:51 PM
Last Post: Basher52
  Some recordings created but not available after transcoding htewam 6 2,455 2009-09-18, 07:59 PM
Last Post: gEd
  Save reoccuring recordings when deleting old channels dshoup 2 1,469 2009-07-05, 08:28 PM
Last Post: dshoup
  Transcoding TS to AVI loses sound DrSoftware 2 2,212 2009-06-29, 08:28 PM
Last Post: serafis
  Transcoding, COMSKIP and the GPBVR database serafis 8 4,292 2009-06-15, 07:52 PM
Last Post: shadowze

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode