Page 3 of 6 FirstFirst 12345 ... LastLast
Results 21 to 30 of 55

Thread: Hardcoded video watermark mod

  1. #21
    Join Date
    May 2007
    Posts
    588

    Default Re: Hardcoded video watermark mod

    well using the "import" feature most likely bypasses all converting....but uploading as a user with that fix works acording to the other guy in the thread....does your mencoder apply the watermark to other videos?

  2. #22
    Join Date
    May 2007
    Posts
    588

    Default Re: Hardcoded video watermark mod

    does the FLV convert with the watermark if you run the command manually from SSH?

    could post your the whole of your video_conversion.php file and ill see if i can see anything wrong.

  3. #23
    Join Date
    May 2007
    Posts
    588

    Default Re: Hardcoded video watermark mod

    @mhancoc7

    you can check your debug.txt file for the command and you will need ssh access to your site....check with your host if you have it.

  4. #24
    Join Date
    Jun 2007
    Location
    UK
    Posts
    36

    Default Re: Hardcoded video watermark mod

    I found this watermark is no longer working on my site, it stopped working about 7 days ago, I upgraded to 2.6 over a month ago so that can't be the problem. Here's the code that I use that no longer works... any ideas?

    Code:
    1
    00:00:00,000 --> 00:04:00,000
    boxspots.com
    Code:
    <?php
    
    $cmd_ffmpeg = "$config[ffmpeg] -i $video_src -acodec mp3 -ar 22050 -ab 32 -f flv $video_flv";
    $cmd_mencoder = "$config[mencoder] '$video_src' -o $video_flv -of lavf -oac mp3lame -lameopts abr:br=56 -ovc lavc -lavcopts vcodec=flv:vbitrate=500:mbd=2:mv0:trell:v4mv:cbp:last_pred=3 -srate 22050 -lavfopts i_certify_that_my_video_stream_does_not_use_b_frames -sub /home/boxspots/public_html/include/settings/watermark.srt -subpos 98";
    
    $cmd_mencoder = "$config[mencoder] '$video_src' -o $video_flv -of lavf -oac mp3lame -lameopts abr:br=56 -ovc lavc -lavcopts vcodec=flv:vbitrate=500:mbd=2:mv0:trell:v4mv:cbp:last_pred=3 -srate 22050 -ofps 24 -vf harddup";
    
    $cmd_all = $cmd_mencoder;
    
    
    $convert_3gp = $cmd_all;
    $convert_mp4 = $cmd_all;
    $convert_mov = $cmd_all;
    $convert_asf = $cmd_all;
    $convert_mpg = $cmd_all;
    $convert_avi = $cmd_all;
    $convert_mpeg = $cmd_all;
    $convert_wmv = $cmd_all;
    $convert_rm = $cmd_all;
    $convert_dat = $cmd_all;

  5. #25
    Join Date
    Jun 2007
    Location
    New York, NY
    Posts
    92

    Default Re:

    sorry my bad
    Find the best video sites at OnlineTV Video Guide. Register your Vshare there today!

  6. #26
    Join Date
    May 2007
    Location
    Planet Earth
    Posts
    1,389

    Default Re: Hardcoded video watermark mod

    I can hardly wait to try out this mod...as soon as my host gets my video_conversion working, I'm going to give this a whirl.
    If it's not fun, stop doing it!

  7. #27
    Join Date
    May 2007
    Location
    Planet Earth
    Posts
    1,389

    Default Re: Hardcoded video watermark mod

    Dang, this thing rocks! Wish I had known about it from the beginning so I can get rid of the watermark.gif thingie LOL but for future uploads, they're all getting hardcoded, I don't care! :P

    I think, in the meantime, I'll download all the existing .flv's, convert them with this command on my harddrive using ffmpeg.exe and re-upload and see what happens. (to do this you get ffmpeg.exe and put it in your c:\users\yourusername , then run it from command prompt (start >run > cmd.exe) and then type dir and hit enter so it displays the directory contents and then type ffmpeg.exe -i nameofvideo.flv and then whatever commands after that like -ar 22050 and all that junk and then the name of the output file at the end like nameofvideo.avi or nameof video.flv or whatever... if you google this you'll find it probably in some wiki thing somewhere---just put the video you want to monkey with in the same dir as your ffmpeg.exe). How this works locally for mencoder, I'll be googling that too.

    I'm also going to be checking out how to do the fonts and stuff. Thank you so much for sharing this!!!

    @ROB: in the line that says

    Code:
    $cmd_ffmpeg = "$config[ffmpeg] -i $video_src -acodec mp3 -ar 22050 -ab 32 -f flv $video_flv";
    I think you need to have single quotes around the $video part so that it looks like this and also note the libmp3lame instead of mp3:

    Code:
    $cmd_ffmpeg = "$config[ffmpeg] -i '$video_src' -acodec libmp3lame -ar 22050 -ab 32 -f flv $video_flv";
    As always, rename your original files so you can revert back to it if things shouldn't work out like you expect.
    If it's not fun, stop doing it!

  8. #28
    Join Date
    May 2007
    Location
    Planet Earth
    Posts
    1,389

    Default Re: Hardcoded video watermark mod

    I found this about how to change the color and the font.

    http://wiki.showmedo.com/index.php/Video_editing_Ubuntu

    Go down to the section that says "merge video with subtitles"

    Haven't tried it yet, but plan to.
    If it's not fun, stop doing it!

  9. #29
    Join Date
    Jan 2008
    Posts
    216

    Default Re: Hardcoded video watermark mod

    Not working for me, here is my original file, any idea on how to modify it?
    It seem I'm using the new version of mencoder but my command is slightly different to the one modified with -sub here...
    At the end you can notice the difference between -lavfopts and -ofps.

    Code:
    <?php
    
    $cmd_ffmpeg = "$config[ffmpeg] -i '$video_src' -acodec libmp3lame -ar 22050 -ab 32 -f flv $video_flv";
    
    // For rpm (old) version of mplayer
    //$cmd_mencoder = "$config[mencoder] '$video_src' -o $video_flv -of lavf -oac mp3lame -lameopts abr:br=56 -ovc lavc -lavcopts vcodec=flv:vbitrate=500:mbd=2:mv0:trell:v4mv:cbp:last_pred=3 -srate 22050 -lavfopts i_certify_that_my_video_stream_does_not_use_b_frames";
    
    // For latest svn version of mplayer
    $cmd_mencoder = "$config[mencoder] '$video_src' -o $video_flv -of lavf -oac mp3lame -lameopts abr:br=56 -ovc lavc -lavcopts vcodec=flv:vbitrate=500:mbd=2:mv0:trell:v4mv:cbp:last_pred=3 -srate 22050 -ofps 24 -vf harddup";
    
    $cmd_all = $cmd_mencoder;
    
    $convert_3gp = $cmd_all;
    $convert_mp4 = $cmd_all;
    $convert_mov = $cmd_all;
    $convert_asf = $cmd_all;
    $convert_mpg = $cmd_all;
    $convert_avi = $cmd_all;
    $convert_mpeg = $cmd_all;
    $convert_wmv = $cmd_all;
    $convert_rm = $cmd_all;
    $convert_dat = $cmd_all;

  10. #30
    Join Date
    May 2007
    Location
    Planet Earth
    Posts
    1,389

    Default Re: Hardcoded video watermark mod

    How your mendcoder converts shouldn't matter, I wouldn't think. Check the wiki links posted so that you can learn more about how this stuff works. Basically what this is doing is putting a "Subtitle" into your videos when you convert them. It'll be just like the subtitles that appear in movies when it's spoken in one language but needs to be understood by people of another language, the translation appears as a subtitle at the bottom of the movie. This is the -sub command.

    All you have to do is add the -sub command to the end of the mencoder commands:

    Code:
    -sub /home/USER/public_html/include/settings/watermark.srt -subpos 98
    The last command, -subpos , is the subtitle position. Changing that number will change where the subtitle appears. 98 makes it appear very close to the bottom of the video. 2 would make it appear just below the top, for example.

    So, if you simply add the subtitle command to the rest of your mendcoder commands, your video_conversion.php should look like this:

    Code:
    $cmd_mencoder = "$config[mencoder] '$video_src' -o $video_flv -of lavf -oac mp3lame -lameopts abr:br=56 -ovc lavc -lavcopts vcodec=flv:vbitrate=500:mbd=2:mv0:trell:v4mv:cbp:last_pred=3 -srate 22050 -ofps 24 -vf harddup -sub /home/USER/public_html/VIDEOSITE/include/settings/watermark.srt -subpos 98";
    Make sure to change /home/USER/public_html/VIDEOSITE/include/settings/watermark.srt to the path to your files! If you don't know what that is, please consult your webhost.

    Then put the watermark.srt (example provided by OP) that you created into the include/settings/ where the video_conversion.php is located.
    If it's not fun, stop doing it!

Page 3 of 6 FirstFirst 12345 ... LastLast

Similar Threads

  1. Place watermark anywhere on video!
    By mersh in forum Template Modifications
    Replies: 2
    Last Post: 07-24-2008, 03:57 PM
  2. watermark
    By ostendo in forum Installation Support
    Replies: 3
    Last Post: 01-14-2008, 09:13 PM
  3. Watermark
    By Alexy in forum Feature Requests
    Replies: 12
    Last Post: 08-14-2007, 09:27 PM
  4. Watermark
    By admin in forum Frequently Asked Questions
    Replies: 7
    Last Post: 08-01-2007, 02:51 AM
  5. .Swf Or .Flv as A watermark
    By zeffer in forum Feature Requests
    Replies: 2
    Last Post: 06-03-2007, 10:11 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •