Ahmed96

Ahmed96

Member Since 1 Week Ago

Experience Points
150
Total
Experience

4,850 experience to go until the next level!

In case you were wondering, you earn Laracasts experience when you:

  • Complete a lesson — 100pts
  • Create a forum thread — 50pts
  • Reply to a thread — 10pts
  • Leave a reply that is liked — 50pts
  • Receive a "Best Reply" award — 500pts
Lessons Completed
0
Lessons
Completed
Best Reply Awards
0
Best Reply
Awards
  • start your engines Created with Sketch.

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • first-thousand Created with Sketch.

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • 1-year Created with Sketch.

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • 2-years Created with Sketch.

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • 3-years Created with Sketch.

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • 4-years Created with Sketch.

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • 5-years Created with Sketch.

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • school-in-session Created with Sketch.

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • welcome-newcomer Created with Sketch.

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • full-time-student Created with Sketch.

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • pay-it-forward Created with Sketch.

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • subscriber Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • evangelist Created with Sketch.

    Laracasts Evangelist

    Earned if you share a link to Laracasts on social media. Please email [email protected] with your username and post URL to be awarded this badge.

  • chatty-cathy Created with Sketch.

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • lara-veteran Created with Sketch.

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • 10k-strong Created with Sketch.

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • lara-master Created with Sketch.

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • laracasts-tutor Created with Sketch.

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • laracasts-sensei Created with Sketch.

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • top-50 Created with Sketch.

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

Level 1
150 XP
May
22
1 week ago
Activity icon

Replied to Laravel Ffmpeg Upload Video In Amazon S3 Failed 504 Gateway Time-out The Server Didn T Respond In Time

Exactly, but how do I increase the timeout for php, which makes me able to raise 10 gigabytes per hour or more without any connection to the server being interrupted? What should I add?

Activity icon

Replied to Laravel Ffmpeg Upload Video In Amazon S3 Failed 504 Gateway Time-out The Server Didn T Respond In Time

Sure, loading and processing is done on php, as well as nginx, so what commands that I add to php and nginx will increase the connection timeout?

May
21
1 week ago
Activity icon

Started a new Conversation Laravel Ffmpeg Upload Video In Amazon S3 Failed 504 Gateway Time-out The Server Didn T Respond In Time

Why after uploading a video size of more than 1 Giga, I see a problem in the nginx 504 gateway timeout preventing me from completing the processing process. The meaning of the video after uploading starts the processing process and because of this problem it does not go to processing use laravel ffmpeg and use amazon s3 service to store the videos on it and the entire site uploaded to Digital hosting

May
20
1 week ago
Activity icon

Replied to Is There Any Way That I Can Speed Up The Ffmpeg Processing Time

I think in sequence, accuracy after true accuracy, I am using the special method laravel -ffmpeg, but I expect in sequence, in addition to your high specifications, it is true that the reason may be this thing is poor hosting and many of the qualities are the reason I will try to raise my site on hosting Contabo gives better resources and more appropriate prices.

Activity icon

Replied to Is There Any Way That I Can Speed Up The Ffmpeg Processing Time

Regarding the speed, it affects hosting. Is it normal, even if the video is less than 1 megabyte, also affected by the speed of hosting because I have slow speed in all sizes, whether I upload a video of 1 megabyte or 1 Giga.

I use laravel-ffmpeg and through laravel queue I am cutting the video into several qualities I will attach the code to you below.

public function handle()
{
    //180p
    $lowBitrate1 = (new X264('aac'))->setKiloBitrate(613);
    //270p
    $lowBitrate2 = (new X264('aac'))->setKiloBitrate(906);
    //360p
    $midBitrate1 = (new X264('aac'))->setKiloBitrate(1687);
    //540p
    $midBitrate2 = (new X264('aac'))->setKiloBitrate(2227);
    //720p
    $highBitrate1 = (new X264('aac'))->setKiloBitrate(4300);
    //1080
    $highBitrate2 = (new X264('aac'))->setKiloBitrate(7917);

    FFMpeg::fromDisk('s3')
        ->open($this->movie->path)
        ->exportForHLS()
        ->onProgress(function ($percent) {
            $this->movie->update([
                'percent' => $percent
            ]);
        })
        ->setSegmentLength(10)// optional
        ->addFormat($lowBitrate1)
        ->addFormat($lowBitrate2)
        ->addFormat($midBitrate1)
        ->addFormat($midBitrate2)
        ->addFormat($highBitrate1)
        ->addFormat($highBitrate2)
        ->toDisk('s3')
        ->save("public/Movies/{$this->movie->id}/{$this->movie->id}.m3u8");
}//end of handle

This special code in the process of raising and processing in Java script will be attached below.

$('#movie__file-input').on('change',function() {
    $('#movie__upload-wrapper').css('display' , 'none');
    $('#movie__properties').css('display' , 'block');

    var url = $(this).data('url');
    var movie = this.files[0];
    var movieId = $(this).data('movie-id');
    var movieName = movie.name.split('.').slice(0, -1).join('.');
    $('#movie__name').val(movieName);

    var formData = new FormData();
    formData.append('movie_id', movieId);
    // formData.append('name', movieName);
    formData.append('movie', movie);

    $.ajax({
        url: url,
        data: formData,
        method: 'POST',
        processData: false,
        contentType: false,
        cache: false,
        success: function (movieBeforeProcessing) {
            var interval = setInterval (function () {
                $.ajax({
                    url: `/ATeChatH/posts/${movieBeforeProcessing.id}`,
                    method: 'GET',
                    success: function (movieWhileProcessing) {
                        $('#movie__upload-status').html('Processing');
                        $('#movie__upload-progress').css('width', movieWhileProcessing.percent + '%');
                        $('#movie__upload-progress').html(movieWhileProcessing.percent + '%');

                        if (movieWhileProcessing.percent == 100) {
                            clearInterval(interval); //break interval
                            $('#movie__upload-status').html('Done Processing');
                            $('#movie__upload-progress').parent().css('display', 'none');
                            $('#movie__submit-btn').css('display', 'block');
                        }
                    },

                });//end of ajax call
            }, 3000);
        },
        xhr: function () {
            var xhr = new window.XMLHttpRequest();
            xhr.upload.addEventListener("progress", function (evt) {
                if (evt.lengthComputable) {
                    var percentComplete = Math.round(evt.loaded / evt.total * 100) + "%";
                    $('#movie__upload-progress').css('width', percentComplete).html(percentComplete);
                }
            }, false);
            return xhr;
        },
    }); // end of ajax call


}); // end of file input
May
19
1 week ago
Activity icon

Started a new Conversation Is There Any Way That I Can Speed Up The Ffmpeg Processing Time

I am facing a problem with the processing process. I use a real joint server in a digital hosting package of $ 10 and use cloud service from Amazon s3. The problem is when uploading a video, whatever the size of the video, whether its size is 1 megabyte or 2 Giga. After the upload process, the processing process starts to upload, there is no problem But when the processing process takes a very long time so that I cannot complete it, what is the solution to that, is there a problem for me or is this process normal?