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) ZTools and UltraXMLTV v
« Previous 1 2 3 4 5 6 … 12 Next »
TS Transcode for MVP

 
  • 0 Vote(s) - 0 Average
TS Transcode for MVP
zehd
Offline

Posting Freak

Posts: 5,119
Threads: 249
Joined: Feb 2006
#21
2009-02-06, 10:43 PM
leaded1 Wrote:Yes, I just tried this out, and from the MVP, everything defaults to .mpg's regardless of the transcode profile you select. Looking at my logs in the MVP Cache folder, it looks like it is over-rideing to Trans2MVP for .mpeg files and overiding to 4ts for .ts files.

That is correct... ZProcess has always been primarily a transcode [NON MPEG] to mpg on the fly transcoder, so it will try to make a playable mpg...

With you guys playing with manual transcoding using conversion profiles, you are trying to get around something I never really focused on. Yes the support was there and then TS files came a long, and everyone started having troubles, mostly because the transcode engines (MEncoder, FFmpeg, VLC etc, couldn't handle the transcodes...

In regards to the output folder, it will take an Output destination when received from GB-PVR. Or commandline.. But It will always default to the standard directories..
Frank Z
[COLOR="Gray"]
I used to ask 'why?' Now I just reinstall...
[SIZE="1"]______________________________________________
Author: ZTools: ZProcess, MVPServerChecker; UltraXMLTV Enhancer, Renamer, Manager; [/SIZE]
[/COLOR]
zehd
Offline

Posting Freak

Posts: 5,119
Threads: 249
Joined: Feb 2006
#22
2009-02-06, 10:44 PM
zehd Wrote:That is correct... ZProcess has always been primarily a transcode [NON MPEG] to mpg on the fly transcoder, so it will try to make a playable mpg...

With you guys playing with manual transcoding using conversion profiles, you are trying to get around something I never really focused on. Yes the support was there and then TS files came a long, and everyone started having troubles, mostly because the transcode engines (MEncoder, FFmpeg, VLC etc, couldn't handle the transcodes...

In regards to the output folder, it will take an Output destination when received from GB-PVR. Or commandline.. But It will always default to the standard directories..

I will need some more time before I can settle and then concentrate on what is happening. I know that I am not able to transcode the ample file you sent me, and it looks like a really big animal to deal with...
Frank Z
[COLOR="Gray"]
I used to ask 'why?' Now I just reinstall...
[SIZE="1"]______________________________________________
Author: ZTools: ZProcess, MVPServerChecker; UltraXMLTV Enhancer, Renamer, Manager; [/SIZE]
[/COLOR]
Bobins
Online

Posting Freak

UK (North West)
Posts: 1,200
Threads: 133
Joined: Sep 2004
#23
2009-02-06, 11:31 PM
Zehd,

The HD TS transcode is not a big problem as not many of my recordings will be HD, The SD TS ones will be 95% of what's recorded so sorting the audio sync is high on the WAFs list of priorities (hence me asking if there was something I could try)

Happy to help/test ideas when you're able to respond.

Appreciate your efforts!!!
NPVR Version= 7.0.1.241229
Intel i5 Ten Core 14400 + 16GB DDR5 in Gigabyte B760 AX Motherboard
Windows 11 Pro 64bit
TBS-6902 dual DVB-S tuner
TBS-6205 quad DVB-T tuner
500Gb System Disk (M2 Nvme SSD)
4Tb Media Store (2 x 2Tb M2 Nvme SSD Spanned)

Raspberry Pi3 B+, Pi4B (OSMC) & Pi5 (XBian) running Kodi v21.1
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,823
Threads: 954
Joined: May 2006
#24
2009-02-07, 12:07 AM
Bobins because you use mp2 audio in the UK for SD files, what is the problem with the default SD ffmpeg .ts profile that comes with GB-PVR? Nothing really beats -vcodec copy and -acodec copy for quality or speed in creating an mvp compatible SD mpeg. My opinion is if this doesn't work then your input stream is probably at fault.

Martin
Bobins
Online

Posting Freak

UK (North West)
Posts: 1,200
Threads: 133
Joined: Sep 2004
#25
2009-02-07, 12:23 AM
Hi Martin,

The quality of the video or audio isn't the problem whether I'm using the default GBPVR ffmpeg or Zhed's ffmpeg-alt in ZProcess although I couldn't get the default ffmpeg to transcode "on-the-fly" to the mvp.
In all cases in the resultant mpg file the video is about 1.5 seconds behind the audio (i.e. the video is lagging behind).

I've tried various TS files from different channels and all produce the same sync problem. I've tried adding "async 1" to the ffmpeg command line but that seemed to make the video lag even further behind the audio.

The lag looks pretty constant (i.e. not getting worse) as the files play although I can't confirm till at least I can get the start is in sync.
NPVR Version= 7.0.1.241229
Intel i5 Ten Core 14400 + 16GB DDR5 in Gigabyte B760 AX Motherboard
Windows 11 Pro 64bit
TBS-6902 dual DVB-S tuner
TBS-6205 quad DVB-T tuner
500Gb System Disk (M2 Nvme SSD)
4Tb Media Store (2 x 2Tb M2 Nvme SSD Spanned)

Raspberry Pi3 B+, Pi4B (OSMC) & Pi5 (XBian) running Kodi v21.1
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,823
Threads: 954
Joined: May 2006
#26
2009-02-07, 12:25 AM
Do you mind sending me a link to the SD file too or just upload it to megaupload, rapidshare etc.

Martin
zehd
Offline

Posting Freak

Posts: 5,119
Threads: 249
Joined: Feb 2006
#27
2009-02-07, 03:33 PM
mvallevand Wrote:Do you mind sending me a link to the SD file too or just upload it to megaupload, rapidshare etc.

Martin

Martin, I will upload to whurlston's common server and give you the link...

@Bobins. the file you sent was HD. Would you also be able to make a SD file available to either of us

(Maybe Me, and then I will share with Martin)
Frank Z
[COLOR="Gray"]
I used to ask 'why?' Now I just reinstall...
[SIZE="1"]______________________________________________
Author: ZTools: ZProcess, MVPServerChecker; UltraXMLTV Enhancer, Renamer, Manager; [/SIZE]
[/COLOR]
Bobins
Online

Posting Freak

UK (North West)
Posts: 1,200
Threads: 133
Joined: Sep 2004
#28
2009-02-07, 10:35 PM
Hi Guys,

I've made some progress today. This was driving me crazy as I kept changing things and got inconsistent results so I wrote myself a test schedule and went through it methodically.

If I transcode a SD TS file to mpg manually from the video library using the default ffmpeg and "vcodec copy acodec copy" it plays absolutely fine in PVRX2 however on the MVP the audio sync is out. I get the same result with an autotranscoded file too. I've tried many different recordings, all the same.

I've now created a custom transcode comand line for TS files as the
<AutoConvertTSCommand exe="ZTools\ZProcess2.exe">4ts "{SOURCE_FILE}" {DEST_FILE}</AutoConvertTSCommand>
line in the config.xml seems to be ignored by GBPVR.

With the line
<Conversion name="Zprocess" exe="ZTools\ZProcess2.exe" cmd="4ts {SOURCE_FILE} {DEST_FILE}" targetExtension=".mpg" />
both manual & auto SD TS files transcode successfully and more importantly both play fine on PVRX2 and the MVP.

Next onto HD TS files.

These won't transcode using ZProcess as it doesn't identify the file's parameters properly and tries to transcode with the TRANS2MVP profile.

I've tried manually running ZTranscode and after selecting the file, changed the profile to 4TS. The file transcodes but the video is behind the sound and visually looks in slow motion.

I repeated this but selected the default ffmpeg instead of the ffmpeg-alt and this resulting transcode has correct video & audio in sync.

I changed my auto transcode line to:-
<Conversion name="MPG-MVP2" cmd="-y -i {SOURCE_FILE} -vcodec mpeg2video -b 2400k -acodec mp2 -s 704x576 -f dvd {DEST_FILE}" targetExtension=".mpg" />
and with this line both SD & HD TS files will manually and automatically transcode and play on both PVRX2 and the MVP. Big Grin
Obviously everything is now using the default ffmpeg.

Now onto "on-the-fly" transcode for the MVP.

With either
<MVPFFmpegTranscodeTS>-y -i "{SOURCE_FILE}" -vcodec mpeg2video -b 2400k -acodec mp2 -s 704x576 -f dvd {DEST_FILE}</MVPFFmpegTranscodeTS>
or
<MVPFFmpegTranscodeTS exe="ZTools\ZProcess2.exe">4ts "{SOURCE_FILE}" "{DEST_FILE}"</MVPFFmpegTranscodeTS>

It is possible to play a SD TS file "on the fly" on the MVP (via its transcode)

Unfortunately, it's not possible to play a HD TS file "on-the-fly" even with the default ffmpeg. You get a brief snatch of output before the end of transcode file is reached. I'm using a quad cpu and the combined core utilisation is 25% although ffmpeg seems to hog 80-90% of one core. It looks to me like the limitation is disk I/O. I tried splitting the source & destination files accross two seperate disks and this allowed 3-4 seconds of output before the play reached the end of the file.Sad

I've also tried reducing the size and bitrate settings but it just won't transcode fast enough.

So conclusions:-

SD TS can be made to work fine in ZProcess
HD TS files have a problem being recognised in ZProcess and when corrected manually, ffmpeg-alt has a problem with transcoding the video.
Lastly, on-the-fly HD transcode is a no-go Sad

Hope this helps Zehd
NPVR Version= 7.0.1.241229
Intel i5 Ten Core 14400 + 16GB DDR5 in Gigabyte B760 AX Motherboard
Windows 11 Pro 64bit
TBS-6902 dual DVB-S tuner
TBS-6205 quad DVB-T tuner
500Gb System Disk (M2 Nvme SSD)
4Tb Media Store (2 x 2Tb M2 Nvme SSD Spanned)

Raspberry Pi3 B+, Pi4B (OSMC) & Pi5 (XBian) running Kodi v21.1
zehd
Offline

Posting Freak

Posts: 5,119
Threads: 249
Joined: Feb 2006
#29
2009-02-07, 11:01 PM
Bobins Wrote:Hi Guys,

I've made some progress today. This was driving me crazy as I kept changing things and got inconsistent results so I wrote myself a test schedule and went through it methodically.

If I transcode a SD TS file to mpg manually from the video library using the default ffmpeg and "vcodec copy acodec copy" it plays absolutely fine in PVRX2 however on the MVP the audio sync is out. I get the same result with an autotranscoded file too. I've tried many different recordings, all the same.

I've now created a custom transcode comand line for TS files as the
<AutoConvertTSCommand exe="ZTools\ZProcess2.exe">4ts "{SOURCE_FILE}" {DEST_FILE}</AutoConvertTSCommand>
line in the config.xml seems to be ignored by GBPVR.

With the line
<Conversion name="Zprocess" exe="ZTools\ZProcess2.exe" cmd="4ts {SOURCE_FILE} {DEST_FILE}" targetExtension=".mpg" />
both manual & auto SD TS files transcode successfully and more importantly both play fine on PVRX2 and the MVP.

Next onto HD TS files.

These won't transcode using ZProcess as it doesn't identify the file's parameters properly and tries to transcode with the TRANS2MVP profile.

I've tried manually running ZTranscode and after selecting the file, changed the profile to 4TS. The file transcodes but the video is behind the sound and visually looks in slow motion.

I repeated this but selected the default ffmpeg instead of the ffmpeg-alt and this resulting transcode has correct video & audio in sync.

I changed my auto transcode line to:-
<Conversion name="MPG-MVP2" cmd="-y -i {SOURCE_FILE} -vcodec mpeg2video -b 2400k -acodec mp2 -s 704x576 -f dvd {DEST_FILE}" targetExtension=".mpg" />
and with this line both SD & HD TS files will manually and automatically transcode and play on both PVRX2 and the MVP. Big Grin
Obviously everything is now using the default ffmpeg.

Now onto "on-the-fly" transcode for the MVP.

With either
<MVPFFmpegTranscodeTS>-y -i "{SOURCE_FILE}" -vcodec mpeg2video -b 2400k -acodec mp2 -s 704x576 -f dvd {DEST_FILE}</MVPFFmpegTranscodeTS>
or
<MVPFFmpegTranscodeTS exe="ZTools\ZProcess2.exe">4ts "{SOURCE_FILE}" "{DEST_FILE}"</MVPFFmpegTranscodeTS>

It is possible to play a SD TS file "on the fly" on the MVP (via its transcode)

Unfortunately, it's not possible to play a HD TS file "on-the-fly" even with the default ffmpeg. You get a brief snatch of output before the end of transcode file is reached. I'm using a quad cpu and the combined core utilisation is 25% although ffmpeg seems to hog 80-90% of one core. It looks to me like the limitation is disk I/O. I tried splitting the source & destination files accross two seperate disks and this allowed 3-4 seconds of output before the play reached the end of the file.Sad

I've also tried reducing the size and bitrate settings but it just won't transcode fast enough.

So conclusions:-

SD TS can be made to work fine in ZProcess
HD TS files have a problem being recognised in ZProcess and when corrected manually, ffmpeg-alt has a problem with transcoding the video.
Lastly, on-the-fly HD transcode is a no-go Sad

Hope this helps Zehd

Actually its great information... thanks...

ZProcess is just a go between GB-PVR and ffmpeg (or another transcoder) and so when in doubt, remove it from reference and tweak the command line for default FFmpeg.. Good show..

What this has shown me is:

For your files, the default ffmpeg work great. I should be able to configure ZProcess so that you can do what ever you want, but it doesn't matter until I can get it to KNOW what the dimensions of the input file are...

Just so you know, I'm learning .net. It's cool, and when I look at my VB6 code, I'm starting to scratch my head and wonder why I did things that way...

I suspect I will be changing some of the profiles scheme, so that aside from the Trans2MVP profile, you can set up a separate profile for each type of video/audio combination you come across regularly

I would really like an SD sample from you, so that I can be sure that ZProcess is flipping back and forth well...
Frank Z
[COLOR="Gray"]
I used to ask 'why?' Now I just reinstall...
[SIZE="1"]______________________________________________
Author: ZTools: ZProcess, MVPServerChecker; UltraXMLTV Enhancer, Renamer, Manager; [/SIZE]
[/COLOR]
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,823
Threads: 954
Joined: May 2006
#30
2009-02-07, 11:05 PM
zehd Wrote:I would really like an SD sample from you, so that I can be sure that ZProcess is flipping back and forth well...

Ditto. 30 Mbs will be fine. Sub even wrote a little utility to get a sample from an existing file http://forums.gbpvr.com/showpost.php?p=3...ostcount=2

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (4): « Previous 1 2 3 4 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Zprocess transcode onMVP - "Transcoder died early" the.tangoman 33 11,540 2008-08-03, 11:18 PM
Last Post: zehd
  ZTools: Won't Transcode for MVP mag72 2 2,264 2008-07-26, 09:11 PM
Last Post: zehd
  ZProcess: default transcode profile Rayman 5 2,588 2007-12-24, 05:23 AM
Last Post: zehd
  how to transcode to 3gp and move to removable drive in zprocess2 ryanmc 3 2,363 2007-10-01, 07:52 PM
Last Post: zehd
  ZProcess: Manual Transcode playback problem KiddBludd 7 3,008 2007-06-26, 06:23 PM
Last Post: zehd
  ZProcess: Postprocessing.bat: comclean, comskip, transcode won't work svesnon14 13 4,552 2007-04-29, 09:44 PM
Last Post: zehd
  ZProcess: Can Transcode but MVP crashes... zehd 32 10,570 2007-02-17, 03:22 PM
Last Post: zehd
  MVP Transcode (continued) rscheller 9 4,863 2006-12-09, 06:41 PM
Last Post: zehd
  Transcode fails first try and queue doesn't work Pexcer 6 3,743 2006-12-04, 09:43 PM
Last Post: Pexcer
  Transcode to MPG ? zehd 7 4,724 2006-11-13, 11:28 PM
Last Post: jksmurf

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

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

Linear Mode
Threaded Mode