SE Video plugin: video encoding failed

    • 183 posts
    January 19, 2018 10:29 AM EST

    Hello,

    I installed plugin and made all the settings according to this article: https://support.socialengine.com/php/customer/portal/articles/1659253-admin-panel---plugins->-videos

    I watched this video tutorial as well: https://support.socialengine.com/php/customer/portal/articles/2287297?b_id=4311

    My hosting provider (TDM) confirmed ffpmeg is installed on the server and gave me the path.

    But unfortunately some error occurs while encoding video. I successfully uploaded 10Mb video (.mov format) and for 900 seconds I saw my task "Video Encode" in Job Queue with 0% progress. It is still in a queue with 0% progress. 

    ffmpeg version 3.0.2 Copyright (c) 2000-2016 the FFmpeg developers
    built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-4)

    I can see the following lines in log browser (video encoding log)

    <pre>2018-01-19T09:26:38+00:00 INFO: /home/p7275/public_html/public/temporary/7632588d87307c992802f0a36797f37b.mov /home/p7275/public_html/temporary/video/1_vconverted.1 /home/p7275/public_html/temporary/video/1_vthumb.jpg /usr/local/bin/ffmpeg -i '/home/p7275/public_html/public/temporary/7632588d87307c992802f0a36797f37b.mov' -ab 64k -ar 44100 -qscale 5 -r 25 -vcodec libx264 -acodec aac -strict experimental -preset veryfast -f mp4 -vf "scale=480:386" -y '/home/p7275/public_html/temporary/video/1_vconverted.1' 2>&1 ffmpeg version 3.0.2 Copyright (c) 2000-2016 the FFmpeg developers built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-4) configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --enable-libmp3lame --enable-libx264 --enable-libvorbis --enable-libvpx --enable-libfreetype --enable-fontconfig --enable-libopencore-amrnb --enable-gray --enable-libopenjpeg --enable-gnutls --enable-libfaac --enable-nonfree --disable-indev=sndio --disable-outdev=sndio --cc=gcc libavutil 55. 17.103 / 55. 17.103 libavcodec 57. 24.102 / 57. 24.102 libavformat 57. 25.100 / 57. 25.100 libavdevice 57. 0.101 / 57. 0.101 libavfilter 6. 31.100 / 6. 31.100 libswscale 4. 0.100 / 4. 0.100 libswresample 2. 0.101 / 2. 0.101 libpostproc 54. 0.100 / 54. 0.100 [h264 @ 0x219e120] Increasing reorder buffer to 1 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/p7275/public_html/public/temporary/7632588d87307c992802f0a36797f37b.mov': Metadata: major_brand : qt minor_version : 0 compatible_brands: qt creation_time : 2018-01-09 17:08:35 com.apple.quicktime.make: Apple com.apple.quicktime.model: MacBookPro9,2 com.apple.quicktime.software: Mac OS X 10.7.5 (11G63) com.apple.quicktime.creationdate: 2018-01-09T20:08:34+0300 Duration: 00:00:44.88, start: 0.816667, bitrate: 1873 kb/s Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 1280x800 [SAR 1:1 DAR 8:5], 1527 kb/s, 44.22 fps, 60 tbr, 6k tbn, 12k tbc (default) Metadata: creation_time : 2018-01-09 17:08:35 handler_name : Core Media Data Handler encoder : H.264 Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 237 kb/s (default) Metadata: creation_time : 2018-01-09 17:08:35 handler_name : Core Media Data Handler Please use -q:a or -q:v, -qscale is ambiguous [AVFilterGraph @ 0x235cf40] Error initializing threading. [AVFilterGraph @ 0x235cf40] Error creating filter 'anull' Error opening filters!<br><br><br>Can anybody say if it is plugin issue or hosting issue?  <br><br>Thank you! </pre>
    • Moderator
    • 6923 posts
    January 19, 2018 10:53 AM EST

    See if this helps https://support.socialengine.com/php/customer/en/portal/articles/2287297--videos-not-being-converted-processed-for-a-long-time?b_id=14386

    • 183 posts
    January 19, 2018 11:00 AM EST

    Hello, Donna

    Thank you for your reply. I posted this article above and referred to this video. The thing is I did not upload anything on server because hosting provider confirmed there is ffmpeg (version 3.0.2) installed already and provided me with the path.

    I searched for the error message (according to this reference above) and do not know what is the reason. Some filters...

    Do you think I need to address hosting provider regarding ffpmeg version?

     

    • Moderator
    • 6923 posts
    January 19, 2018 11:10 AM EST

    My bad. I see the link is the same. You would want to test another video to see if it has the same issue as it can be the video file too. I will test further on my testing site. It would help to know if other types of videos work.

    • Moderator
    • 6923 posts
    January 19, 2018 11:23 AM EST

    Well that was fun. I tested on local and it worked fine so I tested on our demo. We need to fix our settings there as our task manager isn't running the tasks (server setting regarding this). Check to see if your task manager is running the tasks in your admin panel.

    • 183 posts
    January 19, 2018 11:45 AM EST

    Thank you for trying to help!

    I tried to download the same file in your demo but upload has failed because of the file size. I tried the smallest one I have (4.5 Mb) but it refused as well. I recorded the new one very short and uploaded it. It is in the queue now. But your tasks are not running really :-))

    I tried second file in my community and see the same picture yet. The tasks are running. The first task in a queue has status "Timeout", and this second - in progress with 0%. And I see the same "filters" error :-((

    <pre>Please use -q:a or -q:v, -qscale is ambiguous [AVFilterGraph @ 0x34b9f80] Error initializing threading. [AVFilterGraph @ 0x34b9f80] Error creating filter 'anull' Error opening filters!</pre>

    But may be you are right and I have to check Task Scheduler as well because Job Queue stopped running 13 min ago. Is it normal?... Whereas all other tasks are running normally.

    • Moderator
    • 6923 posts
    January 19, 2018 12:00 PM EST

    Server might be timing out. I am waiting for Ray to have time to check our demo. We are working to release 4.10 beta2 atm.

    • Moderator
    • 6923 posts
    January 19, 2018 12:43 PM EST

    So far, MOV files are working fine in testing. The demo is being fixed for the server issue so you can test there soon. Ray already tested some there. I suggest to try different video formats on your site to see exactly what is failing as sometimes the failure is in the video itself and how it was formatted. 

    • 183 posts
    January 19, 2018 1:06 PM EST

    Ok, thank you. I tried m4v with the same result. But the error report is different.

    <pre>2018-01-19T18:02:08+00:00 INFO: /home/p7275/public_html/public/temporary/c24066ed7359267a6f8ae55cfb5b1e3f.m4v /home/p7275/public_html/temporary/video/3_vconverted.1 /home/p7275/public_html/temporary/video/3_vthumb.jpg /usr/local/bin/ffmpeg -i '/home/p7275/public_html/public/temporary/c24066ed7359267a6f8ae55cfb5b1e3f.m4v' -ab 64k -ar 44100 -qscale 5 -r 25 -vcodec libx264 -acodec aac -strict experimental -preset veryfast -f mp4 -vf "scale=480:386" -y '/home/p7275/public_html/temporary/video/3_vconverted.1' 2>&1 ffmpeg version 3.0.2 Copyright (c) 2000-2016 the FFmpeg developers built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-4) configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --enable-libmp3lame --enable-libx264 --enable-libvorbis --enable-libvpx --enable-libfreetype --enable-fontconfig --enable-libopencore-amrnb --enable-gray --enable-libopenjpeg --enable-gnutls --enable-libfaac --enable-nonfree --disable-indev=sndio --disable-outdev=sndio --cc=gcc libavutil 55. 17.103 / 55. 17.103 libavcodec 57. 24.102 / 57. 24.102 libavformat 57. 25.100 / 57. 25.100 libavdevice 57. 0.101 / 57. 0.101 libavfilter 6. 31.100 / 6. 31.100 libswscale 4. 0.100 / 4. 0.100 libswresample 2. 0.101 / 2. 0.101 libpostproc 54. 0.100 / 54. 0.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/p7275/public_html/public/temporary/c24066ed7359267a6f8ae55cfb5b1e3f.m4v': Metadata: major_brand : M4VH minor_version : 1 compatible_brands: M4VHM4A mp42isom creation_time : 2016-03-13 17:23:54 Duration: 00:10:25.48, start: 0.000000, bitrate: 1082 kb/s Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, smpte170m/smpte170m/bt709), 720x540, 1079 kb/s, 25 fps, 25 tbr, 2500 tbn, 5k tbc (default) Metadata: creation_time : 2016-03-13 17:23:54 handler_name : Apple Video Media Handler Please use -q:a or -q:v, -qscale is ambiguous Codec AVOption b (set bitrate (in bits/s)) specified for output file #0 (/home/p7275/public_html/temporary/video/3_vconverted.1) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream. [libx264 @ 0x21e5e20] -qscale is ignored, -crf is recommended. [libx264 @ 0x21e5e20] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX Output #0, mp4, to '/home/p7275/public_html/temporary/video/3_vconverted.1': Metadata: major_brand : M4VH minor_version : 1 compatible_brands: M4VHM4A mp42isom Stream #0:0(eng): Video: h264, none, q=2-31, 128 kb/s, 25 fps (default) Metadata: creation_time : 2016-03-13 17:23:54 handler_name : Apple Video Media Handler encoder : Lavc57.24.102 libx264 Stream mapping: Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264)) Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height</pre>

     

    Ok, I will contact hosting provider. Thank you!

     

    • Moderator
    • 6923 posts
    January 19, 2018 1:20 PM EST

    Thank you I think it is on the host end as it works for us in testing. I hope they can resolve it for you.