NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Legacy (v4.x and earlier) v
« Previous 1 … 379 380 381 382 383 … 433 Next »
Need PostProcessing.bat script to transcode TS to MPG

Need PostProcessing.bat script to transcode TS to MPG
chuck_2330
Offline

Member

Posts: 73
Threads: 18
Joined: Mar 2006
#1
2011-02-13, 07:59 PM
I am trying to commit to NPVR but the big problem is with the TS files that are the output.

We use the NEWA interface exclusively, both for setting a recording and also for playback. Under GBPVR, MPG files played beautifully but for some reason I can't play them under NPVR. TS files don't play very well, with occasional pixellation. I also don't get any time information (time played, total time) which makes it difficult to return to a particular spot. I am using VLC as the external player.

Can anybody help with a PostProcessing.bat script that will transcode the TS output to MPG and relink to the NPVR library? I've searched the forum but for the life of me I can't find a suitable script.

TIA

Greg
[COLOR="SeaGreen"]
Hunter Valley, NSW, Australia
Core2Duo E6300 3.0GHz, 4GB, 250GB+500GB+1TB
3x WinFast DTV1000 T, Win7Pro, IceGuide EPG
transcode to MPEG2, use EWA exclusively
[/COLOR]
jki
Offline

Member

Posts: 112
Threads: 9
Joined: Apr 2010
#2
2011-02-13, 08:11 PM (This post was last modified: 2011-02-13, 08:19 PM by jki.)
Quote:cd D:\Program Files\NPVR\Other\



ffmpeg -i %1 -map_meta_data 0:0,p1 -f vob -ab 128000 -acodec mp2 -b 2500k -vcodec mpeg2video -deinterlace "%~dpn1.mpg"

del %1

EOF

This work now for me, but metadata handling not. Perhaps somebody knows correct way to transfer metadata also (not really very important, or have .ts file any specific data at all).
Some days Npvr database pointing to new file, some days not.
johnsonx42
Offline

Posting Freak

Posts: 7,298
Threads: 189
Joined: Sep 2008
#3
2011-02-14, 05:48 PM
this ought to work:
Code:
type %1:metadata.xml > %~dpn1.mpg:metadata.xml
server: NextPVR 5.0.7/Win10 2004/64-bit/AMD A6-7400k/hvr-2250 & hvr-1250/Winegard Flatwave antenna/Schedules Direct
main client: NextPVR 5.0.7 Desktop Client; LG 50UH5500 WebOS 3.0 TV
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#4
2011-02-14, 09:11 PM (This post was last modified: 2011-02-14, 09:34 PM by pBS.)
above post will re-encode the files...changing quality...
use this: like 20 times faster and no change in quality..
Code:
"[b]path\to\ffmpeg.exe[/b]"  -y -fflags +genpts -i "%~1" -vcodec copy -async 1024  -acodec copy -f vob "%~dpn1.mpg"
if errorlevel 1 pause && goto :eof
sqlite3.exe -separator "," [b]"drv\path\to\npvr.db3"[/b] "UPDATE SCHEDULED_RECORDING SET filename ='%~dpn1.mpg' where filename like '%~1';"
echo Done.
more < "%~1:metadata.xml" > "%~dpn1.mpg:metadata.xml"
must edit part in bold to adjust for your system..
[and have sqlite3.exe available]

NOTE: this won't work for h.264 compression videos..only mpeg2..
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
chuck_2330
Offline

Member

Posts: 73
Threads: 18
Joined: Mar 2006
#5
2011-02-14, 09:41 PM
Fantastic! Thanks for taking the time to reply. The script seems to work well and the TS file drops from 8GB to 1.5GB for the same show. Problem solved!
[COLOR="SeaGreen"]
Hunter Valley, NSW, Australia
Core2Duo E6300 3.0GHz, 4GB, 250GB+500GB+1TB
3x WinFast DTV1000 T, Win7Pro, IceGuide EPG
transcode to MPEG2, use EWA exclusively
[/COLOR]
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  postprocessing batch to escape special characters donbrew 3 1,731 2019-11-06, 11:29 PM
Last Post: JavaWiz
  Live Stream Transcode hdpvr-doug8796 13 4,657 2019-10-18, 05:53 PM
Last Post: hdpvr-doug8796
  PostProcessing.bat not executing MiyoshiSaki 13 4,675 2019-09-03, 10:36 PM
Last Post: sub
  UpdateEPG.bat works manually but not daily automatically. (script included) acegolfer 11 4,532 2019-08-11, 02:34 PM
Last Post: mvallevand
  PostProcessing and PostCancel.bat being triggered but not working antenna 4 1,834 2018-08-05, 07:40 PM
Last Post: antenna
  Transcode Ignores Config.xml Setting jeneral 5 2,229 2018-05-28, 06:10 PM
Last Post: sub
  Moving to a new computer - script to import recordings? jcfaber1 3 2,215 2017-03-10, 02:17 PM
Last Post: jcfaber1
  Update EPG script...what should i write in my batch file ?? patchboy 2 2,177 2016-09-01, 12:52 PM
Last Post: mvallevand
  PostProcessing.bat doesn't run wscrivens 23 7,774 2016-04-08, 06:30 PM
Last Post: Handy.Man
  Show CMD window while executing PostProcessing.bat uspino 6 2,831 2015-12-08, 11:41 PM
Last Post: mvallevand

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

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

Linear Mode
Threaded Mode