Skip to content

How to find errors on AVideo Platform

Daniel Neto edited this page Oct 11, 2023 · 14 revisions

AVideo Platform Error Management

To effectively manage the AVideo Platform, it is essential to receive feedback about the server's performance and any errors that may be occurring.

AVideo Platform and Encoder store activity and error logs in /your/path/to/AVideo/videos/avideo.log and /your/path/to/AVideo/Encoder/videos/avideo.log, respectively.

To monitor AVideo Platform service responses and activities, use the following command: tail -n 200 -f /var/www/html/AVideo/videos/avideo.log

In addition to the AVideo logs, it may also be necessary to check the logs of the operating system, such as Apache error, Apache log, mail log, etc.

If the error is during the installation

Checking the Apache log can be an important step in troubleshooting installation issues with AVideo. It provides valuable information about errors and warnings that can help you diagnose and resolve the problem. By following these simple steps, you can quickly check the Apache log and get your AVideo installation back up and running in no time.

  1. First, log in to your server using SSH or a terminal window.
  2. Navigate to the Apache logs directory. This directory may vary depending on your server setup, but it is usually located at /var/log/apache2 or /var/log/httpd.
  3. Look for the error log file. This is typically named error.log or error_log.
  4. Open the error log file in a text editor or viewer. You may need root or administrator permissions to do so.
  5. Look for any errors or warnings related to AVideo. These errors will usually include information about what went wrong and where the issue occurred.
  6. Once you have identified the issue, you can take steps to resolve it.

Encoding Video Errors

If you're encountering problems during the video encoding process, it is imperative to inspect both the encoder and streamer logs, as these logs provide critical information about the operations taking place behind the scenes.

The video encoding process comprises two primary steps:

  1. File Submission: This step involves the initial communication between the streamer and encoder when you submit a file for encoding.
  2. File Transfer: After encoding, the file gets transferred from the encoder to the desired destination.

To diagnose issues arising during these steps, follow these guidelines:

1. Check Logs during File Submission

By inspecting the logs during file submission, you can identify any communication problems between the streamer and encoder.

  • Streamer Log and Encoder Log:
    tail -n 200 -f /your/path/to/AVideo/videos/avideo.log /your/path/to/AVideo/Encoder/videos/avideo.log
    

Keep these logs open and active. Now, try submitting a file for encoding. Monitor both logs for any error messages or anomalies that pop up during the file submission process.

2. Check Logs after Encoding is Complete

Once the encoding is finished, the encoded video file gets transferred to its intended location. To ensure that this step is completed without issues:

  • Streamer Log and Encoder Log:
    tail -n 200 -f /your/path/to/AVideo/videos/avideo.log /your/path/to/AVideo/Encoder/videos/avideo.log
    

Again, monitor both logs for any error messages or issues that might appear during the file transfer process after encoding.

If your video does not play

If you're having issues playing a video, refer to the following guide: https://github.com/WWBN/AVideo/wiki/What-to-do-if-your-video-does-not-play

Live stream errors

For live streams, refer to the following guide: https://github.com/WWBN/AVideo/wiki/What-to-do-if-your-live-does-not-play

Check if Nginx is Running

To check if your Nginx RTMP server is running, you can follow these steps:

  1. Access the Nginx URL and port in your web browser. For example: https://mysite.com:8443.
  2. If you see the Nginx page, it means your server is running.
  3. To check your stats page, access the following URL: https://mysite.com:8443/stats.
  4. If the stats page opens successfully, it confirms that your Nginx RTMP server is running correctly.

If any of these pages do not open, you can try the following troubleshooting steps:

  1. Restart your Nginx server. You can refer to the following guide for instructions on how to restart Nginx: How to Restart Nginx.
  2. Review your Nginx installation to ensure that it is properly configured. You can refer to the following guide for guidance on setting up your own stream server using Nginx: Set up my own Stream Server.

JavaScript Errors

If you're experiencing issues with your interactive functionality, this may be due to JavaScript errors or conflicts. Refer to the following guides for diagnosing and resolving JavaScript issues:

Clone this wiki locally