Created
January 3, 2014 15:45
-
-
Save rtucker/8240028 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 udp://:1233?buffer_size=65535" | |
| #VIDEOFILE="-i /home/rtucker/Videos/Bike?Cam/2012-09-09-002-afternoon.AVI" | |
| #VIDEOFILE="-f x11grab -r 30 -s vga -i :0.0" | |
| #AUDIOFILE="-i /home/rtucker/Music/Track?N?Field/Marathon/04?-?Track?N?Field?-?Iso?Maha.mp3" | |
| AUDIOFILE="-i http://uwstream1.somafm.com:80" | |
| #AUDIOFILE="-i http://sfstream1.somafm.com:8032" | |
| #AUDIOFILE="-i http://mediastream.yaycube.com/assets/track/14409/stream/" | |
| #AUDIOFILE="-i http://wber-ice-encoder.monroe.edu:80/wber-high.mp3" | |
| OUTFILE="udp://192.168.1.194:1234?pkt_size=188&buffer_size=65535" | |
| #OUTFILE="udp://192.168.1.194:1234?pkt_size=752&buffer_size=65535" | |
| #OUTFILE="bikecamatsc_7m0s_3.ts" | |
| #FILTERS="-vf drawtext=fontfile=${FONTFILE}:text=${TEXT}:x=100:y=50:fontsize=72:[email protected]:box=1:[email protected],fade=in:0:60,fade=out:12540:60 -t 420" | |
| 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 8M" | |
| #VIDEO_QUALITY="-qscale 8" | |
| AUDIO_CODEC="-acodec ac3_fixed" | |
| #AUDIO_CODEC="-acodec ac3" | |
| 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