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.

#126 Re: Bug Reports » [FIXED IN 1.0] Regenerate Duration Issue » 2012-06-22 08:32:45

Nope this clip is hotlinked. I checked it now with embedded ones that i also added by mass csv import with the same result / error message.

Ben

#127 Re: Bug Reports » Mass CSV Import ignores limit » 2012-06-22 08:24:45

Well here all (250) clips are imported fine with the thumbnails - even the status is "Grabbing" . If I change "Grabbing" to "Active" they can be watched. Another weird thing is specially for these they play as well if mp4 format is selected as if flv format is selected. The selected format on the sponsor´s site is mp4.

Ben

#128 Bug Reports » [FIXED IN 1.0] Regenerate Duration Issue » 2012-06-22 07:28:34

MS_DA
Replies: 3

If i want to regenerate duration i get this error message

Query: UPDATE video SET duration = WHERE video_id = 10594 LIMIT 1
Error Message: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE video_id = 10594 LIMIT 1' at line 1
Error Number: 1064

The installed versions on my server are :

PHP version     5.2.17
MySQL version     5.1.63-cll

Ben

#129 Bug Reports » Mass CSV Import ignores limit » 2012-06-22 07:24:52

MS_DA
Replies: 3

The Mass CSV Import ignores the  limit to import. I generate the links on the sponsor´s site and save it as txt. When i set the limit of Mass CSV Import to 10 i.e.  ALL clips of the txt get imported. 10 of them are shown fine - all other imported clips have the status "Grabbing" then. I either have to set them "Active" or even delete them.

Ben

#131 Re: Bug Reports » [INPUT NEEDED] ads problem » 2012-05-26 15:53:35

Is your server off ? I always get

Server not found       
       
          Firefox can't find the server at www.xporn4u.com.

yikes

#132 Re: Development » Adult Script Pro 1.0 Testing » 2012-05-26 15:49:23

Cool tongue

You get an error message if you select Model CVS Import.

Can´t wait now to get Version 1.0 big_smile

#133 Re: Troubleshooting » Upload Maximum Filesize,Post Maximum Size » 2012-05-22 11:20:05

You find a description how to install the upload progress bar here http://forum.adultscriptpro.com/viewtopic.php?id=1376 . If you do not want to allow your users to upload files bigger then the 105 mb just ignore this "Post Maximum Size".  Mine is set on 100 mb and i dun care.

Ben

#134 Re: Bug Reports » [FIXED] After signup screen: » 2012-05-16 21:40:01

Well i mean this as extra line above or below the field where u have to add the email address on the registration screen Adrian.

#135 Re: Bug Reports » [FIXED] After signup screen: » 2012-05-16 15:42:11

Adrian maybe you can add something like

You'll need to activate your account! We require that you validate your registration to ensure that the email address you entered was correct!

to the registration form. We often see that invalid email addresses are used.

Ben

#136 Re: Open Discussion » upload images » 2012-05-11 02:40:52

Welcome to the club brownie big_smile

If your at Admin -> Photo ->  Add select beside Method "File" . Make sure that the extensions of the pics in the zip are listed in Allowed Extensions on Admin::Photo::Config .

#137 Re: Open Discussion » Spam / Robot User Accounts » 2012-05-02 08:27:18

Another new one is busy asking for a ban lol

tanky

cool

#138 Re: Open Discussion » Were I Can Get Forum Database » 2012-05-02 08:21:58

How shall this work ?

A forum database includes members / topics / posts / preferences etc etc etc. This will not work if you do not have the complete forum too. Even the member tables alone wouldn´t make any sense since the rest of the included forum is missing.

You need to get / buy a complete forum then.

#139 Re: Documentation » [HOWTO] Install PHP Upload Progress Extension for Adult Script Pro » 2012-05-02 08:08:20

This qt-faststart.c  worked fine on my CentOS5.5 server

/*
 * qt-faststart.c, v0.1
 * by Mike Melanson (melanson@pcisys.net)
 * This file is placed in the public domain. Use the program however you
 * see fit.
 *
 * This utility rearranges a Quicktime file such that the moov atom
 * is in front of the data, thus facilitating network streaming.
 *
 * Compile this program using:
 *  cc qt-faststart.c -o qt-faststart
 * Invoke the program with:
 *  qt-faststart <infile.mov> <outfile.mov>
 *
 * Notes: Quicktime files can come in many configurations of top-level
 * atoms. This utility stipulates that the very last atom in the file needs
 * to be a moov atom. When given such a file, this utility will rearrange
 * the top-level atoms by shifting the moov atom from the back of the file
 * to the front, and patch the chunk offsets along the way. This utility
 * presently only operates on uncompressed moov atoms.
 */

#include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>

#ifdef __MINGW32__
#define fseeko(x,y,z)  fseeko64(x,y,z)
#define ftello(x)      ftello64(x)
#endif

#define BE_16(x) ((((uint8_t*)(x))[0] << 8) | ((uint8_t*)(x))[1])
#define BE_32(x) ((((uint8_t*)(x))[0] << 24) | \
                  (((uint8_t*)(x))[1] << 16) | \
                  (((uint8_t*)(x))[2] << 8) | \
                   ((uint8_t*)(x))[3])
#define BE_64(x) (((uint64_t)(((uint8_t*)(x))[0]) << 56) | \
                  ((uint64_t)(((uint8_t*)(x))[1]) << 48) | \
                  ((uint64_t)(((uint8_t*)(x))[2]) << 40) | \
                  ((uint64_t)(((uint8_t*)(x))[3]) << 32) | \
                  ((uint64_t)(((uint8_t*)(x))[4]) << 24) | \
                  ((uint64_t)(((uint8_t*)(x))[5]) << 16) | \
                  ((uint64_t)(((uint8_t*)(x))[6]) << 8) | \
                  ((uint64_t)((uint8_t*)(x))[7]))

#define BE_FOURCC( ch0, ch1, ch2, ch3 )             \
        ( (uint32_t)(unsigned char)(ch3) |          \
        ( (uint32_t)(unsigned char)(ch2) << 8 ) |   \
        ( (uint32_t)(unsigned char)(ch1) << 16 ) |  \
        ( (uint32_t)(unsigned char)(ch0) << 24 ) )

#define QT_ATOM BE_FOURCC
/* top level atoms */
#define FREE_ATOM QT_ATOM('f', 'r', 'e', 'e')
#define JUNK_ATOM QT_ATOM('j', 'u', 'n', 'k')
#define MDAT_ATOM QT_ATOM('m', 'd', 'a', 't')
#define MOOV_ATOM QT_ATOM('m', 'o', 'o', 'v')
#define PNOT_ATOM QT_ATOM('p', 'n', 'o', 't')
#define SKIP_ATOM QT_ATOM('s', 'k', 'i', 'p')
#define WIDE_ATOM QT_ATOM('w', 'i', 'd', 'e')
#define PICT_ATOM QT_ATOM('P', 'I', 'C', 'T')
#define FTYP_ATOM QT_ATOM('f', 't', 'y', 'p')

#define CMOV_ATOM QT_ATOM('c', 'm', 'o', 'v')
#define STCO_ATOM QT_ATOM('s', 't', 'c', 'o')
#define CO64_ATOM QT_ATOM('c', 'o', '6', '4')

#define ATOM_PREAMBLE_SIZE 8
#define COPY_BUFFER_SIZE 1024

int main(int argc, char *argv[])
{
    FILE *infile;
    FILE *outfile;
    unsigned char atom_bytes[ATOM_PREAMBLE_SIZE];
    uint32_t atom_type = 0;
    uint64_t atom_size = 0;
    uint64_t last_offset;
    unsigned char *moov_atom;
    unsigned char *ftyp_atom = 0;
    uint64_t moov_atom_size;
    uint64_t ftyp_atom_size = 0;
    uint64_t i, j;
    uint32_t offset_count;
    uint64_t current_offset;
    uint64_t start_offset = 0;
    unsigned char copy_buffer[COPY_BUFFER_SIZE];
    int bytes_to_copy;

    if (argc != 3) {
        printf ("Usage: qt-faststart <infile.mov> <outfile.mov>\n");
        return 0;
    }

    infile = fopen(argv[1], "rb");
    if (!infile) {
        perror(argv[1]);
        return 1;
    }

    /* traverse through the atoms in the file to make sure that 'moov' is
     * at the end */
    while (!feof(infile)) {
        if (fread(atom_bytes, ATOM_PREAMBLE_SIZE, 1, infile) != 1) {
            break;
        }
        atom_size = (uint32_t)BE_32(&atom_bytes[0]);
        atom_type = BE_32(&atom_bytes[4]);

        if ((atom_type != FREE_ATOM) &&
            (atom_type != JUNK_ATOM) &&
            (atom_type != MDAT_ATOM) &&
            (atom_type != MOOV_ATOM) &&
            (atom_type != PNOT_ATOM) &&
            (atom_type != SKIP_ATOM) &&
            (atom_type != WIDE_ATOM) &&
            (atom_type != PICT_ATOM) &&
            (atom_type != FTYP_ATOM)) {
            printf ("encountered non-QT top-level atom (is this a Quicktime file?)\n");
            break;
        }

        /* keep ftyp atom */
        if (atom_type == FTYP_ATOM) {
            ftyp_atom_size = atom_size;
            ftyp_atom = malloc(ftyp_atom_size);
            if (!ftyp_atom) {
                printf ("could not allocate 0x%llX byte for ftyp atom\n",
                        atom_size);
                fclose(infile);
                return 1;
            }
            fseeko(infile, -ATOM_PREAMBLE_SIZE, SEEK_CUR);
            if (fread(ftyp_atom, atom_size, 1, infile) != 1) {
                perror(argv[1]);
                free(ftyp_atom);
                fclose(infile);
                return 1;
            }
            start_offset = ftello(infile);
            continue;
        }

        /* 64-bit special case */
        if (atom_size == 1) {
            if (fread(atom_bytes, ATOM_PREAMBLE_SIZE, 1, infile) != 1) {
                break;
            }
            atom_size = BE_64(&atom_bytes[0]);
            fseeko(infile, atom_size - ATOM_PREAMBLE_SIZE * 2, SEEK_CUR);
        } else {
            fseeko(infile, atom_size - ATOM_PREAMBLE_SIZE, SEEK_CUR);
        }
    }

    if (atom_type != MOOV_ATOM) {
        printf ("last atom in file was not a moov atom\n");
        fclose(infile);
        return 0;
    }

    /* moov atom was, in fact, the last atom in the chunk; load the whole
     * moov atom */
    fseeko(infile, -atom_size, SEEK_END);
    last_offset = ftello(infile);
    moov_atom_size = atom_size;
    moov_atom = malloc(moov_atom_size);
    if (!moov_atom) {
        printf ("could not allocate 0x%llX byte for moov atom\n",
            atom_size);
        fclose(infile);
        return 1;
    }
    if (fread(moov_atom, atom_size, 1, infile) != 1) {
        perror(argv[1]);
        free(moov_atom);
        fclose(infile);
        return 1;
    }

    /* this utility does not support compressed atoms yet, so disqualify
     * files with compressed QT atoms */
    if (BE_32(&moov_atom[12]) == CMOV_ATOM) {
        printf ("this utility does not support compressed moov atoms yet\n");
        free(moov_atom);
        fclose(infile);
        return 1;
    }

    /* close; will be re-opened later */
    fclose(infile);

    /* crawl through the moov chunk in search of stco or co64 atoms */
    for (i = 4; i < moov_atom_size - 4; i++) {
        atom_type = BE_32(&moov_atom[i]);
        if (atom_type == STCO_ATOM) {
            printf (" patching stco atom...\n");
            atom_size = BE_32(&moov_atom[i - 4]);
            if (i + atom_size - 4 > moov_atom_size) {
                printf (" bad atom size\n");
                free(moov_atom);
                return 1;
            }
            offset_count = BE_32(&moov_atom[i + 8]);
            for (j = 0; j < offset_count; j++) {
                current_offset = BE_32(&moov_atom[i + 12 + j * 4]);
                current_offset += moov_atom_size;
                moov_atom[i + 12 + j * 4 + 0] = (current_offset >> 24) & 0xFF;
                moov_atom[i + 12 + j * 4 + 1] = (current_offset >> 16) & 0xFF;
                moov_atom[i + 12 + j * 4 + 2] = (current_offset >>  8) & 0xFF;
                moov_atom[i + 12 + j * 4 + 3] = (current_offset >>  0) & 0xFF;
            }
            i += atom_size - 4;
        } else if (atom_type == CO64_ATOM) {
            printf (" patching co64 atom...\n");
            atom_size = BE_32(&moov_atom[i - 4]);
            if (i + atom_size - 4 > moov_atom_size) {
                printf (" bad atom size\n");
                free(moov_atom);
                return 1;
            }
            offset_count = BE_32(&moov_atom[i + 8]);
            for (j = 0; j < offset_count; j++) {
                current_offset = BE_64(&moov_atom[i + 12 + j * 8]);
                current_offset += moov_atom_size;
                moov_atom[i + 12 + j * 8 + 0] = (current_offset >> 56) & 0xFF;
                moov_atom[i + 12 + j * 8 + 1] = (current_offset >> 48) & 0xFF;
                moov_atom[i + 12 + j * 8 + 2] = (current_offset >> 40) & 0xFF;
                moov_atom[i + 12 + j * 8 + 3] = (current_offset >> 32) & 0xFF;
                moov_atom[i + 12 + j * 8 + 4] = (current_offset >> 24) & 0xFF;
                moov_atom[i + 12 + j * 8 + 5] = (current_offset >> 16) & 0xFF;
                moov_atom[i + 12 + j * 8 + 6] = (current_offset >>  8) & 0xFF;
                moov_atom[i + 12 + j * 8 + 7] = (current_offset >>  0) & 0xFF;
            }
            i += atom_size - 4;
        }
    }

    /* re-open the input file and open the output file */
    infile = fopen(argv[1], "rb");
    if (!infile) {
        perror(argv[1]);
        free(moov_atom);
        return 1;
    }

    if (start_offset > 0) { /* seek after ftyp atom */
        fseeko(infile, start_offset, SEEK_SET);
        last_offset -= start_offset;
    }

    outfile = fopen(argv[2], "wb");
    if (!outfile) {
        perror(argv[2]);
        fclose(outfile);
        free(moov_atom);
        return 1;
    }

    /* dump the same ftyp atom */
    if (ftyp_atom_size > 0) {
        printf (" writing ftyp atom...\n");
        if (fwrite(ftyp_atom, ftyp_atom_size, 1, outfile) != 1) {
            perror(argv[2]);
            goto error_out;
        }
    }

    /* dump the new moov atom */
    printf (" writing moov atom...\n");
    if (fwrite(moov_atom, moov_atom_size, 1, outfile) != 1) {
        perror(argv[2]);
        goto error_out;
    }

    /* copy the remainder of the infile, from offset 0 -> last_offset - 1 */
    printf (" copying rest of file...\n");
    while (last_offset) {
        if (last_offset > COPY_BUFFER_SIZE)
            bytes_to_copy = COPY_BUFFER_SIZE;
        else
            bytes_to_copy = last_offset;

        if (fread(copy_buffer, bytes_to_copy, 1, infile) != 1) {
            perror(argv[1]);
            goto error_out;
        }
        if (fwrite(copy_buffer, bytes_to_copy, 1, outfile) != 1) {
            perror(argv[2]);
            goto error_out;
        }

        last_offset -= bytes_to_copy;
    }

    fclose(infile);
    fclose(outfile);
    free(moov_atom);
    if (ftyp_atom_size > 0)
        free(ftyp_atom);

    return 0;

error_out:
    fclose(infile);
    fclose(outfile);
    free(moov_atom);
    if (ftyp_atom_size > 0)
        free(ftyp_atom);
    return 1;
}

Many Thanks for your help Adrian big_smile

Ben

#140 Re: Documentation » [HOWTO] Install PHP Upload Progress Extension for Adult Script Pro » 2012-05-01 16:20:16

Getting this now

-bash-3.2# gcc qt-faststart.c -o qt-faststart
qt-faststart.c:130:18: warning: no newline at end of file
qt-faststart.c: In function âmainâ:
qt-faststart.c:130: error: expected declaration or statement at end of input
qt-faststart.c:130: error: expected declaration or statement at end of input
-bash-3.2# gcc qt-faststart.c -o qt-faststart
qt-faststart.c:263:2: warning: no newline at end of file

Many Thanks!

#141 Re: Documentation » [HOWTO] Install PHP Upload Progress Extension for Adult Script Pro » 2012-05-01 11:45:59

Got all this

qt-faststart.c:1: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â:â token
In file included from /usr/include/_G_config.h:44,
                 from /usr/include/libio.h:32,
                 from /usr/include/stdio.h:72,
                 from qt-faststart.c:37:
/usr/include/gconv.h:72: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/gconv.h:88: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/gconv.h:97: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/gconv.h:174: error: expected specifier-qualifier-list before âsize_tâ
In file included from /usr/include/stdio.h:72,
                 from qt-faststart.c:37:
/usr/include/libio.h:329: error: expected specifier-qualifier-list before âsize_tâ
/usr/include/libio.h:361: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/libio.h:370: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/libio.h:486: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â_IO_sgetnâ
In file included from qt-faststart.c:37:
/usr/include/stdio.h:308: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/stdio.h:315: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/stdio.h:357: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/stdio.h:359: error: format string argument not a string type
/usr/include/stdio.h:361: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/stdio.h:610: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âfreadâ
/usr/include/stdio.h:616: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âfwriteâ
/usr/include/stdio.h:638: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âfread_unlockedâ
/usr/include/stdio.h:640: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âfwrite_unlockedâ
In file included from qt-faststart.c:38:
/usr/include/stdlib.h:140: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â__ctype_get_mb_cur_maxâ
In file included from qt-faststart.c:38:
/usr/include/stdlib.h:455: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/stdlib.h:485: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/stdlib.h:487: error: nonnull argument with out-of-range operand number (argument 1, operand 4)
/usr/include/stdlib.h:589: error: expected â)â before â__sizeâ
/usr/include/stdlib.h:591: error: expected â)â before â__nmembâ
/usr/include/stdlib.h:600: error: expected declaration specifiers or â...â before âsize_tâ
In file included from /usr/include/stdlib.h:612,
                 from qt-faststart.c:38:
/usr/include/alloca.h:33: error: expected â)â before â__sizeâ
In file included from qt-faststart.c:38:
/usr/include/stdlib.h:617: error: expected â)â before â__sizeâ
/usr/include/stdlib.h:622: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/stdlib.h:622: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/stdlib.h:775: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/stdlib.h:775: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/stdlib.h:776: error: nonnull argument with out-of-range operand number (argument 1, operand 5)
/usr/include/stdlib.h:780: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/stdlib.h:780: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/stdlib.h:781: error: nonnull argument with out-of-range operand number (argument 1, operand 4)
/usr/include/stdlib.h:853: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/stdlib.h:856: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/stdlib.h:860: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/stdlib.h:864: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/stdlib.h:873: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/stdlib.h:877: error: expected declaration specifiers or â...â before âsize_tâ
/usr/include/stdlib.h:884: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âmbstowcsâ
/usr/include/stdlib.h:887: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âwcstombsâ
qt-faststart.c: In function âmainâ:
qt-faststart.c:152: warning: incompatible implicit declaration of built-in function âmallocâ
qt-faststart.c:241: warning: incompatible implicit declaration of built-in function âfwriteâ

#142 Re: Documentation » [HOWTO] Install PHP Upload Progress Extension for Adult Script Pro » 2012-05-01 08:11:07

symtab wrote:

qt-faststart is installed when you install ffmpeg, but you can it install it separately also, but its not recommended, because its missing some features:

wget -c http://multimedia.cx/qt-faststart.c
gcc qt-faststart.c -o qt-faststart
cp qt-faststart /usr/local/bin/qt-faststart

Got a huge load of error messages on this and the install didn´t work sad

#144 Re: Documentation » [HOWTO] Install PHP Upload Progress Extension for Adult Script Pro » 2012-04-26 18:21:35

Many Thanks Adrian big_smile

Well the ffmpeg and features have been installed by the server staff while setting the server up - even without QT Faststart and Yamdi. All files are inside a ffmpeg folder but there the QT Faststart install instructions of the other topic dun run.

#145 Bug Reports » [FIXED] A Little ACP Issue » 2012-04-26 14:23:25

MS_DA
Replies: 2

Hello,

I noticed a lil issue on the Admin Panel right now.

If i go to Video - Manage and select one video to edit or check i see

Video Options
Allow Rating yes
Allow Comment yes
Allow Download yes
Allow Embed yes

even if Allow Download & Allow Embed are set to NO / Disabled in the settings.

On the front end it´s disabled fine.

Ben

#146 Re: Documentation » [HOWTO] Install PHP Upload Progress Extension for Adult Script Pro » 2012-04-26 14:08:44

Many thanks Adrian big_smile

Very easy to add it with this "How To" tongue

I wished QT FastStart could be done as easy too - didn´t get it managed yet to install it lol .

Ben

#147 Re: Feature Requests » Would be a great Feature for big sites » 2012-04-18 19:08:58

Well we discussed this in a similar project already on our ASPRONet Webmasters forum and came up with some good ideas.  Well not that many of you joined yet so only Kiki, mv911 and I are working on it.

You can see a very first proto type here http://TGUTUBE.COM/aspro .

Ben

#148 Re: Development » Flash Player Questions » 2012-03-21 12:41:36

I like the Hitasoft one better tongue

Would be good if you change it Adrian big_smile

#149 Re: Open Discussion » WTF...I hate these spammers » 2012-03-20 13:02:53

Like THS said there are several humen who register to check random questions for the companies who run bots. Specially one russion and one chinese. So i change the questions from time to time.

ATM i´ve 3 or more daily registrations on the tube - all are 20 years old and and add as location Los Angeles, USA. Their ips say all come from Russia.

Board footer

Powered by FluxBB