Last active
September 17, 2022 21:34
-
-
Save rtucker/8642061 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
FONTFILE=/usr/share/fonts/truetype/freefont/FreeSerif.ttf | |
TEXT="BladeRF_ATSC_Demo_%T_Ch1" | |
VIDEOFILE="-i /home/rtucker/Videos/Bike?Cam/2012-09-09-002-afternoon.AVI" | |
AUDIOFILE="-i /home/rtucker/Music/Track?N?Field/Marathon/04?-?Track?N?Field?-?Iso?Maha.mp3" | |
OUTFILE="udp://127.0.0.1:1234?pkt_size=188&buffer_size=65535" | |
FILTERS="-vf drawtext=fontfile=${FONTFILE}:text=${TEXT}:x=100:y=50:fontsize=72:[email protected]:box=1:[email protected]" | |
VIDEO_CODEC="-vcodec mpeg2video -s hd720 -r 30" | |
VIDEO_QUALITY="-b:v:0 2M" | |
AUDIO_CODEC="-acodec ac3_fixed" | |
AUDIO_QUALITY="-b:a:0 384k -ar 48k -ac 2" | |
avconv -re \ | |
${VIDEOFILE} ${AUDIOFILE} \ | |
${VIDEO_CODEC} \ | |
${FILTERS} \ | |
${VIDEO_QUALITY} \ | |
${AUDIO_CODEC} \ | |
${AUDIO_QUALITY} \ | |
-muxrate 19393000 -f mpegts \ | |
-metadata service_name="${OUTFILE}" \ | |
-metadata service_provider="BladeRF ATSC Demo" \ | |
${OUTFILE} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment