NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
1 2 3 4 5 … 93 Next »
Windows FM Radio support in v5.

 
  • 0 Vote(s) - 0 Average
Windows FM Radio support in v5.
canadianeh
Offline

Junior Member

Posts: 18
Threads: 1
Joined: Jan 2013
#41
2022-02-10, 10:31 PM
Hi All,

I'm trying to implement this using the AVerMedia USB Polaris Analog Capture device (I assume the same USB dongle the original tester used).  I can get the device to enumerate with ffmpeg, along with channel changing in ffmeg GUI and able to play the stream in VLC.

The python script worked beautifully, NextPVR was able to find the extra tuner and add in the channels contained in the XML.  

However, when I go to the EPG and choose any radio station from the list, I get "starting device, please wait" and then "Streaming failed. Transcoder exited".  

I am testing this using the web UI and NextPVR 5.2.2.211017.  I can upload logs somewhere, if that would be helpful?


Thanks!
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,917
Threads: 956
Joined: May 2006
#42
2022-02-10, 10:35 PM
Great, sounds like you are close. Did you follow these steps for installing python https://github.com/sub3/NextPVR/wiki/install-python There are often issues of not installing python properly.

Martin
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,917
Threads: 956
Joined: May 2006
#43
2022-02-11, 01:04 AM (This post was last modified: 2022-02-11, 01:05 AM by mvallevand.)
Actually looking at the source (it has been a long time), python is only used for creating the xml file

Before trying it as an extra, find a local frequency from the xml file and make sure it works

AnalogRadio.bat "frequency" | "C:\Program Files\NextPVR\Other\ffplay" -i pipe:

If you get errors remove the -v panic from the bat file and see if something shows up.

Martin
canadianeh
Offline

Junior Member

Posts: 18
Threads: 1
Joined: Jan 2013
#44
2022-02-11, 01:05 AM
I somehow missed the wiki page.  I think this might be the problem?  It keeps installing the modules in the user folders.  Do you know of a way to force it not to do this in Windows?

C:\WINDOWS\system32>python --version
Python 3.10.2

C:\WINDOWS\system32>pip install lxml requests m3u8
Requirement already satisfied: lxml in c:\users\home\appdata\roaming\python\python310\site-packages (4.7.1)
Requirement already satisfied: requests in c:\users\home\appdata\roaming\python\python310\site-packages (2.27.1)
Requirement already satisfied: m3u8 in c:\users\home\appdata\roaming\python\python310\site-packages (1.0.0)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\home\appdata\roaming\python\python310\site-packages (from requests) (2021.10.8)
Requirement already satisfied: idna<4,>=2.5 in c:\users\home\appdata\roaming\python\python310\site-packages (from requests) (3.3)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in c:\users\home\appdata\roaming\python\python310\site-packages (from requests) (1.26.8)
Requirement already satisfied: charset-normalizer~=2.0.0 in c:\users\home\appdata\roaming\python\python310\site-packages (from requests) (2.0.11)
Requirement already satisfied: iso8601 in c:\users\home\appdata\roaming\python\python310\site-packages (from m3u8) (1.0.2)
WARNING: You are using pip version 21.2.4; however, version 22.0.3 is available.
You should consider upgrading via the 'C:\Program Files\Python310\python.exe -m pip install --upgrade pip' command.

C:\WINDOWS\system32>
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,917
Threads: 956
Joined: May 2006
#45
2022-02-11, 01:09 AM
Don't worry about that, since as I just noted that you only need the user role it isn't used at runtime. Check my last post.

Martin
canadianeh
Offline

Junior Member

Posts: 18
Threads: 1
Joined: Jan 2013
#46
2022-02-11, 01:18 AM
Awesome.  So I ran the batch file as requested, here is the output:

C:\Users\Public\NPVR-Data\scripts>AnalogRadio.bat "92.5MHz FM" | "C:\Program Files\NextPVR\Other\ffplay" -i pipe:
ffplay version 4.2.2 Copyright © 2003-2019 the FFmpeg developers
  built with gcc 9.2.1 (GCC) 20200122
  configuration: --disable-static --enable-shared --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt
  libavutil      56. 31.100 / 56. 31.100
  libavcodec    58. 54.100 / 58. 54.100
  libavformat    58. 29.100 / 58. 29.100
  libavdevice    58.  8.100 / 58.  8.100
  libavfilter    7. 57.100 /  7. 57.100
  libswscale      5.  5.100 /  5.  5.100
  libswresample  3.  5.100 /  3.  5.100
  libpostproc    55.  5.100 / 55.  5.100
pipe:: Invalid data found when processing inputKB sq=    0B f=0/0
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,917
Threads: 956
Joined: May 2006
#47
2022-02-11, 01:23 AM
The frequency will be 92500000

If that doesn't work you need to remove -v panic from the command line in the batch file to see more errors

Martin
canadianeh
Offline

Junior Member

Posts: 18
Threads: 1
Joined: Jan 2013
#48
2022-02-11, 01:30 AM
[dshow @ 03371300] Could not enumerate audio only devices (or none found).
[dshow @ 03371300] Searching for audio device within video devices for tuningname
[dshow @ 03371300] Could not find audio only device with name [tuningname] among source devices of type video.
audio=tuningname: I/O error
pipe:: Invalid data found when processing inputKB sq=    0B f=0/0


I'm thinking the python script didn't run correctly.  I'm going to try deleting the batch file and XML, and then re-run again to see if that helps.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,917
Threads: 956
Joined: May 2006
#49
2022-02-11, 01:33 AM
Seems you missed a step https://forums.nextpvr.com/showthread.ph...#pid539855 to change the tuning names to your Polaris device.

Martin
canadianeh
Offline

Junior Member

Posts: 18
Threads: 1
Joined: Jan 2013
#50
2022-02-11, 01:52 AM
(2022-02-11, 01:33 AM)mvallevand Wrote: Seems you missed a step https://forums.nextpvr.com/showthread.ph...#pid539855 to change the tuning names to your Polaris device.

Martin

Yes - sorry about that! Running the batch file now pops open the Pipe: window and I can see it act like it is streaming data, however there is no sound.  Also launching from within NextPVR's TV guide in the web client, it acts like it is streaming, but no sound is present.  Trying it with the NextPVR windows client, it freezes the window and does nothing.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

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


Possibly Related Threads…
Thread Author Replies Views Last Post
  FM tuner support in NextPVR? Goongyae 2 1,381 2022-11-23, 01:22 PM
Last Post: mvallevand
  IPTV like stream from Sound Card input - FM Radio Project NumberFive 3 1,390 2022-11-20, 04:28 PM
Last Post: mvallevand
  IPTV Pretuning and Internet Radio mvallevand 5 3,165 2019-02-04, 12:02 AM
Last Post: mvallevand
  Problems with Windows UWP App spitefulgod 4 3,814 2016-12-15, 08:35 PM
Last Post: spitefulgod
  Any ideas about programming for Windows Firewall? bgowland 4 5,635 2014-04-10, 09:05 AM
Last Post: bgowland
  Windows Shortcuts ACTCMS 4 2,715 2012-03-24, 12:22 AM
Last Post: mvallevand
  Creating a Windows service McBainUK 8 3,375 2011-03-30, 03:29 AM
Last Post: mvallevand
  Which channel logo image formats does npvr support? bgowland 2 2,073 2011-03-06, 05:43 AM
Last Post: bgowland
  Webservice API to support Android App development Barsk 4 3,263 2010-10-19, 07:31 AM
Last Post: Barsk
  Using Windows file system shortcuts ACTCMS 0 1,801 2010-01-26, 11:45 PM
Last Post: ACTCMS

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

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

Linear Mode
Threaded Mode