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 136 137 138 139 140 … 433 Next »
Transcoding LiveTV

Transcoding LiveTV
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#31
2015-08-30, 06:04 AM
arrmo Wrote:Hi,

BTW, if I move to a newer version of ffmpeg (that I built today), and use the command line / parameters above in this thread, streaming seems to happen, but then I get these errors,

2015-08-29 23:44:40.467 [ERROR][24] Unexpected error streaming channel: System.Net.Sockets.SocketException (0x80004005): An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.Send(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at NShared.Streaming.StreamingHelper.StreamNative(Socket conn, Dictionary`2 parameters)
You'd probably need to manually run the ffmpeg command line, so you can see if outputs an error message. I suspect it is in this case.
arrmo
Offline

Member

Posts: 148
Threads: 25
Joined: Aug 2015
#32
2015-08-30, 12:18 PM
Makes sense! Just to make sure what I'm doing is valid, I can run the command from the web.log, but is it OK to run it on a different (recorded) file? Asking because the live file is of course deleted when the transcode stops.

Thanks!
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#33
2015-08-30, 05:42 PM
arrmo Wrote:Makes sense! Just to make sure what I'm doing is valid, I can run the command from the web.log, but is it OK to run it on a different (recorded) file? Asking because the live file is of course deleted when the transcode stops.
I'd run the exact same live tv command line you see on the logs. ie, tells ffmpeg to use an http url as input, and you tell ffmpeg to create .ts file as output. That output .ts will still be there when ffmpeg crashes, and you should be able to see any error messages.

(ie, the only files the that will be deleted are on the NextPVR side in the temporarily files it used to stream the full bitrate live tv over http, but you don't need these)
arrmo
Offline

Member

Posts: 148
Threads: 25
Joined: Aug 2015
#34
2015-08-31, 02:53 AM
Hi,

Trying to get to where I can run ffmpeg manually, but first need to get the file to show up - as it is there temporarily, but is removed on exit. So I decided to instead try a recording (file that exists, not a live channel). My command is
http://htpc.home:8866/transcode?recordin...trate=900k

And I get in the logs,
2015-08-30 21:50:23.402 [DEBUG][3] Got Web Request (192.168.2.65): /transcode recording=905&resolution=720x406&bitrate=900k
2015-08-30 21:50:23.405 [DEBUG][3] Running: C:\Program Files (x86)\NPVR\other\ffmpeg.exe -y -v 0 -i "D:\Recorded TV\Feherty\Feherty_20150824_20002100.ts" -f mpegts -acodec libfaac -ar 48000 -ac 2 -ab 64k -s 720x406 -vcodec libx264 -b 900k -flags +loop -cmp +chroma -refs 1 -coder 0 -me_range 16 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -bt 200k -maxrate 96k -bufsize 96k -rc_eq 'blurCplx^(1-qComp)' -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -level 30 -aspect 720:406 -g 30 -async 2 D:\Recorded TV\live-tFeherty-2612-13.ts
2015-08-30 21:50:23.407 [DEBUG][24] Watch dog is starting
2015-08-30 21:50:39.308 [DEBUG][32] Got Web Request (192.168.2.65): /transcode recording=905&resolution=720x406&bitrate=900k
2015-08-30 21:50:48.431 [DEBUG][24] Watch dog is shutting down transcode

So it seems to start, but some watch dog shuts it down?

Thanks!
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#35
2015-08-31, 03:18 AM
So did you try running that command from a command line, to see what ffmpeg says?
Quote:C:\Program Files (x86)\NPVR\other\ffmpeg.exe -y -v 0 -i "D:\Recorded TV\Feherty\Feherty_20150824_20002100.ts" -f mpegts -acodec libfaac -ar 48000 -ac 2 -ab 64k -s 720x406 -vcodec libx264 -b 900k -flags +loop -cmp +chroma -refs 1 -coder 0 -me_range 16 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -bt 200k -maxrate 96k -bufsize 96k -rc_eq 'blurCplx^(1-qComp)' -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -level 30 -aspect 720:406 -g 30 -async 2 D:\Recorded TV\live-tFeherty-2612-13.ts
madas
Offline

Member

Posts: 148
Threads: 20
Joined: Dec 2007
#36
2015-08-31, 01:08 PM
I upgraded my system last night to 3.5.7 and livetv transcoding still works fine. I ran it for about 5 mins to be sure.

Depending on your ffmpeg version you can add -report to the command line and it'll spit out all kinds of information about whats going on.
arrmo
Offline

Member

Posts: 148
Threads: 25
Joined: Aug 2015
#37
2015-08-31, 01:19 PM
Hi,

Let me try with -report, as I'm not really seeing much output from ffmpeg itself. Good suggestion!

Thanks.
madas
Offline

Member

Posts: 148
Threads: 20
Joined: Dec 2007
#38
2015-08-31, 01:32 PM
Also - did you check that the NPVR upgrade didn't overwrite your FFMPEG back to the original version that came with NPVR?

I'm assuming, like me, that you had to get your own version of FFMPEG to make the streaming work in the first place?

I am using

ffmpeg version N-64304-g7f5d75f, built on Jun 29 2014 18:17:37 with gcc 4.9 (GCC)
arrmo
Offline

Member

Posts: 148
Threads: 25
Joined: Aug 2015
#39
2015-08-31, 01:33 PM
Hi,

OK, tried it. -report doesn't work (older version of ffmpeg), but setting verbosity to 5 seems to do it (-v 5). ffmpeg runs fine, generates the output file as expected. I do notice that some of the metadata / parameters of the file don't look right (bitrate, frame rate) ... is that an issue (for NextPVR to then stream it)?

Thanks!
madas
Offline

Member

Posts: 148
Threads: 20
Joined: Dec 2007
#40
2015-08-31, 01:46 PM (This post was last modified: 2015-08-31, 01:52 PM by madas.)
try getting a newer version of ffmpeg from here

http://sourceforge.net/projects/mplayer-...-g7f5d75f/

I called mine ffmpeg2.exe and then change the relevant line in the config.xml to point here instead of the old ffmpeg.exe.

I had no end of trouble with the ffmpeg.exe that was included with NPVR (as sub stated its not supported so there is no need for NPVR to provide a newer one)
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (9): « Previous 1 2 3 4 5 6 … 9 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  Black screen on LiveTV Lambrozo 10 2,950 2019-05-11, 06:48 PM
Last Post: Lambrozo
  Emby LiveTV NPVR Plugin Loading Issue rene.teniere 1 1,111 2019-01-26, 07:07 PM
Last Post: mvallevand
  Recording without transcoding javidial 9 2,418 2018-12-01, 12:59 AM
Last Post: javidial
  Recording Failure - HDHR Transcoding craigrs84 6 2,265 2018-10-15, 02:23 AM
Last Post: pkscout
  LiveTV playback all broken up after win 1803 update jordy1955 13 4,737 2018-05-15, 11:14 PM
Last Post: gEd
  blank screen on liveTv kevincz 14 3,909 2018-03-03, 01:43 AM
Last Post: sub
  NextPVR crashes after clicking on "liveTV kevincz 9 2,431 2018-02-16, 06:56 PM
Last Post: mvallevand
  HDHomerun Extend Transcoding Not Working satcoms 12 4,858 2017-12-09, 04:16 PM
Last Post: sub
  Questions about transcoding from IPTV sources JP23 32 10,783 2017-10-31, 09:33 AM
Last Post: pme
  4.04 crashes when starting to LiveTV on 11.1 eastavin 0 847 2017-07-24, 12:06 PM
Last Post: eastavin

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

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

Linear Mode
Threaded Mode