Problem with converting video files (mass upload)


#1

I have huge problems with mass upload videos.
It seems that the conversion is stalled/frozen somehow, no errors.

Here is an example:

Raw Conversion Log

==========================================
Pre-Check Configurations
==========================================

File to be converted
--------------------
Initializing File  **15392419170fbdc.mp4**  and pre checking configurations...

System hardware Information
---------------------------
H/W path Device Class Description
===============================================
system Computer
/0 bus Motherboard
/0/0 memory 1503MiB System memory
/0/1 processor Intel(R) Pentium(R) 4 CPU 3.00GHz
/0/1/0.1 processor Logical CPU
/0/1/0.2 processor Logical CPU
/0/100 bridge 82915G/P/GV/GL/PL/910GL Memory Controller Hub
/0/100/2 display 82915G/GV/910GL Integrated Graphics Controller
/0/100/2.1 display 82915G Integrated Graphics Controller
/0/100/1c bridge 82801FB/FBM/FR/FW/FRW (ICH6 Family) PCI Express Port 1
/0/100/1c.1 bridge 82801FB/FBM/FR/FW/FRW (ICH6 Family) PCI Express Port 2
/0/100/1c.1/0 enp64s0 network NetXtreme BCM5751 Gigabit Ethernet PCI Express
/0/100/1d bus 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #1
/0/100/1d.1 bus 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #2
/0/100/1d.2 bus 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #3
/0/100/1d.3 bus 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #4
/0/100/1d.7 bus 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB2 EHCI Controller
/0/100/1e bridge 82801 PCI Bridge
/0/100/1e.2 multimedia 82801FB/FBM/FR/FW/FRW (ICH6 Family) AC'97 Audio Controller
/0/100/1f bridge 82801FB/FR (ICH6/ICH6R) LPC Interface Bridge
/0/100/1f.1 storage 82801FB/FBM/FR/FW/FRW (ICH6 Family) IDE Controller
/0/100/1f.2 storage 82801FB/FW (ICH6/ICH6W) SATA Controller

==========================================
Starting Conversion Log
==========================================

Getting Arguments
-----------------
Filename : 15392419170fbdc
File directory : 2018/10/11
Log file : /var/www/clipbucket/files/logs/2018/10/11/15392419170fbdc.log

Conversion queue
----------------
Getting the file information from the queue for conversion

Conversion queue
----------------
File has been moved from Temporary dir to Conversion Queue

Parsing FFmpeg Configurations
-----------------------------
**use_video_rate**  : 1
**use_video_bit_rate**  : 1
**use_audio_rate**  : 1
**use_audio_bit_rate**  : 1
**use_audio_codec**  : 1
**use_video_codec**  : 1
**format**  : mp4
**video_codec**  : libx264
**audio_codec**  : libfdk_aac
**audio_rate**  : 22050
**audio_bitrate**  : 128000
**video_rate**  : 25
**video_bitrate**  : 300000
**video_bitrate_hd**  : 500000
**normal_res**  : 
**high_res**  : 
**max_video_duration**  : 320
**resize**  : max
**outputPath**  : 2018/10/11/
**cb_combo_res**  : yes
**gen_240**  : yes
**gen_360**  : yes
**gen_480**  : yes
**gen_720**  : 
**gen_1080**  :

#2

Hello,

Try this new update from development branch at GitHub:


#3

Thanks for your fast reply, but that didn’t help.
The conversion is not completed, as before.


#4

Video conversion is working for direct uploads?


#5

No, same problem there. (i just tried)
All server requirements are met, but something is wrong here. :persevere:


#6

It looks like the FFMPEG process is not starting, check the permission of the site user at server, check server specs and double check everything according to requirements, Follow this guide for server configuration: https://clipbucket.com/docs/installation/


#7

As i wrote earlier, the server setup IS ok.
I have tried other, similar video site scripts, and those work.
I can give jo admin-access so you can se att try for your self?


#8

I have checked the issue by logging onto your site and it is definately a server configuration or permission issue.


#9

Really?
How can i fix it then?


#10

As you can see here, it works when i convert a video directly in the server console.

 ffmpeg -i /clipbucket/files/mass_uploa                   ds/sprut_1.wmv /clipbucket/files/mass_uploads/test.avi                   
ffmpeg version 3.3.8 Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 6.3.0 (Debian 6.3.0-18+deb9u1) 20170516
  configuration: --disable-decoder=amrnb --disable-decoder=libopenjpeg --disable                   -mips32r2 --disable-mips32r6 --disable-mips64r6 --disable-mipsdsp --disable-mips                   dspr2 --disable-mipsfpu --disable-msa --disable-libopencv --disable-podpages --d                   isable-stripping --enable-avfilter --enable-avresample --enable-gcrypt --enable-                   gnutls --enable-gpl --enable-libass --enable-libbluray --enable-libbs2b --enable                   -libcaca --enable-libcdio --enable-libfdk-aac --enable-libfontconfig --enable-li                   bfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libilbc -                   -enable-libkvazaar --enable-libmp3lame --enable-libopencore-amrnb --enable-libop                   encore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt --ena                   ble-libopus --enable-libpulse --enable-librubberband --enable-libshine --enable-                   libsnappy --enable-libsoxr --enable-libspeex --enable-libtesseract --enable-libt                   heora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-li                   bvpx --enable-libx265 --enable-libxvid --enable-libzvbi --enable-nonfree --enabl                   e-opengl --enable-openssl --enable-postproc --enable-pthreads --enable-shared --                   enable-version3 --incdir=/usr/include/i386-linux-gnu --libdir=/usr/lib/i386-linu                   x-gnu --prefix=/usr --toolchain=hardened --enable-frei0r --enable-chromaprint --                   enable-libx264 --enable-libiec61883 --enable-libdc1394 --enable-vaapi --enable-l                   ibmfx --disable-altivec --shlibdir=/usr/lib/i386-linux-gnu
  libavutil      55. 58.100 / 55. 58.100
  libavcodec     57. 89.100 / 57. 89.100
  libavformat    57. 71.100 / 57. 71.100
  libavdevice    57.  6.100 / 57.  6.100
  libavfilter     6. 82.100 /  6. 82.100
  libavresample   3.  5.  0 /  3.  5.  0
  libswscale      4.  6.100 /  4.  6.100
  libswresample   2.  7.100 /  2.  7.100
  libpostproc    54.  5.100 / 54.  5.100
[wmv3 @ 0x965fa0] Extra data: 8 bits left, value: 0
Guessed Channel Layout for Input Stream #0.0 : stereo
Input #0, asf, from '/clipbucket/files/mass_uploads/sp                   rut_1.wmv':
  Metadata:
    Application     : Windows Movie Maker 6.0.6000.16386
    WM/ToolVersion  : 6.0.6000.16386
    WM/ToolName     : Windows Movie Maker
    WMFSDKVersion   : 11.0.6001.7000
    WMFSDKNeeded    : 0.0.0.0000
    IsVBR           : 0
    DeviceConformanceTemplate: MP@HL
  Duration: 00:00:43.00, start: 0.000000, bitrate: 972 kb/s
    Stream #0:0(eng): Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo, fltp                   , 80 kb/s
    Stream #0:1(eng): Video: wmv3 (Main) (WMV3 / 0x33564D57), yuv420p, 768x576,                    842 kb/s, SAR 1:1 DAR 4:3, 25 fps, 25 tbr, 1k tbn, 1k tbc
[wmv3 @ 0x966e20] Extra data: 8 bits left, value: 0
Stream mapping:
  Stream #0:1 -> #0:0 (wmv3 (native) -> mpeg4 (native))
  Stream #0:0 -> #0:1 (wmav2 (native) -> mp3 (libmp3lame))
Press [q] to stop, [?] for help
Output #0, avi, to '/clipbucket/files/mass_uploads/tes                   t.avi':
  Metadata:
    Application     : Windows Movie Maker 6.0.6000.16386
    WM/ToolVersion  : 6.0.6000.16386
    WM/ToolName     : Windows Movie Maker
    WMFSDKVersion   : 11.0.6001.7000
    WMFSDKNeeded    : 0.0.0.0000
    IsVBR           : 0
    DeviceConformanceTemplate: MP@HL
    ISFT            : Lavf57.71.100
    Stream #0:0(eng): Video: mpeg4 (FMP4 / 0x34504D46), yuv420p, 768x576 [SAR 1:                   1 DAR 4:3], q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc
    Metadata:
      encoder         : Lavc57.89.100 mpeg4
    Side data:
      cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
    Stream #0:1(eng): Audio: mp3 (libmp3lame) (U[0][0][0] / 0x0055), 44100 Hz, s                   tereo, fltp
    Metadata:
      encoder         : Lavc57.89.100 libmp3lame
[libmp3lame @ 0x967660] Queue input is backward in time
frame=   27 fps=0.0 q=31.0 size=     195kB time=00:00:02.11 bitrate= 753.9kbits/                   frame=   66 fps= 65 q=31.0 size=     297kB time=00:00:03.55 bitrate= 684.1kbits/                   frame=  107 fps= 70 q=31.0 size=     399kB time=00:00:04.98 bitrate= 654.8kbits/                   frame=  148 fps= 73 q=31.0 size=     498kB time=00:00:06.53 bitrate= 624.3kbits/                   frame=  190 fps= 75 q=31.0 size=     576kB time=00:00:08.38 bitrate= 563.1kbits/                   frame=  232 fps= 76 q=31.0 size=     654kB time=00:00:10.18 bitrate= 525.6kbits/                   frame=  274 fps= 77 q=31.0 size=     750kB time=00:00:11.67 bitrate= 526.5kbits/                   frame=  316 fps= 78 q=31.0 size=     837kB time=00:00:13.53 bitrate= 506.9kbits/                   frame=  359 fps= 79 q=31.0 size=     910kB time=00:00:15.02 bitrate= 496.1kbits/                   frame=  401 fps= 79 q=31.0 size=     993kB time=00:00:16.87 bitrate= 482.1kbits/                   frame=  444 fps= 80 q=31.0 size=    1071kB time=00:00:18.36 bitrate= 477.6kbits/                   frame=  486 fps= 80 q=31.0 size=    1157kB time=00:00:20.21 bitrate= 468.6kbits/                   frame=  529 fps= 80 q=24.8 size=    1240kB time=00:00:21.76 bitrate= 466.7kbits/                   frame=  571 fps= 80 q=31.0 size=    1315kB time=00:00:23.56 bitrate= 457.0kbits/                   frame=  614 fps= 81 q=31.0 size=    1394kB time=00:00:25.05 bitrate= 455.8kbits/                   frame=  657 fps= 81 q=31.0 size=    1461kB time=00:00:26.90 bitrate= 444.7kbits/                   frame=  700 fps= 81 q=31.0 size=    1534kB time=00:00:28.76 bitrate= 436.9kbits/                   frame=  743 fps= 82 q=31.0 size=    1607kB time=00:00:30.24 bitrate= 435.2kbits/                   frame=  785 fps= 82 q=31.0 size=    1686kB time=00:00:32.10 bitrate= 430.2kbits/                   frame=  828 fps= 82 q=31.0 size=    1764kB time=00:00:33.59 bitrate= 430.2kbits/                   frame=  870 fps= 82 q=31.0 size=    1842kB time=00:00:35.44 bitrate= 425.6kbits/                   frame=  914 fps= 82 q=31.0 size=    1922kB time=00:00:36.98 bitrate= 425.7kbits/                   frame=  954 fps= 82 q=31.0 size=    2016kB time=00:00:38.89 bitrate= 424.7kbits/                   frame=  995 fps= 82 q=31.0 size=    2115kB time=00:00:40.33 bitrate= 429.5kbits/                   frame= 1037 fps= 82 q=31.0 size=    2198kB time=00:00:42.13 bitrate= 427.3kbits/                   frame= 1075 fps= 82 q=31.0 Lsize=    2315kB time=00:00:43.04 bitrate= 440.6kbits                   /s speed=3.29x
video:1568kB audio:673kB subtitle:0kB other streams:0kB global headers:0kB muxin                   g overhead: 3.311932%