WWBN / AVideo

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

Is there a way to also encode an MP3 last when a file gets imported or uploaded? #9203

Closed JoshWho closed 2 months ago

JoshWho commented 2 months ago

I have someone asking me to be able to have a mp3 version, of the video file, also available for download. Is there any way to make this work?

So basically when the enoder makes the different formats it can also include just a mp3 version of it? and make it available for download.

DanielnetoDotCom commented 2 months ago

Currently there is no such option

JoshWho commented 2 months ago

We will pay for this addon if u can make a price and think it is possible.

DanielnetoDotCom commented 2 months ago

Hi, if you want please send me details on developer@youphptube.com, so I can quote it

JoshWho commented 2 months ago

Email sent

JoshWho commented 2 months ago

Payment sent

JoshWho commented 2 months ago

I was seeing the download mp3 buttons under the videos but now it seems it all went away. Do I have to enable the convert all videos to mp3 or is that something different?

DanielnetoDotCom commented 2 months ago

Hi,

do you mean the buttons disapears or is not creating the mp3 for the new ones?

JoshWho commented 2 months ago

Hi,

do you mean the buttons disapears or is not creating the mp3 for the new ones?

Both I do not see it anymore under the new videos

DanielnetoDotCom commented 2 months ago

but do you stil see on old videos?

JoshWho commented 2 months ago

Yes Looks like older ones still have it Screenshot (33)

JoshWho commented 2 months ago

Screenshot (34)

DanielnetoDotCom commented 2 months ago

Ok, the issue is they are not converting. you can use this script to convert the videos manually

you can add it in the crontab so it will execute periodically and it will scan your videos and will convert the mp3 if the file does not exists

php /var/www/html/AVideo/install/getMp3FromAll.php
JoshWho commented 2 months ago

Should I run it every minute?

JoshWho commented 2 months ago

Terminal spit this out when I ran it

PHP Warning: require_once(../videos/configuration.php): Failed to open stream: No such file or directory in /var/www/html/AVideo/install/getMp3FromAll.php on line 3 PHP Fatal error: Uncaught Error: Failed opening required '../videos/configuration.php' (include_path='.:/usr/share/php') in /var/www/html/AVideo/install/getMp3FromAll.php:3 Stack trace:

0 {main}

thrown in /var/www/html/AVideo/install/getMp3FromAll.php on line 3

DanielnetoDotCom commented 2 months ago

Try this update but after you complete the run the first time, I guess you can to it every hour

JoshWho commented 2 months ago

Kewl that did the trick, Thank you will add it once an hour.