The views counter on any of my videos does not work anymore.
Is it a bug or something on my side?
Getting the following error message
Error establishing a database connection
]]>Hi! i’m trying to connect my ffmpeg installation but videopack is not finding it for some reason.
I have an Ubuntu 20 server, when I check via “where is FFmpeg” it returns “ffmpeg: /usr/bin/ffmpeg /usr/share/ffmpeg /usr/share/man/man1/ffmpeg.1.gz”
So I place those paths in the videopack configuration, but the options are always greyed out.
That also happens if I leave that field empty.
Any clue?
Thanks a lot!
When I enable VP9 encoding, It gets to see a checkbox to encode it in VP8. And it really encodes the Video to VP8.
Also for Constant rate factor I see only an option to set it for VP8, but it is meant for both VP8/VP9 right?
Thumbnail photo works in all browsers, but not in facebook and messenger browsers
https://we.tl/t-wfUvsL5Qj5
Please help me to fix it.
]]>How to unset or replace the og:image? The image is set on automatic thumbnail generation.
I couldn’t find a place where to change it.
]]>Hi!
This is an ongoing issue that I’m experiencing with my websites. I manage an adult website were I upload videos. So after someone or I watch one of the videos it frozes completely the website and doesn’t let me enter after 6 – 11 minutes (Taken time with a stopwatch). However, If I switch to a different browser it let me access to the website with no issues to the website but if I see a different video or the same one, the issue keeps happening and time me out.
Also, the same issue happens when I just click on the file of the video to upload it to the post (On the Add Media). Shows up the following error message:
Connection lost. Saving has been disabled until you are reconnected. This post is being backed up in your browser, just in case.
I do not know if this is an issue with the plugin or with any compatibility with the server. This is a very good plug-in so I really do not want to remove it. I really appreciate the assistance.
Thanks.
]]>I always see this ‘error’ in my mail inbox when I upload a video.
I don’t see any options about logging in the settings.
]]>I have this setting turned on.
Do automatically on upload: Generate??thumbnail from?0% of the way through the video.
My understand is that this will automatically generate a thumbnail after I upload a vidoe, and it will set the thumbnail as the featured picture for the video. But neither do I see a new thumbnail in the Media nor is the featured picture of the video set.
Am I doing anything wrong? Thanks.
]]>Hello, unless I make a user “network admin”, the “Generate” thumbnail option is missing. Only “choose from library” option is available.
The user is already an admin on the site, but not “network admin”. The only way that the “Generate” and “Randomize” button appear is when the user is also a “network admin”.
Am I doing something wrong? Is there a way to enable thumbnail generation without granting also the “network admin” status to the user, please?
Thanks for helping.
]]>I’m trying to implement it on a video site that I’m building on WordPress.
I’m using two plugins: videopack and AccessPress Pro
What I would like to do is the following: When the user sends the video to the frontend, through the AccessPress form, three thumbnail options would be generated for them to choose which one will be used. At this point, it would be defined as the featured image of the post.
You can do this in the WordPress administrative area, in the videopack options. But I would like to bring this videopack functionality to the front-end, where any user can upload their videos and select the thumbnail.
Could someone help me?
I’ve already tried, through GPT Chat, but the option to select thumbnails doesn’t appear. Below are the options he suggested to me:
Locate the Template File:
Access your theme folder on the server via FTP or the WordPress admin panel. Navigate to wp-content/plugins/accesspress-anonymous-post-pro/templates. Find the file that contains the form. Generally, the file is form.php. Edit the form.php File:
Open the form.php file for editing. Add the Video Upload Field and Thumbnail Area:
Add the video upload field and thumbnail display area. Here is an example of how this can be done:
<?php
/**
* Template para o formulário de post an?nimo do AccessPress.
*/
// Incluir o nonce de seguran?a
wp_nonce_field('post_nonce', 'post_nonce');
// Incluir o campo de upload de vídeo
?>
<p>
<label for="post_video">Upload de Vídeo</label>
<input type="file" id="post_video" name="post_video" accept="video/*">
</p>
<!-- área para exibir miniaturas -->
<div id="thumbnail-preview"></div>
<?php
// Restante do formulário...
?>
Now, let’s add the JavaScript code that will handle the video upload process, thumbnail generation, and user interaction.
Create a JavaScript File:
Create a new file called custom-thumbnail-selector.js inside your theme’s js directory. If the js directory does not exist, create one. Add JavaScript Code:
Add the following code to the custom-thumbnail-selector.js file:
jQuery(document).ready(function($) {
$('#post_video').on('change', function() {
var file_data = $('#post_video').prop('files')[0];
var form_data = new FormData();
form_data.append('post_video', file_data);
form_data.append('action', 'generate_video_thumbnails');
form_data.append('post_nonce', $('#post_nonce').val());
// Limpar área de miniaturas
$('#thumbnail-preview').html('');
$.ajax({
url: ajax_object.ajax_url,
type: 'POST',
data: form_data,
processData: false,
contentType: false,
success: function(response) {
if (response.success) {
// Exibir miniaturas geradas
$.each(response.data, function(index, value) {
$('#thumbnail-preview').append('<label><input type="radio" name="thumbnail_choice" value="' + value + '" required><img src="' + value + '" /></label>');
});
} else {
alert('Erro: ' + response.data);
}
},
error: function() {
alert('Erro ao processar a requisi??o.');
}
});
});
});
Add PHP Code to functions.php or a Custom Plugin:
// Fun??o para gerar miniaturas de vídeo
function generate_video_thumbnails_ajax() {
// Verificar nonce para seguran?a
check_ajax_referer('post_nonce', 'post_nonce');
// Verificar se o vídeo foi enviado
if (isset($_FILES['post_video'])) {
$file = $_FILES['post_video'];
// Carregar o vídeo na biblioteca de mídia
$attachment_id = media_handle_upload('post_video', 0);
if (is_wp_error($attachment_id)) {
wp_send_json_error('Erro ao carregar o vídeo.');
}
// Verificar se a fun??o do Videopack está disponível
if (function_exists('vp_create_video_thumbnails')) {
$thumbnails = vp_create_video_thumbnails($attachment_id);
wp_send_json_success($thumbnails);
} else {
wp_send_json_error('Fun??o do Videopack n?o encontrada.');
}
} else {
wp_send_json_error('Nenhum vídeo enviado.');
}
}
// Adicionar a??o para processar a requisi??o AJAX
add_action('wp_ajax_generate_video_thumbnails', 'generate_video_thumbnails_ajax');
add_action('wp_ajax_nopriv_generate_video_thumbnails', 'generate_video_thumbnails_ajax');
// Adicionar script para manejar o AJAX no front-end
function enqueue_custom_scripts() {
wp_enqueue_script('custom-thumbnail-selector'
]]>
When I try to change this setting it is not saved. (Not tested if a theme or plugin is involved)
Video dimensions: Set all videos to expand to 100% of their containers
Hi Kyle,
you are mentioning this in the latest update: “Switched custom database query for looking up attachment IDs via URLs to the WordPress function attachment_url_to_postid() which could result in some video URLs no longer returning attachment IDs when the video player code is generated. That would prevent features like video play counting, and would only apply to shortcodes that don’t include attachment IDs. Please let me know if this happens to you.”
Does it mean that we can’t rely on the data sent to GA4 any more? I have sites under contracts where we are responsible for video statistics reporting.
I can’t update untill this issue is 100% resolved. Can you please mention in the next update(s) if analytics are reliable again?
Best regards,
Pavel.
https://imgur.com/a/LVBFtG4
I only want to encode one resolution (720p) no custom resolution. But it sets every time after saving the “custom” resolution again.
Also it doesn’t encode anything with these settings, the .webm I uploaded should be replaced, but nothing, no new file anywhere, nothing in the debug.log.
Hi. I have an issue where I click “Randomize”, but it takes a lot of time for thumbnails to generate. Video also won’t play in timeline selector.
Do you have any idea why would this happening? Also does the image generation happen on server or client side?
]]>After installing I tried to set to average bitrate but it doesn’t reacted. After that I got every time when I visited the settings page this error in the debug log.
[16-Mar-2024 20:49:01 UTC] PHP Fatal error: Uncaught TypeError: array_merge(): Argument #4 must be of type array, string given in /var/www/vhosts/example.com/httpdocs/wp-content/plugins/video-embed-thumbnail-generator/src/admin/videopack-ffmpeg.php:950 Stack trace: #0 /var/www/vhosts/example.com/httpdocs/wp-content/plugins/video-embed-thumbnail-generator/src/admin/videopack-ffmpeg.php(950): array_merge() #1 /var/www/vhosts/example.com/httpdocs/wp-content/plugins/video-embed-thumbnail-generator/src/admin/videopack-ffmpeg.php(200): kgvid_generate_encode_array() #2 /var/www/vhosts/example.com/httpdocs/wp-content/plugins/video-embed-thumbnail-generator/src/admin/videopack-admin.php(2322): kgvid_ffmpeg_test_encode() #3 /var/www/vhosts/example.com/httpdocs/wp-admin/includes/template.php(1836): kgvid_test_ffmpeg_options_callback() #4 /var/www/vhosts/example.com/httpdocs/wp-content/plugins/video-embed-thumbnail-generator/src/admin/videopack-admin.php(1351): do_settings_fields() #5 /var/www/vhosts/example.com/httpdocs/wp-content/plugins/video-embed-thumbnail-generator/src/admin/partials/settings-page.php(25): kgvid_do_settings_sections() #6 /var/www/vhosts/example.com/httpdocs/wp-content/plugins/video-embed-thumbnail-generator/src/admin/videopack-admin.php(1305): include('...') #7 /var/www/vhosts/example.com/httpdocs/wp-includes/class-wp-hook.php(324): kgvid_settings_page() #8 /var/www/vhosts/example.com/httpdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #9 /var/www/vhosts/example.com/httpdocs/wp-includes/plugin.php(517): WP_Hook->do_action() #10 /var/www/vhosts/example.com/httpdocs/wp-admin/admin.php(259): do_action() #11 /var/www/vhosts/example.com/httpdocs/wp-admin/options-general.php(10): require_once('...') #12 {main} thrown in /var/www/vhosts/example.com/httpdocs/wp-content/plugins/video-embed-thumbnail-generator/src/admin/videopack-ffmpeg.php on line 950
Have a nice day, thanks for this wonderful plugin.
I would like to clarify: does this plugin support conversion via FFmpeg to the HLS format (many TS files with a common manifest M3U8, example)?
Or it’s conversion to multiple MP4 files?
]]>Hello! I tried to update the plugin from 4.9.4 to 4.9.5, but I see there is a problem with the plugin, more exactly, in the src/admin/videopack-ffmpeg.php I there is an error on line 208 “unexpected )”. The problem is that there is an extra comma after last parameter (intval…)
$encode_array = kgvid_generate_encode_array(
$input,
$uploads[‘path’] . ‘/Adobestock_469037984’ . $video_formats[ $options[‘sample_format’] ][‘suffix’],
$movie_info,
$options[‘sample_format’],
$encode_dimensions[‘width’],
$encode_dimensions[‘height’],
intval( $options[‘sample_rotate’] ),
);
Because of this I got 500 on all pages.
Videopack Player doesn’t work on the Apple Vision Pro. Please fix.
]]>Hi, any idea how could I make my self hosted video to be embedded in a Reddit post?
]]>Timeline is missing when the video is too small.
Click on the third click here button from the top to see the player on the left to see what I mean. i want the ability to see the timeline too than going to fullscreen to change the time.
https://isv.social/tools/
Hi everyone,
after the last 2 updates I have the following problem with the videopack wordpress plugin.
When I go to the FFMPEG Settings of the plugin, I want to set only “Replace original with same resolution H.264”
When I do this I got the autosave message “saved”, but after reload I have all H.264 resolutions checked again (1080p, 720p, 480p and 360p)
There is no way to change this.
This problem ocurs since the 2. last updates, before that it worked absolutly fine with “Replace original with same resolution H.264” only.
Hope you can fix this ??
]]>Hi Kyle,
I’ve got your plugin working nicely on my development site apart from one small issue which I hope is easily corrected and is just a setting I have configured incorrectly.
When I upload a portrait video it gets converted correctly and a thumbnail is automatically generated correctly but the orientation is wrong. Whilst the video is portrait the generated thumbnail is landscape. It’s as if the video has been rotated 90 degrees clockwise.
Any ideas where I’m going wrong?
Many thanks,
James
]]>Hi,
Could someone clarify whether this plugin converts/transcodes videos or not please? I’m struggling to find a reliable transcoder plugin.
Many thanks,
James
]]>How do you make videopack as the default videoplayer?
The encoding and stuff seems to work, the thumbnail generation and attachments work, but it doesn’t replace my Videoplayer on Essential Blocks and Elementor Pro.
I also want to be able to change the resolution from 360p to the highest. It’s uploaded at 720p but the encoding seemed to make it 360p when using Gutenberg Blocks no matter what. On Elementor Pro, it’s 720p but the Videopack isn’t the player so I can’t see the title, sharing buttons, etc.
I’m using the Hello Elementor Theme.
Hello, I try to use the videopack gallery. But when I click on a video, the sound runs twice (there is a small echo with the sound) and when I want to stop the video, the sound doesn’t stop. I try with your home page (https://www.videopack.video/) and there is the same problem with the gallery. My browser is Firefox. Best regards.
]]>Hello, I installed this plugin to my fresh WordPress installation and I was able to use to create thumbnails for about 4 videos, then it stopped working and this is the message when I click on generate thumbnail:
Error: unable to load video in browser for thumbnail generation and FFMPEG not found at /usr/local/bin
I’m using Firefox browser but I tired in Google Chrome and IE and I’m getting same issue. Is there some setting I messed up? My WordPress is setup on Synology NAS last year model with the newest OS.
]]>Someone update it where the video thumbnails are generated, please.
It doesn’t always work but if you keep trying it does.
Hi, my server keeps freezing when the plugin is on. i keep getting these errors in my plesk log.
these are the 3 new things in my server before getting this problem. my server keeps getting hacked so i had to add them.
-added cloudflare (no caching)
-i have plesk WAF turned on (owasp)
-and i also have disable_functions in PHP
disable_functions: exec, passthru, system, shell_exec, popen, curl_exec, curl_multi_exec, parse_ini_file, show_source, system
2023-10-19 09:23:48 Error 127.0.0.1 [client 127.0.0.1] ModSecurity: Warning. Pattern match “(?i:(?:[\\”‘
](?:\\\\s*?(?:is\\\\s*?(?:[\\\\d.]+\\\\s*?\\\\W.*?[\\"'
]|\\\\d.+[\\”‘]?\\\\w)|\\\\d\\\\s*?(?:--|#))|(?:\\\\W+[\\\\w+-]+\\\\s*?=\\\\s*?\\\\d\\\\W+|\\\\|?[\\\\w-]{3,}[^\\\\w\\\\s.,]+)[\\"'
]|[\\\\%&<>^=]+\\\\d\\\\s*?(?:between|like|x?or|and|div|=))|(?i:n?and|x?x?or|div|like|between|not| …” at ARGS:f8d239a5d9d5f8cdf4fb255b0864722ea60dc29feb26eb87d78fbc60c5cdfb63. [file “/etc/apache2/modsecurity.d/rules/owasp_modsecurity_crs_3-plesk/REQUEST-942-APPLICATION-ATTACK-SQLI.conf”] [line “877”] [id “942340”] [msg “Detects basic SQL authentication bypass attempts 3/3”] [data “Matched Data: \\x22managed_clearance\\x22:\\x22 found within ARGS:f8d239a5d9d5f8cdf4fb255b0864722ea60dc29feb26eb87d78fbc60c5cdfb63: b3ece70d80c3e4fa1b0c9f1a168d1aa2|{\\x22managed_clearance\\x22:\\x22ni\\x22}”] [severity “CRITICAL”] [ver “OWASP_CRS/3.3.5”] [tag “application-multi”] [tag “language-multi”] [tag “platform-multi”] [tag “attack-sqli”] [tag “OWASP_CRS”] [tag “capec/1000/152/248/66”] [tag “PCI/6.5.2”] [tag “paranoia-level/2”] [hostname “*******.org”] [uri “/”] [unique_id “ZTD1pIxi4IPmFIqSoqFYVAAAAAQ”], referer: https://”*******.org/ Apache error
this second error (upstream error) get spammed a lot, up to 20 within seconds. then server freezes until i disable the plugin.
2023-10-19 09:23:48 Error 2001:4454:514:2300:c1f:21ce:825f:65ae 251814#0: *148913 upstream timed out (110: Connection timed out) while reading response header from upstream nginx error
I tried removing disable_functions but still the same.
sadly i cant disable WAF and cloudflare because my site is still under attack every random hour
EDIT: i also added “output_buffering = 4096” in PHP Additional configuration directives
]]>Hi there, great plugin! I’ve just come across it and have had some fun playing around with the settings, but I haven’t managed to come up with a solution in my case so far!.
It’s not ffmeg, all good there – it’s a compatibility issue. I’m using Mediapress for Buddypress which creates media albums and allows users to upload videos to their profile. (It’s the best reviewed buddypress gallery plugin). I had some issues using videopack – what happens is the thumbnails generated by your plugin aren’t attached to the video that was uploaded by the upload tool Mediapress adds for users at their profile, and the video remains displayed with the default image from Mediapress from when it was uploaded.
Additional:
– Videopack used wp_generate_attachment_metadata where Mediapress uses mpp_generate_attachment_metadata.
– Media press uploads as below:
https://site.com/wp-content/uploads/mediapress/members/1/5042/VID_20231016_202117.mp4
– In the Videopack queue it tells me:
Replace original with 480p H.264 again?
Encoding Complete
360p H.264 Encoding Complete
Delete Permanently
There is an option to encode and also to pick a thumb in the admin screen for the video attachment when I upload with Mediapress, I was able to generate thumbnails and save my chosen thumb picked from the video, and that’s saved in there fine, but it’s still not displaying.
I think this template here’s where Mediapress runs the function that adds the default video image that I can’t get Videopack’s thumbnails to override front end: https://github.com/buddydev/mediapress/blob/master/core/media/mpp-media-cover-template.php
I’d love to use videopack, has this come up before, or something similar? I read back through support but couldn’t find anything, so I wondered if anyone’s asked, or whether you could you think of a function / workaround / patch that might help solve this issue?
Thanks ??