WWBN / AVideo

Create Your Own Broadcast Network With AVideo Platform Open-Source. OAVP OVP
https://avideo.tube/AVideo_OpenSource
Other
1.92k stars 972 forks source link

Video resync issue again? #9590

Closed JoshWho closed 2 weeks ago

JoshWho commented 2 weeks ago

Video https://ftjmedia.com/channel/GiuseppeVafanculo/video/.PA9SAewt9XVYdS9-jfC8NA/the-sane-asylum-based-hump-day-284---13nov24-on-13-nov-24-18-00-18

Not playing just spins

Says it transferred to storage and has time stamps.

DanielnetoDotCom commented 2 weeks ago

Hold on

JoshWho commented 2 weeks ago

Find anything?

DanielnetoDotCom commented 2 weeks ago

I have no idea why your video does not have the encryption key file (I have never seen that) that is why it is not playing

did you delete or maybe some security protocoll delete the file?

I did find anything in the logs

Is it a recorder livestream?

I found 4 recorded lives from today in your server, I sent them again to encode, onve it is done delete the duplicated ones and check it the video works

image

I also set your encoder to not delete the files after encode so I can detect where the issue comes from.

JoshWho commented 2 weeks ago

Yes it is a recorded live stream

DanielnetoDotCom commented 2 weeks ago

Once the video you want is encoded, please test if it has the key. again, I have never seen that happen, something may delete the file

JoshWho commented 2 weeks ago

Looks like the one that is broken was ran through https://encoder1.wwbn.net/

JoshWho commented 2 weeks ago

I do not think your encoder is set like mine. Mine is set with this for hls

ffmpeg -i input -c:v libx264 -pix_fmt yuv420p -vf "scale=-2:{$resolution}" -r 24 -g 48 -keyint_min 48 -sc_threshold 0 -bf 2 -b_strategy 1 -minrate {$minrate}k -crf 23 -maxrate {$maxrate}k -bufsize {$bufsize}k -c:a aac -b:a {$audioBitrate}k -threads 4 -f hls -hls_time 6 -hls_list_size 60 -hls_flags +independent_segments+program_date_time -hls_segment_filename "res{$resolution}/segment_%03d.ts" -hls_key_info_file {$destinationFile}keyinfo {$destinationFile}res{$resolution}/index.m3u8

DanielnetoDotCom commented 2 weeks ago

Also no records in the encoder 1 server, I did checked it

DanielnetoDotCom commented 2 weeks ago

I do not think your encoder is set like mine. Mine is set with this for hls

ffmpeg -i input -c:v libx264 -pix_fmt yuv420p -vf "scale=-2:{$resolution}" -r 24 -g 48 -keyint_min 48 -sc_threshold 0 -bf 2 -b_strategy 1 -minrate {$minrate}k -crf 23 -maxrate {$maxrate}k -bufsize {$bufsize}k -c:a aac -b:a {$audioBitrate}k -threads 4 -f hls -hls_time 6 -hls_list_size 60 -hls_flags +independent_segments+program_date_time -hls_segment_filename "res{$resolution}/segment_%03d.ts" -hls_key_info_file {$destinationFile}keyinfo {$destinationFile}res{$resolution}/index.m3u8

I am not sure what is the difference, but again that is the first time I have seen the key file disappear Let it finish

JoshWho commented 2 weeks ago

my ffmpeg command above is an optimized version and sets it to only use 4 threads. I bet without those settings it makes the memory leak or something and goes bonkers. 99%cpu

JoshWho commented 2 weeks ago

What is the difference in Multi VOD HLS and Dynamic HLS?

DanielnetoDotCom commented 2 weeks ago

Please keep dynamic

The other one is old it is just for backwards compatibility

JoshWho commented 2 weeks ago

I noticed looking in the tmp folder all the dates are wrong. What is causing that?

JoshWho commented 2 weeks ago

None of the ones encoding are the one that is broken

DanielnetoDotCom commented 2 weeks ago

Please do not touch The dates are correct

JoshWho commented 2 weeks ago

Why streams today say it is the 12th in the file system? image

JoshWho commented 2 weeks ago

image

DanielnetoDotCom commented 2 weeks ago

It is the server timezone not yours

Check the server timezone

JoshWho commented 2 weeks ago

must be GMT today is the 13th though isn't it?

DanielnetoDotCom commented 2 weeks ago

the server time now is

Wed Nov 13 23:55:35 UTC 2024

JoshWho commented 2 weeks ago

Weirdest thing I have seen so far. Feel like we time traveled now 😂😅🤣

DanielnetoDotCom commented 2 weeks ago

Did you delete the files I sent to the encoder?

DanielnetoDotCom commented 2 weeks ago

why? are you sure the one is encoding now is the right one?

JoshWho commented 2 weeks ago

Did you delete the files I sent to the encoder?

Yes I didn't see the one we was looking for it was all other shows.

DanielnetoDotCom commented 2 weeks ago

I do not understand what you mean but I hope you kept the right video in the encoder

JoshWho commented 2 weeks ago

I do not understand what you mean but I hope you kept the right video in the encoder

I can see the thumbnails and none of them was the one I was looking for. I am downloading them all to my computer now to see them clearly

The first 2 completed and seen them not the right one

JoshWho commented 2 weeks ago

Is there a way to make finding these easier? Like give them a certain tag number or something so it matches the temp file to the live real file name some how.

For example say video with filename bartsimpson-TG2344

I can look in the temp folder for the TG2344

DanielnetoDotCom commented 2 weeks ago

If I am not wrong the filename is the key + the date

record_suffix -%d-%b-%y-%T.flv;

JoshWho commented 2 weeks ago

The key though doesn't tell me what channel or any hint to what the video is. Be nice to see video blah-GS39 is brokens and to find that tag GS39 instead of uploading them all

DanielnetoDotCom commented 2 weeks ago

This cannot change, it is a nginx configuration and we do not choose the name from AVideo

JoshWho commented 2 weeks ago

This cannot change, it is a nginx configuration and we do not choose the name from AVideo

That is a bummer

JoshWho commented 2 weeks ago

Same thing just happened to this video https://ftjmedia.com/channel/Joshwho/video/.wB88ne7XkWUGff6yEJ459A/joshwho-morningstar-seekingthetruth-%E2%83%A3---alien-invasions-%F0%9F%91%BD%F0%9F%9B%B8-are-next.-project-blue-beam-project-skybeam-for-year-2024-this-agenda21-is-being-played-out-to-the-fullest-and-we-are-..

JoshWho commented 2 weeks ago

Am I just having bad luck today or has something changed?

I swear this is like the slit experiment. Everytime I have uploaded a test today. Me watching it makes it break

If I go away after uploading and check back like a hour later it works.

What does me watching the video manager change here?

DanielnetoDotCom commented 2 weeks ago

Same thing just happened to this video https://ftjmedia.com/channel/Joshwho/video/.wB88ne7XkWUGff6yEJ459A/joshwho-morningstar-seekingthetruth-%E2%83%A3---alien-invasions-%F0%9F%91%BD%F0%9F%9B%B8-are-next.-project-blue-beam-project-skybeam-for-year-2024-this-agenda21-is-being-played-out-to-the-fullest-and-we-are-..

This one still encoding ,

image

The other one must be one of those files I sent to the encoder, but you said it was not, so I hope you can find it

JoshWho commented 2 weeks ago

No that is a new one I am doing now

DanielnetoDotCom commented 2 weeks ago

also I can see you deleted the videos from yesterday from the tmp folder, they are not there anymore.

I hope you know what you are doing!

JoshWho commented 2 weeks ago

I didn't delete anything, I told you there is something weird with the file system date and time.

DanielnetoDotCom commented 2 weeks ago

impossible the video was thare , maybe you moved to your desktop instead of copy

BTW this video is working here https://ftjmedia.com/channel/Joshwho/video/.wB88ne7XkWUGff6yEJ459A/joshwho-morningstar-seekingthetruth-%E2%83%A3---alien-invasions-%F0%9F%91%BD%F0%9F%9B%B8-are-next.-project-blue-beam-project-skybeam-for-year-2024-this-agenda21-is-being-played-out-to-the-fullest-and-we-are-

JoshWho commented 2 weeks ago

impossible the video was thare , maybe you moved to your desktop instead of copy

BTW this video is working here https://ftjmedia.com/channel/Joshwho/video/.wB88ne7XkWUGff6yEJ459A/joshwho-morningstar-seekingthetruth-%E2%83%A3---alien-invasions-%F0%9F%91%BD%F0%9F%9B%B8-are-next.-project-blue-beam-project-skybeam-for-year-2024-this-agenda21-is-being-played-out-to-the-fullest-and-we-are-

I am onto something. That is the replacement video and this time I did not watch it in the video manager. The last times I did.

JoshWho commented 2 weeks ago

I think somehow prematurely accessing a video before it is truly completed is causing this.

DanielnetoDotCom commented 2 weeks ago

they were here image

and I did asked you to not delete and the video will remain there for investigation

image

image

I do not know how to recover them now

JoshWho commented 2 weeks ago

I never touched the files. Only downloaded them

DanielnetoDotCom commented 2 weeks ago

Again, I have never see this happen, I need to check it.

lost key file is almost impossible, no idea what happen, but now all your videos from yesterday are gone, I do not know what to do

as I asked you, you are not supposed to delete the videos from the encoder.

JoshWho commented 2 weeks ago

I didn't delete anything. What are you talking about?

JoshWho commented 2 weeks ago

It is not a problem I have the video

DanielnetoDotCom commented 2 weeks ago

I never touched the files. Only downloaded them

Didnt you delete the files from the encoder? how they were removed? how do you have the files did you download them? maybe moved them?

JoshWho commented 2 weeks ago

The only problem I am seeing is this weird thing by watching a video process in the video manager makes it break.

Not watching it , it works.

What is viewing the page doing to it?

DanielnetoDotCom commented 2 weeks ago

If you have the file send them to encode again, and do not delete from the encoder, lets see how the key disappear

JoshWho commented 2 weeks ago

I never touched the files. Only downloaded them

Didnt you delete the files from the encoder? how they were removed? how do you have the files did you download them? maybe moved them?

I have everyone save backups and he just reuploaded it

JoshWho commented 2 weeks ago

Still encoding 703e06a9-7936-4d1a-b67b-cc8f9da7aab3