Forum Replies Created

Viewing 15 replies - 31 through 45 (of 110 total)
  • Thread Starter Metal_13

    (@metal_13)

    Nevermind… i increased the memory_limit to 600M and it worked. fixed the path then reverted the memory_limit.

    Thread Starter Metal_13

    (@metal_13)

    the only fix i could think of right now is to reattach the video as new.
    copy video1 as video2, delete video1 then attach video2 to post.

    Thread Starter Metal_13

    (@metal_13)

    i’m getting the same results. they only show up if i reconvert them or when the video is a new upload. maybe they only exist in the main video’s meta? how do you store them on the main video?

    i checked my old files. looks like i remembered wrong, i used this code to get them.

    $args = array(
    'post_type'        => 'attachment',
    'post_status' => array( 'any' ),
    'paged' => $paged,
    'posts_per_page'      => 5,
    'post_mime_type' => 'video',
    'author__in' => '-0',
    'post_parent' => '0',
    );
    $the_query = new WP_Query( $args );
    Thread Starter Metal_13

    (@metal_13)

    A year back i deleted the child videos to make space for my site but now i need them back. i used “get_attached_media(‘video’,$VideoParent)” to find and delete them.

    right now im using this code. not exact, i deleted some to make it shorter

    $the_query = new WP_Query( $args );
    if ( $the_query->have_posts() ) :
    <!-- pagination here -->
    while ( $the_query->have_posts() ) : $the_query->the_post();
    
    UI: the_post_thumbnail ----- the_title() ---- Main_Video_Link --- child_link(if the is)
    
    //GET VIDEO PARENT ---------
    $media = get_attached_media( 'video', $post->ID );
    foreach($media as $attachment){
    if(!$VideoParent){
    $VideoParent = $attachment->ID;
    if(get_post_mime_type($attachment->ID) != 'video/mp4'){
    echo 'FileType:'.get_post_mime_type($attachment->ID).' [Added to queue] ';
    update_post_meta ( $post->ID, 'error', 'not_mp4' );
    echo '[error:'.get_post_meta ( $post->ID, 'error', true).']';
    kgvid_cron_new_attachment_handler($VideoParent); //ADD TO QUEUE
    }}}
    
    //CHECK IF QUEUED
    $Queue = kgvid_get_encode_queue();
    foreach ( $Queue as $video_key => $video_entry ){
    if($VideoParent == $video_entry['attachmentID']){ echo ' [QUEUED] ';}
    }
    
    //GET VIDEO CHILDREN  --------- START\\
    $media = get_attached_media( 'video', $VideoParent );
    
    if($VideoParentHeight > 360 && count($media) == 0){ 
    update_post_meta ( $post->ID, 'error', 'no_child' );
    echo '[error:'.get_post_meta ( $post->ID, 'error', true).']';
    }
    
    //GET VIDEO CHILDREN - RESOLUTION (Height Meta) --------- START\\
    foreach ( $media as $attachment ){
    $attachment_meta = wp_get_attachment_metadata($attachment->ID);
    $VideoHeight = $attachment_meta['height'];
    echo '<div class="NLChangelog" style="width:90px;">';
    echo '<a target="_blank" href="/wp-admin/post.php?post='.$attachment->ID.'&action=edit">'.$VideoHeight.'<b>p</b></a>';
    echo '</div>';
    }
    
    //Move to next page every X secs
    $URL = '/convert-all-videos/page/' .$EndNumber;
    $page = $URL;
    header("Refresh: $RefreshTimer; url=$page");

    what i want to do is like a fix/cleanup page similar to that code.
    WP_Query 5 videos per page and check them if it’s converted and has a 360p child. then save the 360p in post_meta so i can pull it for streaming.

    i have 2 video formats, replaced original and 360p.
    i would like to stream only the 360p and use the original for backup or download.

    insert this to your single/post theme file..

    <?php echo do_shortcode('[gallery]'); ?>

    Thread Starter Metal_13

    (@metal_13)

    The queue shouldn’t necessarily stop completely

    so it should skip to the next video right? it does that on my side but only when the queue page is open. the queue continues only when i open the page again.

    cant you make it retry after X minutes as an option?

    Thread Starter Metal_13

    (@metal_13)

    Sorry i posted wrong… the error is “No Log File”

    https://postimg.org/image/7k6e6do65/

    Thread Starter Metal_13

    (@metal_13)

    i see, but i don’t want to run it more than once. whenever i use add-to-server plugin some dont make it to the queue, so i recheck them once.

    my add-on script runs something like this.

    -$HD = get parent (original video in post)
    -$LQ = get children (lower quality videos)
    --if ($HD > 240p && empty($LOW))
    {
    ---then kgvid_cron_new_attachment_handler($HD)
    ---update post_meta('convert_done')
    }else{
    ---update post_meta('convert_done')
    }

    the problem is, if the video is quicktime.. there’s no $LOW videos even after converting them, looks like the metas aren’t saved on $HD.

    is this a “No log file” Error?

    EDIT: this is my original code
    https://pastebin.com/CxdJcxVk

    Thread Starter Metal_13

    (@metal_13)

    its just the Replace original.. ??

    Thread Starter Metal_13

    (@metal_13)

    I have these selected.
    -Replace original
    -360p H.264
    -Custom (240p)

    OS: Ubuntu 14.04.2 LTS
    Plesk 12.0.18

    I just found out that i didn’t have mp4box…. so i installed gpac, then enabled mp4box. Method to fix encoded H.264 no longer give errors.

    Thread Starter Metal_13

    (@metal_13)

    Is this the button in the FFMPEG Settings tab of the plugin settings page?
    -YES

    Have you made any modifications to the plugin?
    -NO

    Are there videos in the queue already when you press the “Encode videos” button?
    -YES and NO (tried both)

    When a video finishes encoding does its status in the queue change to Encoding Complete or is there an error message?
    -Encoding completes most of the time, but sometimes i get “Error: No log file” then the queue stops/pauses. i have to open the queue page to resume again.

    Which default video encode formats have you enabled on the settings page?
    -H.264

    What setting do you have selected for the “Method to fix encoded H.264 headers for streaming” option?
    -none.. i remember having problems when it’s enabled(months ago), forgot what the problem was.. should i try enabling it?

    In the FFMPEG test output for one of the H.264 formats do you get a complete encode or is there an error message?
    -NO error messages, it works fine..

    Thread Starter Metal_13

    (@metal_13)

    Did you check the link that i posted?.. like i said, i attached/saved a $post->ID to every tag.. NOT added tags to the posts like you normally do.

    my tags has its own $post->ID saved inside their own metas.
    i made a custom plugin to save metas inside any tag.

    Please check the link.. its there and its “working”. normal comment template works 100%.. yes im sure.

    I used wp_query to get the post saved in the tag page
    example:
    $TagPostID <<— saved in tag
    wp_query($TagPostID){ show comments and form}

    working example of the tag page..
    every info in this tag page
    https://pinoyalbums.com/tag/franco/

    is all from this post
    https://pinoyalbums.com/48784/franco/

    Thread Starter Metal_13

    (@metal_13)

    i made a simple script to attach 1 post to every tag, and i use the post to save post_meta,attachments, and comments to the tag..

    the comment works but not wpDiscuz’s template.. i think the tag page is missing some script file and css..

    i made a test comment on this tag page..
    https://pinoyalbums.com/tag/franco/#comment-1542

    Thread Starter Metal_13

    (@metal_13)

    the code works but the ajax or css isnt loading.
    i inserted the code in the tag page btw.

    here’s one of the tag page im talking about.
    https://pinoyalbums.com/tag/franco/

    Thread Starter Metal_13

    (@metal_13)

    How do i get the parent of the reply PM?

    when you view $message_id, you only get single message view. and the parent isnt marked as read after opening the new reply message.

    [EDIT] nvm, found it.. its all in class.php

Viewing 15 replies - 31 through 45 (of 110 total)