How to Push the Video streams to DouYu/XiongMao/Bilibili using PI
2017-08-19 20:27
288 查看
Setup the decoder
sudo git clone git://git.videolan.org/x264 cd x264 ./configure --host=arm-unknown-linux-gnueabi --enable-static --disable-opencl make sudo make install cd .. rm -rf x264
Setup the ffmpeg
sudo git clone git://source.ffmpeg.org/ffmpeg.git cd ffmpeg sudo ./configure --arch=armel --target-os=linux --enable-gpl --enable-libx264 --enable-nonfree make sudo make install cd .. rm -rf ffmpeg
Using this command to push the Video
ffmpeg -re -i "xxx.mp4" -vcodec copy -acodec aac -b:a 192k -f flv "your rtmp address/your live code"
you can also do it with circulation:
##live.sh #!/bin/bash while true do ffmpeg -re -i "1.mp4" -vcodec copy -acodec aac -b:a 192k -f flv "你的rtmp地址/你的直播码" done
then:
screen nohup sh live.sh &
Tips
Here is my script,Ignore the magic number or other things~:#!/bin/bash max=47 laterName=".mp4" fileName="" while true do for((i=1;i<=${max};i++)) do fileName=${i}${laterName} ##ffmpeg -re -i 文件名 -vcodec copy -acodec aac -b:a 192k -f flv "你的rtmp地址/你的直播码" ffmpeg -re -i ${fileName} -vcodec copy -acodec aac -b:a 192k -f flv "rtmp://txy.live-send.acg.tv/live-txy/?streamname=live_188341289_7509563&key=eeb4dec14753b6c55d84a33411140644" done done
相关文章推荐
- How to download streaming audio or video media from the internet using the MMS protocol?
- ios学习--How to capture video frames from the camera as images using AV Foundation
- How to capture video frames from the camera as images using AV Foundation
- How to capture video frames from the camera as images using AV Foundation
- How to capture video frames from the camera as images using AV Foundation on iOS
- [转]How to find who is using / eating up the Virtual Address Space on your SQL Server
- How to output the message when using the function 'printf'
- How to make fundamental Winsock calls to set up communication using the internet Protocol
- 32-bit Assembler is Easy, why and how to develop using the assembler; start learning to program in Assembly now!
- How to Change the DBID and the DBNAME by using NID [ID 224266.1]
- How to Change the DBID and the DBNAME by using NID [ID 224266.1]
- python网络编程经典好文,如何用urllib获取internet资源,HOWTO Fetch Internet Resources Using The urllib Package
- How to change the name of logfile dynamically using log4j
- How to reset the ILOM root password back to the default 'changeme' using ipmitool
- How to fullscreen the video in nw fullscreen status
- In an iOS 5 Storyboard, how do you push a new scene to the original view controller from a Popover?
- How to assign the priority when using rspc_api_chain_start?
- How to authenticate against the Active Directory by using Forms authentication and Visual C# .NET
- How to solve: when using tab in gnomeTerminal , the entire screen flash,
- How to Simulate the Price Order or Price Line Function using API QP_PREQ_PUB.PRICE_REQUEST Includes