WordPress.org

Forums

WP Video Posts
[resolved] MP4 front-end upload issue: video thumbnail created but converted video missing (34 posts)

  1. saveoursmile
    Member
    Posted 1 year ago #

    Hi,

    I'm using this plugin to let guest post via front-end.
    My issue is: guest can upload, and the video thumbnail is generated and stored in my wordpress upload directory. The wordpress post is also created but the actual MP4 generated video file is missing - I can't find it anywhere in my webserver although the wordpress Media library has an entry for it
    You can find an screenshot of the related wordpress media library here
    http://twitpic.com/e4bt01

    Any clue how to address it?
    Thank you

    Hery Zo

    https://wordpress.org/plugins/wp-video-posts/

  2. AlexRayan
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Hery,

    How are you?
    Thank you for using our plugin.

    From what you wrote seems like ffmpeg configuration issues with the flags passed. Without actually testing on the server it would be difficult to guess which flags are failing. Most common one is -vpre which is video preset. Try setting it to "none" under Settings. Also, make sure you have both libfdk_aac and libx264 available for ffmpeg or pass any other video and audio libraries you have available in the Settings.

    Do you have ssh access to your server? Could you run the conversion code from /classes/wpvp-core-class.php line 275 in command line?

    I could do that for you if you email me with credentials to alex @ alexiz.com.

    Please let me know if it helps.

    Best regards,
    Alex

  3. joeymalek
    Member
    Posted 11 months ago #

    Alex I have exactly the same problem.
    You seem so helpful I am willing to tell you or do what you want. From the feedback it seems we are several to run into the same issue.
    I have used another plugin with ffmpeg and it worked like a charm. So I can do something. Your plugin has the extensions i am looking for and it allows for font posting so I want to make this work.
    Currently I am testing a blank site to solve this problem.
    Thanks in advance if you can come back to me.
    Cif

  4. AlexRayan
    Member
    Plugin Author

    Posted 11 months ago #

    Hi Cif,

    How are you?

    Sure, I can help you with the issue. So the thumbnail is being generated for you but the video is not converted, right? Could you please email me to alex @ alexiz.com with the url and admin access credentials to your current testing site?

    It seems the flag configuration issue with ffmpeg in the plugin.

    Best regards,
    Alex

  5. joeymalek
    Member
    Posted 11 months ago #

    Hello Alex and thanks a lot :)
    I am good yes.
    The thumbnail is generated and the video is present in the media library.
    But the link of the video in the media file is nonexistent. The video is not there on its own file.
    And I can see from the feedback this happens in many cases.
    I really think the best is I give admin access.
    I just did a fresh reinstall.
    I am going to repeat the issue a couple of time.
    And send you admin access at your gmail address.
    Thanks again and best greetings from Marrakech :)
    Cif

  6. joeymalek
    Member
    Posted 11 months ago #

    Hello Alex.
    So this is a fresh install. No settings changed really.
    I have the same happening.
    To make it more clear.
    http://alex.kby.li/wp-content/uploads/2014/08/Rehab-Success-Amber1.mp4
    That video is having thumbnail and is listed in the library but the link is 404.
    Check your gmail for admin access details.
    Thanks again.
    Cif

  7. AlexRayan
    Member
    Plugin Author

    Posted 11 months ago #

    Thank you Cif,

    I'll check it out as soon as I can.

    Best regards,
    Alex

  8. AlexRayan
    Member
    Plugin Author

    Posted 11 months ago #

    Hi Cif,

    How are you?
    Could you please do me a favor and copy paste the configuration line of ffmpeg?
    You can get it by typing "ffmpeg" in command line. It should look similar to the following:
    configuration: --prefix=/root/ffmpeg_build --extra-cflags=-I/root/ffmpeg_build/include --extra-ldflags=-L/root/ffmpeg_build/lib --bindir=/root/bin --extra-libs=-ldl --enable-gpl --enable-libass --enable-libfdk-aac --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-pthreads --enable-vdpau --enable-bzlib --enable-libopenjpeg --enable-zlib --enable-postproc --enable-swscale --enable-x11gr

    What we're looking for are these two libraries: libfdk-aac and libx264. They are required for the plugin to do encoding correctly.

    If they are not present in your configuration, it means that either some alternative libraries should be present for mp4 encoding (for example, libfaac) or you would need to recompile ffmpeg with the above libraries.

    Best regards,
    Alex

  9. joeymalek
    Member
    Posted 11 months ago #

    Hello Alex I am fine thanks.
    I assume I get this done by my host.
    See you shortly.
    (kindly note that I get good results with
    Video Embed & Thumbnail Generator doing same kind of job on similar servers)

  10. AlexRayan
    Member
    Plugin Author

    Posted 11 months ago #

    Hi Cif,

    I actually ran shell_exec on your server to get the output myself: configuration: --prefix=/usr --enable-shared --enable-gpl --enable-version3 --enable-nonfree --enable-pthreads --enable-x11grab --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libdc1394 --enable-libfaac --enable-libmp3lame --enable-libopenjpeg --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-zlib libavutil

    You have to specify libfaac as your audio library instead of default passed libfdk_aac since this is what you have.

    Also, I set -b:a and -b:v options (audio and video bit-rate) to an empty string since your configuration doesn't support these options.

    I tested the encoding and it's working now.

    Best regards,
    Alex

  11. joeymalek
    Member
    Posted 11 months ago #

    AWSOME !!!
    I go check !
    Thanks a lot.

  12. joeymalek
    Member
    Posted 11 months ago #

    Yes thanks a lot it works - I am now testing 3gp which I am very excited about.
    For info here is the output of the server

    ffmpeg version 0.7.13, Copyright (c) 2000-2011 the FFmpeg developers
    built on Apr 1 2013 12:12:33 with gcc 4.4.7 20120313 (Red Hat 4.4.7-3)
    configuration: --prefix=/usr --enable-shared --enable-gpl --enable-version3 --enable-nonfree --enable-pthreads --enable-x11grab --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libdc1394 --enable-libfaac --enable-libmp3lame --enable-libopenjpeg --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-zlib

  13. joeymalek
    Member
    Posted 11 months ago #

    Alex why is the splash never displayed over the video player itself leaving the latter displaying a black screen ?
    Why does in the post the splash image displays above the video player when I check : "Display splash image" OFF (and why does it always check itself back ON ?
    And why am I always made to use flowplayer when I always select video js player ?

  14. AlexRayan
    Member
    Plugin Author

    Posted 11 months ago #

    Hi Cif,

    I can see in your WP Video Posts settings that the video js is selected on your test site. And the display splash image should be ON if you want the splash image to show, which you currently have on:
    http://alex.kby.li/test-video/

    I can also select / deselect any of the options just fine under Options => WP Video Posts and they don't revert back to the previous state.

    Regarding the splash image showing above the video, it happens due to the WordPress template displaying a featured image there and splash image is assigned to the video posts as a featured image. If you don't want the image there, you would need to modify your template file for a single post.

    Best regards,
    Alex

  15. joeymalek
    Member
    Posted 11 months ago #

    Sorry no. I try to make myself more clear.

    Alex why is the splash never displayed over the video player itself leaving the latter displaying a black screen ?
    This means everytime I use a video player it display an image over the black video player screen. It is usually called a poster and it is pasted over (not above) the video screen. It uses a thumbnail that is one picture of the movie or the first intro picture. You do not have that on any video - why not ?

    Why does in the post the splash image displays above the video player when I check : "Display splash image" OFF (and why does it always check itself back ON ?

    The splash image which I personally identify as video poster is a standalone picture above the black screen. You have an option that says : "Display splash image". And here is what happens when I check this OFF. It anyway, in any case paste it above the screen. And when I check back in the options I see everytime the check back in that same option.

    And why am I always made to use flowplayer when I always select video js player ?

    The very same here. I select video js and every time in every case it anyway uses the flowplayer.

    Let me know if you understand that or if not clear.

  16. AlexRayan
    Member
    Plugin Author

    Posted 11 months ago #

    Hi Cif,

    Thank you for the clarification.

    Let me address each point one by one.

    Q. "...why is the splash never displayed over the video player itself leaving the latter displaying a black screen ?
    This means everytime I use a video player it display an image over the black video player screen. It is usually called a poster and it is pasted over (not above) the video screen. It uses a thumbnail that is one picture of the movie or the first intro picture. You do not have that on any video - why not ?"

    A: The splash image is passed in the shortcode: [wpvp_flowplayer src=http://alex.kby.li/wp-content/uploads/2014/08/clipcanvas_184348_offline.mp4 width=540 height=360 splash=http://alex.kby.li/wp-content/uploads/2014/08/clipcanvas_184348_offline.jpg]
    It is automatically generated on video conversion from a video frame. You can specify a number of seconds from which the frame should be generated.

    The way video js and flowplayer work is placing the splash image above the video object. This is something that's done by these js libraries.

    If you check "Display splash image", it will show a slash image with a button above on video container.

    Q: "The splash image which I personally identify as video poster is a standalone picture above the black screen. You have an option that says : "Display splash image". And here is what happens when I check this OFF. It anyway, in any case paste it above the screen. And when I check back in the options I see everytime the check back in that same option."

    A: Regarding the black screen, I think I know what the issue was. I changes preload option on video js player from none to auto, so it won't stay as black screen anymore, but rather will preload the 1st frame of the video.

    I unchecked "Display splash image" and you can see that the post has preloaded the 1st frame instead: http://alex.kby.li/test-video/

    Q: "Why does in the post the splash image displays above the video player when I check : "Display splash image" OFF (and why does it always check itself back ON ?"

    A: I cannot replicate this behavior on your site. When I uncheck "Display splash image" and save options, it stays unchecked. If I check it and save options, it stays checked.
    Could it be that we both were performing testing on your site at the same time and I checked the option after you unchecked it? : )

    Q: "And why am I always made to use flowplayer when I always select video js player ?
    The very same here. I select video js and every time in every case it anyway uses the flowplayer."

    A: I think the shortcode name might have been confusing here. The shortcode does says "[wpvp_flowplayer]" but it's just the naming that was adopted before we had added the 2nd player option and was not changed, so please pay no attention to it. If you inspect the source code of the page with a video you will see that it is in fact using video js instead of a flowplayer and if you switch to a flowplayer, you will notice that it's a different looking player.

    Hope it helps.

    Best regards,
    Alex

  17. joeymalek
    Member
    Posted 11 months ago #

    Alright.
    I need to check one thing to verify full understanding.
    I get right back.
    Cif

  18. joeymalek
    Member
    Posted 11 months ago #

    I know it is not fair but :

    I uncheck Display splash image
    I save. It saves options.
    I leave the page clicking permalink on the left.
    I click right back to video options and it stands there checked.
    Several times in a row just now.

  19. AlexRayan
    Member
    Plugin Author

    Posted 11 months ago #

    Ah, you're right, Cif!

    I see it now and it is indeed a bug!
    Thank you for pointing it out for me!
    It's fixed on your site now. I will be updating the plugin with some fixes as soon as the co-developer is back and can commit the files.

    If you need to use the plugin on a different site, please zip up and copy the current copy from your http://alex.kby.li as I made changes to it.

    This bug was affecting the presentation of options only though, so unchecked option was taken into account in the front end as, in fact, "unchecked".

    Please let me know if there's anything else I can help you with.

    Best regards,
    Alex

  20. joeymalek
    Member
    Posted 11 months ago #

    Dear Alex you are welcome I will continue as there are a few more funny things. but let me check if now I get what I want.

  21. joeymalek
    Member
    Posted 11 months ago #

    You did this : I changes preload option on video js player from none to auto,

    Can I do it myself ?

  22. joeymalek
    Member
    Posted 11 months ago #

    Something else : the 3gp video loading I am testing does not work with (normal nokia phone not even a smartphone) 13 MB files. It times out.

  23. AlexRayan
    Member
    Plugin Author

    Posted 11 months ago #

    Hi Cif,

    Regarding preload option changes to auto from none if doesn't effect the player in any ways, but if you must change it to something other than auto, I'll add an option under Settings with my next release.

    Regarding videos not uploading through the phone, this is an expected behavior since not all mobile devices support default form upload of files. Please take a look at this article outlining the situation: http://viljamis.com/blog/2012/file-upload-support-on-mobile/

    Hope it helps.

    Best regards,
    Alex

  24. joeymalek
    Member
    Posted 11 months ago #

    Dear Alex,
    Thanks and got you.
    I am uploading from the desktop.
    And I am mot saying it does not work. As it does.
    But at the given size it times out.

  25. AlexRayan
    Member
    Plugin Author

    Posted 11 months ago #

    Hi Cif,

    Yes, there might be an issue of timeout if the file is bigger than the specified limits.
    You should check the server php.ini configuration to see what upload limits are set.
    It's upload_max_filesize and post_max_size that you wanna take a look at.

    Best regards,
    Alex

  26. joeymalek
    Member
    Posted 11 months ago #

    Ah !
    Good point.
    It is by default here since this is a test site and actually I took the file I had (just a few in this format) so yes I would need to change the php.ini you are right.
    Look I am getting to you on this story of splah and poster.
    Thanks for all.

  27. joeymalek
    Member
    Posted 11 months ago #

    Alex here is the size limit

    Current maximum memory configured in php.ini: 256M

    So that does not make sense that it times out on 13 meg.

  28. AlexRayan
    Member
    Plugin Author

    Posted 11 months ago #

    Hi Cif,

    I have just successfully uploaded a 34 Mb video through the front end uploader on your test site instance: http://alex.kby.li/test-from-front-end/

    Are you trying to upload from a tablet or a phone?

    Could you please send me a video that times out and a link to the site (if different from above)?

    Best regards,
    Alex

  29. joeymalek
    Member
    Posted 11 months ago #

    Hi Alex
    Just seen the video.
    I was surprised this is 34 mb as it is very short.
    I am uploading from desktop.
    I have to upload the video dropbox.
    It is currently playing perfectly on my vlc player. It is 13 mb for 1 minute duration.
    I try to upload it to dropbox.

  30. AlexRayan
    Member
    Plugin Author

    Posted 11 months ago #

    Hi Cif,

    Yes, the video was 34 Mb. It was in mov format, that's why it was so heavy even being that short. : )

    Ok, I'll wait for the link then and will test the video when I have it.

    Best regards,
    Alex

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Video Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic