Switched Host But Still Having Problems

edited July 2015 in Bugs and Errors
I gave up with my old host and switched to one you recommended (it's on your list). They assured me your software would run on their server, it does not. I wonder if you agree with their conclusions?
I'm desperately trying to setup a simple video sharing website and so far I'm having the worst luck. Not only does your software not work there, no other one I've installed works...but they do not comment on why.

Also for some reason I cannot set the path for FFMPEG manually in the settings, it ignores the uploaded file path /cc-core/system and uses their default, is there a way to stop this?

Here is what they said:

Hello,

I apologize for the delayed response. It seems that your video script is using command switches that are not compatible with ffmpeg version installed on server.

Below is an output error from conversion log

============
Stream #0.0: Video: mjpeg, yuvj422p, 640x480, 30 tbr, 30 tbn, 30 tbc
Stream #0.1: Audio: pcm_s16le, 22050 Hz, 1 channels, s16, 352 kb/s
Unrecognized option 'b:v'
============

ffmpeg version on server will be updated, unfortunately we don't have an ETA on that. Until that is done, you will need to adjust conversion command in your script to use command switches compatible with older ffmpeg version.

We apologize for the inconvenience this issue has caused you.

Regards,

Bojan K.
Senior Technical Support Ninja
HostNine LLC

Please Advise.

Comments

  • What is the complete path to FFMPEG you're using in the FFMPEG path field of he admin panel?

    Are you able to login via ssh and run this command from the command line: /path/to/static/ffmpeg -v
  • edited July 2015
    /usr/bin/ffmpeg Is what overrides any settings I input and defaults to that but only if I leave it blank. I'm trying to use /cc-core/system/ffmpeg but it won't let me.

    I'm working on the SSH, for some reason it's not letting me enter a password but I can access the account to do so..odd.
  • edited July 2015
    The path you're using is not correct. You need the absolute path. It should be something like:

    /path/to/your/account/cc-core/system/ffmpeg

    i.e. /home/site/public_html/cc-core/system/ffmpeg

    Try adding the absolute path to the custom FFMPEG binary and try again.

    Our forum post where we document this should be updated.
  • I added the absolute path and it accepted it (thank you), however when I try and upload a video file (and I've tried several different types) I get the following message:

    Errors were encountered during the processing of your file, and it cannot be uploaded at this time. We apologize for this inconvenience. Our support team has been notified and will investigate into the cause and fix for this issue. If you continue to experience problems using this feature please contact us for further assistance
  • This is usually due to PHP settings on your server. Let's investigate. Create a file in the root of your site called "info.php" with the following content:

    <?php phpinfo();

    Then post the url to that file here.
  • hey man how do I edit posts ? I'm trying to delete my URL here since it's showing up in search engines!
  • What is the file size of the video causing this error? Also, does this error occur on all browsers with all videos, if not what combination triggers this error?

    And finally, what is the value of Admin Panel - settings - videos - max file size
  • I appreciate your time in this matter. Thank you for your help.

    None of the files were larger than 12mb, most from 2 to 5mb.
    Various types, mp4, mov, flv.

    Browsers: I've tried it in Firefox / IceWeasel and SeaMonkey and same results.
    It should be noted that if I try to upload normally (not in the admin panel) I get the error message I posted earlier. IF I try to 'add new video' from the admin screen I get the following error, regardless of size, browser or format:
    - Invalid video upload

  • Also, when I switched the PHP version from 5.4 to 5.3 to test another program, cumulus gives a different error..it emails the following:
    The temp H.264 file was not created. The id of the video is: 7

    Is this due to the PHP version being to old or does this help pinpoint the underlying issue?
  • Try recursively setting permissions on the uploads and logs directory. See if that does anything. Use:

    chmod -R 777 /path/to/your/account/cc-content/uploads
    chmod -R 777 /path/to/your/account/cc-core/logs

    Let's focus on the admin panel first since it's a one step upload.

    When in the admin panel on the 'Add New Video' page click 'Browse', select a small video file, then click 'Upload'. No need to fill out the rest of the form or to submit the form. Any upload errors should have already occured.

    What happens then?
  • Actually, after reading your last comment, it looks like the files are being uploaded meaning your first issue is ressolved ('Errors were encountered during the processing of your file...').

    You are now receiving encoding issues. This is a better problem because it means you're moving further along in the upload process.

    Go to Admin Panel -> Dashboard -> System Logs and purge the logs. Then try your upload again. After receive the error email, go back to the logs page and copy both logs you see there. Please attach them to this thread so that we can debug the issue.
  • converter.log : The temp H.264 file was not created. The id of the video is: 8

    Other: ==================================================================
    H.264 ENCODING
    ==================================================================

    H.264 Encoding Command: /home/ipvpqviw/public_html/cumulus_test/cc-core/system/ffmpeg -i /home/ipvpqviw/public_html/cumulus_test/cc-content/uploads/temp/jROujTfGIAesCPaOPWHd.MOV -vcodec libx264 -vf "scale=min(640\,iw):trunc(ow/a/2)*2" -vb 800k -acodec libfaac -ab 96k -ar 44100 -f mp4 /home/ipvpqviw/public_html/cumulus_test/cc-content/uploads/h264/jROujTfGIAesCPaOPWHd_temp.mp4 >> /home/ipvpqviw/public_html/cumulus_test/cc-core/logs/jROujTfGIAesCPaOPWHd.log 2>&1

    H.264 Encoding Output:


    ffmpeg version N-47753-g4aa0de6-static http://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2015 the FFmpeg developers
    built with gcc 4.9.2 (Debian 4.9.2-22)
    configuration: --enable-gpl --enable-version3 --disable-shared --disable-debug --enable-runtime-cpudetect --enable-libmp3lame --enable-libx264 --enable-libx265 --enable-libwebp --enable-libspeex --enable-libvorbis --enable-libvpx --enable-libfreetype --enable-fontconfig --enable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-gray --enable-libopenjpeg --enable-libopus --enable-libass --enable-gnutls --enable-libvidstab --enable-libsoxr --cc=gcc-4.9
    libavutil 54. 27.100 / 54. 27.100
    libavcodec 56. 45.101 / 56. 45.101
    libavformat 56. 40.100 / 56. 40.100
    libavdevice 56. 4.100 / 56. 4.100
    libavfilter 5. 19.100 / 5. 19.100
    libswscale 3. 1.101 / 3. 1.101
    libswresample 1. 2.100 / 1. 2.100
    libpostproc 53. 3.100 / 53. 3.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/ipvpqviw/public_html/cumulus_test/cc-content/uploads/temp/jROujTfGIAesCPaOPWHd.MOV':
    Metadata:
    major_brand : qt
    minor_version : 0
    compatible_brands: qt
    creation_time : 2015-06-15 03:18:20
    encoder : 8.3
    encoder-eng : 8.3
    date : 2015-06-14T18:52:36-0700
    date-eng : 2015-06-14T18:52:36-0700
    model : iPhone 6
    model-eng : iPhone 6
    make : Apple
    make-eng : Apple
    Duration: 00:00:47.19, start: 0.000000, bitrate: 766 kb/s
    Stream #0:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 63 kb/s (default)
    Metadata:
    creation_time : 2015-06-15 03:18:20
    handler_name : Core Media Data Handler
    Stream #0:1(und): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p(tv, bt709), 568x320, 699 kb/s, 30.01 fps, 30 tbr, 600 tbn, 1200 tbc (default)
    Metadata:
    rotate : 90
    creation_time : 2015-06-15 03:18:20
    handler_name : Core Media Data Handler
    encoder : H.264
    Side data:
    displaymatrix: rotation of -90.00 degrees
    Unknown encoder 'libfaac'
  • Also it should be noted that I cannot upload from the admin panel, I can select the video but no upload. However it uploads if I use the normal upload stuff (not in admin screen)
  • I'd really like to know why NO video sharing software at all works on my site, when the host assures me everything should.
  • Now we're talking! Change libfaac to libvo-aacenc in admin panel - settings - video - h264 options and mobile options.

    Also until we get the upload completely working please stick to using only one method (either normal OR admin panel. Not both). This will help us isolate your problems and fix them one at time. We will help you get both working, but one at a time please.
  • I changed libfaac to libvo-aacenc in the h264 video options however libfaac was not in the mobile options, however I added libvo-aacenc to that also, please tell me if that was correct. Same errors. Here are the logs:

    ==================================================================
    H.264 ENCODING
    ==================================================================

    H.264 Encoding Command: /home/ipvpqviw/public_html/cumulus_test/cc-core/system/ffmpeg -i /home/ipvpqviw/public_html/cumulus_test/cc-content/uploads/temp/bVDClVAN3yrxCZ7FWkUv.mov -vcodec libx264 -vf "scale=min(640\,iw):trunc(ow/a/2)*2" -vb 800k -acodec libvo-aacenc -ab 96k -ar 44100 -f mp4 /home/ipvpqviw/public_html/cumulus_test/cc-content/uploads/h264/bVDClVAN3yrxCZ7FWkUv_temp.mp4 >> /home/ipvpqviw/public_html/cumulus_test/cc-core/logs/bVDClVAN3yrxCZ7FWkUv.log 2>&1

    H.264 Encoding Output:


    ffmpeg version N-47753-g4aa0de6-static http://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2015 the FFmpeg developers
    built with gcc 4.9.2 (Debian 4.9.2-22)
    configuration: --enable-gpl --enable-version3 --disable-shared --disable-debug --enable-runtime-cpudetect --enable-libmp3lame --enable-libx264 --enable-libx265 --enable-libwebp --enable-libspeex --enable-libvorbis --enable-libvpx --enable-libfreetype --enable-fontconfig --enable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-gray --enable-libopenjpeg --enable-libopus --enable-libass --enable-gnutls --enable-libvidstab --enable-libsoxr --cc=gcc-4.9
    libavutil 54. 27.100 / 54. 27.100
    libavcodec 56. 45.101 / 56. 45.101
    libavformat 56. 40.100 / 56. 40.100
    libavdevice 56. 4.100 / 56. 4.100
    libavfilter 5. 19.100 / 5. 19.100
    libswscale 3. 1.101 / 3. 1.101
    libswresample 1. 2.100 / 1. 2.100
    libpostproc 53. 3.100 / 53. 3.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/ipvpqviw/public_html/cumulus_test/cc-content/uploads/temp/bVDClVAN3yrxCZ7FWkUv.mov':
    Metadata:
    major_brand : qt
    minor_version : 537199360
    compatible_brands: qt
    creation_time : 2010-02-07 02:51:57
    Duration: 00:00:11.54, start: 0.000000, bitrate: 1503 kb/s
    Stream #0:0(eng): Audio: pcm_s16le (sowt / 0x74776F73), 32000 Hz, stereo, s16, 1024 kb/s (default)
    Metadata:
    creation_time : 2010-02-07 02:51:57
    handler_name : Apple Alias Data Handler
    Stream #0:1(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, smpte170m/smpte170m/bt709), 490x326, 475 kb/s, 11.99 fps, 11.99 tbr, 2997 tbn, 5994 tbc (default)
    Metadata:
    creation_time : 2010-02-07 02:51:57
    handler_name : Apple Alias Data Handler
    encoder : H.264
    Unknown encoder 'libvo-aacenc'

    And the other: The temp H.264 file was not created. The id of the video is: 11

  • Sorry, I made a typo in my last instructions. Should be: libvo_aacenc not libvo-aacenc. Notice the underscore. Please make the change, purge all the logs and try the upload again.
  • edited July 2015
    I made the changes, the only difference I can see is that I did not get an error email..however the video still says "pending" when looking at it in the admin panel>video>browse videos
    LOG:
    ==================================================================
    H.264 ENCODING
    ==================================================================

    H.264 Encoding Command: /home/ipvpqviw/public_html/cumulus_test/cc-core/system/ffmpeg -i /home/ipvpqviw/public_html/cumulus_test/cc-content/uploads/temp/ClSn2FQuZhSrqjXwtHjl.MOV -vcodec libx264 -vf "scale=min(640\,iw):trunc(ow/a/2)*2" -vb 800k -acodec libvo_aacenc -ab 96k -ar 44100 -f mp4 /home/ipvpqviw/public_html/cumulus_test/cc-content/uploads/h264/ClSn2FQuZhSrqjXwtHjl_temp.mp4 >> /home/ipvpqviw/public_html/cumulus_test/cc-core/logs/ClSn2FQuZhSrqjXwtHjl.log 2>&1

    H.264 Encoding Output:


    ffmpeg version N-47753-g4aa0de6-static http://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2015 the FFmpeg developers
    built with gcc 4.9.2 (Debian 4.9.2-22)
    configuration: --enable-gpl --enable-version3 --disable-shared --disable-debug --enable-runtime-cpudetect --enable-libmp3lame --enable-libx264 --enable-libx265 --enable-libwebp --enable-libspeex --enable-libvorbis --enable-libvpx --enable-libfreetype --enable-fontconfig --enable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-gray --enable-libopenjpeg --enable-libopus --enable-libass --enable-gnutls --enable-libvidstab --enable-libsoxr --cc=gcc-4.9
    libavutil 54. 27.100 / 54. 27.100
    libavcodec 56. 45.101 / 56. 45.101
    libavformat 56. 40.100 / 56. 40.100
    libavdevice 56. 4.100 / 56. 4.100
    libavfilter 5. 19.100 / 5. 19.100
    libswscale 3. 1.101 / 3. 1.101
    libswresample 1. 2.100 / 1. 2.100
    libpostproc 53. 3.100 / 53. 3.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/ipvpqviw/public_html/cumulus_test/cc-content/uploads/temp/ClSn2FQuZhSrqjXwtHjl.MOV':
    Metadata:
    major_brand : qt
    minor_version : 0
    compatible_brands: qt
    creation_time : 2015-06-15 03:18:20
    encoder : 8.3
    encoder-eng : 8.3
    date : 2015-06-14T18:52:36-0700
    date-eng : 2015-06-14T18:52:36-0700
    model : iPhone 6
    model-eng : iPhone 6
    make : Apple
    make-eng : Apple
    Duration: 00:00:47.19, start: 0.000000, bitrate: 766 kb/s
    Stream #0:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 63 kb/s (default)
    Metadata:
    creation_time : 2015-06-15 03:18:20
    handler_name : Core Media Data Handler
    Stream #0:1(und): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p(tv, bt709), 568x320, 699 kb/s, 30.01 fps, 30 tbr, 600 tbn, 1200 tbc (default)
    Metadata:
    rotate : 90
    creation_time : 2015-06-15 03:18:20
    handler_name : Core Media Data Handler
    encoder : H.264
    Side data:
    displaymatrix: rotation of -90.00 degrees
    [libx264 @ 0x410ada0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
    [libx264 @ 0x410ada0] profile High, level 3.0
    [libx264 @ 0x410ada0] 264 - core 146 r109 121396c - H.264/MPEG-4 AVC codec - Copyleft 2003-2015 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=36 lookahead_threads=4 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=800 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
    Output #0, mp4, to '/home/ipvpqviw/public_html/cumulus_test/cc-content/uploads/h264/ClSn2FQuZhSrqjXwtHjl_temp.mp4':
    Metadata:
    major_brand : qt
    minor_version : 0
    compatible_brands: qt
    make-eng : Apple
    make : Apple
    encoder : Lavf56.40.100
    date : 2015-06-14T18:52:36-0700
    date-eng : 2015-06-14T18:52:36-0700
    model : iPhone 6
    model-eng : iPhone 6
    Stream #0:0(und): Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 320x568, q=-1--1, 800 kb/s, 30 fps, 15360 tbn, 30 tbc (default)
    Metadata:
    handler_name : Core Media Data Handler
    creation_time : 2015-06-15 03:18:20
    encoder : Lavc56.45.101 libx264
    Stream #0:1(und): Audio: aac (libvo_aacenc) ([64][0][0][0] / 0x0040), 44100 Hz, mono, s16, 96 kb/s (default)
    Metadata:
    creation_time : 2015-06-15 03:18:20
    handler_name : Core Media Data Handler
    encoder : Lavc56.45.101 libvo_aacenc
    Stream mapping:
    Stream #0:1 -> #0:0 (h264 (native) -> h264 (libx264))
    Stream #0:0 -> #0:1 (aac (native) -> aac (libvo_aacenc))
    Press [q] to stop, [?] for help
    frame= 193 fps=0.0 q=26.0 size= 436kB time=00:00:07.90 bitrate= 451.7kbits/s
    frame= 337 fps=334 q=28.0 size= 1038kB time=00:00:12.71 bitrate= 668.9kbits/s
    frame= 472 fps=313 q=26.0 size= 1398kB time=00:00:17.19 bitrate= 666.1kbits/s
    frame= 564 fps=280 q=25.0 size= 1684kB time=00:00:20.25 bitrate= 680.9kbits/s
    frame= 671 fps=267 q=26.0 size= 2130kB time=00:00:23.83 bitrate= 732.2kbits/s
    frame= 774 fps=257 q=26.0 size= 2547kB time=00:00:27.27 bitrate= 765.2kbits/s
    frame= 904 fps=257 q=26.0 size= 3030kB time=00:00:31.58 bitrate= 785.7kbits/s
    frame= 1034 fps=257 q=26.0 size= 3508kB time=00:00:35.93 bitrate= 799.8kbits/s
    frame= 1188 fps=263 q=27.0 size= 4169kB time=00:00:41.06 bitrate= 831.7kbits/s
    frame= 1304 fps=260 q=28.0 size= 4618kB time=00:00:44.94 bitrate= 841.8kbits/s
    frame= 1416 fps=251 q=-1.0 Lsize= 5331kB time=00:00:47.26 bitrate= 924.1kbits/s
    video:4728kB audio:554kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.939301%
    [libx264 @ 0x410ada0] frame I:6 Avg QP:21.16 size: 17402
    [libx264 @ 0x410ada0] frame P:745 Avg QP:22.88 size: 5295
    [libx264 @ 0x410ada0] frame B:665 Avg QP:26.78 size: 1190
    [libx264 @ 0x410ada0] consecutive B-frames: 21.0% 39.7% 28.6% 10.7%
    [libx264 @ 0x410ada0] mb I I16..4: 5.6% 68.4% 26.0%
    [libx264 @ 0x410ada0] mb P I16..4: 1.6% 6.9% 1.9% P16..4: 52.1% 21.1% 7.6% 0.0% 0.0% skip: 8.8%
    [libx264 @ 0x410ada0] mb B I16..4: 0.1% 0.4% 0.1% B16..8: 52.0% 6.0% 0.8% direct: 1.6% skip:39.1% L0:48.7% L1:45.1% BI: 6.2%
    [libx264 @ 0x410ada0] final ratefactor: 20.64
    [libx264 @ 0x410ada0] 8x8 transform intra:66.6% inter:61.2%
    [libx264 @ 0x410ada0] coded y,uvDC,uvAC intra: 72.9% 79.4% 27.3% inter: 23.2% 21.3% 1.3%
    [libx264 @ 0x410ada0] i16 v,h,dc,p: 36% 16% 8% 39%
    [libx264 @ 0x410ada0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 25% 19% 13% 5% 7% 6% 8% 7% 10%
    [libx264 @ 0x410ada0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 28% 20% 12% 6% 7% 7% 8% 6% 7%
    [libx264 @ 0x410ada0] i8c dc,h,v,p: 42% 24% 23% 10%
    [libx264 @ 0x410ada0] Weighted P-Frames: Y:7.1% UV:3.0%
    [libx264 @ 0x410ada0] ref P L0: 74.8% 15.5% 8.1% 1.5% 0.1%
    [libx264 @ 0x410ada0] ref B L0: 96.3% 3.5% 0.1%
    [libx264 @ 0x410ada0] ref B L1: 97.1% 2.9%
    [libx264 @ 0x410ada0] kb/s:820.39
  • I don't see any errors there. How long did you wait before checking the logs? Long or large videos usually take a while to encode.
  • I switched servers and got a different error message
    The Mobile file was not created. The id of the video is: 14

    I will play with it and upload and wait for the logs to process
  • I got it to work! I removed libvo_aacenc from the mobile encoding options (I guessed) and it finally worked. It was primarily a problem with my server, upon switching it worked.

    Thank you SO MUCH for your help and I look forward to discussing this more in the future as I develop my site.

    Thank you for your hard work on this project also.
This discussion has been closed.