Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


indapie2000

196 posts

Master Geek


#252947 18-Jul-2019 11:42
Send private message

So I'll start this off with saying I'm a complete noob when it comes to writing script files, but I'm a quick learner once I know what the hell in doing!!!

I'm starting the process to setup a new Plex media server and plan to use DVR to record live tv.
I want to use the Post-Processing script function on the DVR to reduce file size from a huge .ts file to something like .MP4 or .mkv while keeping quality.
Also want to remove commercials.

I want to test this on my windows PC first before making the jump to get a brand new NAS.

Does anyone use the post processing function and have they got a script I can use?
Also help explain for me how to edit the script file for my settings?

Create new topic
fe31nz
1228 posts

Uber Geek


  #2279340 18-Jul-2019 23:54
Send private message

The "huge .ts file"s from Freeview DVB-T broadcasts are already H.264 encoded, like most .mp4 and .mkv files.  You will lose quality if you try to make them smaller.  In fact, when using lossy compression codecs such as H.264 or H.265, it is impossible to re-encode anything without losing quality, even if you make a file that is bigger than the original.  The "lossy" nature of the codec ensures that each encoding will lose information that was in the original source file.  There is no way around that - it is inherent in how lossy codecs work.  The best solution for having too many huge recording files is simply to buy another big hard drive to store them on.  Hard drives are much cheaper than they used to be, and come in sizes up to 16 Tbytes now.

 

The only time it makes sense to re-encode to a lower quality is when the display device has a lower quality screen than the source file and you will not see the loss of quality.

 

It also takes significant processing power to encode video files.  NAS boxes do not normally have powerful CPUs, so they take a while to encode video.  Using CPU power to encode video runs the CPU flat out - and that spends electricity also.  Not a huge amount, but you can calculate how much it will cost you if you put a power meter on the box doing the encoding.

 

Removing commercials in NZ is quite difficult as our broadcasters do not make it easy to automate finding the boundaries between commercial and programme.  Automated processing fails so often that the only real way to do it is to manually mark the commercial to be cut out.  That is far too time consuming for anyone to want to do it.  But...  There is really no need to cut out commercials, if you have good playback software.  Good software allows you to quickly skip forwards over an ad break until you see programme again, then quickly skip backwards in smaller steps until you see the end of the commercials.  Then you let it play again and see no more than 10 seconds of commercial before the programme starts again.  I have MythTV set up to do this, with the right arrow on my remote skipping forwards 30 s per press, and then when skipping back after having been skipping forwards, the left arrow skips back 10 s per press.  But if I have not been skipping forwards first, the left arrow skips at 30 s per press.  My fingers are so used to doing this that I can skip an ad break and be back to watching programme again within 15 seconds, and usually faster.  Because this sort of software allows you to not see the commercials at all, this sort of skipping is banned in any device or software that is Freeview certified, which is why I will never buy a Freeview certified recording device.




indapie2000

196 posts

Master Geek


  #2279441 19-Jul-2019 09:10
Send private message

That's really interesting to know about the broadcasts already being H.264 so encoding to that won't change anything file size wise

I should add that I'm not planning on doing this with Freeview NZ (my Sony TV has pretty basic recording feature and an external HDD connected for that) but I'm planning to record IPTV channels using the Plex DVR.

I've tested and it works on my Windows PC, but just have the huge .TS file to deal with.

I'm ok with letting things take a while to encode cause most of the shows I would record are broadcasts during the day NZ time and so will let it do it's thing while I'm at work.

The end goal is to have recorded TV shows ready to watch when I get home at night (without commercial if possible but can easily fast forward)
With a video file size that's comparable to something you would download.

I'm willing to invest in some decently sized HDD for NAS storage as it see it as a investment for my needs, but obviously I don't wanna waste storage space if I can do something about it.

Create new topic





News and reviews »

Air New Zealand Starts AI adoption with OpenAI
Posted 24-Jul-2025 16:00


eero Pro 7 Review
Posted 23-Jul-2025 12:07


BeeStation Plus Review
Posted 21-Jul-2025 14:21


eero Unveils New Wi-Fi 7 Products in New Zealand
Posted 21-Jul-2025 00:01


WiZ Introduces HDMI Sync Box and other Light Devices
Posted 20-Jul-2025 17:32


RedShield Enhances DDoS and Bot Attack Protection
Posted 20-Jul-2025 17:26


Seagate Ships 30TB Drives
Posted 17-Jul-2025 11:24


Oclean AirPump A10 Water Flosser Review
Posted 13-Jul-2025 11:05


Samsung Galaxy Z Fold7: Raising the Bar for Smartphones
Posted 10-Jul-2025 02:01


Samsung Galaxy Z Flip7 Brings New Edge-To-Edge FlexWindow
Posted 10-Jul-2025 02:01


Epson Launches New AM-C550Z WorkForce Enterprise printer
Posted 9-Jul-2025 18:22


Samsung Releases Smart Monitor M9
Posted 9-Jul-2025 17:46


Nearly Half of Older Kiwis Still Write their Passwords on Paper
Posted 9-Jul-2025 08:42


D-Link 4G+ Cat6 Wi-Fi 6 DWR-933M Mobile Hotspot Review
Posted 1-Jul-2025 11:34


Oppo A5 Series Launches With New Levels of Durability
Posted 30-Jun-2025 10:15









Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.