Video duration time shows 00:00 [SOLVED]

Hello,

since server upgrade to Ubuntu 22.04 (Apache2 ver.2.4.52, php8.0 and mysql ver.8.0.31)

the duration of videos uploaded and transcoded doesn't show the actual duration but it shows 00:00 instead.

image_transcoder.php?o=sys_images_editor&h=833&dpx=2&t=1670804864

The video duration time was OK before.

What part of the server is responsible for this function to work? php?

Any suggestions?

Thank you.

Mayki

  • 644
  • More
Replies (10)
    • Hello @Mayki !

      Plz specify does the duration keep 00:00 after playing? Or full playing?

      • Hi @Leonid S

        Yes, the duration keeps showing 00:00 after playing a bit or after full playing.

        • Do you have any notice in the log/sys_transcoder.log file? If not then plz PM me with the UNA studio and CPanel access.

          • Hi 

            there is no 'sys_transcoder.log' file in folder .../logs ? ( UNA ver. 12.1.0 ) I have manually created the file (owner:group www-data:www:data and permissions 0664.

            I will try to publish new video and I will report if there is any entries in a file you mentioned.

            • Hi,

              today I tried and I uploaded a few new videos to the site but still no duration time.

              I also created sys_transcoder.log file and I tail -f the file during ffmpeg transcoding - no entries in a file at all.

              I will try to change php version back to php 7.4 (php7.4-fpm).

              I am still not sure which part of the process is doing the duration measurements and write it to the DB?

              • Better jet I will try to change php version in cronjob from:

                /usr/bin/php8.0 -q ..../una/periodic/cron.php
                

                to:

                /usr/bin/php7.4 -q ..../una/periodic/cron.php
                
                • No change.

                  • Well since this is strange and no ideas I manually added time in seconds to table "bx_videos_entries" ;

                    It was not big deal since I have to check only a few videos without duration - the duration has a value: 0 in a table bx_videos_entries duration field. After that duration shows on videos.....

                    If anyone have any idea where to look, what could be the cause for duration not entered in a DB table please respond.

                    tnx

                    • I tried and upload a video to our "demo" (testing) instance of una ver. 13.0.0-B4 and the problem is also on that instance (installed on same server) so I believe the problem is somehow related to Ubuntu 22.04LTS (before upgrade from Ubuntu 20.04 the duration time for videos worked and was always entered to DB and shown on una page.....)

                      If someone can verify my thinking please, do respond.

                      • I was trying many things like:

                        • changing php version for the site
                        • changing php version for cronjob
                        • changing ffmpeg.exe with newer version
                        • and more, I cant even remember all the things I tried

                        but none of them solved the issue with duration of video not shown on the site.

                        Then I renamed /plugins/ffmpeg/ffmpeg.exe to ffmpeg.exe.bak (to have it there for backup) and I've created a link to system's ffmpeg version located at /usr/bin/ffmpeg in a /plugins/ffmpeg/ folder....

                        And voila:

                        image_transcoder.php?o=sys_images_editor&h=873&dpx=2&t=1671838263

                        I am happy now and Christmas parties can begin.... 😉

                        Login or Join to comment.