themacks / ply

An HLS server for the HDHomeRun Plus
20 stars 6 forks source link

Bad Pid #2

Closed mattyb closed 10 years ago

mattyb commented 10 years ago

On a fresh install, I was able to set up channel icons and see them on the roku. When the roku attempts to access them, the ply log says

192.168.1.3:33116 - - [23/Apr/2014 19:42:16] "HTTP/1.1 GET /channels/5.1/status" - 200 OK
Bad Pid file for 5.1
themacks commented 10 years ago

I think this is the same as issue #1. I just pushed an update for that, let me know if that fixes the problem for you.

mattyb commented 10 years ago

I had tried creating that directory manually. I may have a strange version of ffmpeg, though I think it's just whatever was distributed with Ubuntu 12.04. When I copied the commands, I got this error:

$ ffmpeg -i http://192.168.1.106:5004/auto/v5.1?transcode=internet720 -vcodec copy ./static/streams/5.1.m3u8
ffmpeg version 0.8.10-4:0.8.10-0ubuntu0.12.04.1, Copyright (c) 2000-2013 the Libav developers
  built on Feb  6 2014 20:56:59 with gcc 4.6.3
*** THIS PROGRAM IS DEPRECATED ***
This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
[mpegts @ 0x9fa9c0] max_analyze_duration reached
[mpegts @ 0x9fa9c0] Estimating duration from bitrate, this may be inaccurate
Input #0, mpegts, from 'http://192.168.1.106:5004/auto/v5.1?transcode=internet720':
  Duration: N/A, start: 43967.645922, bitrate: 448 kb/s
  Program 3
    Stream #0.0[0x31]: Video: h264 (Main), yuv420p, 1280x720 [PAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
    Stream #0.1[0x34](eng): Audio: ac3, 48000 Hz, 5.1, s16, 448 kb/s
Unable to find a suitable output format for './static/streams/5.1.m3u8'

I switched ffmpeg to avconv in stream.py and it seems to work.

themacks commented 10 years ago

That makes sense. 0.8 is a pretty old version of ffmpeg. If you are up for it you can try building the latest ffmpeg: https://trac.ffmpeg.org/wiki/UbuntuCompilationGuide

mattyb commented 10 years ago

it sounds like ubuntu is dropping support for ffmpeg? Maybe it would be better to check if avconv exists on a machine and use it instead of ffmpeg if it does.

~ Matt Brennan

On Thu, Apr 24, 2014 at 9:45 AM, themacks notifications@github.com wrote:

That makes sense. 0.8 is a pretty old version of ffmpeg. If you are up for it you can try building the latest ffmpeg: https://trac.ffmpeg.org/wiki/UbuntuCompilationGuide

— Reply to this email directly or view it on GitHubhttps://github.com/themacks/ply/issues/2#issuecomment-41281332 .

themacks commented 10 years ago

I'm working on a change that will use ffmpeg as a default but use avconv if it is not found. There will also be a command line option to specify avconv over ffmpeg if you want. I'll probably get it pushed in the next day or so.