From 231534a946f6b63272cf02946726032579dbc021 Mon Sep 17 00:00:00 2001 From: Tocho Tochev Date: Tue, 21 May 2024 23:33:48 +0300 Subject: [PATCH] Add some useful stuff for the video team --- useful-stuff.md | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 useful-stuff.md diff --git a/useful-stuff.md b/useful-stuff.md new file mode 100644 index 0000000..eb2cc99 --- /dev/null +++ b/useful-stuff.md @@ -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) -- 2.40.1