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 … 102 103 104 105 106 … 433 Next »
NPVR cannot play re-muxed .ts or .mpg file

NPVR cannot play re-muxed .ts or .mpg file
vmq
Offline

Member

Posts: 128
Threads: 27
Joined: Dec 2007
#1
2016-12-23, 01:10 AM
I am trying to clean my recordings by re-muxing them because the OTA ATSC recordings here are sometimes a little glitchy. After the procedure the files play fine in VLC and Kodi, but NPVR plays the ts very jerky, and cannot play the .mpg. The original ts recording plays fine everywhere, but as I said has some glitches later.

I used the following two commands to create 30s samples:

Code:
ffmpeg -ss 90 -i "NCIS.S14E10.The Tie That Binds.ts" -t 30 -map 0:0 -map 0:1 -map 0:2 -f mpegts -c:v copy -c:a:0 copy -c:a:1 copy -y NCIS.ts
ffmpeg -ss 90 -i "NCIS.S14E10.The Tie That Binds.ts" -t 30 -f mpeg -c:v copy -c:a:0 copy -y NCIS.mpg

The samples can be found here:
https://drive.google.com/file/d/0B4WkBkH...sp=sharing
https://drive.google.com/file/d/0B4WkBkH...sp=sharing

I tried to play both in NPVR. My logs are attached.

Am I doing something wrong?

Volker
[SIZE="2"]PVR: Phenom 9150e / 4GB / XP / ATI HD 4200 / HVR-1600 / ATI HD 650 TV WOnder / NextPVR 3.9.2
PVR2: i7-6700k / Win10Pro / 32 GB / GeForce 1070 / WinTV-dualHD / NPVR 3.9.2 / 4TB NAS[/SIZE]
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,941
Threads: 956
Joined: May 2006
#2
2016-12-23, 01:52 AM
Glitches won't necessarily be fixed with copy remux, you really need to transcode to get proper timestamps but it can't fix mising information. When Kodi plays a file better than you need to try another decoder

Note too Nextpvr doesn't support mpg format. They are passed to Windows on the host and clients want to

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,708
Threads: 767
Joined: Nov 2003
#3
2016-12-23, 01:58 AM
Try setting <ForceMpgGraph>false</ForceMpgGraph> in your config.xml to see if it helps.
vmq
Offline

Member

Posts: 128
Threads: 27
Joined: Dec 2007
#4
2016-12-23, 03:04 AM
OK, one thing first. ffmpeg does not write mpeg-2 by default, so using:

Code:
ffmpeg -ss 90 -i "NCIS.S14E10.The Tie That Binds.ts" -fflags +genpts -t 30 -f dvd -c:v copy -c:a:0 copy -y NCISm.mpg
https://drive.google.com/file/d/0B4WkBkH...sp=sharing

makes the file playable in NPVR. I would rather not use that, because ffmpeg also complains about the buffer size and the generated file seems to have some compliance issues. ccextractor complains. But in general it plays fine now.

The ts file was missing PTS, so after using
Code:
ffmpeg -ss 90 -i "NCIS.S14E10.The Tie That Binds.ts" -fflags +genpts -t 30 -map 0:0 -map 0:1 -map 0:2 -f mpegts -c:v copy -c:a:0 copy -c:a:1 copy -y NCISt.ts
https://drive.google.com/file/d/0B4WkBkH...sp=sharing

I got a ts that VLC and Kodi play AND the srt subtitles that ccextractor generated were in sync throughout the file (That's what my goal was in the first place). Unfortunately NPVR studders and stops playing after a few second. I would agree blaming the decoder, but the whole exercise here is that the video stream is unchanged. Does ffmpeg mess up the container (TS) so badly that NPVR cannot play it anymore?

Volker

P.S.: Does <ForceMpgGraph>false</ForceMpgGraph> affect the TS processing? DIdn't try it yet.
[SIZE="2"]PVR: Phenom 9150e / 4GB / XP / ATI HD 4200 / HVR-1600 / ATI HD 650 TV WOnder / NextPVR 3.9.2
PVR2: i7-6700k / Win10Pro / 32 GB / GeForce 1070 / WinTV-dualHD / NPVR 3.9.2 / 4TB NAS[/SIZE]
vmq
Offline

Member

Posts: 128
Threads: 27
Joined: Dec 2007
#5
2016-12-23, 03:16 AM
mvallevand Wrote:Glitches won't necessarily be fixed with copy remux, you really need to transcode to get proper timestamps but it can't fix mising information.

I used to do that with ProjectX or mencoder and mplex. Those are really dated and have problems with HD recordings. The ffmpeg copied transport stream seems to work fine, captions are synced and the two or three positions where a glitch occurred seem to play just nice. (I wouldn't notice if a few frames were missing, unless I really searched for that). Except that NPVR doesn't like it anymore :eek:

Do you have a recommendation for the transcoding? I heard VideoRedo works good. Or would ffmpeg work?

Volker
[SIZE="2"]PVR: Phenom 9150e / 4GB / XP / ATI HD 4200 / HVR-1600 / ATI HD 650 TV WOnder / NextPVR 3.9.2
PVR2: i7-6700k / Win10Pro / 32 GB / GeForce 1070 / WinTV-dualHD / NPVR 3.9.2 / 4TB NAS[/SIZE]
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,708
Threads: 767
Joined: Nov 2003
#6
2016-12-23, 06:17 AM
vmq Wrote:Does <ForceMpgGraph>false</ForceMpgGraph> affect the TS processing? DIdn't try it yet.
No, it just affects the playback of .mpg files. Give it a go.
vmq
Offline

Member

Posts: 128
Threads: 27
Joined: Dec 2007
#7
2016-12-23, 06:54 AM
sub Wrote:No, it just affects the playback of .mpg files. Give it a go.

Just did, but as the mpg's were already playing after I fixed the output of ffmpeg to actually generate mpeg-2 there was no change anymore. mpg works. (Kind of, there are still issues with non-standard PES headers according to ccextractor.)

I still wonder if the ts file is wrong, as I said it seems to work for other players.

Can someone try https://drive.google.com/file/d/0B4WkBkH...sp=sharing if it works for them? Here NPVR returns to the main menu after 4 seconds. Other players play the full 30 seconds.

Volker
[SIZE="2"]PVR: Phenom 9150e / 4GB / XP / ATI HD 4200 / HVR-1600 / ATI HD 650 TV WOnder / NextPVR 3.9.2
PVR2: i7-6700k / Win10Pro / 32 GB / GeForce 1070 / WinTV-dualHD / NPVR 3.9.2 / 4TB NAS[/SIZE]
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,941
Threads: 956
Joined: May 2006
#8
2016-12-23, 01:51 PM
vmq Wrote:Can someone try https://drive.google.com/file/d/0B4WkBkH...sp=sharing if it works for them? Here NPVR returns to the main menu after 4 seconds. Other players play the full 30 seconds.

Volker

I had to remux it with tsmuxer to get it to play but after that it works and cc'ing does display.

Martin
vmq
Offline

Member

Posts: 128
Threads: 27
Joined: Dec 2007
#9
2016-12-23, 04:27 PM
mvallevand Wrote:I had to remux it with tsmuxer to get it to play but after that it works and cc'ing does display.

You got me excited for a few seconds. I thought tsmuxer would be the tool I'm looking for to clean-up the recordings. So I ran it on the original recording and sadly it messes up the audio sync by about one second. The video plays fine in NPVR though. (I only used the tsmuxer GUI, maybe there are some switches I could try.)

It seems to work to remux with ffmpeg and then clean that up with tsmuxer. Not really a nice solution.

Volker
[SIZE="2"]PVR: Phenom 9150e / 4GB / XP / ATI HD 4200 / HVR-1600 / ATI HD 650 TV WOnder / NextPVR 3.9.2
PVR2: i7-6700k / Win10Pro / 32 GB / GeForce 1070 / WinTV-dualHD / NPVR 3.9.2 / 4TB NAS[/SIZE]
scJohn
Offline

Senior Member

Posts: 281
Threads: 41
Joined: Jun 2013
#10
2016-12-23, 10:13 PM
I downloaded your file and got the following results:

MPC-HC x64 played the file without any problems.
Windows Media Player was unable to play the file. Went into a loop. Video froze but the audio went into a playback loop of around 5 seconds.

I have OTA and the above 2 media players are my goto for playing files that have less than perfect OTA transmission stream.

My suggestion. Hardware - if possible try adjusting you antenna to get a better reception for the offending station(s). Software - try VideoRedo or TS-Doctor.

Video decoders and players are not all created equally when it comes to handling OTA transmission errors. So just trying to transcode or recode the file will more than likely not solve the problem.

My solution to my problem(s) was to use MPC-HC to playback all of my recording. If MPC-HC chokes on a file, then I try WMP. Over the the last 2 years I have a 99% success rate in watching my recordings. Your solution will depend upon how often your OTA transmission stream goes wonky(technical termBig Grin). Is this a rare occurrence or something that happens on a regular basis.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (3): 1 2 3 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  decoder issue? some channels don't play Donsch 10 5,152 2023-12-04, 10:19 PM
Last Post: turkeypets
  incorrect frequency in adelaide .ini file spin35 5 3,020 2023-02-01, 05:40 PM
Last Post: sub
  npvr is not responding johndutcher 3 1,492 2022-05-05, 07:57 PM
Last Post: sub
  NPVR 4.2.4 Video Library No Longer Shows folder.jpg Lao Pan 12 3,864 2022-04-14, 04:33 AM
Last Post: Antmannz
  nPVR Continually Wakes PC bfos 23 11,164 2022-02-17, 03:48 PM
Last Post: sub
  Can't find tuner filter in NPVR 4.05 on old XP machine (eee 701) with RTL2832U iamanotheruser 3 1,690 2022-01-03, 04:45 AM
Last Post: mvallevand
  ts file shows length too long? SuttonWillow 2 1,904 2021-03-15, 01:56 PM
Last Post: mvallevand
  Streaming Services with NPVR tesla1886 4 2,685 2021-01-04, 02:58 AM
Last Post: tesla1886
  NPVR choosing incorrect xml guide display-name after reboot drlava 7 3,057 2020-12-27, 02:27 AM
Last Post: sub
  Unhandled Exception: file name too long (idiots at pbs made it super long) jobby99 1 1,396 2020-10-29, 09:40 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