NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Windows v
« Previous 1 … 71 72 73 74 75 … 102 Next »
HDMI to USB grabber

 
  • 0 Vote(s) - 0 Average
HDMI to USB grabber
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,176
Threads: 958
Joined: May 2006
#31
2020-11-01, 08:06 PM
Just to finalize things neither of these work?

Code:
ffmpeg -f dshow -s 1280x720 -i video="USB Video":audio="Digital Audio Interface (USB Di" -vcodec h264 -acodec aac -f mpegts -| ffplay -i pipe:
ffmpeg -f dshow -s 1280x720 -i video="USB Video":audio="Digital Audio Interface (USB Di" -vcodec h264_qsv -acodec aac -f mpegts -| ffplay -i pipe:

Martin
bohosh
Offline

Junior Member

BG
Posts: 47
Threads: 9
Joined: Sep 2020
#32
2020-11-01, 08:15 PM
Sorry Martin, none of them works. Anyway thanks for your time. BR.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,176
Threads: 958
Joined: May 2006
#33
2020-11-01, 08:48 PM
That's too bad I just pulled mine from my linux box and it worked like I expected.

Code:
ffmpeg -f dshow -s 1280x720 -i video="USB Video":audio="Digital Audio Interface (USB Digital Audio)" -vcodec h264_qsv -acodec aac -f mpegts - | ffplay -i pipe:

Anyway my HDPVR is much better.

Martin
bohosh
Offline

Junior Member

BG
Posts: 47
Threads: 9
Joined: Sep 2020
#34
2020-11-10, 05:29 PM
Hello there,
I've just got my HDPVR Rocket and again face problems to add a channel to nextpvr.
I found this wiki here: https://forums.nextpvr.com/showthread.php?tid=59913
Even with these steps I get "This device currently has no channels, hit the Scan or Import buttons to add channels to this device. "
Maybe someone can push me in right direction...
BR
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,176
Threads: 958
Joined: May 2006
#35
2020-11-10, 05:36 PM
You need to first add an XMLTV or Schedules Direct EPG source (step 17 on that link) before adding an HDPVR device. If you need more support open a new thread to keep this on on topic.

Martin
yguns31
Offline

Junior Member

Posts: 7
Threads: 1
Joined: Feb 2016
#36
2020-12-02, 07:55 AM
Looking for some help in setting up one of these USB HDMI capture devices.  I created a .bat file to handle blasting the IR to change the channel and then using ffmpeg to encode the stream.  Here is what is in my .bat file:

Code:
"C:\Windows\SysWOW64\wscript.exe" "C:\ProgramData\LM Gestion\LM Remote KeyMap\plugins\GBPVR\GBPVR.wsf" "Cisco Explorer 4642HD" %1

ffmpeg -f dshow -rtbufsize 100M -video_size 1280x720 -framerate 60.0002 -i video="USB Video":audio="Digital Audio Interface (2- USB Digital Audio)" -vcodec h264 -acodec aac -f mpegts -| ffplay -i pipe:

When I run this in Windows Command line, it works fine.  The channel changes, and the video processes and shows up.  When I set it up in NextPVR and use the web interface to select a channel, I can see the IR blaster go off, but then I get a message that says "Starting device, please wait..." followed by "Streaming failed (transcoder exited)".  What have I done wrong?  I'm coming from v4, and slowly trying to convert to v5.  So some of this is still new to me.  Please advise.
Graham
Offline

Posting Freak

UK
Posts: 4,058
Threads: 102
Joined: Dec 2005
#37
2020-12-02, 10:55 AM
(2020-12-02, 07:55 AM)yguns31 Wrote: When I set it up in NextPVR and use the web interface to select a channel, I can see the IR blaster go off, but then I get a message that says "Starting device, please wait..." followed by "Streaming failed (transcoder exited)".  What have I done wrong?

Logs ... Please ... https://github.com/sub3/NextPVR/wiki/get-help ... Thank you.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,176
Threads: 958
Joined: May 2006
#38
2020-12-02, 01:51 PM
Assuming you are going this in a batch file did you test the batch file as well

grabber.bat 123 | ffplay -i pipe

It the batch fails make sure you have the path to ffmpeg specified and you batch file stops at the dash (remove " | ffplay -i pipe:")

If it works upload our extra xml file.

Martin
yguns31
Offline

Junior Member

Posts: 7
Threads: 1
Joined: Feb 2016
#39
2020-12-03, 10:17 AM (This post was last modified: 2020-12-03, 10:22 AM by yguns31.)

.zip   logs-20201203-0516.zip (Size: 557.45 KB / Downloads: 0)
[attachment=2598 Wrote:mvallevand pid='549554' dateline='1606917082']Assuming you are going this in a batch file did you test the batch file as well

grabber.bat 123 | ffplay -i pipe

It the batch fails make sure you have the path to ffmpeg specified and you batch file stops at the dash (remove " | ffplay -i pipe:") 

If it works upload our extra xml file.

Martin

Originally when I was testing, I tested the batch file with "| ffplay -i pipe:" included in the file, and called usbcapture.bat 123, which worked.

If I remove "| ffplay -i pipe:" from the batch file and call "usbcapture.bat 123 | ffplay -i pipe:" from Windows Command Line, I am getting errors:

Code:
ffplay version 2020-11-22-git-0066bf4d1a-full_build-www.gyan.dev Copyright (c) 2003-2020 the FFmpeg developers
  built with gcc 10.2.0 (Rev5, Built by MSYS2 project)
  configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-lzma --enable-libsnappy --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libglslang --enable-vulkan --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint
  libavutil      56. 60.100 / 56. 60.100
  libavcodec     58.112.103 / 58.112.103
  libavformat    58. 64.100 / 58. 64.100
  libavdevice    58. 11.103 / 58. 11.103
  libavfilter     7. 90.100 /  7. 90.100
  libswscale      5.  8.100 /  5.  8.100
  libswresample   3.  8.100 /  3.  8.100
  libpostproc    55.  8.100 / 55.  8.100
pipe: No such file or directory    0KB vq=    0KB sq=    0B f=0/0

ffmpeg version 2020-11-22-git-0066bf4d1a-full_build-www.gyan.dev Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 10.2.0 (Rev5, Built by MSYS2 project)
  configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-lzma --enable-libsnappy --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libglslang --enable-vulkan --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint
  libavutil      56. 60.100 / 56. 60.100
  libavcodec     58.112.103 / 58.112.103
  libavformat    58. 64.100 / 58. 64.100
  libavdevice    58. 11.103 / 58. 11.103
  libavfilter     7. 90.100 /  7. 90.100
  libswscale      5.  8.100 /  5.  8.100
  libswresample   3.  8.100 /  3.  8.100
  libpostproc    55.  8.100 / 55.  8.100
Guessed Channel Layout for Input Stream #0.1 : stereo
Input #0, dshow, from 'video=USB Video:audio=Digital Audio Interface (2- USB Digital Audio)':
  Duration: N/A, start: 939.444000, bitrate: N/A
    Stream #0:0: Video: mjpeg (Baseline) (MJPG / 0x47504A4D), yuvj422p(pc, bt470bg/unknown/unknown), 1280x720, 60 fps, 60 tbr, 10000k tbn, 10000k tbc
    Stream #0:1: Audio: pcm_s16le, 44100 Hz, stereo, s16, 1411 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (mjpeg (native) -> h264 (libx264))
  Stream #0:1 -> #0:1 (pcm_s16le (native) -> aac (native))
Press [q] to stop, [?] for help
[libx264 @ 000001aa62bed900] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
[libx264 @ 000001aa62bed900] profile High 4:2:2, level 3.2, 4:2:2, 8-bit
Output #0, mpegts, to 'pipe:':
  Metadata:
    encoder         : Lavf58.64.100
    Stream #0:0: Video: h264 (libx264), yuvj422p(pc, bt470bg/unknown/unknown, progressive), 1280x720, q=-1--1, 60 fps, 90k tbn, 60 tbc
    Metadata:
      encoder         : Lavc58.112.103 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
    Stream #0:1: Audio: aac (LC), 44100 Hz, stereo, fltp, 128 kb/s
    Metadata:
      encoder         : Lavc58.112.103 aac
av_interleaved_write_frame(): Invalid argument
Error writing trailer of pipe:: Invalid argument
frame=   57 fps= 52 q=31.0 Lsize=     106kB time=00:00:00.48 bitrate=1776.6kbits/s speed=0.449x
video:102kB audio:7kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
[libx264 @ 000001aa62bed900] frame I:1     Avg QP:27.42  size:104502
[libx264 @ 000001aa62bed900] frame P:14    Avg QP:28.30  size: 26272
[libx264 @ 000001aa62bed900] frame B:42    Avg QP:34.03  size:  3112
[libx264 @ 000001aa62bed900] consecutive B-frames:  1.8%  0.0%  0.0% 98.2%
[libx264 @ 000001aa62bed900] mb I  I16..4: 15.2% 59.7% 25.1%
[libx264 @ 000001aa62bed900] mb P  I16..4:  2.3%  2.3%  0.3%  P16..4: 39.3% 15.4%  8.8%  0.0%  0.0%    skip:31.6%
[libx264 @ 000001aa62bed900] mb B  I16..4:  0.1%  0.1%  0.0%  B16..8: 30.1%  2.8%  0.4%  direct: 1.3%  skip:65.3%  L0:48.9% L1:39.5% BI:11.6%
[libx264 @ 000001aa62bed900] 8x8 transform intra:52.9% inter:82.2%
[libx264 @ 000001aa62bed900] coded y,uvDC,uvAC intra: 52.0% 82.6% 33.8% inter: 8.8% 12.2% 2.3%
[libx264 @ 000001aa62bed900] i16 v,h,dc,p: 37% 33%  6% 24%
[libx264 @ 000001aa62bed900] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 31% 29%  3%  2%  2%  3%  3%  5%
[libx264 @ 000001aa62bed900] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 47% 28%  8%  2%  3%  4%  3%  3%  2%
[libx264 @ 000001aa62bed900] i8c dc,h,v,p: 39% 29% 28%  4%
[libx264 @ 000001aa62bed900] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 000001aa62bed900] ref P L0: 52.4% 10.0% 27.6% 10.1%
[libx264 @ 000001aa62bed900] ref B L0: 78.8% 19.6%  1.6%
[libx264 @ 000001aa62bed900] ref B L1: 83.3% 16.7%
[libx264 @ 000001aa62bed900] kb/s:4990.43
[aac @ 000001aa62daca00] Qavg: 218.307
Conversion failed!


Same thing occurs whether I call ffmpeg or the full path "C:\ffmpeg-2020-11-22-git-0066bf4d1a-full_build\bin\ffmpeg.exe"

I've attached the .bat file and the .xml as well as my logs.


Attached Files
.zip   extras-usb-device.zip (Size: 323 bytes / Downloads: 28)
.zip   USBCapture.zip (Size: 407 bytes / Downloads: 16)
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,176
Threads: 958
Joined: May 2006
#40
2020-12-03, 01:36 PM
The exras file is bad you don't need ffplay in it either. Make the change delete the channels from the extra with the trashcan and rescan

Code:
<args>/c C:\Users\Public\NPVR-data\USBCapture.bat {channel}</args>

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 3 Guest(s)

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


Possibly Related Threads…
Thread Author Replies Views Last Post
  Uraycoder HDMI Encoder Extra gobo 17 1,094 2025-04-17, 02:47 AM
Last Post: gobo
  TV listings "suddenly" missing via zap2it grabber RichU 2 1,521 2022-09-25, 02:34 PM
Last Post: RichU
  nvida hdmi audio MaxOne72 0 616 2022-01-08, 09:47 PM
Last Post: MaxOne72
  FFmpeg settings for HDMI Encoder device. boukmandutty 10 4,147 2020-08-13, 04:02 AM
Last Post: boukmandutty

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

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

Linear Mode
Threaded Mode