Recent posts

#71
avatar_Marius P.
Bug tracker / Re: Conversion failed for:
Last post by Marius P. -
Salut!

1. Imi pare mie ca se intampla ceva ce nu credeam ca o sa se intample vreodata.

Ffmpeg nu poate returna marimea videoului in cazul tau (De ce...nu ma intreba!).
Hai sa incercam un custom fix ptr situatia ta

Vezi aici https://github.com/PHPVibe/PHPVibe/blob/master/moderator/edit-video.php
sau local in fisierul: /moderator/edit-video.php
linia 102:
$size = str_replace('.mp4','',$bq[1]);
poti pune imediat sub ea :
    if(is_empty($size) || ($size < 1)) { $size = '2160'; /* Let's lie it's 4k */    }

Asta s-ar putea sa nu iti rezolve problema (care to cred ca are mai mult de-a face cu ffmpeg, pe care l-as dezinstala si schimba versiunea),
dar nu va mai anula comenzile de conversie din cauza ca nu are o dimensiune a fisierul ci un zero.

Daca arunci o privire in conversie
https://github.com/PHPVibe/PHPVibe/blob/master/videocron.php

$va = _get_va($input, get_option('ffmpeg-cmd','ffmpeg'));
$size =    $va['height']; 
$duration = $va['duration'];

la tine
$size =    $va['height'];

apare ca zero, null. Aia ar trebui sa returneze inaltimea fisierului video.

functia, dependenta de ffmpeg se gaseste in app/functions/functions.global.php

https://github.com/PHPVibe/PHPVibe/blob/master/app/functions/functions.global.php

/* Function to extract video data */
function _get_va($video, $ffmpeg) {
        $time = 0; $hours = 0; $mins = 0; $secs = 0;
        $size = 0;
    $command = $ffmpeg." -i '" . $video . "' 2>&1 | grep Duration | cut -d ' ' -f 4 | sed s/,//";        
    $time = exec($command);    
    $regs = explode(":", $time);
        if(isset($regs) && is_array($regs)) {
        $hours = $regs [0] ? $regs [0] : null;
        $mins = $regs [1] ? $regs [1] : null;
        $secs = $regs [2] ? $regs [2] : null;
        $secs = round($secs);
        $timesec = $hours *  3600 +    $mins * 60 + $secs;
        } 
        
    $wcommand = $ffmpeg." -i '" . $video . "' 2>&1 | grep Video: | grep -Po '\d{3,5}x\d{3,5}' | cut -d'x' -f1";    
    $size = exec($wcommand);  
    
    return array (            
            'duration' => $timesec,
            'durationreadable' => $time,
            'height' => $size,
            'hours' => $hours,
            'mins' => $mins,
            'secs' => $secs            
    );

}

posti rula asta si intr-un terminal pe server ca sa vezi care e beleaua cu ffmpeg-ul tau:

  $command = $ffmpeg." -i '" . $video . "' 2>&1 | grep Duration | cut -d ' ' -f 4 | sed s/,//"; 
bine, o editezi
ffmpeg -i '/home/blablabla/videodeconvertit.extensie' 2>&1 | grep Duration | cut -d ' ' -f 4 | sed s/,/

Ar trebuie sa primesti un raspuns ptr durata si apoi

ffmpeg -i '/home/blablabla/videodeconvertit.extensie' 2>&1 | grep Video: | grep -Po '\d{3,5}x\d{3,5}' | cut -d'x' -f1

aici vine raspunsul ptr dimensiune. Dar pare ca nu vine la tine. Deci testeaza direct in ffmpeg video ssh/terminal.

De curiozitate incearca si asta

ffprobe -v error -show_entries stream=width,height -of default=noprint_wrappers=1:nokey=1 /home/userultau/public_html/storage/rawmedia/numefisier.mp4

editeaza path-urile ptr ceva real.
Poate bag optiunea ca fallback intr-un update rapid.

Revin ptr restul.

#72
T
Bug tracker / Conversion failed for:
Last post by tweky94 -
te salut marius din nou  , da aceasi problema si nu inteleg m-am lasat pagubas cum s-ar zice acum ceva timp am zis ma asta e daca nu reusesc sa il fac sa mearga... , dar parca tot nu vreau sa ma las imi place phpvibe.... deci revin cu o probblema...


am incarcat primul videoclip dupa ce am instalat phpvibe si a mers perfect si thumbnail si video incarcat bine...
iar la al 2-lea videoclip si restu dupa primu  pare sa am probleme...

incarc videoclip iar in log imi apare asa

[24/02/24 11:22:30pm]
Conversion failed for:
/home/georgik5/web/lastcs.ro/public_html/storage/rawmedia/74a2cbf7cb4b8eb1bddefc240b985581.mp4 - File not found
[24/02/24 11:22:30pm]
Conversion failed for:
/home/georgik5/web/lastcs.ro/public_html/storage/rawmedia/446a3116c041676a1c20d3e4196e6ae6.mp4 - File not found
[24/02/24 11:22:30pm]
Conversion failed for:
/home/georgik5/web/lastcs.ro/public_html/storage/rawmedia/0b323e56556247d680b9356f49abbb1b.mp4 - File not found
[24/02/24 11:22:30pm]
Conversion failed for:
/home/georgik5/web/lastcs.ro/public_html/storage/rawmedia/c934562987751dce66cb12a1a3616fd7.mp4 - File not found
[24/02/24 11:22:30pm]
Conversion failed for:
/home/georgik5/web/lastcs.ro/public_html/storage/rawmedia/b8a900a42677371f3092f66093ce8bc2.mp4 - File not found
[24/02/24 11:23:43pm]
Conversion starting for:
/home/georgik5/web/lastcs.ro/public_html/storage/media/f1ecd515c7905b81c85cf58fd753d880-0.mp4
[24/02/24 11:23:43pm]
Conversion failed for:
/home/georgik5/web/lastcs.ro/public_html/storage/media/f1ecd515c7905b81c85cf58fd753d880-0.mp4 - File not found


intru in media library videos  dau pe videoclipul incarcat ma uit in jos  la Video qualities apare unu singur
  f1ecd515c7905b81c85cf58fd753d880-.mp4

dau pe create missing qualites from 0p asa apare cand dau pe el imi spune
Failed! Source file doesn't exit.

https://ibb.co/y5NL3wp

care sa fie problema... ? el pare ca se urca pe ftp dar dupa cand incearca ffmpeg sa creeze rezolutii pare ca nu il gaseste cica... ??

am mai incarcat iar inca 3 video dar la astea  la quality video nu apare deloc nici macar un video nimic
daca intru in media library Source files (raw)  acolo apar videoclipurile incarcate.....






EDIT : Problema numarul 2 as avea cu acel clopotel din stanga sus unde apare activitatea imi apre activitate nou gen 1 2 3 activitati .. cand dau pe el ma duce pe pagina de activitati  si imi apare doar
Activity on your media
21    , doar atat pagina alba goala..



3. in viitorul apropiat este posibil sa rezolvi problema la script cu categoriile  selectate ? ca in momentul de fata este Default dar nici in ala nu se pune sa apara pe prima pagina.....


4. Daca intru la acest videoclip https://lastcs.ro/video/9/alan-feat-cheloo-perfect-dezechilibrat-i-videoclip-oficial/     intru pe edit media  dupa care ma trimite pe pagina sa editez videoclipul cand dau update video pica pagina imi apare


This page isn't working
lastcs.ro is currently unable to handle this request.

HTTP ERROR 500




te pup marius ,sper sa nu fie cu suparare aceste probleme cu care vin poate incercam sa le rezolvam impreuna (adica tu ca eu nu stiu )


@ imi place phpvibe de asta tot incerc sa rezolv sa fac sa meargaaa :(
#73
avatar_Marius P.
Announcements / Re: Stable version
Last post by Marius P. -
Hi,
I don't have a release schedule since my job is no longer online and I have weeks when I'm most days far from a PC.
This is why the project is now free and open source.
I code a little every time I get the chance and I think this is visible https://github.com/PHPVibe/PHPVibe/commits/master/.

Maybe a commercial alternative would be a better choice,
but I don't know what to recommend to you, I see them all kinda frozen.
No real major updates have been rolling out anywhere for the last 2-3 years, so I'm almost sure this video-sharing niche is no longer making real money.
#74
M
Announcements / Stable version
Last post by max18121980 -
Hi Mario. Can you please give me an approximate timeframe when we can expect a stable version, as it's been a long time and I need to understand if it makes sense to wait further or look for an alternative?
#75
avatar_Marius P.
Announcements / Re: Dark Mode
Last post by Marius P. -
Da, fiindca il suprascrie din css. Poate e o idee buna sa ii dea paste in custom style in pagina. O sa vad exact cum e mai bine curand.
#76
T
Announcements / Re: Dark Mode
Last post by tweky94 -
pe dark mode inca se vede "albul" de la pagina normala gen  cand dai sa intri intr-un video sa zicem ca se incarca pagina mai greu apare cu alb (se vede urat daca pagina e dark)

https://i.ibb.co/bFcM2MD/Untitled.png
la fel si la prima pagina
#77
avatar_Marius P.
Announcements / Re: Dark Mode
Last post by Marius P. -
You can post here on the forums, everything is solved here.
#78
E
Announcements / Re: Dark Mode
Last post by ementaler -
Hey Marius,i have problems with latest version,how i can contact you please?
#79
avatar_Marius P.
Announcements / Dark Mode
Last post by Marius P. -
Introducing a first try at a Dark Mode for PHPVibe.

You cannot view this attachment.

Please contribute any issues and inconveniences.
#80
avatar_Marius P.
Bug tracker / Re: Upload dont work :(
Last post by Marius P. -
Change the database's default engine to InnoDB

Use Maria Db, Mysql is too old. I've never seen that error. I'll have a few trial installs see if I can reproduce it.