V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
爱意满满的作品展示区。
sunhang09

实现了树莓派摄像头回传数据给手机端

  •  1
     
  •   sunhang09 · Oct 1, 2023 · 2556 views
    This topic created in 945 days ago, the information mentioned may be changed or developed.
    用了 1 个月多,✌️从 0 经验到功能实现出来——树莓派采集视频回传给 android 手机。树莓派端代码 https://github.com/sunhang/capture ,手机端代码 https://github.com/sunhang/prj0
    用 v4l2 做视频采集,用 x264 库做 h264 编码,用 tcp 传输,用 ffmpeg 库做 yu12 解码。

    演示视频在 B 站: https://www.bilibili.com/video/BV1nV411F7wv/?vd_source=a643cd4183fb58a03eec1afd594fa3f1
    10 replies    2023-10-04 14:05:11 +08:00
    Seanfuck
        1
    Seanfuck  
       Oct 1, 2023
    牛,用着稳定不?
    Americano
        2
    Americano  
       Oct 1, 2023
    老哥,背景音乐是哪首歌来的?求名字
    Hconk
        3
    Hconk  
       Oct 1, 2023 via iPhone
    做为练手项目不错,很能扩展很多,比如增加验证之类的。。如果让上学时候的我整这个大概率也是这样,ffmpeg 编码手写 socket 通信。让现在的我做大概咋简单咋来,直接命令行装个 gstreamer 做 rtsp 推流,安卓装个 vlc 完事。。
    sunhang09
        4
    sunhang09  
    OP
       Oct 2, 2023
    @lzd123 bmg 是《梦的地方》
    sunhang09
        5
    sunhang09  
    OP
       Oct 2, 2023
    @Seanfuck 算是 demo 。bug 应该是有的
    sunhang09
        6
    sunhang09  
    OP
       Oct 2, 2023
    @Hconk 我用过 libcamera-vid ,延迟严重,它的文档又很少。于是决定自己纯手写了。
    vsyf
        7
    vsyf  
       Oct 2, 2023
    video_socket 换成通用的协议就更好了。
    音视频的应用我觉得 c++更方便。
    看我这个 https://github.com/vsyf/OpenCamera
    PaulSamuelson
        8
    PaulSamuelson  
       Oct 4, 2023
    是不是 拍的视频不会在树莓派落盘?
    sunhang09
        9
    sunhang09  
    OP
       Oct 4, 2023
    @vsyf 好的
    sunhang09
        10
    sunhang09  
    OP
       Oct 4, 2023
    @duanquanwu 落盘是啥?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1641 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 00:01 · PVG 08:01 · LAX 17:01 · JFK 20:01
    ♥ Do have faith in what you're doing.