vexorian / dizquetv

Create live TV channels from your own media. Access the streams using the simulated HDHomerun tuner or the generated M3U URl.
zlib License
1.44k stars 92 forks source link

FFMPEG Error #434

Open dlwebmaestro opened 1 year ago

dlwebmaestro commented 1 year ago

Windows 11 version 22H2 dizqueTV-backend 1.5.0 dizqueTV-ui 1.5.0 FFMPEG 5.1.2-full_build-www.gyan.dev nodejs v12.18.2

When trying to launch an .m3u file, I get this in the server window:

Stream starting. Channel: 1 (Netflix)
/stream audioOnly=false
=========================================================
! Start playback
! Channel: Netflix (1)
! Title: Unknown
! From : 0 to: 40
=========================================================
About to play loading stream

Video and Audio are being transcoded by ffmpeg
Latency: (14
Stream FFMPEG exited with code 1.
Replacing failed stream with error stream

Video and Audio are being transcoded by ffmpeg
Played video for: 235 ms
Client Closed
Stream FFMPEG RECEIVED kill() command
Stream FFMPEG this.ffmpeg.kill()
Stream FFMPEG exited with code 1.

Stream ended. Channel: 1 (Netflix)
Concat FFMPEG RECEIVED kill() command
Concat FFMPEG this.ffmpeg.kill()
Concat FFMPEG exited with code 1.
FFMPEG ERROR {
  code: 1,
  cmd: 'C:\\FFmpeg\\bin\\ffmpeg.exe -threads 1 -fflags +genpts+discardcorrupt+igndts -re -f concat -safe 0 -protocol_whitelist file,http,tcp,https,tcp,tls -probesize 32 -i http://localhost:8000/playlist?channel=1&audioOnly=false -map 0:v -map 0:a -c copy -muxdelay 0 -muxpreload 0 -metadata service_provider="dizqueTV" -metadata service_name="Netflix" -f mpegts pipe:1'
}

When I try to run the FFmpeg command (that gave the error above) in the command prompt I get this in the dizquetv server:

/stream audioOnly=false
=========================================================
! Start playback
! Channel: Netflix (1)
! Title: Unknown
! From : 0 to: 40
=========================================================
About to play loading stream

Video and Audio are being transcoded by ffmpeg
Latency: (15
ffmpeg version 5.1.2-full_build-www.gyan.dev Copyright (c) 2000-2022 the FFmpeg developers
  built with gcc 12.1.0 (Rev2, 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-bzlib --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libaribb24 --enable-libdav1d --enable-libdavs2 --enable-libuavs3d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libaom --enable-libjxl --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-liblensfun --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-libshaderc --enable-vulkan --enable-libplacebo --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      57. 28.100 / 57. 28.100
  libavcodec     59. 37.100 / 59. 37.100
  libavformat    59. 27.100 / 59. 27.100
  libavdevice    59.  7.100 / 59.  7.100
  libavfilter     8. 44.100 /  8. 44.100
  libswscale      6.  7.100 /  6.  7.100
  libswresample   4.  7.100 /  4.  7.100
  libpostproc    56.  6.100 / 56.  6.100
Input #0, png_pipe, from 'http://localhost:8000/images/loading-screen.png':
  Duration: N/A, bitrate: N/A
  Stream #0:0: Video: png, rgba(pc), 1920x1080 [SAR 3780:3780 DAR 16:9], 25 fps, 25 tbr, 25 tbn
Codec AVOption sc_threshold (Scene change threshold) specified for output file #0 (pipe:1) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream.
Stream mapping:
  Stream #0:0 (png) -> format:default
  realtime:default -> Stream #0:0 (h264_nvenc)
  arealtime:default -> Stream #0:1 (ac3)
Press [q] to stop, [?] for help
[h264_nvenc @ 0000026193d53dc0] [Eval @ 000000c9773fe3b0] Undefined constant or missing '(' in 'stillimage'
[h264_nvenc @ 0000026193d53dc0] Unable to parse option value "stillimage"
[h264_nvenc @ 0000026193d53dc0] Error setting option tune to value stillimage.
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
Conversion failed!
Stream FFMPEG exited with code 1.
Replacing failed stream with error stream

Video and Audio are being transcoded by ffmpeg
ffmpeg version 5.1.2-full_build-www.gyan.dev Copyright (c) 2000-2022 the FFmpeg developers
  built with gcc 12.1.0 (Rev2, 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-bzlib --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libaribb24 --enable-libdav1d --enable-libdavs2 --enable-libuavs3d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libaom --enable-libjxl --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-liblensfun --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-libshaderc --enable-vulkan --enable-libplacebo --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      57. 28.100 / 57. 28.100
  libavcodec     59. 37.100 / 59. 37.100
  libavformat    59. 27.100 / 59. 27.100
  libavdevice    59.  7.100 / 59.  7.100
  libavfilter     8. 44.100 /  8. 44.100
  libswscale      6.  7.100 /  6.  7.100
  libswresample   4.  7.100 /  4.  7.100
  libpostproc    56.  6.100 / 56.  6.100
Input #0, png_pipe, from 'http://localhost:8000/images/generic-error-screen.png':
  Duration: N/A, bitrate: N/A
  Stream #0:0: Video: png, rgba(pc), 1920x1080 [SAR 3780:3780 DAR 16:9], 25 fps, 25 tbr, 25 tbn
Codec AVOption sc_threshold (Scene change threshold) specified for output file #0 (pipe:1) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream.
Stream mapping:
  Stream #0:0 (png) -> format:default
  realtime:default -> Stream #0:0 (h264_nvenc)
  arealtime:default -> Stream #0:1 (ac3)
Press [q] to stop, [?] for help
[h264_nvenc @ 00000170ff688d40] [Eval @ 000000251adfe240] Undefined constant or missing '(' in 'stillimage'
[h264_nvenc @ 00000170ff688d40] Unable to parse option value "stillimage"
[h264_nvenc @ 00000170ff688d40] Error setting option tune to value stillimage.
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
Conversion failed!
Played video for: 254 ms
Client Closed
Stream FFMPEG RECEIVED kill() command
Stream FFMPEG this.ffmpeg.kill()
Stream FFMPEG exited with code 1.

And I get this as output from running the same command:

ffmpeg version 5.1.2-full_build-www.gyan.dev Copyright (c) 2000-2022 the FFmpeg developers
  built with gcc 12.1.0 (Rev2, 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-bzlib --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libaribb24 --enable-libdav1d --enable-libdavs2 --enable-libuavs3d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libaom --enable-libjxl --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-liblensfun --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-libshaderc --enable-vulkan --enable-libplacebo --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      57. 28.100 / 57. 28.100
  libavcodec     59. 37.100 / 59. 37.100
  libavformat    59. 27.100 / 59. 27.100
  libavdevice    59.  7.100 / 59.  7.100
  libavfilter     8. 44.100 /  8. 44.100
  libswscale      6.  7.100 /  6.  7.100
  libswresample   4.  7.100 /  4.  7.100
  libpostproc    56.  6.100 / 56.  6.100
[concat @ 0000011a0e7e6740] Impossible to open 'http://localhost:8000/stream?channel=3&first=0&session=4&audioOnly=false'
http://localhost:8000/playlist?channel=3: Invalid data found when processing input
'audioOnly' is not recognized as an internal or external command,
operable program or batch file.
'audioOnly' is not recognized as an internal or external command,
operable program or batch file.
ringtailedfox commented 1 year ago

I'm glad to see i'm not the only one with this error! I hope it can be resolved.... I just don't know what would cause this. I did change port 8000 to 8004, since i have Icecast on 8000, but i can't see any way that would matter...