Add some useful stuff for the video team

This commit is contained in:
Tocho Tochev 2024-05-21 23:33:48 +03:00
parent f92c608880
commit 231534a946
1 changed files with 41 additions and 0 deletions

41
useful-stuff.md Normal file
View File

@ -0,0 +1,41 @@
# Useful Stuff
This file contains information, links, tools/commands that can be useful for the video team.
## Testing
### Test Presentation
http://tochev.net/presentation-test/
### Sample RTMP Stream
```sh
ffmpeg -re -f lavfi -i testsrc=size=1920x1080:rate=30 -f lavfi -i "sine=frequency=220" -c:v libx264 -tune zerolatency -af "volume=1.0" -c:a aac -f flv rtmp://localhost/test.stream
```
The above command will send a 1080p test pattern with sine audio.
## Tools
### Play Video with Audio Bar
```sh
mpv --mute --demuxer-lavf-analyzeduration=30 --lavfi-complex='[aid1] asplit [t1] [ao] ; [t1] showvolume=w=1000:h=100 [t2] ; [vid1] [t2] overlay [vo]' SOME_VIDEO_SOURCE
```
Remove `--mute` if you want to start the video with an audible audio.
### ffprobe
```sh
ffprobe SOME_VIDEO_SOURCE
```
Test the resolution, length, codec, etc. of a video source.
## Resources
### Royalty-Free Music
- https://pixabay.com/music/ (do check the license of the file)