Go to advanced search

by napajedlaci.cz
Thu Sep 02, 2021 8:27 am
Forum: Beginners
Topic: Mosfet IRF520
Replies: 6
Views: 344

Mosfet IRF520

I bought a mosfet IRF520 and found out that it doesn't work with RPI. 3.3V is probably not enough. How can I use the IRF520? I thought of the PC817 optocoupler, but I have no idea how to connect it. Can you advise?
I have IRF520 due to higher load of LED diodes.
by napajedlaci.cz
Wed Apr 14, 2021 5:07 pm
Forum: Beginners
Topic: Stream to Youtube and Facebook together
Replies: 0
Views: 99

Stream to Youtube and Facebook together

Is it possible to stream from the camera module to Raspberry 3 (4) simultaneously on Youtube and Facebook?
by napajedlaci.cz
Sun Jan 10, 2021 1:40 pm
Forum: Beginners
Topic: How kill my upload.sh?
Replies: 1
Views: 120

How kill my upload.sh?

I need to do a kill on a running file via crontab. Can you help how to do it via bash?
I tried it through a script, but it doesn't work.

Code: Select all

kill $(ps -ef | grep upload.sh | awk '{print $2}')
by napajedlaci.cz
Sun Jan 10, 2021 11:08 am
Forum: Troubleshooting
Topic: Run the * .sh file in the background
Replies: 6
Views: 232

Re: Run the * .sh file in the background

I need to keep Youtube. It occurred to me to check the LAN out, if it drops after 10kB for a long time, it will mean the connection is lost. Even as I watched the stream work, it only jammed the image, which remained hanging at the same time. It was as if the raspivid was stuck. This might be in con...
by napajedlaci.cz
Sun Jan 10, 2021 10:21 am
Forum: Troubleshooting
Topic: Run the * .sh file in the background
Replies: 6
Views: 232

Re: Run the * .sh file in the background

I will be very happy for any advice. Here is stream.sh #!/bin/bash # Text TEXT="%d.%m.%Y %X\nwebcam in town" # Rotace kamery ROTATE=180 # Pocet snimku za sekundu FRAMERATE=25 # 2x vetsi jak framerate KEYFRAME=50 # Video bitrate (kvalita prenosu) BITRATE=3500000 # URL adresa pro stremovani ...
by napajedlaci.cz
Sun Jan 10, 2021 9:31 am
Forum: Troubleshooting
Topic: Run the * .sh file in the background
Replies: 6
Views: 232

Run the * .sh file in the background

Hi, I created the file /home/pi/stream.sh and I need to run it in the background. I'm currently running it after a reboot via crontab -e as @reboot sleep 50 && /home/pi/stream.sh But after about 10 hours the stream stopped working and I need to start it again. I don't always want to restart ...
by napajedlaci.cz
Sat Jan 09, 2021 12:53 pm
Forum: Camera board
Topic: Annotateex in raspivid not working
Replies: 0
Views: 138

Annotateex in raspivid not working

I have problem with background color over --annotateex. I have code in raspivid mode 5:

Code: Select all

-a "Annotation text" --annotateex 16,0xff,0x808000
And video is. Text background color is missing. Is not there. :roll:
Image
by napajedlaci.cz
Sat Jan 09, 2021 10:06 am
Forum: Camera board
Topic: How long does the sensor chip last in life in the V2 camera
Replies: 3
Views: 264

How long does the sensor chip last in life in the V2 camera

How long does the sensor chip last in life in the V2 camera when tamped at 25fps in 1080p? Will the sensor chip last at least 3 to 4 years? I just see if it's better to take pictures than make a video.
by napajedlaci.cz
Wed Jan 06, 2021 3:45 pm
Forum: Beginners
Topic: How install for Gstreamer - omxh264enc?
Replies: 10
Views: 2702

Re: How install for Gstreamer - omxh264enc?

gstreamer1.0-omx-rpi-config works, but they do not install gstream itself sudo apt install gstreamer1.0 pi@raspberrypi:~ $ sudo apt install gstreamer1.0 Reading package lists... Done Building dependency tree Reading state information... Done Note, selecting 'gstreamer1.0-python-dbg-plugin-loader' f...
by napajedlaci.cz
Wed Jan 06, 2021 2:51 pm
Forum: Beginners
Topic: How install for Gstreamer - omxh264enc?
Replies: 10
Views: 2702

Re: How install for Gstreamer - omxh264enc?

I performed a new, clean installation of Raspbian, followed by an update and upgrade. However, the gstream installation still did not work. pi@raspberrypi:~ $ sudo apt purge gstreamer1.0-omx Reading package lists... Done Building dependency tree Reading state information... Done Package 'gstreamer1....
by napajedlaci.cz
Wed Jan 06, 2021 1:59 pm
Forum: Beginners
Topic: How install for Gstreamer - omxh264enc?
Replies: 10
Views: 2702

Re: How install for Gstreamer - omxh264enc?

pi@raspberrypi:~ $ cat /etc/os-release PRETTY_NAME="Raspbian GNU/Linux 10 (buster)" NAME="Raspbian GNU/Linux" VERSION_ID="10" VERSION="10 (buster)" VERSION_CODENAME=buster ID=raspbian ID_LIKE=debian HOME_URL="http://www.raspbian.org/" SUPPORT_URL=&q...
by napajedlaci.cz
Wed Jan 06, 2021 1:44 pm
Forum: Beginners
Topic: How install for Gstreamer - omxh264enc?
Replies: 10
Views: 2702

Re: How install for Gstreamer - omxh264enc?

Gstreamer can't even be installed. sudo apt-get install gstreamer1.0 The following packages have unmet dependencies: gstreamer1.0-omx-dbg : Depends: gstreamer1.0-omx (= 1.0.0.1-0+rpi12+jessiepmg) but 1.14.4-1+rpt1 is to be installed gstreamer1.0-python3-dbg-plugin-loader : Conflicts: gstreamer1.0-py...
by napajedlaci.cz
Wed Jan 06, 2021 12:46 pm
Forum: Beginners
Topic: How install for Gstreamer - omxh264enc?
Replies: 10
Views: 2702

Re: How install for Gstreamer - omxh264enc?

After reboot .... WARNING: erroneous pipeline: no element "omxh264enc" My bash script is: gst-launch-1.0 v4l2src device=/dev/video0 ! image/jpeg,width=1920,height=1080,framerate=25/1 ! queue ! jpegdec ! clockoverlay halignment=center shaded-background=true font-desc="Sans, 8" tex...
by napajedlaci.cz
Tue Jan 05, 2021 10:24 pm
Forum: Beginners
Topic: How install for Gstreamer - omxh264enc?
Replies: 10
Views: 2702

How install for Gstreamer - omxh264enc?

I need install for Gsreamer omxh264enc. How do I install it?
by napajedlaci.cz
Sat Jan 02, 2021 3:03 pm
Forum: Camera board
Topic: Raspivid in mode 2 is too slow, why? Speed only 0.64x
Replies: 3
Views: 333

Re: Raspivid in mode 2 is too slow, why? Speed only 0.64x

How to change the script to make the hardware ffmpeg work?
by napajedlaci.cz
Sat Jan 02, 2021 2:16 pm
Forum: Camera board
Topic: Raspivid in mode 2 is too slow, why? Speed only 0.64x
Replies: 3
Views: 333

Raspivid in mode 2 is too slow, why? Speed only 0.64x

I need to run a stream on Youtube on RPI3. Mode 2 offers 1920x1080px at 25fps, but ffmpeg speed is barely 0.656x to 0.750x and the video is chopped. Can this speed be accelerated to be slightly over 1? MY CODE: raspivid -o - -t 0 -md 2 -fps 25 -b 3000000 | ffmpeg -ar 44100 -ac 2 -acodec pcm_s16le -f...
by napajedlaci.cz
Fri Dec 11, 2020 2:41 pm
Forum: Beginners
Topic: FFMPEG hardware H.264 - HOW?
Replies: 0
Views: 177

FFMPEG hardware H.264 - HOW?

I have install ffmpeg on Raspberry PI 2: sudo apt-get install ffmpeg

How do I turn on hardware acceleration for FLV-H.264?
by napajedlaci.cz
Thu Dec 10, 2020 10:25 pm
Forum: Advanced users
Topic: gstreamer /dev/video0 and youtube, how?
Replies: 0
Views: 256

gstreamer /dev/video0 and youtube, how?

I found a gstreamer code that can stream video to youtube. I have a webcam supporting mjpeg and I would like to stream the image on youtube.
Can you advise?
by napajedlaci.cz
Thu Dec 10, 2020 3:19 pm
Forum: Beginners
Topic: FFMPEG video OK, but audio no
Replies: 1
Views: 142

Re: FFMPEG video OK, but audio no

Audio works, but video doesn't work. Can anyone fix the script for me to work? :? #!/bin/sh ffmpeg \ -f video4linux2 \ -i /dev/video0 \ -r 30 \ -s 1920x1080 \ -thread_queue_size 4096 \ -f alsa -i plughw:1,0 \ -thread_queue_size 64 \ -vf drawtext="fontsize=90:fontcolor=white:text='%{localtime\:%...
by napajedlaci.cz
Tue Dec 08, 2020 8:14 pm
Forum: Beginners
Topic: FFMPEG video OK, but audio no
Replies: 1
Views: 142

FFMPEG video OK, but audio no

I need help setting up ffmpeg. I have a webcam via USB (Waveshare IMX179 8MPx) and when I stream via ffmpeg, the video works, but there is no sound. Can anyone advise how to turn on stereo sound? ffmpeg -threads 0 -f v4l2 -i /dev/video0 -ar 44100 -ac 2 -acodec pcm_s16le -f s16le -ac 2 -i /dev/zero -...
by napajedlaci.cz
Sat Dec 05, 2020 2:17 pm
Forum: Camera board
Topic: PICAMERA - problem with stream on youtube (NameError: name 'stream' is not defined)
Replies: 1
Views: 275

PICAMERA - problem with stream on youtube (NameError: name 'stream' is not defined)

Hi, I have problem with stream video to youtube.com. I Have error: stream.stdin.close() NameError: name 'stream' is not defined This is my code: #!/usr/bin/env python3 import subprocess import picamera import time YOUTUBE="rtmp://a.rtmp.youtube.com/live2/" KEY="xxxxxxx" stream_cm...
by napajedlaci.cz
Fri Dec 04, 2020 3:22 pm
Forum: Camera board
Topic: Best config raspivid for stream to youtube
Replies: 1
Views: 178

Best config raspivid for stream to youtube

I need advice on which best command to create a video for a live stream on youtube you are using. I have a camera outside and nothing can be seen there at night. Do you have an automatic script that will work day and night?

Thank you very much for your help.
by napajedlaci.cz
Mon Nov 30, 2020 8:57 am
Forum: Beginners
Topic: Youtube live stream, can it even be archived?
Replies: 3
Views: 215

Re: Youtube live stream, can it even be archived?

Will the camera module no longer damage the live broadcast? So far, I have taken pictures every 5 minutes. I don't want the camera to last only a year during live broadcast. She wore out more.
by napajedlaci.cz
Mon Nov 30, 2020 8:44 am
Forum: Beginners
Topic: Youtube live stream, can it even be archived?
Replies: 3
Views: 215

Youtube live stream, can it even be archived?

I want to build a webcam with live broadcast via the camera module, broadcast on youtube. Can youtube store this live stream for a while and make it an archive? Or what keeps them live and the video cannot be played back?
by napajedlaci.cz
Fri Oct 30, 2020 1:19 pm
Forum: Beginners
Topic: How connect JSN-SR04T with RPI? 5V?
Replies: 5
Views: 844

Re: How connect JSN-SR04T with RPI? 5V?

Wouldn't mind the ultrasound that goes on a TRIG of just 3.3V? Shouldn't 5V be the best?

Go to advanced search