botwave icon indicating copy to clipboard operation
botwave copied to clipboard

[Bug]: streaming from another device

Open yusuferc opened this issue 7 months ago • 17 comments

Describe the bug

if im in botwave mode i cant type ffmpeg command bu if im not in botwave mode i can type ffmpeg but i cant transmit

To Reproduce

No response

OS

Raspberry Pi OS Lite X64

Version

idk

Machine (Hardware)

rpi4

Additional context

No response

yusuferc avatar Apr 17 '26 17:04 yusuferc

Are you following a specific tutorial ? Some commands are inteded to run on a regular shell and others on a BotWave one. If you'd wish to run a regular shell command into a BotWave one you can prepend a < to it, like this : < ffmpeg --version, but it isnt recommanded for blocking processes. Could you maybe give more details about what you're doing ?

douxxtech avatar Apr 17 '26 17:04 douxxtech

im trying to stream from windows and im following the github tutorial

yusuferc avatar Apr 17 '26 17:04 yusuferc

Oh, this one right ? https://github.com/dpipstudio/botwave/wiki/Live-broadcasting

For this one you'd need two shells: one with botwave, and one without. The commands in BotWave shells are shown with

botwave> [command here]

The ones that don't have botwave> are supposed to be ran into a regular shell :)

douxxtech avatar Apr 17 '26 17:04 douxxtech

after i run the ffmpeg command i cant go into botwave shell

yusuferc avatar Apr 17 '26 17:04 yusuferc

Yea it's a blocking command. If you're using SSH, just open a new ssh session. If you're directly on your raspberry pi, you can switch terminals (ttys) using Alt + F1,2,3,etc

douxxtech avatar Apr 17 '26 17:04 douxxtech

now it works but the stream is delayed

yusuferc avatar Apr 17 '26 17:04 yusuferc

Yup, that's sadly not a BotWave issue, but more of a network one. The data has to travel all over your wifi to go back to the pi, which can result in a ~5s lag :/

douxxtech avatar Apr 17 '26 17:04 douxxtech

on ethernet?

yusuferc avatar Apr 17 '26 17:04 yusuferc

It should be faster, but a "real time" transmission is still not possible, since there also is audio in incoding/decoding. I think that the fastest way would be using a pi zero gadget mode to transmit audio, but it's pretty hard to achieve.

It was not really meant to be a real time transmission but more of a easy way to control the broadcast on another device

douxxtech avatar Apr 17 '26 17:04 douxxtech

also i have an antenna from a baofeng walkie talki would it be better than a wire

yusuferc avatar Apr 17 '26 18:04 yusuferc

It would work, but don't try to go too overkill, after a certain point the pi is not powerful enough to "use" the full antenna and you'll just lose signal strenght

douxxtech avatar Apr 17 '26 18:04 douxxtech

its small 11 cm i think

yusuferc avatar Apr 17 '26 18:04 yusuferc

Oh, I fear that it isn't long enough. The formula is length_meters = 75/freq_mhz so the ideal length for 90MHz should be about 85cm

douxxtech avatar Apr 17 '26 18:04 douxxtech

1 meter?

yusuferc avatar Apr 17 '26 19:04 yusuferc

it should be fine

douxxtech avatar Apr 17 '26 19:04 douxxtech

for all frequencies?

yusuferc avatar Apr 17 '26 19:04 yusuferc

Yup

douxxtech avatar Apr 17 '26 19:04 douxxtech