Pavion / tvstreamrecord

Timed TV stream recording for Python
GNU General Public License v3.0
45 stars 10 forks source link

1 hour delay in recording and multiple files #56

Closed mbaiti closed 2 years ago

mbaiti commented 2 years ago

Hi @Pavion

Thanks again for your support in #55

As mentioned i am dealing with some other strange issues:

  1. If i schedule a recording it starts exactly 1 hour after the time set. The date on my device is set correctly. I checked it with the "date" command under linux/debian. I've also tried to change "Date/time locale" under "config - general" without any changes.

  2. I started a test recording for 10 Minutes and it will result in 3 or 4 files on disk. The Log says something like this:

2022-02-14 17:40:00.004 FFMPEG (http) record ‘test-10min' called with: 2022-02-14 17:40:00.004 ['ffmpeg', '-i', 'http://url.m3u8', '-y', '-t', '599', '-loglevel', 'fatal', '-map', '0', '-c', 'copy', '/volume1/common/20220214174000 - test_10min.mkv'] 2022-02-14 17:49:22.573 FFMPEG record 'test-10min' ended 2022-02-14 17:49:22.574 Something went wrong with 'test-10min', retry 1/99 in 10 seconds 2022-02-14 17:49:32.585 FFMPEG (http) record 'test-10min' called with: 2022-02-14 17:49:32.586 ['ffmpeg', '-i', 'http://url.m3u8', '-y', '-t', '27', '-loglevel', 'fatal', '-map', '0', '-c', 'copy', '/volume1/common/20220214174932 - test_10min.mkv'] 2022-02-14 17:49:34.123 FFMPEG record 'test-10min' ended 2022-02-14 17:49:34.124 Something went wrong with 'test-10min', retry 2/99 in 10 seconds 2022-02-14 17:49:44.136 FFMPEG (http) record 'test-10min' called with: 2022-02-14 17:49:44.136 ['ffmpeg', '-i', 'http://url.m3u8', '-y', '-t', '15', '-loglevel', 'fatal', '-map', '0', '-c', 'copy', '/volume1/common/20220214174944 - test_10min.mkv'] 2022-02-14 17:49:46.901 FFMPEG record 'test-10min' ended 2022-02-14 17:49:46.902 Something went wrong with 'test-10min', retry 3/99 in 10 seconds

Can you explain what "Something went wrong with..." exactly means?

Thank you!

Pavion commented 2 years ago

1) With the latest build you should be able to select your timezone using TZ variable:

docker run --rm -d -e TZ=Australia/Brisbane ... 

2) please check this readme section: https://github.com/Pavion/tvstreamrecord#ffmpeg-support For recording ffmpeg is used and I just print this message if it exits too soon but don't get any exit code. You can enable more ffmpeg output (loglevel) or use CLI to test it right away.

mbaiti commented 2 years ago

Hi @Pavion

I've already set the TZ to the correct one and also changed it in the "Config - General" Tab. After the change of Daylight saving time by end of March, now the time is correct :) Maybe tvstreamrecord can't handle summer- and wintertime?

After i changed the ffmpeg settings back to the default, its again only one file. Looks ok so far. Now i have another problem. I'll open an new Issue.

Thanks!