Jump to content


Photo

Recording IPTV


  • Please log in to reply
91 replies to this topic

Re: Recording IPTV #61 sarsan

  • Senior Member
  • 35 posts

0
Neutral

Posted 7 February 2023 - 20:03

 

I´ve been playing arround with ffmpeg command line parameters, just copy video and audio is sufficient, we don´t need static version anymore, /user/bin/ffmpeg will do the job, replace the line with ffmpeg into

/usr/bin/ffmpeg -i $URL -s hd720 -vcodec copy -acodec copy $FILE 2>/dev/null &

Hi

command not working for py3 could you update please


Edited by sarsan, 7 February 2023 - 20:03.


Re: Recording IPTV #62 neo

  • PLi® Contributor
  • 715 posts

+48
Good

Posted 8 February 2023 - 22:34

What has ffmpeg to do with a version of python?



Re: Recording IPTV #63 sarsan

  • Senior Member
  • 35 posts

0
Neutral

Posted 8 February 2023 - 22:37

What has ffmpeg to do with a version of python?

good question, basicly script no working - meaning recording no working

 

this i get :

Using username "root".
root@vuzero4k:~# /usr/bin/ffmpeg -i $URL -s hd720 -vcodec copy -acodec copy $FILE 2>/dev/null &
[1] 2726
root@vuzero4k:~#


 



Re: Recording IPTV #64 scriptmelvin †

  • PLi® Contributor
  • 720 posts

+46
Good

Posted 9 February 2023 - 00:00

That line won't work by itself, it needs to be in the script in post #59.

If you want to use the command line to test, first set the variables $URL and $FILE, and omit the final 2>/dev/null &
 
Something like:

URL="https://example.com/my_stream_url"
FILE="/media/hdd/my_test_file.ts"
ffmpeg -i "$URL" -s hd720 -vcodec copy -acodec copy "$FILE"

Press q to stop recording.


Sorry to inform you this member, my brother, passed away.

Re: Recording IPTV #65 sarsan

  • Senior Member
  • 35 posts

0
Neutral

Posted 9 February 2023 - 17:30

That line won't work by itself, it needs to be in the script in post #59.

If you want to use the command line to test, first set the variables $URL and $FILE, and omit the final 2>/dev/null &
 
Something like:

URL="https://example.com/my_stream_url"
FILE="/media/hdd/my_test_file.ts"
ffmpeg -i "$URL" -s hd720 -vcodec copy -acodec copy "$FILE"

Press q to stop recording.

HI

 

using this script; on the screen get message recording starting, but nothing seems to recorded.

 

Could you confirm script do actually record from IPTV: with these setup - Serviceapp - Exteplayer 3 ??

 

or

 

What i do wrong. Please update

#!/bin/sh
# /usr/script/ffmpeg_record.sh
# ffmpeg recording tool by mrvica

# english date / time stamp
# DATE=`date +%Y.%m.%d_%H:%M:%S`
# german date / time stamp
# DATE=`date +%d.%m.%Y-%H:%M:%S`

DATE=`date +%d_%m_%Y-%H_%M_%S`
URL=`top -b -n1 | grep "exteplayer3" | awk '{print $9}' | sed '2d'`
PATH="/media/hdd/movie/"
#PATH=`/bin/grep config.usage.default_path= /etc/enigma2/settings | /bin/sed 's/[^ ]*=//'`
FILE="$PATH$DATE.ts"

if [ -d "$PATH" ]; then
	echo "recording to:"
	echo $FILE
	echo "started"
	/usr/bin/ffmpeg -i $URL -s hd720 -vcodec copy -acodec copy $FILE 2>/dev/null &
	#/media/hdd/bin/ffmpeg -i $URL -s hd720 -c:v libx264 $FILE 2>/dev/null &
	#/media/hdd/bin/ffmpeg -i $URL -s hd720 $FILE 2>/dev/null &
else
	echo "record failed"
	echo "path $PATH unavailable, check the recording device"
	exit 1
fi
exit 0;

 



Re: Recording IPTV #66 scriptmelvin †

  • PLi® Contributor
  • 720 posts

+46
Good

Posted 9 February 2023 - 20:35

Try this script. It has some more sanity checks and runs ffmpeg in the foreground so you can see errors. And it adds a User-Agent header (required for USA Bumblebee streams where I tested). Press q to stop recording (and wait a few seconds).

#!/bin/sh
# /usr/script/ffmpeg_record.sh
# ffmpeg recording tool by mrvica
# adapted by scriptmelvin

# english date / time stamp
# DATE=`date +%Y.%m.%d_%H:%M:%S`
# german date / time stamp
# DATE=`date +%d.%m.%Y-%H:%M:%S`

DATE=$(date +%d_%m_%Y-%H_%M_%S)
URL=$(top -b -n1 | grep exteplayer3 | grep -v 'grep exteplayer3' | awk '{print $9}')
PATH='/media/hdd/movie/'
#PATH=`/bin/grep config.usage.default_path= /etc/enigma2/settings | /bin/sed 's/[^ ]*=//'`
FILE="$PATH$DATE.ts"
HEADERS='User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/109.0'

# sanity checks
if [ "$URL" = "" ]; then
    echo 'record failed'
    echo 'cannot determine URL, is exteplayer3 running?'
    exit 1
fi
if ! [ -d "$PATH" ]; then
    echo 'record failed'
    echo "path $PATH unavailable, check the recording device"
    exit 1
fi

echo "recording to: $FILE started"
exec /usr/bin/ffmpeg -headers "$HEADERS" -i "$URL" -s hd720 -vcodec copy -acodec copy "$FILE"

 

 


Sorry to inform you this member, my brother, passed away.

Re: Recording IPTV #67 sarsan

  • Senior Member
  • 35 posts

0
Neutral

Posted 9 February 2023 - 22:33

thank for script

 

using for recording IPTV from bouquet - unfortunatelly not working

#SERVICE 4097:0:1:0:0:0:0:0:0:0:https%3a//bitcdn-kronehit.bitmovin.com/v2/hls/playlist.m3u8:Kronehit (1080p)
#DESCRIPTION Kronehit (1080p)

please see screenshot
 

Attached Files


Edited by sarsan, 9 February 2023 - 22:34.


Re: Recording IPTV #68 scriptmelvin †

  • PLi® Contributor
  • 720 posts

+46
Good

Posted 9 February 2023 - 23:07

#SERVICE 4097:0:1:0:0:0:0:0:0:0:https%3a//bitcdn-kronehit.bitmovin.com/v2/hls/playlist.m3u8:Kronehit (1080p)
#DESCRIPTION Kronehit (1080p)

That is not an exteplayer3 service, but a "regular" gstreamer one. You can record it normally like any other (DVB-S, DVB-C) service.

The script is only for exteplayer3 services (which cannot be recorded the "normal" way).


Sorry to inform you this member, my brother, passed away.

Re: Recording IPTV #69 sarsan

  • Senior Member
  • 35 posts

0
Neutral

Posted 9 February 2023 - 23:26

 

That is not an exteplayer3 service, but a "regular" gstreamer one. You can record it normally like any other (DVB-S, DVB-C) service.

The script is only for exteplayer3 services (which cannot be recorded the "normal" way).

 

 

i change to 5002 - but still not recirding

did it work for you?

 

i would like recording IPTV stream when ServiceApp (activated) - meaning player setup for Exteplayer3 (5002)

 

why cannot make record stream when Exteplayer3 activated?



    #SERVICE 5002:0:1:0:0:0:0:0:0:0:https%3a//bitcdn-kronehit.bitmovin.com/v2/hls/playlist.m3u8:Kronehit (1080p)
    #DESCRIPTION Kronehit (1080p)


 



Re: Recording IPTV #70 scriptmelvin †

  • PLi® Contributor
  • 720 posts

+46
Good

Posted 10 February 2023 - 00:40

i change to 5002 - but still not recirding
did it work for you?


Yes, tested with Kronehit. Did you restart enigma? That is needed to reload changed bouquet files.
 

why cannot make record stream when Exteplayer3 activated?


ExtEplayer3 is an external player that just plays your stream. It knows nothing about enigma2 or the buttons you press on the remote.


Sorry to inform you this member, my brother, passed away.

Re: Recording IPTV #71 sarsan

  • Senior Member
  • 35 posts

0
Neutral

Posted 10 February 2023 - 10:35

 

Yes, tested with Kronehit. Did you restart enigma? That is needed to reload changed bouquet files.
 

It knows nothing about enigma2 or the buttons you press on the remote.

 

Thank you for test,

STB restarted couples times, but not heplfull

 

so could by hardware problem - have VU Zero4K

using script do not recording

 

If press "REC" button error see picture

Attached Files



Re: Recording IPTV #72 scriptmelvin †

  • PLi® Contributor
  • 720 posts

+46
Good

Posted 10 February 2023 - 14:32

I get that too when I press record on a 5002 service. That is what the script is for. So: 4097 service: record button, 5002 service: script.

 

But why do you need Kronehit to be a 5002 service? It works fine with 4097.


Sorry to inform you this member, my brother, passed away.

Re: Recording IPTV #73 neo

  • PLi® Contributor
  • 715 posts

+48
Good

Posted 10 February 2023 - 15:16

So: 4097 service: record button

 

On a box with ServiceMP3: yes.

 

On a box with ServiceHisilicon: no, not implemented in the service.
 

See https://github.com/z...ilicon.cpp#L116: clearly  a rush job that was never finished.


Edited by neo, 10 February 2023 - 15:17.


Re: Recording IPTV #74 sarsan

  • Senior Member
  • 35 posts

0
Neutral

Posted 10 February 2023 - 18:45

But why do you need Kronehit to be a 5002 service? It works fine with 4097.

becouse if you switch to ServiceApp - Exteplayer 3 - then all streams (4097 and 5002) playing trought Exteplayer and does matter what you have setup 4097 or 5002 = meaning all streams are like 5002

 

question is why not working on Vu zero4K when using Script ???



Re: Recording IPTV #75 sarsan

  • Senior Member
  • 35 posts

0
Neutral

Posted 10 February 2023 - 18:46

 

So: 4097 service: record button

 

On a box with ServiceMP3: yes.

 

On a box with ServiceHisilicon: no, not implemented in the service.
 

See https://github.com/z...ilicon.cpp#L116: clearly  a rush job that was never finished.

 

Hi

 

Vu zero4K - have Broadcom processor  = should work but unfortunatelly no



Re: Recording IPTV #76 scriptmelvin †

  • PLi® Contributor
  • 720 posts

+46
Good

Posted 10 February 2023 - 21:20

becouse if you switch to ServiceApp - Exteplayer 3 - then all streams (4097 and 5002) playing trought Exteplayer and does matter what you have setup 4097 or 5002 = meaning all streams are like 5002
 
question is why not working on Vu zero4K when using Script ???


Do you have this switch turned OFF?

Attached File  service-app-setup.jpg   124.72KB   7 downloads

It needs to be off so that 4097 goes to servicemp3 and 5002 goes to exteplayer3. If you then make Kronehit a 4097 service, you should be able to record it with the record button.


Sorry to inform you this member, my brother, passed away.

Re: Recording IPTV #77 sarsan

  • Senior Member
  • 35 posts

0
Neutral

Posted 10 February 2023 - 22:27

 If you then make Kronehit a 4097 service, you should be able to record it with the record button.

 

its Ok 4097 do record, i do confirm

 

Problem is ...please i would like to make record stream trought -- FFMPEG - EXTEPLAYER3 - 5002 - SERVICEAPP --- 

 

looks like no possibe at the moment , if anyone hve sollution please let me know

 

thank you



Re: Recording IPTV #78 scriptmelvin †

  • PLi® Contributor
  • 720 posts

+46
Good

Posted 10 February 2023 - 23:04

Problem is ...please i would like to make record stream trought -- FFMPEG - EXTEPLAYER3 - 5002 - SERVICEAPP ---


Why? The end result will be identical.
 
Are you familiar with the command line of the box? If so, pls zap to a 5002 service, then run following command, paste result here.

top -b -n1

Sorry to inform you this member, my brother, passed away.

Re: Recording IPTV #79 sarsan

  • Senior Member
  • 35 posts

0
Neutral

Posted 10 February 2023 - 23:20

 
Are you familiar with the command line of the box? If so, pls zap to a 5002 service, then run following command, paste result here.
 

top -b -n1

please see:

root@vuzero4k:~# top -b -n1
top - 22:19:41 up  2:51,  2 users,  load average: 0.20, 0.16, 0.14
Tasks: 111 total,   1 running, 109 sleeping,   0 stopped,   1 zombie
%Cpu(s):  3.1 us,  3.1 sy,  0.0 ni, 90.6 id,  0.0 wa,  0.0 hi,  3.1 si,  0.0 st
MiB Mem :   1291.3 total,    937.8 free,    217.9 used,    135.5 buff/cache
MiB Swap:   2048.0 total,   2048.0 free,      0.0 used.   1062.6 avail Mem

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND
20757 root      20   0  197360 131784  23480 S   6.2  10.0   0:15.62 enigma2
20973 root      20   0  125732  41672  11028 S   6.2   3.2   0:01.28 exteplaye+
21076 root      20   0    4768   2088   1752 R   6.2   0.2   0:00.02 top
    1 root      20   0    1800   1232   1144 S   0.0   0.1   0:01.55 init
    2 root      20   0       0      0      0 S   0.0   0.0   0:00.00 kthreadd
    3 root      20   0       0      0      0 S   0.0   0.0   0:01.49 ksoftirqd+
    5 root       0 -20       0      0      0 S   0.0   0.0   0:00.00 kworker/0+
    7 root      20   0       0      0      0 S   0.0   0.0   0:01.04 rcu_sched
    8 root      20   0       0      0      0 S   0.0   0.0   0:00.00 rcu_bh
    9 root      rt   0       0      0      0 S   0.0   0.0   0:00.00 migration+
   10 root      rt   0       0      0      0 S   0.0   0.0   0:00.00 watchdog/0
   11 root      rt   0       0      0      0 S   0.0   0.0   0:00.00 watchdog/1
   12 root      rt   0       0      0      0 S   0.0   0.0   0:00.00 migration+
   13 root      20   0       0      0      0 S   0.0   0.0   0:00.07 ksoftirqd+
   14 root      20   0       0      0      0 S   0.0   0.0   0:08.18 kworker/1+
   15 root       0 -20       0      0      0 S   0.0   0.0   0:00.00 kworker/1+
   16 root       0 -20       0      0      0 S   0.0   0.0   0:00.00 khelper
   17 root      20   0       0      0      0 S   0.0   0.0   0:00.00 kdevtmpfs
   19 root       0 -20       0      0      0 S   0.0   0.0   0:00.00 perf
  344 root      20   0       0      0      0 S   0.0   0.0   0:00.01 khungtaskd
  345 root       0 -20       0      0      0 S   0.0   0.0   0:00.00 writeback
  346 root       0 -20       0      0      0 S   0.0   0.0   0:00.00 crypto
  349 root       0 -20       0      0      0 S   0.0   0.0   0:00.00 bioset
  351 root       0 -20       0      0      0 S   0.0   0.0   0:00.00 kblockd
  363 root       0 -20       0      0      0 S   0.0   0.0   0:00.00 ata_sff
  395 root       0 -20       0      0      0 S   0.0   0.0   0:00.00 cfg80211
  483 root       0 -20       0      0      0 S   0.0   0.0   0:00.00 rpciod
  484 root      20   0       0      0      0 S   0.0   0.0   0:00.00 kswapd0
  498 root      20   0       0      0      0 S   0.0   0.0   0:00.00 fsnotify_+
  499 root       0 -20       0      0      0 S   0.0   0.0   0:00.00 nfsiod
  500 root       0 -20       0      0      0 S   0.0   0.0   0:00.00 cifsiod
  578 root      20   0       0      0      0 S   0.0   0.0   0:00.00 scsi_eh_0
  579 root       0 -20       0      0      0 S   0.0   0.0   0:00.00 scsi_tmf_0
  648 root       0 -20       0      0      0 S   0.0   0.0   0:00.00 kpsmoused
  658 root     -51   0       0      0      0 S   0.0   0.0   0:00.00 irq/265-b+
  664 root     -51   0       0      0      0 S   0.0   0.0   0:00.00 irq/68-mm+
  681 root       0 -20       0      0      0 S   0.0   0.0   0:00.00 ipv6_addr+
  687 root       0 -20       0      0      0 S   0.0   0.0   0:00.00 deferwq
  691 root      20   0       0      0      0 S   0.0   0.0   0:01.22 mmcqd/0
  692 root      20   0       0      0      0 S   0.0   0.0   0:00.00 mmcqd/0bo+
  693 root      20   0       0      0      0 S   0.0   0.0   0:00.00 mmcqd/0bo+
  694 root      20   0       0      0      0 S   0.0   0.0   0:00.00 mmcqd/0rp+
  710 root       0 -20       0      0      0 S   0.0   0.0   0:00.17 kworker/0+
  711 root      20   0       0      0      0 S   0.0   0.0   0:00.02 jbd2/mmcb+
  712 root       0 -20       0      0      0 S   0.0   0.0   0:00.00 ext4-rsv-+
  825 root       0 -20       0      0      0 S   0.0   0.0   0:00.00 xfsalloc
  827 root       0 -20       0      0      0 S   0.0   0.0   0:00.00 xfs_mru_c+
  829 root      20   0       0      0      0 S   0.0   0.0   0:00.00 scsi_eh_1
  830 root       0 -20       0      0      0 S   0.0   0.0   0:00.00 scsi_tmf_1
  833 root      20   0       0      0      0 S   0.0   0.0   0:00.14 usb-stora+
  967 root       0 -20       0      0      0 S   0.0   0.0   0:00.05 kworker/1+
 1141 root      20   0       0      0      0 S   0.0   0.0   0:00.00 jbd2/sda1+
 1142 root       0 -20       0      0      0 S   0.0   0.0   0:00.00 ext4-rsv-+
 1153 root      20   0  280420   4008   3752 S   0.0   0.3   0:56.03 dvb_server
 1155 root      20   0  261964   2756   2544 S   0.0   0.2   0:05.82 init_clie+
 1163 root      20   0       0      0      0 S   0.0   0.0   0:02.28 graphicsv+
 1254 root      20   0       0      0      0 S   0.0   0.0   0:00.16 fbt0
 1287 root      20   0       0      0      0 S   0.0   0.0   0:00.83 cimaxRead+
 1291 root      20   0       0      0      0 S   0.0   0.0   0:00.73 ca05
 1292 root      20   0       0      0      0 S   0.0   0.0   0:00.50 ci_kthread
 1293 root      20   0       0      0      0 S   0.0   0.0   0:00.00 dvb_ci_rmx
 1298 root      20   0       0      0      0 S   0.0   0.0   0:00.00 sc0_kthre+
 1344 message+  20   0    2424   1592   1436 S   0.0   0.1   0:00.03 dbus-daem+
 1347 root      20   0    2144   1456   1360 S   0.0   0.1   0:00.00 dropbear
 1420 root      20   0    2788     84      0 S   0.0   0.0   0:00.00 udhcpc
 1435 root      20   0    1808     64      0 S   0.0   0.0   0:00.01 odhcp6c
 1443 rpc       20   0    2056   1372   1232 S   0.0   0.1   0:00.01 rpcbind
 1457 root      20   0       0      0      0 S   0.0   0.0   0:00.00 lockd
 1458 root      20   0       0      0      0 S   0.0   0.0   0:00.00 nfsd
 1459 root      20   0       0      0      0 S   0.0   0.0   0:00.00 nfsd
 1460 root      20   0       0      0      0 S   0.0   0.0   0:00.00 nfsd
 1461 root      20   0       0      0      0 S   0.0   0.0   0:00.00 nfsd
 1462 root      20   0       0      0      0 S   0.0   0.0   0:00.00 nfsd
 1463 root      20   0       0      0      0 S   0.0   0.0   0:00.00 nfsd
 1464 root      20   0       0      0      0 S   0.0   0.0   0:00.00 nfsd
 1465 root      20   0       0      0      0 S   0.0   0.0   0:00.00 nfsd
 1467 root      20   0    2476    220      0 S   0.0   0.0   0:00.00 rpc.mountd
 1480 root      20   0   28296   1784   1532 S   0.0   0.1   0:00.00 automount
 1490 rpcuser   20   0    2180   1336   1188 S   0.0   0.1   0:00.00 rpc.statd
 1498 root      20   0    2788     80      0 S   0.0   0.0   0:00.00 inetd
 1510 root      20   0   39356  13072  11476 S   0.0   1.0   0:00.07 smbd
 1514 root      20   0   38108   8200   6680 S   0.0   0.6   0:00.01 smbd-noti+
 1515 root      20   0   38100   2428    908 S   0.0   0.2   0:00.00 cleanupd
 1522 root      20   0    1836     80      0 S   0.0   0.0   0:00.00 wsdd
 1525 root      20   0    5692   1836   1468 S   0.0   0.1   0:00.00 shellinab+
 1526 root      20   0    5692   1860   1492 S   0.0   0.1   0:00.00 shellinab+
 1530 root      20   0    2788    752    672 S   0.0   0.1   0:00.09 syslogd
 1533 root      20   0    2788    752    672 S   0.0   0.1   0:00.11 klogd
 1536 root      20   0    2788     80      0 S   0.0   0.0   0:00.00 telnetd
 1543 avahi     20   0    2840   2244   2008 S   0.0   0.2   0:00.19 avahi-dae+
 1544 avahi     20   0    2656    152      0 S   0.0   0.0   0:00.00 avahi-dae+
 1553 root      20   0   10276    440     56 S   0.0   0.0   0:00.00 ncam-13.5
 1555 root      19  -1   20208  12688   6384 S   0.0   1.0   0:52.87 ncam-13.5
 1562 root      20   0   38828  29676   4568 S   0.0   2.2   0:03.40 S50stream+
 1567 root      20   0    5248   2036   1712 S   0.0   0.2   0:00.00 vsftpd
 1571 root      20   0    2888   1592   1320 S   0.0   0.1   0:00.08 crond
 2759 root      20   0    2276   1792   1608 S   0.0   0.1   0:00.17 dropbear
 2766 root      20   0    5456   3412   2516 S   0.0   0.3   0:00.07 sh
 3488 root      20   0       0      0      0 S   0.0   0.0   0:03.27 kworker/0+
 3601 root      20   0       0      0      0 S   0.0   0.0   0:00.02 kworker/u+
 6215 root      20   0       0      0      0 S   0.0   0.0   0:03.44 kworker/0+
 8936 root       0 -20       0      0      0 S   0.0   0.0   0:00.00 wg-crypt-+
 9071 root      20   0       0      0      0 S   0.0   0.0   0:03.01 kworker/0+
15645 root      20   0       0      0      0 S   0.0   0.0   0:00.02 kworker/u+
16957 root      20   0       0      0      0 S   0.0   0.0   0:03.00 kworker/1+
20675 root      20   0       0      0      0 S   0.0   0.0   0:00.33 kworker/1+
20676 root      20   0       0      0      0 S   0.0   0.0   0:00.20 kworker/1+
20732 root      20   0    3228   2384   2108 S   0.0   0.2   0:00.01 enigma2.sh
20927 root      20   0       0      0      0 Z   0.0   0.0   0:00.06 opkg
21063 root      20   0    2276   1792   1608 S   0.0   0.1   0:00.11 dropbear
21064 root      20   0    5456   3184   2324 S   0.0   0.2   0:00.07 sh
root@vuzero4k:~#

 



Re: Recording IPTV #80 scriptmelvin †

  • PLi® Contributor
  • 720 posts

+46
Good

Posted 11 February 2023 - 01:30

For some reason you have the procps package installed, which replaces busybox top. Try this version of the script which uses ps instead of top, and figures out if it's the full ps or the busybox ps.

#!/bin/sh
# /usr/script/ffmpeg_record.sh
# ffmpeg recording tool by mrvica
# adapted by scriptmelvin

# english date / time stamp
# DATE=`date +%Y.%m.%d_%H:%M:%S`
# german date / time stamp
# DATE=`date +%d.%m.%Y-%H:%M:%S`

DATE=$(date +%d_%m_%Y-%H_%M_%S)
PSOUT=$(ps auxw 2>/dev/null | grep exteplayer3 | grep -v grep) # try the procps ps
if [ "$PSOUT" = "" ]; then                                     # if it failed
    PSOUT=$(ps 2>/dev/null | grep exteplayer3 | grep -v grep)  # try the busybox ps
fi
URL=$(echo $PSOUT | grep -o 'exteplayer3.*' | awk '{print $2}')
PATH='/media/hdd/movie/'
#PATH=`/bin/grep config.usage.default_path= /etc/enigma2/settings | /bin/sed 's/[^ ]*=//'`
FILE="$PATH$DATE.ts"
HEADERS='User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/109.0'

# sanity checks
if [ "$URL" = "" ]; then
    echo 'record failed'
    echo 'cannot determine URL, is exteplayer3 running?'
    exit 1
fi
if ! [ -d "$PATH" ]; then
    echo 'record failed'
    echo "path $PATH unavailable, check the recording device"
    exit 1
fi

echo "recording to: $FILE started"
exec /usr/bin/ffmpeg -headers "$HEADERS" -i "$URL" -s hd720 -vcodec copy -acodec copy "$FILE"

 

 


Sorry to inform you this member, my brother, passed away.


16 user(s) are reading this topic

0 members, 16 guests, 0 anonymous users