OriX6 / liveRecordAuto

基于 Electron 的多平台直播自动录制软件 支持抖音/快手 多链接形式
701 stars 60 forks source link

Is it possible to record in flv without subsequently changing the container? #27

Open AvrilL161 opened 1 year ago

AvrilL161 commented 1 year ago

Thank you very much for your work. Is it possible to make an output file in flv without changing the container after finishing recording?


Every time the broadcast ends, one of these errors appears in the log:

"http://pull-flv-l11.douyincdn.com/third/stream-113815639801987548_or4.flv?expire=1696590006&sign=9b4bc7df744606549b4ad4cdf78efce5: Unknown error" or "[http @ 0000017fc480dac0] Stream ends prematurely at 154933027, should be 18446744073709551615"

but the output file is saved correctly.


But if there were broadcast errors on the streamer's side, then the output file may have incorrect timestamps that cannot be corrected. The output file will be corrupted. But if the recording is in flv format, then can use the app BililiveRecorder in most cases it can fix flv. But it only works with the raw flv files.


Almost every time the application is launched for the first time, after agreeing to the warning, an error appears 2023-09-29_12-31-01 and the list of rooms does not load. After restarting the application, everything works fine.

OriX6 commented 1 year ago

Thank you very much for your work. Is it possible to make an output file in flv without changing the container after finishing recording?

Every time the broadcast ends, one of these errors appears in the log:

"http://pull-flv-l11.douyincdn.com/third/stream-113815639801987548_or4.flv?expire=1696590006&sign=9b4bc7df744606549b4ad4cdf78efce5: Unknown error" or "[http @ 0000017fc480dac0] Stream ends prematurely at 154933027, should be 18446744073709551615"

but the output file is saved correctly.

But if there were broadcast errors on the streamer's side, then the output file may have incorrect timestamps that cannot be corrected. The output file will be corrupted. But if the recording is in flv format, then can use the app BililiveRecorder in most cases it can fix flv. But it only works with the raw flv files.

Almost every time the application is launched for the first time, after agreeing to the warning, an error appears 2023-09-29_12-31-01 and the list of rooms does not load. After restarting the application, everything works fine.

Sorry, during this period of time, China happens to have a holiday。 So maybe the response hasn't been timely in the past few days

AvrilL161 commented 1 year ago
  • Why not use FLV? Because its damage resistance is relatively poor, compared to the TS format, using FLV is prone to the situation of recorded videos getting stuck

Perhaps in future updates you will add the choice to select the output file format, and full log-file creation, in advanced settings.

Happy mid-autumn festival! Sorry for the late greetings.

OriX6 commented 1 year ago
  • Why not use FLV? Because its damage resistance is relatively poor, compared to the TS format, using FLV is prone to the situation of recorded videos getting stuck

Perhaps in future updates you will add the choice to select the output file format, and full log-file creation, in advanced settings.

Happy mid-autumn festival! Sorry for the late greetings.

I will take into account the suggestion regarding configuration items. During the testing process, the issue of fragmentation and broken records will generate a relatively large number of logs, as connections with the server will be constantly created and the output of logs will be very frequent. Although the bug of recording fragmentation has been fixed, it is necessary to consider the output of logs in this situation

AvrilL161 commented 1 year ago
  • Why not use FLV? Because its damage resistance is relatively poor, compared to the TS format, using FLV is prone to the situation of recorded videos getting stuck

This is what happens when a streamer changes the resolution of a stream without interrupting it. 已转码2023-10-01 17-01-05 mp4_20231001_194608 558 已转码2023-10-01 17-01-05 mp4_20231001_194625 033 If the file was in raw flv format, it could be corrected using the application I specified (BililiveRecorder).

OriX6 commented 1 year ago

If the file was in raw flv format, it could be corrected using the application I specified (BililiveRecorder).

I really don't have such a scenario as you mentioned. Thank you for adding. I will push a version update to save the format and fix some bugs before the 15th