Python3 Standard Library: codecs string encoding and decoding
1. Codcs string encoding and decoding
The codecs module provides both stream and file interfaces to convert different representations of text data.Usually used to process Unicode text, but additional encoding is provided for other purposes.
1.1 Getting started with Unicode
CPython 3.x distinguishes between text and byte strings.The bytes instan ...
Posted by melittle on Thu, 19 Mar 2020 18:54:34 -0700
netty realizes group chat
[overview]
Implement a group chat tool. The client messages participating in the chat are broadcast through the server.
It mainly consists of two parts: chat server and chat client.
Chat server function overview:
1. Monitor the access and disconnection of all clients
2. When client A accesses the chat room, send the access message to other clie ...
Posted by jonners on Tue, 17 Mar 2020 09:14:13 -0700
FFMPEG development: collect camera data under Linux, record it into MP4 video and save it locally
1, Environment introduction
Operating system introduction: ubuntu 18.04
FFMPEG version: 4.4.2
Camera: USB camera, virtual machine attached camera of the machine
2, Download and compile FFMPEG and X264
X264 download address: http://www.videolan.org/developers/x264.html
FFMPEG download address: ...
Posted by itarun on Mon, 16 Mar 2020 21:57:27 -0700
opencv learning note Day02: read video stream
Article directory
Read video stream
Screen insert text
Read video stream
cv2.getcapture(), use the function cap.get(propId) to get some parameter information of the video. Here the propId can be any integer between 0 and 18. Each number represents an attribute of the video:
cv2.VideoCapture.get ...
Posted by werkkrew on Sat, 07 Mar 2020 07:13:13 -0800
Introduction to FFmpeg: Common API usage and C language development
Introduction to FFmpeg: Common API usage and C language development
Understanding Related Concepts
1. Basic concepts of multimedia files
2. Quantitative encoding of audio
3. Time Base
Environment Configuration
Related Downloads
Environment Configuration
test
Development Cases
Processing logic and ...
Posted by baber_abbasi on Fri, 06 Mar 2020 19:05:22 -0800
Remember a Bug related to Base64
This paper originally planned to write two parts. The first is to record the latest bugs related to Base64. The second is the detailed explanation of the principle of Base64 encoding. It turns out it's half written, eh? How can I say such a long time about a thing that is not complicated? It's not conducive to reading and understanding (actuall ...
Posted by littlegreenman on Sun, 01 Mar 2020 04:10:48 -0800
netty learning note 14 - TCP packet sticking and unpacking
Basic introduction of TCP packet sticking and unpacking
TCP is connection oriented, flow oriented, and provides high reliability services. There should be one-to-one comparison of socket s on both sides of the transceiver (client and server). Therefore, in order to send multiple packets to the server ...
Posted by ProblemHelpPlease on Fri, 21 Feb 2020 00:06:39 -0800
[Netty] decoder related: DelimiterBasedFrameDecoder
Article directory
Preface
Experimental code
Follow up source code
Inheritance relationship of DelimiterBasedFrameDecoder
Property of DelimiterBasedFrameDecoder
Analysis of construction method
decode implementation
Preface
This section will take a look at the decoder that Netty provides to user ...
Posted by ATS16805 on Sat, 15 Feb 2020 06:11:08 -0800
Unpacking and solution of Tcp sticking package
Sticking and unpacking of Tcp
1.TCP is connection oriented, flow oriented, and provides high reliability services. There must be one pair of socket s at both ends of the transceiver. Therefore, in order to send multiple packets to the receiver more effectively, the sender uses the optimization method ...
Posted by jaiswal on Wed, 12 Feb 2020 09:03:53 -0800
Rotate video using FFmpeg
I've been trying to figure out how to rotate video using FFmpeg. I'm using iPhone Video in portrait mode. I know how to use it MediaInfo (great library, by the way) determine the current rotation angle, but now I'm stuck with FFmpeg.
According to my reading, you need to use the vfilter option. From what I see, it should look like this:
ff ...
Posted by raymedia on Sun, 09 Feb 2020 03:08:04 -0800