Git Product home page Git Product logo

Comments (21)

gtxaspec avatar gtxaspec commented on August 9, 2024

@Vendo232 what are you using to measure the bitrate?

from wz_mini_hacks.

gtxaspec avatar gtxaspec commented on August 9, 2024

Can you try to ffmpeg -i <file> to compare between RTSP fw and wz_mini?

this is what i show from wz_mini:

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    title           : LIVE555 Streaming Media v2022.04.15
    encoder         : Lavf58.76.100
    comment         : LIVE555 Streaming Media v2022.04.15
  Duration: 00:00:34.06, start: 0.000000, bitrate: 982 kb/s
  Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080, 980 kb/s, 19.99 fps, 20 tbr, 90k tbn, 40 tbc (default)
    Metadata:
      handler_name    : VideoHandler
      vendor_id       : [0][0][0][0]

you can use the command ffmpeg -i rtsp://user:pass@ip:8554/unicast -acodec copy -vcodec copy test.mp4 to record

from wz_mini_hacks.

gtxaspec avatar gtxaspec commented on August 9, 2024

there may be a bug in the v4l2rtspserver when audio is enabled the bitrate is much lower and lots of stream errors, at least for me.

i will try to recompile, and also test a different version of the rtspserver.

from wz_mini_hacks.

gtxaspec avatar gtxaspec commented on August 9, 2024

this is fixed now

from wz_mini_hacks.

Vendo232 avatar Vendo232 commented on August 9, 2024

Can you try to ffmpeg -i <file> to compare between RTSP fw and wz_mini?

this is what i show from wz_mini:

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    title           : LIVE555 Streaming Media v2022.04.15
    encoder         : Lavf58.76.100
    comment         : LIVE555 Streaming Media v2022.04.15
  Duration: 00:00:34.06, start: 0.000000, bitrate: 982 kb/s
  Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080, 980 kb/s, 19.99 fps, 20 tbr, 90k tbn, 40 tbc (default)
    Metadata:
      handler_name    : VideoHandler
      vendor_id       : [0][0][0][0]

you can use the command ffmpeg -i rtsp://user:pass@ip:8554/unicast -acodec copy -vcodec copy test.mp4 to record

here is the RTSP WZ HACK file

' ffmpeg version 2022-05-12-git-30e2bb0f64-full_build-www.gyan.dev Copyright (c) 2000-2022 the FFmpeg developers
built with gcc 11.3.0 (Rev1, Built by MSYS2 project)
configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libdavs2 --enable-libuavs3d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libaom --enable-libjxl --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-liblensfun --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libshaderc --enable-vulkan --enable-libplacebo --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint
libavutil 57. 24.101 / 57. 24.101
libavcodec 59. 28.100 / 59. 28.100
libavformat 59. 23.100 / 59. 23.100
libavdevice 59. 6.100 / 59. 6.100
libavfilter 8. 38.100 / 8. 38.100
libswscale 6. 6.100 / 6. 6.100
libswresample 4. 6.100 / 4. 6.100
libpostproc 56. 5.100 / 56. 5.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'b.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf58.45.100
Duration: 00:02:26.03, start: 0.000000, bitrate: 287 kb/s
Stream #0:00x1: Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 1920x1080, 285 kb/s, 20 fps, 20 tbr, 10240 tbn (default)
Metadata:
handler_name : VideoHandler
vendor_id : [0][0][0][0] '

and here is from wyze rtsp fw

' ffmpeg version 2022-05-12-git-30e2bb0f64-full_build-www.gyan.dev Copyright (c) 2000-2022 the FFmpeg developers
built with gcc 11.3.0 (Rev1, Built by MSYS2 project)
configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libdavs2 --enable-libuavs3d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libaom --enable-libjxl --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-liblensfun --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libshaderc --enable-vulkan --enable-libplacebo --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint
libavutil 57. 24.101 / 57. 24.101
libavcodec 59. 28.100 / 59. 28.100
libavformat 59. 23.100 / 59. 23.100
libavdevice 59. 6.100 / 59. 6.100
libavfilter 8. 38.100 / 8. 38.100
libswscale 6. 6.100 / 6. 6.100
libswresample 4. 6.100 / 4. 6.100
libpostproc 56. 5.100 / 56. 5.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'b.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf58.45.100
Duration: 00:02:26.03, start: 0.000000, bitrate: 287 kb/s
Stream #0:00x1: Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 1920x1080, 285 kb/s, 20 fps, 20 tbr, 10240 tbn (default)
Metadata:
handler_name : VideoHandler
vendor_id : [0][0][0][0] '

from wz_mini_hacks.

Vendo232 avatar Vendo232 commented on August 9, 2024

you can achieve the same in VLC player

image

from wz_mini_hacks.

Vendo232 avatar Vendo232 commented on August 9, 2024

I`m going to test the new version today

from wz_mini_hacks.

gtxaspec avatar gtxaspec commented on August 9, 2024

@Vendo232 can you test something for me on your existing install?

from wz_mini_hacks.

Vendo232 avatar Vendo232 commented on August 9, 2024

If course

from wz_mini_hacks.

gtxaspec avatar gtxaspec commented on August 9, 2024

open up vlc and start watching the stream, then connect with ssh, and run the following commands on the camera:

/system/bin/impdbg --enc_rc_s 0:48:4:2048
/system/bin/impdbg --enc_rc_s 0:52:4:2048

then monitor the quality

from wz_mini_hacks.

Vendo232 avatar Vendo232 commented on August 9, 2024

should I look for bitrate?

from wz_mini_hacks.

gtxaspec avatar gtxaspec commented on August 9, 2024

look at the general image quality and see if it is ok for you compared to stock rtsp and anything else

from wz_mini_hacks.

gtxaspec avatar gtxaspec commented on August 9, 2024

you can raise the 2048 number up to 8096 if you want

from wz_mini_hacks.

Vendo232 avatar Vendo232 commented on August 9, 2024

what is the difference between command with 48 and 52? should they be executed toghether everytime?

from wz_mini_hacks.

gtxaspec avatar gtxaspec commented on August 9, 2024

first one is average and second is max bitrate, you typically do want to set them together if you are changing them

from wz_mini_hacks.

Vendo232 avatar Vendo232 commented on August 9, 2024

I`m running the RTSP FW + mini RTSP and the cam is very slow.

from wz_mini_hacks.

gtxaspec avatar gtxaspec commented on August 9, 2024

Oh, i see, yes you are running 2 servers it will slow down since the quality goes up significantly. try stopping one, and run the commands and see if your quality goes up

from wz_mini_hacks.

gtxaspec avatar gtxaspec commented on August 9, 2024

(the image quality should be identical between the two servers anyway)

from wz_mini_hacks.

gtxaspec avatar gtxaspec commented on August 9, 2024

win1

from wz_mini_hacks.

Vendo232 avatar Vendo232 commented on August 9, 2024

trying 8096 on both, it is looking really good

image

from wz_mini_hacks.

gtxaspec avatar gtxaspec commented on August 9, 2024

nice. i will issue a new release soon

from wz_mini_hacks.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.