shortstheory / APStreamline

Live Video Streaming Made Easy!
GNU General Public License v3.0
117 stars 35 forks source link

error in device file reading #12

Closed profff closed 3 years ago

profff commented 3 years ago

I've try to follow error and it looks when creating AdaptiveStream object I've setup a fresh raspian buster install on rpi4

$ meson build
The Meson build system
Version: 0.52.1
Source dir: /home/pi/APStreamline
Build dir: /home/pi/APStreamline/build
Build type: native build
Project name: adaptive-streaming
Project version: undefined
C compiler for the host machine: cc (gcc 8.3.0 "cc (Raspbian 8.3.0-6+rpi1) 8.3.0")
C linker for the host machine: GNU ld.bfd 2.31.1
C++ compiler for the host machine: c++ (gcc 8.3.0 "c++ (Raspbian 8.3.0-6+rpi1) 8.3.0")
C++ linker for the host machine: GNU ld.bfd 2.31.1
Host machine cpu family: arm
Host machine cpu: armv7l
Found pkg-config: /usr/bin/pkg-config (0.29)
Run-time dependency gstreamer-1.0 found: YES 1.14.4
Run-time dependency gstreamer-rtp-1.0 found: YES 1.14.4
Run-time dependency gstreamer-rtsp-1.0 found: YES 1.14.4
Run-time dependency gstreamer-rtsp-server-1.0 found: YES 1.14.4
Run-time dependency threads found: YES 
Run-time dependency libconfig++ found: YES 1.5
Build targets in project: 1
Found ninja-1.8.2 at /usr/bin/ninja
pi@raspberrypi:~/APStreamline $ cd build/
pi@raspberrypi:~/APStreamline/build $ ninja
[14/14] Linking target stream_server.
pi@raspberrypi:~/APStreamline/build $ ./stream_server wlan0
"/home/pi/APStreamline/build"
Interface : wlan0
Address : 192.168.0.20
***APStreamline***
Access the following video streams using VLC or gst-launch following the instructions here: https://github.com/shortstheory/adaptive-streaming#usage
==============================
Reading RPi config
I/O error while reading file.
terminate called after throwing an instance of 'std::out_of_range'
  what():  _Map_base::at
Aborted
pi@raspberrypi:~/APStreamline/build $ uname -a
Linux raspberrypi 5.4.72-v7l+ #1356 SMP Thu Oct 22 13:57:51 BST 2020 armv7l GNU/Linux
profff commented 3 years ago

it looks to comes with v2 as my fork from last release still works well

shortstheory commented 3 years ago

Hi, yes, in the v2 build, you must run the executable from the same folder as the config folder. So instead of ./stream_server wlan0, do:

cd ..
./build/stream_server wlan0
profff commented 3 years ago

Oh ok sory for that mistake i will retry this asap (for now I stick to thé v1 )

Le jeu. 5 nov. 2020 à 16:18, arnav dhamija notifications@github.com a écrit :

Hi, yes, in the v2 build, you must run the executable from the same folder as the config folder. So instead of ./stream_server wlan0, do:

cd .. ./build/stream_server wlan0

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/shortstheory/APStreamline/issues/12#issuecomment-722443404, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABAMLLFXJDZ2CY67EIHGSM3SOK64DANCNFSM4TLM4OPA .