Adult Script Pro Community Forums

The forum is here for legacy reasons. No new posts will be created. User registration is disabled! If you have any questions, please email us or check https://www.adultscriptpro.com for more details!

You are not logged in.

#1 2013-05-10 01:40:55

CTNinja
Member
From: http://imgswift.com
Registered: 2013-05-06
Posts: 15
Website

Mobile Video Conversion Error (libfaac issues)

Hi there,

I am having troubles with mobile conversion using FFMPEG. FFMPEG is installed on Ubuntu server and can successfully convert videos to flv and mp4 that I upload (I have tried both wmv and avi files). When I try to convert a video to mobile it fails. Below is relevant information including FFMPEG's configuration, the error log that was generated during attempted conversion and a screenshot from the admin panel stating that all requirements are installed on my server. Does anyone have any ideas what could be causing this error (FFMPEG says: Unknown encoder 'libfaac' although it was configured as shown by looking at FFMPEG's configuration)?

Also is it possible to have these automatically convert to mobile after upload instead of having to click the convert to mobile button in the admin panel? Even though my configuration says yes to convert to mobile, after upload it doesn't attempt to (to my knowledge as I see no error log generated after upload).

Here is a screenshot from my system check in the admin panel indicating that everything is good:
http://i42.tinypic.com/zjt6xs.png


FFMPEG Configuration:

ffmpeg version 1.2 Copyright (c) 2000-2013 the FFmpeg developers
  built on May  8 2013 20:21:26 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
  configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-x11grab --enable-libvpx --enable-libmp3lame

This is the output error log:

Loaded video from: /media/videos/flv/48.flv
cmd => /usr/bin/ffmpeg -i '/media/videos/flv/48.flv'
container => flv
duration_timecode => 00:00:08.12
duration_seconds => 8.12
start => 0.000000
bitrate => 696
format => flv
colorspace => yuv420p
framerate => 567
audio => mp3
audio_frequency => 22050
audio_stereo => stereo
audio_bitrate => 128
frames => 4605
width => 630
height => 354
dar => 16:9
dar_float => 1.7777777777778

Preparing video for mobile conversion!
/usr/bin/ffmpeg -i '/media/videos/flv/48.flv' -y -vcodec libx264 -threads 0 -aspect 16:9 -s 320x176 -flags +loop -cmp +chroma -partitions 0 -subq 1 -trellis 0 -refs 1 -coder 0 -me_range 16 -g 300 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -maxrate 10M -bufsize 10M -rc_eq 'blurCplx^(1-qComp)' -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -f mp4 -b:v 600k -acodec libfaac -ac 2 -ab 128k -ar 44100 -profile:v baseline -level 1.3 -preset slow '/media/videos/mobile/48.nomov.mp4'
ffmpeg version 0.8.6-4:0.8.6-0ubuntu0.12.04.1, Copyright (c) 2000-2013 the Libav developers
  built on Apr  2 2013 17:02:36 with gcc 4.6.3
*** THIS PROGRAM IS DEPRECATED ***
This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
[flv @ 0xe619c0] Estimating duration from bitrate, this may be inaccurate

Seems stream 0 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 25.00 (25/1)
Input #0, flv, from '/media/videos/flv/48.flv':
  Metadata:
    creator         : Adult
    metadatacreator : Yet Another Metadata Injector for FLV - Version 1.4
    hasKeyframes    : true
    hasVideo        : true
    hasAudio        : true
    hasMetadata     : true
    canSeekToEnd    : false
    datasize        : 714663
    videosize       : 578468
    audiosize       : 134147
    lasttimestamp   : 8
    lastkeyframetimestamp: 8
    lastkeyframelocation: 682551
  Duration: 00:00:08.12, start: 0.000000, bitrate: 696 kb/s
    Stream #0.0: Video: flv, yuv420p, 630x354, 567 kb/s, 25 tbr, 1k tbn, 1k tbc
    Stream #0.1: Audio: mp3, 22050 Hz, stereo, s16, 128 kb/s
Unknown encoder 'libfaac'
Loaded video from: /media/videos/flv/48.flv
cmd => /usr/bin/ffmpeg -i '/media/videos/flv/48.flv'
container => flv
duration_timecode => 00:00:08.12
duration_seconds => 8.12
start => 0.000000
bitrate => 696
format => flv
colorspace => yuv420p
framerate => 567
audio => mp3
audio_frequency => 22050
audio_stereo => stereo
audio_bitrate => 128
frames => 4605
width => 630
height => 354
dar => 16:9
dar_float => 1.7777777777778

Preparing video for mobile conversion!
/usr/bin/ffmpeg -i '/media/videos/flv/48.flv' -y -vcodec libx264 -threads 0 -aspect 16:9 -s 320x176 -flags +loop -cmp +chroma -partitions 0 -subq 1 -trellis 0 -refs 1 -coder 0 -me_range 16 -g 300 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -maxrate 10M -bufsize 10M -rc_eq 'blurCplx^(1-qComp)' -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -f mp4 -b:v 600k -acodec libfaac -ac 2 -ab 128k -ar 44100 -profile:v baseline -level 1.3 -preset slow '/media/videos/mobile/48.nomov.mp4'
ffmpeg version 0.8.6-4:0.8.6-0ubuntu0.12.04.1, Copyright (c) 2000-2013 the Libav developers
  built on Apr  2 2013 17:02:36 with gcc 4.6.3
*** THIS PROGRAM IS DEPRECATED ***
This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
[flv @ 0xf6d9c0] Estimating duration from bitrate, this may be inaccurate

Seems stream 0 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 25.00 (25/1)
Input #0, flv, from '/media/videos/flv/48.flv':
  Metadata:
    creator         : Adult
    metadatacreator : Yet Another Metadata Injector for FLV - Version 1.4
    hasKeyframes    : true
    hasVideo        : true
    hasAudio        : true
    hasMetadata     : true
    canSeekToEnd    : false
    datasize        : 714663
    videosize       : 578468
    audiosize       : 134147
    lasttimestamp   : 8
    lastkeyframetimestamp: 8
    lastkeyframelocation: 682551
  Duration: 00:00:08.12, start: 0.000000, bitrate: 696 kb/s
    Stream #0.0: Video: flv, yuv420p, 630x354, 567 kb/s, 25 tbr, 1k tbn, 1k tbc
    Stream #0.1: Audio: mp3, 22050 Hz, stereo, s16, 128 kb/s
Unknown encoder 'libfaac'

libfaac was installed prior to configuring FFMPEG, to double check this I tried to install it again:

$ sudo apt-get install libfaac-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libfaac-dev is already the newest version.

Offline

#2 2013-05-10 07:03:57

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: Mobile Video Conversion Error (libfaac issues)

You need to install ffmpeg 1.0.6. Please read this: http://forum.adultscriptpro.com/viewtopic.php?id=78 (use the 1.0.6 version of ffmpeg, instead of the git/svn version).


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

Board footer

Powered by FluxBB