Skip to content

Commit

Permalink
update iptv2radio :: u8 -> mulaw
Browse files Browse the repository at this point in the history
  • Loading branch information
cheznewa committed Jun 5, 2020
1 parent ac5a034 commit 291bac2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion iptv2radio/iptv2radio_hd.bash
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ tmp=$(mktemp -d)
n=0
for url in $(grep -v "^#" "$fileplaylist")
do
ffmpeg -t $timetorecord -i "$url" -f rawvideo -pix_fmt rgb24 -vf framerate=25,scale=768x576 $tmp/${n}_video.raw -ar 43200 -ac 1 -f u8 $tmp/${n}_audio.raw
ffmpeg -t $timetorecord -i "$url" -f rawvideo -pix_fmt rgb24 -vf framerate=25,scale=768x576 $tmp/${n}_video.raw -ar 43200 -ac 1 -f mulaw $tmp/${n}_audio.raw
n=$(expr $n + 1)
done
n=$(expr $n - 1)
Expand Down
2 changes: 1 addition & 1 deletion iptv2radio/iptv2radio_sd.bash
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ tmp=$(mktemp -d)
n=0
for url in $(grep -v "^#" "$fileplaylist")
do
ffmpeg -t $timetorecord -i "$url" -f rawvideo -pix_fmt rgb24 -vf framerate=25,scale=320x240 $tmp/${n}_video.raw -ar 18000 -ac 1 -f u8 $tmp/${n}_audio.raw
ffmpeg -t $timetorecord -i "$url" -f rawvideo -pix_fmt rgb24 -vf framerate=25,scale=320x240 $tmp/${n}_video.raw -ar 18000 -ac 1 -f mulaw $tmp/${n}_audio.raw
n=$(expr $n + 1)
done
n=$(expr $n - 1)
Expand Down
2 changes: 1 addition & 1 deletion iptv2radio/reader_hd.bash
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
video=$(mktemp)
audio=$(mktemp)
zstd -dcq "$1" | python $MYGIST/radio/radiorecv.py $2 $3 16 | python $MYGIST/radio/avsplit.py 43200 768x576 25 4> $audio 7> $video
php $MYGIST/secam/secam2rgb.php 768 < $video | ffmpeg -video_size 768x576 -f rawvideo -pix_fmt rgb24 -i - -ar 43200 -ac 1 -f u8 -i $audio -vcodec libx264 -acodec copy -f avi -y "$4"
php $MYGIST/secam/secam2rgb.php 768 < $video | ffmpeg -video_size 768x576 -f rawvideo -pix_fmt rgb24 -i - -ar 43200 -ac 1 -f mulaw -i $audio -vcodec libx264 -acodec copy -f avi -y "$4"
rm $audio $video
2 changes: 1 addition & 1 deletion iptv2radio/reader_sd.bash
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
video=$(mktemp)
audio=$(mktemp)
zstd -dcq "$1" | python $MYGIST/radio/radiorecv.py $2 $3 16 | python $MYGIST/radio/avsplit.py 18000 320x240 25 4> $audio 7> $video
php $MYGIST/secam/secam2rgb.php 320 < $video | ffmpeg -video_size 320x240 -f rawvideo -pix_fmt rgb24 -i - -ar 18000 -ac 1 -f u8 -i $audio -vcodec libx264 -acodec copy -f avi -y "$4"
php $MYGIST/secam/secam2rgb.php 320 < $video | ffmpeg -video_size 320x240 -f rawvideo -pix_fmt rgb24 -i - -ar 18000 -ac 1 -f mulaw -i $audio -vcodec libx264 -acodec copy -f avi -y "$4"
rm $audio $video

0 comments on commit 291bac2

Please sign in to comment.