tellytv / telly

An IPTV proxy
MIT License
750 stars 105 forks source link

FFMPEG "dimensions not set" error #281

Closed betabites closed 3 years ago

betabites commented 3 years ago

telly release with the issue: 1.1.0.6, 1.1.0.8 (Those are the two releases I tried, both didn't work.)

Last working telly release (if known): None

Operating environment (Docker/Windows/Linux/QNAP, etc.): Linux

Description of problem: I'm trying to use TellyTV on my QNAP NAS so that I can stream and record Freeview NZ TV on my Plex server. Whenever I try to open a stream from Plex, or record a show, Plex gives me a Could not tune channel. Please check your tuner or antenna.. FFMpeg also prints a large error in the log. Using TellyTV without FFMpeg enabled gives the same result, without the FFMpeg error.

Contents of telly.config.toml [if you're using a version above 1.1]:

Note on running multiple instances of telly

There are three things that make up a "key" for a given Telly Virtual Tuner:

Device-ID [required], Device-UUID [optional], and port [required]

When you configure your additional telly instances, change:

the Device-ID [above] AND

the Device-UUID [above, if you're entering one] AND

the port [below in the "Web" section]

THIS SECTION IS REQUIRED

[IPTV] Streams = 1 # number of simultaneous streams that telly virtual tuner will provide

This is often 1, but is set by your iptv provider

Starting-Channel = 1 # When telly assigns channel numbers it will start here XMLTV-Channels = true # if true, any channel numbers specified in your M3U file will be used. FFMpeg = true # if this is uncommented, streams are buffered through ffmpeg;

ffmpeg must be installed and on your $PATH

                        # if you want to use this with Docker, be sure you use the correct docker image

if you DO NOT WANT TO USE FFMPEG leave this commented; DO NOT SET IT TO FALSE [Issue #185]

THIS SECTION IS REQUIRED

[Log] Level = "info" # Only log messages at or above the given level. [debug, info, warn, error, fatal] Requests = false # Log HTTP requests made to telly

THIS SECTION IS REQUIRED

[Web] Base-Address = "127.0.0.1:6077" # Set this to the IP address of the machine telly runs on AS SEEN BY PLEX

telly will be telling Plex to connect to URLs at this address.

                              # DO NOT REMOVE THE PORT
                              # Just change the 0.0.0.0 to your IP address.

Listen-Address = "0.0.0.0:6077" # this can stay as-is

THIS SECTION IS OPTIONAL ========================================================================

[SchedulesDirect] # If you have a Schedules Direct account, fill in details and then

                         # UNCOMMENT THIS SECTION

Username = "" # This is under construction; There is no provider

Password = "" # that works with it fully at this time

AT LEAST ONE SOURCE IS REQUIRED

COPY/PASTE THIS BLOCK TO ADD MORE SOURCES

THIS EXAMPLE WILL NOT WORK AS-IS

[[Source]] Name = "Freeview NZ" # Name is optional and is used mostly for logging purposes Provider = "Custom" # DO NOT CHANGE THIS

"Custom" is telly's internal identifier for this 'Provider'

                        # If you change it to "SOMETHING ELSE", telly's reaction will be
                        # "I don't recognize a provider called 'SOMETHING ELSE'."

M3U = "http://i.mjh.nz/nz/raw-tv.m3u8" # This can be either URL or fully-qualified path.

This needs to be an M3Uplus file

                        # IT CANNOT BE A STREAM ADDRESS
                        # IT CANNOT BE AN M3U THAT LINKS TO ANOTHER M3U

THE FOLLOWING KEYS ARE OPTIONAL IN THEORY, REQUIRED IN PRACTICE

Filter = ""

Telly is written in Go, and uses the Go regular expression system,

                        # which is limited compared to other regular expression parsers.

FilterKey = "" # Telly applies the regular expression to the contents of this key in the M3U. FilterRaw = false # FilterRaw will run your regex on the entire line instead of just specific keys. Sort = "" # Sort will alphabetically sort your channels by the M3U key provided

END TELLY CONFIG


**Command line used to run telly [if applicable]:**
- REMEMBER TO DELETE ANY CREDENTIALS IN CONFIG FILES OR COMMAND LINES

./telly


**Docker run command used to run telly [if applicable]:**
- REMEMBER TO DELETE ANY CREDENTIALS IN CONFIG FILES OR COMMAND LINES

**telly or docker log:**

INFO[2020-11-23T18:16:55+13:00] telly is preparing to go live (version=1.1.0.8, branch=dev, revision=96424a4719f33de9c1b66d8d2186e0452e45a234) INFO[2020-11-23T18:16:55+13:00] Loading M3U from http://i.mjh.nz/nz/raw-tv.m3u8 INFO[2020-11-23T18:16:55+13:00] Loaded 27 channels into the lineup from Freeview NZ INFO[2020-11-23T18:16:55+13:00] telly is live and on the air!
INFO[2020-11-23T18:16:55+13:00] Broadcasting from http://127.0.0.1:6077/
INFO[2020-11-23T18:16:55+13:00] EPG URL: http://127.0.0.1:6077/epg.xml
INFO[2020-11-23T18:16:55+13:00] Lineup JSON: http://127.0.0.1:6077/lineup.json INFO[2020-11-23T18:18:21+13:00] Serving channel number 1
INFO[2020-11-23T18:18:21+13:00] Remuxing stream with ffmpeg
INFO[2020-11-23T18:18:21+13:00] ffmpeg version 3.3.6 Copyright (c) 2000-2017 the FFmpeg developers INFO[2020-11-23T18:18:21+13:00] built with gcc 4.9.2 (Debian 4.9.2-10)
INFO[2020-11-23T18:18:21+13:00] configuration: --enable-cross-compile --arch=i686 --target-os=linux --disable-yasm --disable-static --enable-shared --enable-gpl --enable-libmp3lame --disable-libx264 --enable-libsoxr --enable-version3 --enable-nonfree --enable-openssl --disable-decoder=ac3 --disable-decoder=ac3_fixed --disable-decoder=eac3 --disable-decoder=dca --disable-decoder=truehd --disable-encoder=ac3 --disable-encoder=ac3_fixed --disable-encoder=eac3 --disable-encoder=dca --disable-decoder=hevc --disable-decoder=hevc_cuvid --disable-encoder=hevc_nvenc --disable-encoder=nvenc_hevc --disable-decoder=h264 --disable-decoder=h264_cuvid --disable-encoder=libx264 --disable-encoder=libx264rgb --disable-encoder=h264_nvenc --disable-encoder=nvenc --disable-encoder=nvenc_h264 --disable-decoder=mpeg2video --disable-decoder=mpegvideo --disable-decoder=mpeg2_cuvid --disable-encoder=mpeg2video --disable-decoder=mpeg4 --disable-decoder=mpeg4_cuvid --disable-decoder=msmpeg4v1 --disable-decoder=msmpeg4v2 --disable-decoder=msmpeg4v3 --disable-encoder=mpeg4 --disable-encoder=msmpeg4v2 --disable-encoder=msmpeg4v3 --disable-decoder=mvc1 --disable-decoder=vc1 --disable-decoder=vc1_cuvid --disable-decoder=vc1image --disable-decoder=aac --disable-decoder=aac_fixed --disable-decoder=aac_latm --disable-encoder=aac --extra-ldflags='-L/root/daily_build/64_05/4.5.1/LinkFS/usr/lib -L/root/daily_build/64_05/4.5.1/Model/TS-X72/build/RootFS/usr/local/medialibrary/lib -Wl,--rpath -Wl,/usr/local/medialibrary/lib' --extra-cflags='-I/root/daily_build/64_05/4.5.1/LinkFS/usr/include -I/root/daily_build/64_05/4.5.1/Model/TS-X72/build/RootFS/usr/local/medialibrary/include -D_GNU_SOURCE -DQNAP' --prefix=/root/daily_build/64_05/4.5.1/Model/TS-X72/build/RootFS/usr/local/medialibrary INFO[2020-11-23T18:18:21+13:00] libavutil 55. 58.100 / 55. 58.100
INFO[2020-11-23T18:18:21+13:00] libavcodec 57. 89.100 / 57. 89.100
INFO[2020-11-23T18:18:21+13:00] libavformat 57. 71.100 / 57. 71.100
INFO[2020-11-23T18:18:21+13:00] libavdevice 57. 6.100 / 57. 6.100
INFO[2020-11-23T18:18:21+13:00] libavfilter 6. 82.100 / 6. 82.100
INFO[2020-11-23T18:18:21+13:00] libswscale 4. 6.100 / 4. 6.100
INFO[2020-11-23T18:18:21+13:00] libswresample 2. 7.100 / 2. 7.100
INFO[2020-11-23T18:18:21+13:00] libpostproc 54. 5.100 / 54. 5.100
INFO[2020-11-23T18:18:22+13:00] [hls,applehttp @ 0x995500] Opening 'https://cdnlb-rbmn-live.zycadized.net/hls/live/590964/BoRB-AT/master_264.m3u8' for reading INFO[2020-11-23T18:18:22+13:00] [hls,applehttp @ 0x995500] Opening 'https://cdnlb-rbmn-live.zycadized.net/hls/live/590964/BoRB-AT/master_578.m3u8' for reading INFO[2020-11-23T18:18:22+13:00] [hls,applehttp @ 0x995500] Opening 'https://cdnlb-rbmn-live.zycadized.net/hls/live/590964/BoRB-AT/master_928.m3u8' for reading INFO[2020-11-23T18:18:22+13:00] [hls,applehttp @ 0x995500] Opening 'https://cdnlb-rbmn-live.zycadized.net/hls/live/590964/BoRB-AT/master_1660.m3u8' for reading INFO[2020-11-23T18:18:22+13:00] [hls,applehttp @ 0x995500] Opening 'https://cdnlb-rbmn-live.zycadized.net/hls/live/590964/BoRB-AT/master_3360.m3u8' for reading INFO[2020-11-23T18:18:22+13:00] [hls,applehttp @ 0x995500] Opening 'https://cdnlb-rbmn-live.zycadized.net/hls/live/590964/BoRB-AT/master_6660.m3u8' for reading INFO[2020-11-23T18:18:23+13:00] [hls,applehttp @ 0x995500] Opening 'https://cdnlb-rbmn-live.zycadized.net/hls/live/590964/BoRB-AT/20201020T131306/master_264/00161/master_264_01847.ts' for reading INFO[2020-11-23T18:18:23+13:00] [hls,applehttp @ 0x995500] Opening 'https://cdnlb-rbmn-live.zycadized.net/hls/live/590964/BoRB-AT/20201020T131306/master_578/00161/master_578_01847.ts' for reading INFO[2020-11-23T18:18:23+13:00] [hls,applehttp @ 0x995500] Opening 'https://cdnlb-rbmn-live.zycadized.net/hls/live/590964/BoRB-AT/20201020T131306/master_928/00161/master_928_01847.ts' for reading INFO[2020-11-23T18:18:23+13:00] [hls,applehttp @ 0x995500] Opening 'https://cdnlb-rbmn-live.zycadized.net/hls/live/590964/BoRB-AT/20201020T131306/master_1660/00161/master_1660_01847.ts' for reading INFO[2020-11-23T18:18:23+13:00] [hls,applehttp @ 0x995500] Opening 'https://cdnlb-rbmn-live.zycadized.net/hls/live/590964/BoRB-AT/20201020T131306/master_3360/00161/master_3360_01847.ts' for reading INFO[2020-11-23T18:18:23+13:00] [hls,applehttp @ 0x995500] Opening 'https://cdnlb-rbmn-live.zycadized.net/hls/live/590964/BoRB-AT/20201020T131306/master_6660/00161/master_6660_01847.ts' for reading INFO[2020-11-23T18:18:24+13:00] [hls,applehttp @ 0x995500] Could not find codec parameters for stream 0 (Video: h264 ([27][0][0][0] / 0x001B), none): unspecified size INFO[2020-11-23T18:18:24+13:00] Consider increasing the value for the 'analyzeduration' and 'probesize' options INFO[2020-11-23T18:18:24+13:00] [hls,applehttp @ 0x995500] Could not find codec parameters for stream 1 (Audio: aac ([15][0][0][0] / 0x000F), 0 channels): unspecified sample rate INFO[2020-11-23T18:18:24+13:00] Consider increasing the value for the 'analyzeduration' and 'probesize' options INFO[2020-11-23T18:18:24+13:00] [hls,applehttp @ 0x995500] Could not find codec parameters for stream 3 (Video: h264 ([27][0][0][0] / 0x001B), none): unspecified size INFO[2020-11-23T18:18:24+13:00] Consider increasing the value for the 'analyzeduration' and 'probesize' options INFO[2020-11-23T18:18:24+13:00] [hls,applehttp @ 0x995500] Could not find codec parameters for stream 4 (Audio: aac ([15][0][0][0] / 0x000F), 0 channels): unspecified sample rate INFO[2020-11-23T18:18:24+13:00] Consider increasing the value for the 'analyzeduration' and 'probesize' options INFO[2020-11-23T18:18:24+13:00] [hls,applehttp @ 0x995500] Could not find codec parameters for stream 6 (Video: h264 ([27][0][0][0] / 0x001B), none): unspecified size INFO[2020-11-23T18:18:24+13:00] Consider increasing the value for the 'analyzeduration' and 'probesize' options INFO[2020-11-23T18:18:24+13:00] [hls,applehttp @ 0x995500] Could not find codec parameters for stream 7 (Audio: aac ([15][0][0][0] / 0x000F), 0 channels): unspecified sample rate INFO[2020-11-23T18:18:24+13:00] Consider increasing the value for the 'analyzeduration' and 'probesize' options INFO[2020-11-23T18:18:24+13:00] [hls,applehttp @ 0x995500] Could not find codec parameters for stream 9 (Video: h264 ([27][0][0][0] / 0x001B), none): unspecified size INFO[2020-11-23T18:18:24+13:00] Consider increasing the value for the 'analyzeduration' and 'probesize' options INFO[2020-11-23T18:18:24+13:00] [hls,applehttp @ 0x995500] Could not find codec parameters for stream 10 (Audio: aac ([15][0][0][0] / 0x000F), 0 channels): unspecified sample rate INFO[2020-11-23T18:18:24+13:00] Consider increasing the value for the 'analyzeduration' and 'probesize' options INFO[2020-11-23T18:18:24+13:00] [hls,applehttp @ 0x995500] Could not find codec parameters for stream 12 (Video: h264 ([27][0][0][0] / 0x001B), none): unspecified size INFO[2020-11-23T18:18:24+13:00] Consider increasing the value for the 'analyzeduration' and 'probesize' options INFO[2020-11-23T18:18:24+13:00] [hls,applehttp @ 0x995500] Could not find codec parameters for stream 13 (Audio: aac ([15][0][0][0] / 0x000F), 0 channels): unspecified sample rate INFO[2020-11-23T18:18:24+13:00] Consider increasing the value for the 'analyzeduration' and 'probesize' options INFO[2020-11-23T18:18:24+13:00] [hls,applehttp @ 0x995500] Could not find codec parameters for stream 15 (Video: h264 ([27][0][0][0] / 0x001B), none): unspecified size INFO[2020-11-23T18:18:24+13:00] Consider increasing the value for the 'analyzeduration' and 'probesize' options INFO[2020-11-23T18:18:24+13:00] [hls,applehttp @ 0x995500] Could not find codec parameters for stream 16 (Audio: aac ([15][0][0][0] / 0x000F), 0 channels): unspecified sample rate INFO[2020-11-23T18:18:24+13:00] Consider increasing the value for the 'analyzeduration' and 'probesize' options INFO[2020-11-23T18:18:24+13:00] Input #0, hls,applehttp, from 'https://i.mjh.nz/nz/tv.redbull.tv.m3u8': INFO[2020-11-23T18:18:24+13:00] Duration: N/A, start: 45766.509333, bitrate: N/A INFO[2020-11-23T18:18:24+13:00] Program 0
INFO[2020-11-23T18:18:24+13:00] Metadata:
INFO[2020-11-23T18:18:24+13:00] variant_bitrate : 299200
INFO[2020-11-23T18:18:24+13:00] Stream #0:0: Video: h264 ([27][0][0][0] / 0x001B), none, 30 fps, 30 tbr, 90k tbn, 90k tbc INFO[2020-11-23T18:18:24+13:00] Metadata:
INFO[2020-11-23T18:18:24+13:00] variant_bitrate : 299200
INFO[2020-11-23T18:18:24+13:00] Stream #0:1: Audio: aac ([15][0][0][0] / 0x000F), 0 channels INFO[2020-11-23T18:18:24+13:00] Metadata:
INFO[2020-11-23T18:18:24+13:00] variant_bitrate : 299200
INFO[2020-11-23T18:18:24+13:00] Stream #0:2: Data: timed_id3 (ID3 / 0x20334449) INFO[2020-11-23T18:18:24+13:00] Metadata:
INFO[2020-11-23T18:18:24+13:00] variant_bitrate : 299200
INFO[2020-11-23T18:18:24+13:00] Program 1
INFO[2020-11-23T18:18:24+13:00] Metadata:
INFO[2020-11-23T18:18:24+13:00] variant_bitrate : 655600
INFO[2020-11-23T18:18:24+13:00] Stream #0:3: Video: h264 ([27][0][0][0] / 0x001B), none, 30 fps, 30 tbr, 90k tbn, 90k tbc INFO[2020-11-23T18:18:24+13:00] Metadata:
INFO[2020-11-23T18:18:24+13:00] variant_bitrate : 655600
INFO[2020-11-23T18:18:24+13:00] Stream #0:4: Audio: aac ([15][0][0][0] / 0x000F), 0 channels INFO[2020-11-23T18:18:24+13:00] Metadata:
INFO[2020-11-23T18:18:24+13:00] variant_bitrate : 655600
INFO[2020-11-23T18:18:24+13:00] Stream #0:5: Data: timed_id3 (ID3 / 0x20334449) INFO[2020-11-23T18:18:24+13:00] Metadata:
INFO[2020-11-23T18:18:24+13:00] variant_bitrate : 655600
INFO[2020-11-23T18:18:24+13:00] Program 2
INFO[2020-11-23T18:18:24+13:00] Metadata:
INFO[2020-11-23T18:18:24+13:00] variant_bitrate : 1056000
INFO[2020-11-23T18:18:24+13:00] Stream #0:6: Video: h264 ([27][0][0][0] / 0x001B), none, 30 fps, 30 tbr, 90k tbn, 90k tbc INFO[2020-11-23T18:18:24+13:00] Metadata:
INFO[2020-11-23T18:18:24+13:00] variant_bitrate : 1056000
INFO[2020-11-23T18:18:24+13:00] Stream #0:7: Audio: aac ([15][0][0][0] / 0x000F), 0 channels INFO[2020-11-23T18:18:24+13:00] Metadata:
INFO[2020-11-23T18:18:24+13:00] variant_bitrate : 1056000
INFO[2020-11-23T18:18:24+13:00] Stream #0:8: Data: timed_id3 (ID3 / 0x20334449) INFO[2020-11-23T18:18:24+13:00] Metadata:
INFO[2020-11-23T18:18:24+13:00] variant_bitrate : 1056000
INFO[2020-11-23T18:18:24+13:00] Program 3
INFO[2020-11-23T18:18:24+13:00] Metadata:
INFO[2020-11-23T18:18:24+13:00] variant_bitrate : 1892000
INFO[2020-11-23T18:18:24+13:00] Stream #0:9: Video: h264 ([27][0][0][0] / 0x001B), none, 30 fps, 30 tbr, 90k tbn, 90k tbc INFO[2020-11-23T18:18:24+13:00] Metadata:
INFO[2020-11-23T18:18:24+13:00] variant_bitrate : 1892000
INFO[2020-11-23T18:18:24+13:00] Stream #0:10: Audio: aac ([15][0][0][0] / 0x000F), 0 channels INFO[2020-11-23T18:18:24+13:00] Metadata:
INFO[2020-11-23T18:18:24+13:00] variant_bitrate : 1892000
INFO[2020-11-23T18:18:24+13:00] Stream #0:11: Data: timed_id3 (ID3 / 0x20334449) INFO[2020-11-23T18:18:24+13:00] Metadata:
INFO[2020-11-23T18:18:24+13:00] variant_bitrate : 1892000
INFO[2020-11-23T18:18:24+13:00] Program 4
INFO[2020-11-23T18:18:24+13:00] Metadata:
INFO[2020-11-23T18:18:24+13:00] variant_bitrate : 3836800
INFO[2020-11-23T18:18:24+13:00] Stream #0:12: Video: h264 ([27][0][0][0] / 0x001B), none, 30 fps, 30 tbr, 90k tbn, 90k tbc INFO[2020-11-23T18:18:24+13:00] Metadata:
INFO[2020-11-23T18:18:24+13:00] variant_bitrate : 3836800
INFO[2020-11-23T18:18:24+13:00] Stream #0:13: Audio: aac ([15][0][0][0] / 0x000F), 0 channels INFO[2020-11-23T18:18:24+13:00] Metadata:
INFO[2020-11-23T18:18:24+13:00] variant_bitrate : 3836800
INFO[2020-11-23T18:18:24+13:00] Stream #0:14: Data: timed_id3 (ID3 / 0x20334449) INFO[2020-11-23T18:18:24+13:00] Metadata:
INFO[2020-11-23T18:18:24+13:00] variant_bitrate : 3836800
INFO[2020-11-23T18:18:24+13:00] Program 5
INFO[2020-11-23T18:18:24+13:00] Metadata:
INFO[2020-11-23T18:18:24+13:00] variant_bitrate : 7612000
INFO[2020-11-23T18:18:24+13:00] Stream #0:15: Video: h264 ([27][0][0][0] / 0x001B), none, 30 fps, 30 tbr, 90k tbn, 90k tbc INFO[2020-11-23T18:18:24+13:00] Metadata:
INFO[2020-11-23T18:18:24+13:00] variant_bitrate : 7612000
INFO[2020-11-23T18:18:24+13:00] Stream #0:16: Audio: aac ([15][0][0][0] / 0x000F), 0 channels INFO[2020-11-23T18:18:24+13:00] Metadata:
INFO[2020-11-23T18:18:24+13:00] variant_bitrate : 7612000
INFO[2020-11-23T18:18:24+13:00] Stream #0:17: Data: timed_id3 (ID3 / 0x20334449) INFO[2020-11-23T18:18:24+13:00] Metadata:
INFO[2020-11-23T18:18:24+13:00] variant_bitrate : 7612000
INFO[2020-11-23T18:18:24+13:00] [mpegts @ 0xd7f560] dimensions not set
INFO[2020-11-23T18:18:24+13:00] Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument INFO[2020-11-23T18:18:24+13:00] Stream mapping:
INFO[2020-11-23T18:18:24+13:00] Stream #0:0 -> #0:0 (copy)
INFO[2020-11-23T18:18:24+13:00] Stream #0:1 -> #0:1 (copy)
INFO[2020-11-23T18:18:24+13:00] Last message repeated 1 times
INFO[2020-11-23T18:18:24+13:00] Stopped streaming 1
INFO[2020-11-23T18:18:24+13:00] Stopped streaming 1
http: superfluous response.WriteHeader call from github.com/gin-gonic/gin.(*responseWriter).WriteHeaderNow (response_writer.go:70)



**Additional information:**
It's set to use IPTV for Freeview NZ.
betabites commented 3 years ago

Found the issue. The NAS drive I was using TellyTV on had an older version of FFmpeg that did not work. Rather than updating the NAS drive's FFmpeg version and risking breaking something, I instead created a container/virtual machine on the NAS drive and ran it on there.