分类 云笔记 下的文章

“收集其他网站上看到的点滴内容。”

ffmpeg -i "http://xuexi.hsfz.net.cn/vod/4028805379d5521d0179e467fca90113/SH/master.m3u8?ver=1623035028598" -c copy -bsf:a aac_adtstoasc 1.mp4

-c copy 避免转码

aac_adtstoasc的说明:
1)将AAC编码器编码后的原始码流(ADTS头 + ES流)封装为MP4或者FLV或者MOV等格式时,需要先将ADTS头转换为MPEG-4 AudioSpecficConfig (将音频相关编解码参数提取出来),并将原始码流中的ADTS头去掉(只剩下ES流)。

2)相反,从MP4或者FLV或者MOV等格式文件中解封装出AAC码流(只有ES流)时,需要在解析出的AAC码流前添加ADTS头(含音频相关编解码参数)。

连接上mqtt服务器后,一段时间就出现下面提示:
on_disconnect callback rc = 7
on_connect callback rc = 0
on_disconnect callback rc = 7
on_connect callback rc = 0
on_disconnect callback rc = 7
on_connect callback rc = 0
on_disconnect callback rc = 7
on_connect callback rc = 0
on_disconnect callback rc = 7
on_connect callback rc = 0
on_disconnect callback rc = 7
on_connect callback rc = 0
on_disconnect callback rc = 7
on_connect callback rc = 0
on_disconnect callback rc = 7
on_connect callback rc = 0

在网上看了一下,有说同一个clientid二个连接同时使用可以有导致这个问题,也有说调小keepalive就好了。

I guess i solve this question.

i set a small keep-alive number. And NOT happen until now.

将原来的keepalive从60调到30就好了。

微信暂停新用户注册,因正在进行技术升级“以符合相关法律法规”。

腾讯指出,在此期间,暂停微信个人和公众号的新用户注册;升级完成后将恢复注册服务,预计8月初完成升级并恢复注册。

腾讯控股股价周二盘中狂泻逾10%,股价已不足450港元;香港恒生科技指数尾盘继续下探,跌幅一度逾9.9%。

Referenced from:https://cn.reuters.com/article/china-tencent-wechat-registration-0727-idCNKBS2EX0R3?il=0

腾讯已恢复中国大陆微信新用户注册 上周二以技术升级之名暂停 update:2021-8-5
腾讯控股已恢复中国大陆微信新用户注册。社交媒体用户率先发现此事,腾讯周四亦予以确认但拒绝提供进一步评论。

腾讯上周二公告,微信暂停新用户注册,因正在进行技术升级“以符合相关法律法规”。

Referenced from:https://cn.reuters.com/article/tencent-china-wechat-0805-idCNKBS2F60HJ?il=0

腾讯已恢复微信帐号新用户注册 | 联合早报网 update:2021-8-5 腾讯几天前因技术升级而暂停微信新用户的注册,如今已经恢复。

据彭博社报道,已经拥有超过 10
亿用户的微信上周暂停新用户注册,根据相关法律法规进行“安全技术升级”。该公司当时介绍,预计将在8月初左右恢复新的个人用户注册。公司一名代表证实恢复注册一事。

本周一系列官方媒体的声明引发了人们的担忧,北京接下来将把注意力集中在游戏行业及其中的巨擘腾讯之上。在新华社旗下一家媒体将网路游戏称为“精神鸦片”(后来这个名词遭到删除)后,腾讯市值最高的公司股价一度下跌了
11%。

《人民日报》一天后淡化上述言论,却强化了要“防沉迷”的必要性,凸显出控制巨头行业仍然是当务之急。

微信在许多中国人的生活中发挥着不可或缺的作用,具备打车、订餐、支付水电费等诸多功能,对腾讯而言是汇集流量、展现业务的关键所在。

Referenced from:https://www.zaobao.com/realtime/china/story20210805-1178180

连接mqtt broker过程中出现rc为14
on_disconnect callback rc = 14

需要注意的是,mqtt重连会导致订阅失效。

This is because you get a fresh session by default when you reconnect
(because you have clean_session=True), so you have no active
subscriptions.

Move the call to client.subscribe('topic') to inside the on_connect
callback then it will resubscribe when it reconnects.

上面虽然说的是paho,但mosquitto其实也是一样的。在mosquitto_new(const char id,bool clean_session,void obj)中,

clean_session    
set to true to instruct the broker to clean all messages and subscriptions on disconnect, false to instruct it to keep them.  See the man page mqtt(7) for more details.  Note that a client will never discard its own outgoing messages on disconnect.  Calling mosquitto_connect or mosquitto_reconnect will cause the messages to be resent.  Use mosquitto_reinitialise to reset a client to its original state.  Must be set to true if the id parameter is NULL.

如果id为空,则clean_session为true。

所以每次连接成功后,需要重新订阅,即在on_connect()中mosquitto_subscribe

on_connect
a callback function in the following form: void callback(struct mosquitto mosq, void obj, int rc)
Callback Parameters
mosq the mosquitto instance making the callback.
obj the user data provided in mosquitto_new
rc the return code of the connection response. The values are defined by the MQTT protocol version in use. For MQTT v5.0, look at section 3.2.2.2 Connect Reason code: https://docs.oasis-open.org/mqtt/mqtt/v5.0/os/mqtt-v5.0-os.html For MQTT v3.1.1, look at section 3.2.2.3 Connect Return code: http://docs.oasis-open.org/mqtt/mqtt/v3.1.1/mqtt-v3.1.1.html
mosquitto_subscribe
Subscribe to a topic.

It is valid to use this function for clients using all MQTT protocol versions. If you need to set MQTT v5 SUBSCRIBE properties, use mosquitto_subscribe_v5 instead.

Parameters
mosq a valid mosquitto instance.
mid a pointer to an int. If not NULL, the function will set this to the message id of this particular message. This can be then used with the subscribe callback to determine when the message has been sent.
sub the subscription pattern.
qos the requested Quality of Service for this subscription.