maddox / wallop

📺 A transcoding server for your HDHomeRun Prime
167 stars 41 forks source link

Loops preparing and tuning #57

Closed fossum closed 8 years ago

fossum commented 8 years ago

My installation keeps looping between preparing and tuning. I've seen similar issues on here that main end in correctly installing ACC.

67.185.134.181 - - [15/Aug/2016:21:00:26 -0700] "GET /channels/7/status HTTP/1.1" 200 79 0.0031 67.185.134.181 - - [15/Aug/2016:21:00:27 -0700] "GET /channels/7/status HTTP/1.1" 200 79 0.0030 67.185.134.181 - - [15/Aug/2016:21:00:27 -0700] "GET /channels/7/status HTTP/1.1" 200 79 0.0026 67.185.134.181 - - [15/Aug/2016:21:00:28 -0700] "GET /channels/7/status HTTP/1.1" 404 - 0.0021 67.185.134.181 - - [15/Aug/2016:21:00:28 -0700] "POST /channels/7/tune?resolution=640x360&bitrate=320k&profile=mobile HTTP/1.1" 200 29 0.0165 67.185.134.181 - - [15/Aug/2016:21:00:28 -0700] "GET /channels/7/status HTTP/1.1" 200 79 0.0024 67.185.134.181 - - [15/Aug/2016:21:00:29 -0700] "GET /channels/7/status HTTP/1.1" 200 79 0.0023 67.185.134.181 - - [15/Aug/2016:21:00:29 -0700] "GET /channels/7/status HTTP/1.1" 200 79 0.0024 67.185.134.181 - - [15/Aug/2016:21:00:29 -0700] "GET /channels/7/status HTTP/1.1" 200 79 0.0024 67.185.134.181 - - [15/Aug/2016:21:00:30 -0700] "GET /channels/7/status HTTP/1.1" 200 79 0.0023 67.185.134.181 - - [15/Aug/2016:21:00:30 -0700] "GET /channels/7/status HTTP/1.1" 200 79 0.0024 67.185.134.181 - - [15/Aug/2016:21:00:30 -0700] "GET /channels/7/status HTTP/1.1" 200 79 0.0024 67.185.134.181 - - [15/Aug/2016:21:00:31 -0700] "GET /channels/7/status HTTP/1.1" 200 79 0.0023 67.185.134.181 - - [15/Aug/2016:21:00:31 -0700] "GET /channels/7/status HTTP/1.1" 200 79 0.0025 67.185.134.181 - - [15/Aug/2016:21:00:31 -0700] "GET /channels/7/status HTTP/1.1" 200 79 0.0025 67.185.134.181 - - [15/Aug/2016:21:00:32 -0700] "GET /channels/7/status HTTP/1.1" 404 - 0.0024 67.185.134.181 - - [15/Aug/2016:21:00:32 -0700] "POST /channels/7/tune?resolution=640x360&bitrate=320k&profile=mobile HTTP/1.1" 200 29 0.0045 67.185.134.181 - - [15/Aug/2016:21:00:32 -0700] "GET /channels/7/status HTTP/1.1" 200 79 0.0023 67.185.134.181 - - [15/Aug/2016:21:00:32 -0700] "GET /channels/7/status HTTP/1.1" 200 79 0.0023 67.185.134.181 - - [15/Aug/2016:21:00:33 -0700] "GET /channels/7/status HTTP/1.1" 200 79 0.0023

Well I did the compile and it says I have ACC.

➜ wallop git:(master) ffmpeg
ffmpeg version N-81350-g3282e31 Copyright (c) 2000-2016 the FFmpeg developers built with gcc 6.1.1 (GCC) 20160621 (Red Hat 6.1.1-3) configuration: --enable-gpl --enable-libx264 --enable-libmp3lame --enable-nonfree --enable-libfdk-aac libavutil 55. 28.100 / 55. 28.100 libavcodec 57. 52.100 / 57. 52.100 libavformat 57. 46.101 / 57. 46.101 libavdevice 57. 0.102 / 57. 0.102 libavfilter 6. 51.100 / 6. 51.100 libswscale 4. 1.100 / 4. 1.100 libswresample 2. 1.100 / 2. 1.100 libpostproc 54. 0.100 / 54. 0.100 Hyper fast Audio and Video encoder usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

Use -h to get full help or, even better, run 'man ffmpeg' ➜ wallop git:(master)

I also think I have the correct settings...

➜ wallop git:(master) cat config/config.toml hdhomerun_host = "10.0.0.100" hdhr_transcode = false ffmpeg_path = "/usr/local/bin/ffmpeg" transcoding_path = "./tmp" port = "8888" hd_start = 500

[ffmpeg] threads = 2 acodec = "libfaac" framerate = "29.97" h264_preset = "veryfast" hls_time = 2 hls_wrap = 40 options = "-loglevel warning -async 1 -tune zerolatency -flags -global_header -fflags +genpts -map 0:0 -map 0:1"

[channel_logos] 506 = "cbs.png" 508 = "abc.png" 511 = "fox.png" 512 = "nbc.png" ➜ wallop git:(master) ls /usr/local/bin/ffmpeg /usr/local/bin/ffmpeg ➜ wallop git:(master) ping -c 4 10.0.0.100 PING 10.0.0.100 (10.0.0.100) 56(84) bytes of data. 64 bytes from 10.0.0.100: icmp_seq=1 ttl=64 time=0.261 ms 64 bytes from 10.0.0.100: icmp_seq=2 ttl=64 time=0.369 ms 64 bytes from 10.0.0.100: icmp_seq=3 ttl=64 time=0.373 ms 64 bytes from 10.0.0.100: icmp_seq=4 ttl=64 time=0.374 ms

--- 10.0.0.100 ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 3000ms rtt min/avg/max/mdev = 0.261/0.344/0.374/0.049 ms ➜ wallop git:(master)

fossum commented 8 years ago

New info: Seems the codec is invalid, but I don't know what to use. I've tried the default, faac, fdk-aac, h264.

➜ wallop git:(master) cat log/ffmpeg.log
[mpeg2video @ 0x2173ea0] Invalid frame dimensions 0x0. Last message repeated 38 times Unknown encoder 'libfaac' ➜ wallop git:(master)

fossum commented 8 years ago

I mis-understood the meaning and didn't realize acodec stood for audio codec. I then used ffmpeg -codecs to find a suitable audio codec and now it works!