blob: 2f1640713a54b83aabf409210541fd6c52f0b0a8 (
plain)
- #!/bin/sh
- confdir="`dirname "$0"`/../"
- . $confdir/default-config.sh
- if [ -f $confdir/config.sh ]; then
- . $confdir/config.sh
- fi
- wget -nc -O /tmp/avsync.ts http://c3voc.mazdermind.de/testfiles/avsync.ts
- (while true; do cat /tmp/avsync.ts || exit; done) | ffmpeg -y -nostdin \
- -i - \
- -filter_complex "
- [0:v] scale=$WIDTH:$HEIGHT,fps=$FRAMERATE [v] ;
- [0:a] aresample=$AUDIORATE [a]
- " \
- -map "[v]" -map "[a]" \
- -c:v rawvideo \
- -c:a pcm_s16le \
- -pix_fmt yuv420p \
- -f matroska \
- tcp://$MIXHOST:10000
|