Avideo: [6.4] Create Image/Gif error

Created on 30 Jan 2019  路  11Comments  路  Source: WWBN/AVideo

Hello,

After video's encoding, or direct upload, with a duration of ~20 minutes, image or gif isn't created, and give the image "not found" and "404 not found". This problem not affect the short videos.

Tested on demo site.

Encoder/videos/youphptube.log

`[30-Jan-2019 14:44:03 Europe/Berlin] downloadFile: url = ../playList/01.mp4

[30-Jan-2019 14:44:03 Europe/Berlin] downloadFile: this file was a bulk encode and thus is on a local directory

[30-Jan-2019 14:44:03 Europe/Berlin] downloadFile: downloadedFile = ../playList/01.mp4 | url = ../playList/01.mp4

[30-Jan-2019 14:44:04 Europe/Berlin] Try to get UTF8 URL ../playList/01.mp4
[30-Jan-2019 14:44:04 Europe/Berlin] Try to get UTF8 decode URL ../playList/01.mp4
[30-Jan-2019 14:44:04 Europe/Berlin] downloadFile: success

[30-Jan-2019 14:44:04 Europe/Berlin] downloadFile: {"error":false,"filename":"22_tmpFile.mp4","pathFileName":"\/var\/www\/html\/YouPHPTube\/Encoder\/videos\/22_tmpFile.mp4"}

[30-Jan-2019 14:44:04 Europe/Berlin] sendImages: Sending image to [310]
[30-Jan-2019 14:44:04 Europe/Berlin] Duration founded: 0:19:53

[30-Jan-2019 14:44:04 Europe/Berlin] sendImages: YouPHPTube-Encoder sending file to https://***.fr/objects/youPHPTubeEncoderReceiveImage.json.php

[30-Jan-2019 14:44:04 Europe/Berlin] sendImages: YouPHPTube-Encoder reading file from /var/www/html/YouPHPTube/Encoder/videos/22_tmpFile.mp4

[30-Jan-2019 14:44:04 Europe/Berlin] getImage: ffmpeg -ss 00:09:56 -i /var/www/html/YouPHPTube/Encoder/videos/22_tmpFile.mp4 -vframes 1 -y /var/www/html/YouPHPTube/Encoder/videos/$

[30-Jan-2019 14:44:04 Europe/Berlin] getImage: takes 0.13592100143433 sec to complete

[30-Jan-2019 14:44:04 Europe/Berlin] Create Image error: ffmpeg -ss 00:09:56 -i 
/var/www/html/YouPHPTube/Encoder/videos/22_tmpFile.mp4 -vframes 1 -y /var/www/html/YouPHPTube/Encoder

[30-Jan-2019 14:44:04 Europe/Berlin] getGifImage
[30-Jan-2019 14:44:04 Europe/Berlin] getGif: Starts
[30-Jan-2019 14:44:04 Europe/Berlin] getGif: takes 0.21433186531067 sec to complete
[30-Jan-2019 14:44:04 Europe/Berlin] Create Pallete Gif Image error: ffmpeg -y -ss 00:09:56 -t 3 -i /var/www/html/YouPHPTube/Encoder/videos/22_tmpFile.mp4 -vf fps=10,scale=320:-1:$
[30-Jan-2019 14:44:04 Europe/Berlin] sendImages: curl_init
[30-Jan-2019 14:44:04 Europe/Berlin] sendImages: curl_exec
`

videos/youphptube.log

`[30-Jan-2019 15:07:55 Europe/Berlin] Class Plugin Not found: /objects/videoDelete.json.php
[30-Jan-2019 15:07:55 Europe/Berlin] Class Plugin Not found: /objects/videos.json.php

[30-Jan-2019 15:07:55 Europe/Berlin] Class Plugin Not found: /videos/01_5c51ab7cac9ee8.83146061.jpg?0.29239078363099735

[30-Jan-2019 15:07:55 Europe/Berlin] Class Plugin Not found: /view/img/image404.php?notFound=1
[30-Jan-2019 15:07:57 Europe/Berlin] Class Plugin Not found: /objects/videoDelete.json.php
[30-Jan-2019 15:07:57 Europe/Berlin] Class Plugin Not found: /objects/videos.json.php
[30-Jan-2019 15:08:00 Europe/Berlin] Class Plugin Not found: /objects/videoDelete.json.php
[30-Jan-2019 15:08:00 Europe/Berlin] Class Plugin Not found: /objects/videos.json.php
[30-Jan-2019 15:08:01 Europe/Berlin] Class Plugin Not found: /mvideos
[30-Jan-2019 15:08:01 Europe/Berlin] Class Plugin Not found: /objects/videos.json.php
[30-Jan-2019 15:08:08 Europe/Berlin] Class Plugin Not found: /view/import.php
[30-Jan-2019 15:08:18 Europe/Berlin] Class Plugin Not found: /objects/listFiles.json.php
[30-Jan-2019 15:08:22 Europe/Berlin] Class Plugin Not found: /objects/import.json.php
[30-Jan-2019 15:08:30 Europe/Berlin] Class Plugin Not found: /mvideos
[30-Jan-2019 15:08:30 Europe/Berlin] Class Plugin Not found: /objects/videos.json.php

[30-Jan-2019 15:08:30 Europe/Berlin] Class Plugin Not found: /videos/01_5c51afd714ffa3.64414348.jpg?0.7255048360439726

[30-Jan-2019 15:08:30 Europe/Berlin] Class Plugin Not found: /view/img/image404.php?notFound=1
[30-Jan-2019 15:08:31 Europe/Berlin] Class Plugin Not found: /mvideos
[30-Jan-2019 15:08:31 Europe/Berlin] Class Plugin Not found: /objects/videos.json.php

[30-Jan-2019 15:08:31 Europe/Berlin] Class Plugin Not found: /videos/01_5c51afd714ffa3.64414348.jpg?0.03726057721592468`

ffmpeg return that :

[swscaler @ 0x55d0e7fee3a0] deprecated pixel format used, make sure you did set range correctly

So, i modified a certain parameters in the file /Encoder/objects/getImage.php & getImageMP4.php, but without success.

Most helpful comment

The problem was indeed the source. I used handbrake to transcode videos in m4v format and everything works fine.

Sorry for wasting time, and thank you for being responsive.

All 11 comments

I really have no idea what is wrong .

Do you have your encoder up to date?

Does the same.thing happened if you upload it to demo site?

Encoder is up to date.
Yes, the same thing happens on the demonstration site

I do not know what's going on either.

After testing locally and using only ffmpeg, the image is well created. But since the php script it does not work.

Can you please share what video are you facing this error, so Incan debug it better.

Another thing ... Did you login on the encoder with a demo site account?

Do you have a CDN on your streamer?

No, I do not use any CDN.

From my site, I use my encoder directly. I also tested with the demo site and the problem is the same.

For video, it's about the duration. Any video works so, except beyond a certain time (~ 20 minutes). Try with a video of 19 minutes for example, even 2 hours, the result and the same

For upload video only?

I will try to import a long video from YouTube on demo site

I just import a 33 minutes video from YouTube to demo site and it was fine

For upload video only?

Yes

Import from YouTube works fine, but not when sending (direct or encoder).

Strangely, one of the videos is working well and it lasts more than 30 minutes. Is it possible that the problem comes from the video source (mp4)? I will try to manually re-encode a video and send it

that is why I asked you about the video file sample. I think the problem may be the video source.

The problem was indeed the source. I used handbrake to transcode videos in m4v format and everything works fine.

Sorry for wasting time, and thank you for being responsive.

thanks for your feed back

Was this page helpful?
0 / 5 - 0 ratings

Related issues

KazeroG picture KazeroG  路  4Comments

CorpCaleCloud picture CorpCaleCloud  路  4Comments

moses268 picture moses268  路  3Comments

akhilleusuggo picture akhilleusuggo  路  3Comments

wetubeclub picture wetubeclub  路  3Comments