{"id":8136,"date":"2021-01-31T08:38:00","date_gmt":"2021-01-31T07:38:00","guid":{"rendered":"https:\/\/monodes.com\/predaelli\/?p=8136"},"modified":"2021-01-31T08:38:02","modified_gmt":"2021-01-31T07:38:02","slug":"piping-video-over-ssh","status":"publish","type":"post","link":"https:\/\/monodes.com\/predaelli\/2021\/01\/31\/piping-video-over-ssh\/","title":{"rendered":"Piping video over ssh"},"content":{"rendered":"\n<p>My situation is not the same depicted in<em> &#8220;<a href=\"https:\/\/unix.stackexchange.com\/questions\/2302\/can-i-pipe-dev-video-over-ssh\">Can I pipe \/dev\/video over<\/a><\/em><a href=\"https:\/\/unix.stackexchange.com\/questions\/2302\/can-i-pipe-dev-video-over-ssh\"> ssh<\/a>&#8221; but I have a similar need. See an audio-video flow from an RTSP camera which is not accessible &#8211; by choice! &#8211; from the net but there is an accessible Linux machine which can talk to such a camera.<\/p>\n\n\n\n<p>So in my case it&#8217;s just as simple as<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\" data-line=\"\">ssh $USER@$SERVER -p $MYPORT ffmpeg -i rtsp:$IP_OF_RTSP_CAMERA:$RTSP_PORT\/s0  -f matroska - |ffplay -f matroska \/dev\/stdin\n<\/code><\/pre>\n\n\n\n<p>Actually the machine is not directly on the net but I use <a href=\"https:\/\/github.com\/daradib\/sidedoor\">sidedoor<\/a> which maintains an SSH connection or tunnel with a shell script daemon.<\/p>\n","protected":false},"excerpt":{"rendered":"<p class=\"excerpt\">My situation is not the same depicted in &#8220;Can I pipe \/dev\/video over ssh&#8221; but I have a similar need. See an audio-video flow from an RTSP camera which is not accessible &#8211; by choice! &#8211; from the net but there is an accessible Linux machine which can talk to such a camera. So in&hellip;<\/p>\n<p class=\"more-link-p\"><a class=\"more-link\" href=\"https:\/\/monodes.com\/predaelli\/2021\/01\/31\/piping-video-over-ssh\/\">Read more &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[1],"tags":[],"class_list":["post-8136","post","type-post","status-publish","format-standard","hentry","category-senza-categoria"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6daft-27e","jetpack-related-posts":[{"id":5064,"url":"https:\/\/monodes.com\/predaelli\/2018\/12\/13\/how-to-force-ssh-client-to-use-only-password-auth-unix-linux-stack-exchange\/","url_meta":{"origin":8136,"position":0},"title":"How to force ssh client to use only password auth? &#8211; Unix &#038; Linux Stack Exchange","author":"Paolo Redaelli","date":"2018-12-13","format":false,"excerpt":"How to force ssh client to use only password auth? - Unix & Linux Stack Exchange ssh -o PreferredAuthentications=password -o PubkeyAuthentication=no example.com","rel":"","context":"In &quot;Documentations&quot;","block_context":{"text":"Documentations","link":"https:\/\/monodes.com\/predaelli\/category\/documentations\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2547,"url":"https:\/\/monodes.com\/predaelli\/2017\/06\/02\/forwarding-audio-elsewhere-on-linux\/","url_meta":{"origin":8136,"position":1},"title":"Forwarding audio elsewhere on Linux","author":"Paolo Redaelli","date":"2017-06-02","format":false,"excerpt":"These days I've been attending to an online course that require me not to do anything else in the user session beside watching and listening. Actually I've been able to pass two checks while I've been hacking on another machine, just listening and watching now and then. But it's boring\u2026","rel":"","context":"In &quot;Documentations&quot;","block_context":{"text":"Documentations","link":"https:\/\/monodes.com\/predaelli\/category\/documentations\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":7197,"url":"https:\/\/monodes.com\/predaelli\/2020\/05\/12\/usare-gparted-su-ssh\/","url_meta":{"origin":8136,"position":2},"title":"Usare GParted su SSH","author":"Paolo Redaelli","date":"2020-05-12","format":false,"excerpt":"Della serie in inglese c'\u00e8 tutto, in italiano minga tropp, vediamo di spiegare come avviare GParted su una connessione SSH. Su Ask Ubuntu c'\u00e8 un bello scambio che spiega tutto. In inglese ovviously. Sul perch\u00e9 uno vorrebbe fare una cosa del genere c'\u00e8 una comoda spiegazione: la fifa blu di\u2026","rel":"","context":"In &quot;Senza categoria&quot;","block_context":{"text":"Senza categoria","link":"https:\/\/monodes.com\/predaelli\/category\/senza-categoria\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":5354,"url":"https:\/\/monodes.com\/predaelli\/2019\/03\/16\/github-marcan-takeover-sh-wipe-and-reinstall-a-running-linux-system-via-ssh-without-rebooting-you-know-you-want-to\/","url_meta":{"origin":8136,"position":3},"title":"GitHub &#8211; marcan\/takeover.sh: Wipe and reinstall a running Linux system via SSH, without rebooting. You know you want to.","author":"Paolo Redaelli","date":"2019-03-16","format":"link","excerpt":"https:\/\/github.com\/marcan\/takeover.sh?fbclid=IwAR1zuY9uyNJyFvfHjNlxC4koSjjHAWxd2GBu8TMEaYa2XFCNb5bdF3EY0w4","rel":"","context":"In &quot;Senza categoria&quot;","block_context":{"text":"Senza categoria","link":"https:\/\/monodes.com\/predaelli\/category\/senza-categoria\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2443,"url":"https:\/\/monodes.com\/predaelli\/2017\/05\/09\/building-a-ceph-cluster-on-raspberry-pi\/","url_meta":{"origin":8136,"position":4},"title":"Building a Ceph Cluster on Raspberry Pi","author":"Paolo Redaelli","date":"2017-05-09","format":"link","excerpt":"Building a Ceph Cluster on Raspberry Pi - Bryan Apperson As the author clearly stated in a comment, this is more of a proof-of-concept for learning ceph, not for a real deploy as it's not meant to be cheaper per GB, but cheaper for initial cost: a \"3 figure cost\u2026","rel":"","context":"In &quot;Documentations&quot;","block_context":{"text":"Documentations","link":"https:\/\/monodes.com\/predaelli\/category\/documentations\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":8643,"url":"https:\/\/monodes.com\/predaelli\/2021\/08\/23\/very-useful-and-not-much-known-linux-commands-that-you-probably-arent-using-in-your-daily-life\/","url_meta":{"origin":8136,"position":5},"title":"Very useful and not much known Linux commands that you probably aren\u2019t using in your daily life","author":"Paolo Redaelli","date":"2021-08-23","format":false,"excerpt":"redo the last command but as root sudo !! open an editor to run a command (probably a long one) ctrl + x + e create a super-fast disk for IO dependant task to run on it mkdir -p \/mnt\/ramdisk && mount -t tmpfs tmpfs \/mnt\/ramdisk -o size=8192M don\u2019t add\u2026","rel":"","context":"In &quot;Senza categoria&quot;","block_context":{"text":"Senza categoria","link":"https:\/\/monodes.com\/predaelli\/category\/senza-categoria\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/posts\/8136","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/comments?post=8136"}],"version-history":[{"count":0,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/posts\/8136\/revisions"}],"wp:attachment":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/media?parent=8136"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/categories?post=8136"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/tags?post=8136"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}