EliasKotlyar / Xiaomi-Dafang-Hacks

4.19k stars 1k forks source link

Need change bitrate H264. #50

Closed khseal closed 6 years ago

khseal commented 6 years ago

The bitrate for 720p is low. You can see the artifacts on the video.MJPEG better in quality, but high traffic.

rodrigoscoelho commented 6 years ago

I didn't see any parameter on the RTSP server to change this. Any idea Elias?

EliasKotlyar commented 6 years ago

Hello @khseal ,

You can use the "-b bitrate" parameter on the rtsp-server binary.

khseal commented 6 years ago

v4l2rtspserver there is no such parameter -b This parameter is in snx_rtsp_server

EliasKotlyar commented 6 years ago

Hello @khseal ,

Actually, in the new compiled version of v4l2rtspserver - there is this parameter.

Greatings Elias

kszere commented 6 years ago

From repo not works. :/

EliasKotlyar commented 6 years ago

I have implemented this feature. It can be used trough: setconf -k b -v 6000 (sets bitrate to 6000kbps)

elect0nik commented 6 years ago

where should i put it? i want to experiment with bitrate, because i get 1 frame per 3 seconds video ((( Interfaces: lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

wlan0 Link encap:Ethernet HWaddr 34:CE:00:E5:FC:F7
inet addr:192.168.10.40 Bcast:192.168.10.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:96297 errors:0 dropped:1733 overruns:0 frame:0 TX packets:1395509 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:10935659 (10.4 MiB) TX bytes:2030412667 (1.8 GiB)

wlan0 IEEE 802.11bgn ESSID:"MIWI" Nickname:"" Mode:Managed Frequency:2.452 GHz Access Point: 88:E3:AB:86:14:23
Bit Rate:72.2 Mb/s Sensitivity:0/0
Retry:off RTS thr:off Fragment thr:off Encryption key:------- Security mode:open Power Management:off Link Quality=93/100 Signal level=100/100 Noise level=0/100 Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:0 Missed beacon:0

jmtatsch commented 6 years ago

@elect0nik simply ssh to your dafang and then enter system/sdcard/bin/setconf -k b -v 6000 Closing this because the feature is implemented and working.