Dakujem za jednoduchsi skript. Zvuk to nevyriesilo, ale podarilo sa mi ho upravit tak, aby to slapalo, t.j. slovenske audio. Treba doplnit do skriptu
-map 0:10 -map 0:11
Detail streamu:
Kód:
Duration: N/A, start: 1672.026833, bitrate: N/A
Program 0
Metadata:
variant_bitrate : 701000
Stream #0:0: Audio: aac (HE-AACv2), 48000 Hz, stereo, fltp, 63 kb/s
Metadata:
variant_bitrate : 701000
comment : Multiple languages
Stream #0:1: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt470bg), 854x480 [SAR 1280:1281 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
Metadata:
variant_bitrate : 701000
Stream #0:2(sk): Audio: aac (HE-AACv2) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp (default)
Metadata:
variant_bitrate : 701000
comment : Slovak
Program 1
Metadata:
variant_bitrate : 2001000
Stream #0:3: Audio: aac (HE-AACv2), 48000 Hz, stereo, fltp, 63 kb/s
Metadata:
variant_bitrate : 2001000
comment : Multiple languages
Stream #0:4: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt470bg), 1024x576 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
Metadata:
variant_bitrate : 2001000
Stream #0:5(sk): Audio: aac (HE-AACv2) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp (default)
Metadata:
variant_bitrate : 2001000
comment : Slovak
Program 2
Metadata:
variant_bitrate : 3001000
Stream #0:6: Audio: aac (HE-AACv2), 48000 Hz, stereo, fltp, 63 kb/s
Metadata:
variant_bitrate : 3001000
comment : Multiple languages
Stream #0:7: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709), 1280x720 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
Metadata:
variant_bitrate : 3001000
Stream #0:8(sk): Audio: aac (HE-AACv2) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp (default)
Metadata:
variant_bitrate : 3001000
comment : Slovak
Program 3
Metadata:
variant_bitrate : 6001000
Stream #0:9: Audio: aac (HE-AACv2), 48000 Hz, stereo, fltp, 63 kb/s
Metadata:
variant_bitrate : 6001000
comment : Multiple languages
Stream #0:10: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
Metadata:
variant_bitrate : 6001000
Stream #0:11(sk): Audio: aac (HE-AACv2) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp (default)
Metadata:
variant_bitrate : 6001000
comment : Slovak
Upraveny script:
Kód:
#! /bin/sh
source=$*
stream=$(grep -A 1 "${source}$" /home/osmc/usr/records/orange/service.playlist.o2tv/orangetv.generic.m3u8 | head -n 2 | tail -n 1)
echo ${stream}
ffmpeg -fflags +genpts -loglevel fatal -i ${stream} -map 0:10 -map 0:11 -vcodec copy -acodec copy -f mpegts -mpegts_service_type digital_tv pipe:1