ffmpeg cooperates with Fiddler to capture packets to obtain video operations

one. Obtain ordinary website videos
1. Install Fiddler software, directly click Fiddler.exe in the green software and open it
Insert image description here

2. After opening, you need to set https decoding
Insert image description here

3. Open a normal video, get the video link and open it on the web page
Insert image description here
Insert image description here
Insert image description here

two. Obtain the first-level anti-crawling website video
1. Find a video/mp4 attribute and click on it
Insert image description here

2. Click on the detector, then click on the header below the detector
Insert image description here

3. Find the location of Content-Range: bytes 1979-481371/36171745
Insert image description here

4. Open the combiner
Insert image description here

5. Drag the video/mp4 data packet into the following location
Insert image description here

6. Change Range: bytes=943547-1352789 to Range: bytes=36171745, then click Execute, and a piece of video data will appear.
Insert image description here

7. Right-click Save, find Response -> Click on Response Body, and save it as a file with the m4s suffix
video format.
Insert image description here
Insert image description here

8. The same is true for audio files, which are eventually saved as a file with an m4s suffix.
Insert image description here
9. Then you need to install and configure ffmpeg. You need to put the bin path of ffmpeg into the system environment variable. Enter ffmpeg in the cmd command and the following display will be displayed. It is successful.
Insert image description here
Some command operations of ffmpeg

(1) Expand audio 2 times

ffmpeg -i 2.mp3 -filter:a "volume=2.0" 3.mp3

(2) Expand audio 4 times

ffmpeg -i 2.mp3 -filter:a "volume=4.0" 3.mp3

(3) Audio and video synthesis (m4s video and mp3 audio synthesis)

ffmpeg -i 1.m4s -i 3.mp3 -vcodec copy -acodec copy -f mp4 fina2.mp4

(4) Audio and video synthesis (m4s video and m4s audio synthesis)

ffmpeg -i 1.m4s -i 2.m4s -vcodec copy -acodec copy -f mp4 fina2.mp4

10. Synthesize the video and audio commands we obtained from the Fiddler software packet capture.

ffmpeg -i 1.m4s -i 2.m4s -vcodec copy -acodec copy -f mp4 fina2.mp4

Insert image description here
Insert image description here
11. Final result video display.
Insert image description here

12. Summary and reminder: 80% of the videos can be obtained using Fiddler+ffmpeg. If you cannot obtain videos with technical content, please contact me in the comment area. If you need high-definition videos, you only need to select the one on the webpage. Just play the high-definition video and then capture the packet. If it succeeds, brothers, please press three times in succession to spread the flowers!

Guess you like

Origin blog.csdn.net/liaoqingjian/article/details/132540951