назад к заметкам

mp3-радиопоток из инета в mpegts
#!/bin/sh

./ffmpeg_rvitebsk -i 'http://radio.vtv.by:8000/radio_vitebsk_128' \
-acodec mp2 -af volume=.1,aresample=async=1000 -ar 48000 -ab 192k -isync \
-mpegts_service_id 0x1 -metadata service_provider='trkvitebsk' -metadata service_name='radio_vitebsk' \
-f mpegts 'udp://@239.10.100.0:1234?pkt_size=1316&buffer_size=1024&reuse=1&ttl=5'

exit 0
#!/bin/bash


/home/k2/ffmpeg/ffmpeg -threads 2 -re -fflags +genpts -stream_loop -1 \
-hide_banner \
-nostats \
-loglevel repeat+level+error \
-i /home/k2/matrac/static/w720x576.png \
-i http://shoutcast.byfly.by:88/relaxfm \
-color_primaries bt709 -color_trc bt709 -colorspace bt709 \
-vcodec libx264 -c:v libx264 -x264-params "nal-hrd=cbr" -vf format=yuv420p \
-b:v 2M -minrate 2M -maxrate 2M -bufsize 2M \
-b:a 192k -flush_packets 0 \
-f mpegts udp://239.0.57.55:1234?pkt_size=1316