当前位置:网站首页>2022 latest Tiktok live broadcast monitoring (II) streaming media download in live broadcast room
2022 latest Tiktok live broadcast monitoring (II) streaming media download in live broadcast room
2022-07-27 02:12:00 【Android reverse Chen】
Next time, when we judged that the live room had started broadcasting, we could grab packets and analyze the returned live room data , This time we are going to study live streaming media .
“ Streaming media ” Literally , It seems to be a new form of media , It's not , It is just a new way of media transmission . This technology can transmit compressed media packets on the Internet even after they are sent in segments like pipelining on the Internet , This data is transmitted to the viewer's computer and can be played immediately . In a word, it can be achieved : Broadcast while transmitting , No need to wait
Just now we said that streaming media is just a way of video streaming , To realize this transmission mode , You need help “ Streaming technology ”. Streaming media technology is not a single technology , It is an organic combination of network technology and audio and video technology . Include :
(1) Production of flow Encoder
(2) Flow of transmission Streaming devices , Flow pulling equipment
(3) Cache of streams Streaming media server
(4) Stream play decoder
In fact, the main core idea is to find the stream file in the detailed interface data of the live broadcast room , There are two kinds of audio stream files , One is m3u8 File format , One is flv Format , Both of these files can be parsed and downloaded
flv File format :

m3u8 File format :
After finding the stream file, you can download it locally in real time with the help of some third-party tools , such as ffmpeg Procedure, etc . Here you can also choose the size of the stream when you download , Such as standard definition , hd , Super clear , Blu ray, etc
This series only shares the general idea , Of course, those who need this plan are welcome D, At present, it is stable and unrestrained , Ten million levels of daily data is not a problem , The whole set of live broadcast content has a complete plan
if videoencode:
_output = subprocess.check_output([
ffmpeg_path, "-y",
"-v","verbose",
"-timeout","10000000", # 10s
"-loglevel","error",
"-hide_banner",
"-user_agent",headers["User-Agent"],
"-analyzeduration","2147483647",
"-probesize","2147483647",
"-i",real_url,
'-bufsize','5000k',
"-map","0",
"-sn","-dn",
# "-f","mpegts",
# "-bsf:v","h264_mp4toannexb",
# "-c","copy",
"-c:v","libx264", # Later you can use crf To control the size
#"-c:v","copy", # Direct use copy The volume is very large .
'-max_muxing_queue_size','64',
"{path}".format(path=file),
], stderr = subprocess.STDOUT)
else:
_output = subprocess.check_output([
ffmpeg_path, "-y",
"-v","verbose",
"-timeout","10000000", # 10s
"-loglevel","error",
"-hide_banner",
"-user_agent",headers["User-Agent"],
"-analyzeduration","2147483647",
"-probesize","2147483647",
"-i",real_url,
'-bufsize','5000k',
"-map","0",
"-sn","-dn",
# "-f","mpegts",
# "-bsf:v","h264_mp4toannexb",
# "-c","copy",
#"-c:v","libx264", # Later you can use crf To control the size
"-c:v","copy", # Direct use copy The volume is very large .
'-max_muxing_queue_size','64',
"{path}".format(path=file),
], stderr = subprocess.STDOUT)
The difficulty in streaming media is to find its URL, The link address , If you find it , Then all the problems will be solved .
from HTML Source code to find
stay IE Menu for “ see ” Midpoint “ Source file ” Button , Open source file with Notepad , Click Notepad “ edit ” Menu “ lookup ”, Then enter the suffix of the streaming media file SWF、WMV、RM、ASF、AVI, When you find them , You will see the download link address ! The most typical is the flash Empire Flash, Just find SWF The suffix of , You can know its flash Download the address .Save file lookup
Choose an online audio-visual song MP3, Right click the target save as , There will be one “.m3u” The file of is saved , And then use “ Notepad ” Open the file , Find in Notepad “http:////.m3u” perhaps “http:////.mp3”, If it's the previous one , Then we will put m3u Change it to mp3, Then copy the link to FlashGet in , You can download it. . If it is the latter , Copy directly to FlashGet You can download it in .RAM or ASX Search for
Sometimes find the address and download , Open it with playback software but can't watch , Check that the file size is only a few hundred KB, How can a movie be so small ? original RAM or ASX Is a substitute for RM or ASF The text of , Open in Notepad ASX or RAM file , You can find the address of the movie !Player properties
If you use RealOne Player The player plays the movie , Select... In the menu bar of the player “ file → Clip properties → View clip information ”, In the pop-up “ Clip properties ” Select... In the dialog box “ file ” Options , Here you can see the address of the currently playing video file .
边栏推荐
- [explain C language in detail] this article takes you to know C language and makes you impressed
- 解决方案:读取两个文件夹里不同名的文件,处理映射不对应的文件
- Enumerated valueof() method stepping on the pit
- PHP processing tree and infinite processing
- JS logical operator
- Introduction to network - Introduction to home networking & basic network knowledge
- 关于在VS2022或者高级版本运行环境下遇到fopen,strerror等不安全的问题
- [FPGA tutorial case 29] the second DDS direct digital frequency synthesizer based on FPGA - Verilog development
- Text to image paper intensive reading rat-gan: recursive affine transformation for text to image synthesis
- Ospf基础配置应用( 综合实验: 干涉选举 缺省路由 区域汇总 认证--接口认证)
猜你喜欢

ERROR! MySQL is not running, but PID file exists

Text to image论文精读RAT-GAN:文本到图像合成中的递归仿射变换 Recurrent Affine Transformation for Text-to-image Synthesis

ViTGAN:用视觉Transformer训练生成性对抗网络 Training GANs with Vision Transformers

Text to image论文精读GR-GAN:逐步细化文本到图像生成 GRADUAL REFINEMENT TEXT-TO-IMAGE GENERATION

Talking about server virtualization & hyper convergence & Storage
![[详解C语言]一文带你玩转选择(分支)结构](/img/ca/7ee9f62a2478785c97684c7a0cc749.png)
[详解C语言]一文带你玩转选择(分支)结构

uuid和索引建立规则
![[paddleseg source code reading] paddleseg export static graph export Trace in py file](/img/63/ac9d1a569816e8addb23bf143364f5.png)
[paddleseg source code reading] paddleseg export static graph export Trace in py file

GAN的训练技巧:炼丹师养成计划 ——生成式对抗网络训练、调参和改进

HCIA(网络初级综合实验练习)
随机推荐
Solution: various error reporting and pit stepping and pit avoiding records encountered in the alchemist cultivation plan pytoch+deeplearning (III)
[FPGA tutorial case 28] one of DDS direct digital frequency synthesizers based on FPGA -- principle introduction
OSPF协议知识汇总
uuid和索引建立规则
引用的通俗讲解
Flink1.13.6详细部署方式
第三讲--GPIO输入输出库函数使用以及相关例程
When El table is selected, the jump page remains selected
GAN的训练技巧:炼丹师养成计划 ——生成式对抗网络训练、调参和改进
6.28大华笔试
OSPF在MGRE环境下的实验
Machine learning exercise 7 - K-means and PCA (principal component analysis)
[FPGA tutorial case 29] the second DDS direct digital frequency synthesizer based on FPGA - Verilog development
Pseudo class of a element
[详解C语言]一文带你认识C语言,让你醍醐灌顶
C语言实现小游戏【三子棋】注释详细 逻辑清晰 快来看看吧!!
初识网页设计
TCP的三次握手与四次挥手(简述)
OSPF在MGRE环境下配置及LSA的优化---减少LSA更新量(汇总、特殊区域)
Transport layer --------- TCP (II)