Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VideoHLS definitions #9760

Closed
eitanwa opened this issue Dec 31, 2024 · 37 comments
Closed

VideoHLS definitions #9760

eitanwa opened this issue Dec 31, 2024 · 37 comments
Labels

Comments

@eitanwa
Copy link

eitanwa commented Dec 31, 2024

hey daniel

The plugin is amazing and works properly
The problem is that I don't understand what I'm doing
It confused me with the previous definitions, changed my concept and I have a lot of questions

What would make it easier for me is simply to know what your recommendation is ,for the best settings
How do you configure these plugins?

I would love to know how you define each of these
image

Here mainly the marked one
image

Please take this into account in your recommendations that I will soon use your cdn
(With TLS files you recommend a CDN right?)

As usual, many thanks for the help, champion

@DanielnetoDotCom
Copy link
Member

Yes, the CDN gives a huge improvement.

Regarding the MP4 conversion check this https://github.com/WWBN/AVideo/wiki/Automatically-Convert-Videos-to-MP4-and-MP3

@eitanwa
Copy link
Author

eitanwa commented Jan 1, 2025

Excellent, thanks, I think this is what I was looking for
I'm going to read it
Regarding the CDN
I will update you very soon

@eitanwa
Copy link
Author

eitanwa commented Jan 3, 2025

Hi Daniel, I read the article
I've set up my encoder to be open to all possibilities
Everything works great
except for the MP4 encoding

image

The import file and from file
The result is broken and missing files
image

These are my settings
image
image
image

just to point out
Direct upload of mp4 - works great
HLS - works great and produces mp4 files
And also all the encoding options mp3 images and so on

Thanks Daniel

@DanielnetoDotCom
Copy link
Member

You must check something

image

for my self I check 480/720/1080/2160

@eitanwa
Copy link
Author

eitanwa commented Jan 3, 2025

I marked 720

image

This is the mark I show in the picture
I also tried marking as you recommend All of those 480/720/1080/2160
It is still not coded in the way I mentioned earlier

@DanielnetoDotCom
Copy link
Member

@guymass
Copy link
Contributor

guymass commented Jan 4, 2025

Hi Daniel, we have tried to view the logs while trying two different uploads to encode MP4, one is an import from YT and one is a direct mp4 file we uploaded. The logs shows a lot of output so its hard for me to pinpoint exactly the section that shows the error.

Currently we still are unable to encode mp3 through the encoder, however if we use direct upload it will work.

Here are some screenshots that may show some info from the logs:
Screenshot 5785-04-04 at 21 01 54
Screenshot 5785-04-04 at 21 01 43

@guymass
Copy link
Contributor

guymass commented Jan 4, 2025

So basically when using the HLS it works fine also creating mp4, but when I upload an mp4 file to the encoder it will not create the post and will show me "Missing or Damaged Files" notice on the Videos page.

Also when importing a URL from our own site encoding works just fine, it only doesn't work for YouTube imports.

@DanielnetoDotCom
Copy link
Member

the only way for me to help you is if you can get better logs.

screenshots are not good, would be better if you can copy and paste the text and a more complete log

also to get the correct log you MUST follow this link https://github.com/WWBN/AVideo/wiki/How-to-find-errors-on-AVideo-Platform#2-preventing-file-loss-during-transfer-errors

@guymass
Copy link
Contributor

guymass commented Jan 5, 2025

Hi Daniel here are my two log files, I home you will be able to trace the error there. I tries to keep them as small as I could.

avideo-main.log
avideo.log

@eitanwa
Copy link
Author

eitanwa commented Jan 6, 2025

Another interesting thing I now see
It only encodes a low resolution 360 file

image

@DanielnetoDotCom
Copy link
Member

did you disabled the auto delete on the encoder as I asked you to do above?
If you did, the encoded file still on your encoder so we can make some tests?
FYI I see this in your log

[05-Jan-2025 20:21:47 Asia/Jerusalem] AVideoLog::DEBUG: aVideoEncoder.json: ******** Download ERROR https://live.ahava528.com/Encoder/videos/avideoTmpFile_10097_streamers_id_18_480.mp4 SCRIPT_NAME: /objects/aVideoEncoder.json.php

that means your streamer could not access the URL https://live.ahava528.com/Encoder/videos/avideoTmpFile_10097_streamers_id_18_480.mp4 or it is not a valid video file

check how big is this file

ls -lah /var/www/html/AVideo/Encoder/videos/avideoTmpFile_10097_streamers_id_18_480.mp4

paste the response here

@guymass
Copy link
Contributor

guymass commented Jan 6, 2025

Hi Daniel,

Yes I disabled the delete video checkbos.
Could be the url was a YouTube import video which didn't import, however it does work for us and we can imports from YouTube.

File size seem to be 0:

Screenshot 5785-04-06 at 19 27 05

We notice that sometimes even our own URL will not import, we made a test and what was strange is that the same URL import was encoding fine at one time, and than we tried again with the same URL and it didn't work.

It was a URL from our own site which should import just fine, but one try it worked and than a second try it didn't work with the same URL.

Also I see that under Encoder/videos I have many thumbs_xxxx directories should I remove them?

Screenshot 5785-04-06 at 19 32 29

Our issue mainly is not being able to directly upload MP4 and encode it, mainly any other resolution besides 360.

When Encoding using HLS it will encode MP4 without any problem.

@DanielnetoDotCom
Copy link
Member

yes you can delete the thumbs folders

instead of download form youtube try to upload a video file and convert it to MP4

@eitanwa
Copy link
Author

eitanwa commented Jan 6, 2025

Hi Daniel
Just to clarify
referring to this
"try to upload a video file and convert it to MP4"

HLS works as expected (converts to MP4 MP3)
Both the import and from the file
And even from YouTube!! That's why we mentioned it
We do not have the problem of importing files from YouTube, but we are aware of it
(I think it's because we don't often code (import files) from there - I wrote you about it in the relevant post #9242 (comment) #9242 (comment))

MP4
There is no coding at all neither on import nor from the file
We tested all the possibilities that come to mind in the relevant plugins
and all possible resolutions
thanks

@DanielnetoDotCom
Copy link
Member

As long as it is 0 bytes it must be something with your ffmpeg

first check the filesize of /var/www/html/AVideo/Encoder/videos/10097_tmpFile.mp4

if the filesize is good try the ffmpeg below

ffmpeg         -i "/var/www/html/AVideo/Encoder/videos/10097_tmpFile.mp4"  -vf scale=-2:480 -movflags +faststart -preset veryfast -vcodec h264 -acodec aac  -b:a k  -max_muxing_queue_size 1024 -y /var/www/html/AVideo/Encoder/videos/avideoTmpFile_10097_streamers_id_18_480.mp4

@guymass
Copy link
Contributor

guymass commented Jan 7, 2025

Hi Daniel, I tried to run you ffmpeg command on my file but got an error.

Here are the screenshots:
Screenshot 5785-04-07 at 16 05 16

Trying to encode:

Screenshot 5785-04-07 at 16 06 10

@guymass
Copy link
Contributor

guymass commented Jan 7, 2025

Just a guess, but could it be related to my linux ubuntu version?

On Feisafe.com I have 23.04
On Live528.com I have 22.10

@DanielnetoDotCom
Copy link
Member

Is your encoder up to date?

I guess you are missing updates on the encoder.

@guymass
Copy link
Contributor

guymass commented Jan 7, 2025

Well I think it is updated.

Screenshot 5785-04-07 at 17 23 21

@DanielnetoDotCom
Copy link
Member

but please make a git pull and check it that fixes

@guymass
Copy link
Contributor

guymass commented Jan 7, 2025

Screenshot 5785-04-07 at 17 40 28

I made a git pull on main AVideo as well.

@DanielnetoDotCom
Copy link
Member

Something is wrong with your code

this ffmpeg "-vcodec h264 -acodec aac" was removed on version 5.2

So I suspect you had an issue is some update

I think the easiest would be reinstall the encoder.

drop the database, remove the videos/configuration.php file and install it again.

or you can try to run this sql

https://github.com/WWBN/AVideo-Encoder/blob/master/update/updateDb.v5.2.sql

@eitanwa
Copy link
Author

eitanwa commented Jan 7, 2025

Wow
Daniel, thank you
It works and works great
Also the import also from YouTube!!!
The speed is amazing
wow!!!
I have no words
thanks so much

Regarding the auto remove, it is now possible to mark it back right?

Regarding YouTube
What do you recommend, it's better not to code too much from there right?

daniel you r the best

@DanielnetoDotCom
Copy link
Member

DanielnetoDotCom commented Jan 7, 2025

yes, once is resolved you can check it back now.

I guess youtube will stop in the future, unless some one comes with a solution

@eitanwa
Copy link
Author

eitanwa commented Jan 7, 2025

Excellent in fact it's better without them
Daniel
thanks

@eitanwa eitanwa closed this as completed Jan 7, 2025
@eitanwa
Copy link
Author

eitanwa commented Jan 8, 2025

Hi Daniel
Sorry that's the only thing I didn't check after the updates we made
Simply because it worked before

Now it does not extract the mp3 files
Neither in HLS encoding nor in MP4 encoding

image
Mp3 missing
tnks

@eitanwa eitanwa reopened this Jan 8, 2025
@guymass
Copy link
Contributor

guymass commented Jan 8, 2025

Maybe I need to reinstall the encoder again?

@DanielnetoDotCom
Copy link
Member

MP3 is not converted on the encoder, it is converted in the streamer

But I have plans to also convert it on encoder in the future.

https://github.com/WWBN/AVideo/wiki/Automatically-Convert-Videos-to-MP4-and-MP3

@eitanwa
Copy link
Author

eitanwa commented Jan 8, 2025

MP3 is not converted on the encoder, it is converted in the streamer

But I have plans to also convert it on encoder in the future.

https://github.com/WWBN/AVideo/wiki/Automatically-Convert-Videos-to-MP4-and-MP3

It is marked and was so before the updates we made
image

@DanielnetoDotCom
Copy link
Member

Again, it will be converted on the streamer, you will not see the MP3 on the encoder.

@eitanwa
Copy link
Author

eitanwa commented Jan 8, 2025

This is an HLS encoded file

image
No MP3 file
image

MP4 encoding
image
No MP3
Screenshot source file
image

@DanielnetoDotCom
Copy link
Member

Please make a git pull and check if it will create now.

if fails please try this

cd /var/www/html/AVideo/install
php getMp3FromVideo.php

it will promp you for a video id you enter and then share the logs

@eitanwa
Copy link
Author

eitanwa commented Jan 9, 2025

Please make a git pull and check if it will create now.

if fails please try this

cd /var/www/html/AVideo/install
php getMp3FromVideo.php

it will promp you for a video id you enter and then share the logs

Looks great, Daniel, thanks
Before I close the post again
I want to go through everything again
Just updating you
The MP3 is back

@guymass
Copy link
Contributor

guymass commented Jan 10, 2025

OK I tried this command on one of my video posts and it encoded it just fine:

php getMp3FromVideo.php
Screenshot 5785-04-10 at 12 20 07

I can also download the MP3 from the post page, however when I open the AI-Powered page on the same video post I get the following message:

Screenshot 5785-04-10 at 12 20 57

Why doesn't it recognize the MP3 file there?

@DanielnetoDotCom
Copy link
Member

I am so sorry, please try this update. it should fix the issue.

@guymass
Copy link
Contributor

guymass commented Jan 10, 2025

Thank you brother that fixed it.

Screenshot 5785-04-10 at 22 56 59

@eitanwa eitanwa closed this as completed Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants