maddox / wallop

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

Trouble opening m3u8 stream #11

Closed computmaxer closed 11 years ago

computmaxer commented 11 years ago

First I just want to say thank you for making wallop! I will be working on first streaming to a simple Roku app for football season, then I may see if I can get it to stream to a plex media server. Should be fairly easy with your API.

I've got it running on my Mac, but I am unable to get the streams to actually play. I've tried it in Safari as well as opening the stream in VLC, both just hang there and don't display anything. I can see the clients are making GET requests to get the m3u8 and .ts files, but they never actually play the video. I can also see ffmpeg working. Any idea why I'm having trouble viewing the stream?

In case it helps, here is the output of ffmpeg -i. I compiled it just a few days ago.

ffmpeg version N-56198-gbbcaf25 Copyright (c) 2000-2013 the FFmpeg developers
  built on Sep 12 2013 00:33:06 with llvm-gcc 4.2.1 (LLVM build 2336.11.00)
  configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libaacplus --enable-libcelt --enable-libfaac --enable-libfdk-aac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-openssl --enable-libtheora --enable-libvo-aacenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --prefix=/usr/local
  libavutil      52. 43.100 / 52. 43.100
  libavcodec     55. 31.101 / 55. 31.101
  libavformat    55. 16.102 / 55. 16.102
  libavdevice    55.  3.100 / 55.  3.100
  libavfilter     3. 84.100 /  3. 84.100
  libswscale      2.  5.100 /  2.  5.100
  libswresample   0. 17.103 /  0. 17.103
  libpostproc    52.  3.100 / 52.  3.100
computmaxer commented 11 years ago

@maddox Any idea what could be causing this?

maddox commented 11 years ago

I'm not sure. Do you see the .ts segments on disk? Is ffmpeg actually producing them? What's the channel number you're tuning?

computmaxer commented 11 years ago

Yes, I see the .ts segments being created. I've attempted 8.1 (local CBS) and 51.7 (Comedy Central) both with the same result.

I see the clients hitting the webserver for the files in the server log output:

127.0.0.1 - - [18/Sep/2013 13:51:22] "GET /channels/51.711.ts HTTP/1.1" 200 2386 0.0006
127.0.0.1 - - [18/Sep/2013 13:51:27] "GET /channels/51.7.m3u8 HTTP/1.1" 200 176 0.0010
127.0.0.1 - - [18/Sep/2013 13:51:27] "GET /channels/51.712.ts HTTP/1.1" 200 2386 0.0006
127.0.0.1 - - [18/Sep/2013 13:51:31] "GET /channels/51.7.m3u8 HTTP/1.1" 200 176 0.0012
127.0.0.1 - - [18/Sep/2013 13:51:33] "GET /channels/51.7.m3u8 HTTP/1.1" 200 177 0.0007
127.0.0.1 - - [18/Sep/2013 13:51:33] "GET /channels/51.713.ts HTTP/1.1" 200 2386 0.0006

But video never begins playing with either Safari or VLC.

maddox commented 11 years ago

I've attempted 8.1 (local CBS) and 51.7 (Comedy Central) both with the same result.

That's the problem.

afc5cab145afb348cd5f07945c89b740ff3cfb2f and 5c8a51b4ec0c35940d7d373f0697f54c2f371f30 fixed the problem with ATSC channel tuning. Have you pulled master recently? Do that and try again.

computmaxer commented 11 years ago

Ahhh, no I don't have those changes. Great, thanks! :+1:

maddox commented 11 years ago

So then it worked after?

computmaxer commented 11 years ago

Yup! It's awesome, thanks again. I'll be making a little Roku app so I can finally stream from this to my Roku and watch live TV on my projector in the living room.

maddox commented 11 years ago

@computmaxer awesome :thumbsup: that's what it was made for. Using it as the backend for things like that :metal: