Raspberry π

Posted on
Page
of 41
  • The mpeg4 codec output isn't liked by twitter so the 3min option would be good for almost anything but this purpose.

    I think it is to do with something called yuv240p so I defo need more cpu oomph to make this work with the codecs that produce that (h264 and libx264, the latter better quality).

    I'm probably missing lots. The ffmpeg guide is useful but depends on some lower level understanding I'm yet to develop.

    Edit: testing making the video via mpeg4 then running ffmpeg again to convert with libx264 so in theory less simultaneous work for the zero. It is still quite slow it seems though, most of the effort is getting it into the twitter happy format.

    (this thread is becoming my diary of this too, very public, much sorry).

  • I'll drop it off next time I'm out running errands or stocking up at Unicorn. No need for beer this time, although offer is appreciated.

  • N00b question, does this (from ps ux) mean the script is running twice at the same time?

    pi        1124  0.3  5.0  94732 18840 pts/1    Sl+  18:43   0:12 python3 ./5into15_v7.py
    pi        1166  0.0  0.2   1924  1104 pts/1    S+   18:52   0:00 /bin/sh -c ffmpeg -loglevel error -i 5into15mpeg4.mp4 -an -c:v libx264 -crf 17 5into15.mp4
    pi        1167 99.7 50.5 323288 189840 pts/1   RL+  18:52  48:35 ffmpeg -loglevel error -i 5into15mpeg4.mp4 -an -c:v libx264 -crf 17 5into15.mp4
    
    

    Ta.

  • Only just seen this, huge thanks. Unless you've given up there will be beer though? Something Summery?

  • I'm not sure.

    Does pstree make it clearer?

  • No, there are 3 different processes there.

    The python script is executing a /bin/sh shell to run the ffmpeg command.

    python -> shell -> ffmpeg

    Perfectly normal.

  • Ta also, pstree is new to me but looks useful.

  • Is there a recommended book that lists this type of commands? I have the noddy pi & pi 400 books but could do with a yellow pages of raspbian or something.

  • N00b question today... perhaps for wider electronics geeks. How easy is it to fry IR Led's? All my Google searches bring back answers about eye damage from them which is not what I'm looking to address right now.

    I've had one working with IR camera picking up the light from it (screenshot) but suddenly it isn't, a second one isn't either. Both are reclaimed from old remote controls. Replacing them with a regular red LED it is clear the circuit itself is fine, I'm using a 5v and gnd gpio pin & 220ohm resistor as that's what was recommended.

    Once it is reliable (or just working) I can go do some local hedgehog / badger filming.


    1 Attachment

    • 20210322_174255.jpg
  • Also remembering I have a very low threshold for getting completely fucked off by unexplainable stuff like this stopping working, which is why I never progressed with similar stuff when I was younger.

    I'm running out of old remotes to cannibalise.

  • I ordered some different wavelength ir led's, 15 infact just incase. The first has lit up the Whisky box where the (3rd, working) remote control one couldn't.

    Next stop, hedgehogs and badgers for Springwatch. (Unlikely)

    Edit: used an old frog tape box to make a prototype case, (edit again) 2 3 x LED's. Pretty chuffed with the result, although it'll have to be enclosed in a hedgehog house for best results, the ir beams don't cast very far outside into open space.


    5 Attachments

    • 20210327_215725.jpg
    • 20210327_231328.jpg
    • 20210327_233803.jpg
    • Screenshot_20210327-234358_Chrome.jpg
    • Screenshot_20210327-235926_Chrome.jpg
  • Work have sent me a *.rdp file for remote working windows to windows

    They also include some connection stuff for if using the Microsoft remote working app for apple. company-rdsfarm is the computer rdgateway@company.org is the gateway

    Is there a way to fudge this connection via Raspbian?

    Google (duckduckgo) quickly answers connection to pi via rdp, or to windows on home network but no joy past that.

  • Item SCP-173 is to be kept in a locked container at all times. When personnel must enter SCP-173's container, no fewer than 3 may enter at any time and the door is to be relocked behind them. At all times, two persons must maintain direct eye contact with SCP-173 until all personnel have vacated and relocked the container.

  • Chrome has a remote desktop extension that might do the job. It's a bit of an arse to find as searching mainly brings up stuff about Chrome Remote Desktop. It might be this possibly https://chrome.google.com/webstore/detai­l/xtralogic-rdp-client/fdlpibjfnlhnmeckj­jhfiejfdghkmkdm?hl=en or this https://chrome.google.com/webstore/detai­l/chrome-rdp/cbkkbcmdlboombapidmoeolnmda­cpkch (I think the latter is the one I've used)

    You may also have some luck with this
    http://xrdp.org/
    It's one of those things I started looking into but never properly did anything about.

  • You need an RDP client on your RPi if it doesn't already have one. remmina looks popular. I could be wrong but isn't an *.rdp file just the remote computer details, possibly in plaintext?

  • Many of the Linux/Mac tools can't handle RD Gateways (which is like a proxy host for the RD connection) though.

    Those people ended up having to use a Windows VM to get access to Windows Remote Desktop which does deal with RD Gateways properly.

  • I've used rdesktop (natively in ubuntu, so should be ok in raspbian as they are both debian-based) and vncviewer (over wine)

  • I know a few of our users on Linux use Remmina as their RD client

  • It sounds like remmina should do the job, and yes the rdp file is text, it contains the same computer & gateway info i posted earlier, but doesn't give enough info for me to connect via remmina.

    Turns out my work account doesn't have remote access permissions enabled at present either so I've parked this until they sort that for me.

  • I apt-getted xrdp and rdesktop but neither gave me a launch icon on the menu. The chrome extension looks good too, I sent that and remmina to the support bods to look at.

    Thanks all.

  • It's amazing what a lego horse in a whisky box conjures up in others minds!

  • Pi 4 has been a constant annoyance. I have semi-random but very frequent problems with wifi on the bootup, where if the interface doesn't get up initially then a reboot is definitely needed but the problem can just repeat over a number of restarts. I think I've even tested reloading the kernel module to no avail. Having something plugged in the USB ports seems to affect the issue, which is a pain since I'm using the device for streaming to USB hi-fi DAC. So there's almost always some fiddling required to get things running.

    I've found similar reports without any working solutions. Apparently there are known issues with USB 3 and wifi in general, I guess one thing to try would be using a separate USB wifi dongle. I think I should have one laying around... somewhere.

    /whine

  • You can create a .desktop launcher fairly uneasily, if I recall

  • I haven't had this problem on any of my three pi 4s but did see that it's a known issue. Two of my three have been up on WiFi for 4 months without disconnects.

    Puzzling isn't it?

    Wasn't there a theory that either 4k video or Bluetooth was causing interference?

    Which distro are you using?

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

Raspberry π

Posted by Avatar for photoben @photoben

Actions