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 … 42 43 44 45 46 … 100 Next »
GPU Acceleration

 
  • 0 Vote(s) - 0 Average
GPU Acceleration
aderlopas
Offline

Senior Member

Posts: 313
Threads: 40
Joined: Dec 2013
#21
2020-04-10, 04:50 PM
(2020-04-10, 03:19 PM)mvallevand Wrote: Is this something you expect to change?  If so perhaps you need to research  ffmpeg options to see if and or how to make it work with your card.  Here is some starting point for this.

Code:
"C:\Program Files\NPVR\Other\ffmpeg.exe" -y  -hwaccel:v:0 d3d11va -hwaccel_device:v:0 0 -i http://127.0.0.1:8866/live?channeloid=7562&transcoder=3f149498-ce76-492c-a394-c0b2ab103364&client=5c53419a-db74-43eb-b730-b60c7506a7e8 -map_metadata -1 -threads 0 -ignore_unknown -map 0:v:0? -map 0:a:0 -map -0:s -codec:v:0 h264_qsv -b:v 1500000 -maxrate 1500000 -bufsize 3000000 -codec:a:0 aac -strict experimental -ac 2 -ab 128000 -y NUL

Martin.

Thanks Martin for your response, as I am a bit ignorant of ffmpeg usage, where should I be adding this command in NextPVR?
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,783
Threads: 954
Joined: May 2006
#22
2020-04-10, 04:51 PM
Just open a command prompt and paste it to run it.

Martin
aderlopas
Offline

Senior Member

Posts: 313
Threads: 40
Joined: Dec 2013
#23
2020-04-10, 05:48 PM
(2020-04-10, 04:51 PM)mvallevand Wrote: Just open a command prompt and paste it to run it.

Martin

Many thanks Martin for the clarification. After many lines like the one below:

[h264 @ 064c58c0] SPS unavailable in decode_picture_timing
[h264 @ 064c58c0] non-existing PPS 0 referenced
[h264 @ 064c58c0] SPS unavailable in decode_picture_timing
[h264 @ 064c58c0] non-existing PPS 0 referenced
[h264 @ 064c58c0] decode_slice_header error
[h264 @ 064c58c0] no frame!

In the end I get the below:

Input #0, mpegts, from 'http://127.0.0.1:8866/live?channeloid=7562':
  Duration: N/A, start: 44857.756633, bitrate: N/A
  Program 2100
    Stream #0:0[0x83e]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(top first), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x83f](gre): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, fltp, 192 kb/s
    Stream #0:2[0x841](gre): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
At least one output file must be specified
'transcoder' is not recognized as an internal or external command,
operable program or batch file.
'client' is not recognized as an internal or external command,
operable program or batch file.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#24
2020-04-10, 05:51 PM
You probably needed quotes around the http url in the middle of that command line.
aderlopas
Offline

Senior Member

Posts: 313
Threads: 40
Joined: Dec 2013
#25
2020-04-10, 05:58 PM
(2020-04-10, 05:51 PM)sub Wrote: You probably needed quotes around the http url in the middle of that command line.

Thanks Sub, so I added the quotes as follows:

"C:\Program Files\NPVR\Other\ffmpeg.exe" -y  -hwaccel:v:0 d3d11va -hwaccel_device:v:0 0 -i "http://127.0.0.1:8866/live?channeloid=7562&transcoder=3f149498-ce76-492c-a394-c0b2ab103364&client=5c53419a-db74-43eb-b730-b60c7506a7e8" -map_metadata -1 -threads 0 -ignore_unknown -map 0:v:0? -map 0:a:0 -map -0Confused -codec:v:0 h264_qsv -b:v 1500000 -maxrate 1500000 -bufsize 3000000 -codec:a:0 aac -strict experimental -ac 2 -ab 128000 -y NUL

And now I get the below:


ffmpeg version 4.2 Copyright © 2000-2019 the FFmpeg developers
  built with gcc 9.1.1 (GCC) 20190807
  configuration: --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
[h264 @ 00a0a3c0] SPS unavailable in decode_picture_timing
[h264 @ 00a0a3c0] non-existing PPS 0 referenced
[h264 @ 00a0a3c0] SPS unavailable in decode_picture_timing
[h264 @ 00a0a3c0] non-existing PPS 0 referenced
[h264 @ 00a0a3c0] decode_slice_header error
[h264 @ 00a0a3c0] no frame!
.......
.......
Input #0, mpegts, from 'http://127.0.0.1:8866/live?channeloid=7562&transcoder=3f149498-ce76-492c-a394-c0b2ab103364&client=5c53419a-db74-43eb-b730-b60c7506a7e8':
  Duration: N/A, start: 45613.372633, bitrate: N/A
  Program 2100
    Stream #0:0[0x83e]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(top first), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x83f](gre): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, fltp, 192 kb/s
    Stream #0:2[0x841](gre): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
[NULL @ 0761ba00] Unable to find a suitable output format for 'NUL'
NUL: Invalid argument
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#26
2020-04-10, 06:00 PM
Replace that "NUL" at the end with something like c:\temp\test.ts
aderlopas
Offline

Senior Member

Posts: 313
Threads: 40
Joined: Dec 2013
#27
2020-04-10, 06:06 PM (This post was last modified: 2020-04-10, 06:09 PM by aderlopas.)
OK, I figured out that instead of -y NUL, I must put: -f null NUL

So command becomes:

Code:
"C:\Program Files\NPVR\Other\ffmpeg.exe" -y  -hwaccel:v:0 d3d11va -hwaccel_device:v:0 0 -i "http://127.0.0.1:8866/live?channeloid=7562&transcoder=3f149498-ce76-492c-a394-c0b2ab103364&client=5c53419a-db74-43eb-b730-b60c7506a7e8" -map_metadata -1 -threads 0 -ignore_unknown -map 0:v:0? -map 0:a:0 -map -0:s -codec:v:0 h264_qsv -b:v 1500000 -maxrate 1500000 -bufsize 3000000 -codec:a:0 aac -strict experimental -ac 2 -ab 128000 -f null NUL 2>output.txt

So the output now is as in the file attached mainly with the below errors:

[h264 @ 07205f00] Failed to execute: 0x80070057
[h264 @ 07205f00] hardware accelerator failed to decode picture

and

[h264_qsv @ 07efeb00] Warning during encoding: incompatible video parameters (5)


Attached Files
.zip   output.zip (Size: 2.06 KB / Downloads: 2)
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,783
Threads: 954
Joined: May 2006
#28
2020-04-10, 06:23 PM
Try

ffmpeg -encoders

and

ffmpeg -decoders

and see what you support for h264

If you have grep on your PC add | grep qsv to make that easier.

Martin
aderlopas
Offline

Senior Member

Posts: 313
Threads: 40
Joined: Dec 2013
#29
2020-04-10, 06:29 PM
(2020-04-10, 06:23 PM)mvallevand Wrote: Try 

ffmpeg -encoders

and

ffmpeg -decoders

and see what you support for h264

If you have grep  on your PC add | grep qsv to make that easier.

Martin


Thanks Martin, 
Encoders:

V..... h264_qsv            H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (Intel Quick Sync Video acceleration) (codec h264)
V..... hevc_qsv            HEVC (Intel Quick Sync Video acceleration) (codec hevc)
V..... mjpeg_qsv            MJPEG (Intel Quick Sync Video acceleration) (codec mjpeg)
V..... mpeg2_qsv            MPEG-2 video (Intel Quick Sync Video acceleration) (codec mpeg2video)


Decoders:


V....D h264_qsv            H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (Intel Quick Sync Video acceleration) (codec h264)
V....D hevc_qsv            HEVC (Intel Quick Sync Video acceleration) (codec hevc)
V....D mpeg2_qsv            MPEG-2 video (Intel Quick Sync Video acceleration) (codec mpeg2video)
V....D vc1_qsv              VC-1 video (Intel Quick Sync Video acceleration) (codec vc1)
V....D vp8_qsv              VP8 video (Intel Quick Sync Video acceleration) (codec vp8)
aderlopas
Offline

Senior Member

Posts: 313
Threads: 40
Joined: Dec 2013
#30
2020-04-10, 06:35 PM
Found this issue with ffmpeg:

https://trac.ffmpeg.org/ticket/6418

I cannot tell if this is fixed in 4.2 or not...I saw that it was still an issue with 4.0 on Ubuntu....

Might be relevant?
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

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


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

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

Linear Mode
Threaded Mode