VideoHelp Forum




+ Reply to Thread
Page 1 of 2
1 2 LastLast
Results 1 to 30 of 34

--

  1. --
    Last edited by MGadAllah; 17th Aug 2012 at 13:40.
    Quote Quote  
  2. Not possible; both cropping and adding a logo (if you mean a permanent watermark logo) require re-encoding
    Quote Quote  
  3. --
    Last edited by MGadAllah; 17th Aug 2012 at 13:41.
    Quote Quote  
  4. aBigMeanie aedipuss's Avatar
    Join Date
    Oct 2005
    Location
    666th portal
    Search Comp PM
    start over with the original source file.
    --
    "a lot of people are better dead" - prisoner KSC2-303
    Quote Quote  
  5. --
    Last edited by MGadAllah; 17th Aug 2012 at 13:41.
    Quote Quote  
  6. Cropping always requires a full reencode. How close it is to the source depends at least partly on how well you know how to encode MPEG-2 video.

    A logo 'burned' into the video also requires a full reencode. If you add it as a subtitle to a DVD, no reencoding is necessary. Logos are a really stupid idea anyway. What makes you think anyone - anyone at all - wants to watch a video you've defaced with your arrogant logo? After all, it's not as if it's your video. It belongs to whoever it was that broadcast it. And maybe it already comes with a logo.

    Since you're converting to other formats (AVI, RMVB), then you're reencoding anyway, so I don't understand what the big deal is about keeping it the same quality. Just do the crop and resize as you reencode it for AVI. It's going to be severely degraded anyway.
    Quote Quote  
  7. Member hech54's Avatar
    Join Date
    Jul 2001
    Location
    Yank in Europe
    Search PM
    Originally Posted by MGadAllah View Post
    I do not want to lose any quality
    Impossible.
    Quote Quote  
  8. --
    Last edited by MGadAllah; 17th Aug 2012 at 13:41.
    Quote Quote  
  9. Member AlanHK's Avatar
    Join Date
    Apr 2006
    Location
    Hong Kong
    Search Comp PM
    Originally Posted by MGadAllah View Post
    I do not mind to lose some of the quality to the source file but I do mind time consuming, in other words, the main point is to do a crop and add a logo to the .MPG source file in no time (like cutting the .MPG file with MPG2CUT, which takes no time to do the cut), so later on I will convert the resulted new source .MPG to a .avi, .rmvb, .mp3

    If what you actually want is to create an intermediate source that is cropped and defaced with your logo that you will later encode to other formats, you can do this very quickly using Avisynth.
    That is a script that can filter almost any source video. You can use that as a source for many encoders. (Eg, VirtualDub, Avidemux, HCEnc, but no idea if WinAVI can do this.)

    The final encode takes just as much time, but creating your filtered source is just writing a few lines of code.
    Use AvsPmod to edit the scripts.
    Last edited by AlanHK; 4th Sep 2011 at 02:28.
    Quote Quote  
  10. --
    Last edited by MGadAllah; 17th Aug 2012 at 13:42.
    Quote Quote  
  11. Always Watching guns1inger's Avatar
    Join Date
    Apr 2004
    Location
    Miskatonic U
    Search Comp PM
    You cannot encode an hour of footage to another format in a matter of minutes, even with CUDA or other hardware assist. Even the low quality crap that WinAVI produces (obviously this is not a professional outfit you are doing this for) can't encode an hour of footage in a few minutes.

    It is also worth noting that as a general rule, the faster the encoding, the lower the quality.
    Read my blog here.
    Quote Quote  
  12. --
    Last edited by MGadAllah; 17th Aug 2012 at 13:42.
    Quote Quote  
  13. Always Watching guns1inger's Avatar
    Join Date
    Apr 2004
    Location
    Miskatonic U
    Search Comp PM
    Then avisynth is your only practical answer.
    Read my blog here.
    Quote Quote  
  14. --
    Last edited by MGadAllah; 17th Aug 2012 at 13:42.
    Quote Quote  
  15. Member AlanHK's Avatar
    Join Date
    Apr 2006
    Location
    Hong Kong
    Search Comp PM
    Originally Posted by MGadAllah View Post
    Originally Posted by AlanHK View Post
    If what you actually want is to create an intermediate source that is cropped and defaced with your logo that you will later encode to other formats, you can do this very quickly using Avisynth.
    Does the resulted .avi file will be created cropped with a logo in a few minutes? big size or not is not a matter but creating fast is the main issue.
    Avisynth creates a virtual AVI file. It reads the original file, runs whatever filters you want (in your case, crop and logo) and presents the frame to display on demand.
    Many other programs can then use that as an input "file", same as if it were a real AVI file.

    It might take a few hours to get your head around it, but then it's simple to use and free.

    See http://avisynth.org/mediawiki/Getting_started

    If you can't or don't want to read that, then it's not for you.
    Quote Quote  
  16. Always Watching guns1inger's Avatar
    Join Date
    Apr 2004
    Location
    Miskatonic U
    Search Comp PM
    The basic interface is notepad, but there are a couple of GUIs that can be used to write scripts. AvsPMod is probably the most current.
    Read my blog here.
    Quote Quote  
  17. --
    Last edited by MGadAllah; 17th Aug 2012 at 13:42.
    Quote Quote  
  18. --
    Last edited by MGadAllah; 17th Aug 2012 at 13:43.
    Quote Quote  
  19. Always Watching guns1inger's Avatar
    Join Date
    Apr 2004
    Location
    Miskatonic U
    Search Comp PM
    What bitrate is your uncompressed .mpg file ?
    Read my blog here.
    Quote Quote  
  20. --
    Last edited by MGadAllah; 17th Aug 2012 at 13:43.
    Quote Quote  
  21. Member Cornucopia's Avatar
    Join Date
    Oct 2001
    Location
    Deep in the Heart of Texas
    Search PM
    If you want to:

    A. Encode to a couple of final formats
    B. Retain the MOST quality possible
    C. Do the crop & logo-ing as fast as possible

    ...You should listen to what has been said and use AVISynth. You could script it totally by hand in Notepad, or you can use a semi-GUI "script editor" like AvsPMod (which I find very helpful because of the hints it gives and the previewing.

    Think of if you were NOT needing to crop/resize or add logo...
    What you would do would be to add the MPG to an encoder and encode to your final formats, right?

    So, AVISynth stands in the middle between the MPG & the encoder. You don't open up the MPG as input to your encoding, you open up the script that references the MPG (and it's cropping/resizing & logo compositiing operations). Many, if not all, encoders should be able to use a "well-formed" .AVS script as input, even if it wouldn't normally think of it as being possible.

    A sample script, called "Movie.AVS" might look something like:
    Code:
    SourceVideo = DirectShowSource ("C:\Your Path Here\Your Video Filename Here.mpg")
    CroppedVideo = Crop(SourceVideo, 16, 16, -16, -16).BiCubicResize(720, 576)
    SourceLogo = ImageSource("C:\Your Path Here\Your Logo Picture Filename Here.jpg", end = 300, use_DevIL=true)
    FinalVideo = Overlay(CroppedVideo, SourceLogo, x=400, y=400, mode="SoftLight", opacity=0.25)
    So you open up Movie.AVS into your encoder and encode. DONE! No real extra time wasted, no extra file space wasted.

    You could even use better parameters and, along with a command-line encoder, put the whole thing in a batch file that automatically crops, resizes & logo-izes the same way for each clip (assuming that's what you wanted). It's like an assembly line. And that quality is retained as much as possible (obviously, the limiting factor here is the settings on your final encoder).

    HTH,

    Scott
    Quote Quote  
  22. --
    Last edited by MGadAllah; 17th Aug 2012 at 13:43.
    Quote Quote  
  23. --
    Last edited by MGadAllah; 17th Aug 2012 at 13:44.
    Quote Quote  
  24. Member Cornucopia's Avatar
    Join Date
    Oct 2001
    Location
    Deep in the Heart of Texas
    Search PM
    Can't say much about the 2.60 version, as I haven't tried it yet. It's still not out as an "Official" build that's past Beta. The thing about the 64 bit vs. the 32 bit is that you want to keep all operations using the same bit level, so ALL 32bit or ALL 64bit. If all the ops you want to perform can be done in 64bit (and IIRC, the one's I listed earlier are ALL internal, so should be the same) it probably wouldn't hurt to use the 64bit version (matches your OS).

    Which is more stable? Can't say. Don't currently have access to any 64bit machines besides servers.

    While there ARE some bugs in 2.58, they're few and far between and I haven't encountered any trouble whenever I've used it.

    BTW, If you prep your logo as pre-sized and pre-positioned (to match the dimensions of the CroppedVideo), and save as a 32bit PNG, you can use the transparency as an Alpha mask to make the overlay that much more professional, and there won't be any need to adjust size or placement.

    Note: there have been recent threads which give examples of some of these batch file encodings which include AVISynth. Check them out...

    Scott
    Quote Quote  
  25. --
    Last edited by MGadAllah; 17th Aug 2012 at 13:44.
    Quote Quote  
  26. Member
    Join Date
    Jul 2009
    Location
    Spain
    Search Comp PM
    Originally Posted by MGadAllah View Post
    Now when I click on preview, I got the following error (attach number 1)
    When I click on play, I've got this error (attach number 2)
    Cornucopia's script is incomplete. Add this line at the end:
    return FinalVideo

    To play the video from AvsPmod, you also need to set up an external player, via the Options->Program Settings dialog. The player you specify must be capable of playing Avisynth scripts, eg MPC, WMP.
    Last edited by Gavino; 23rd Sep 2011 at 03:30. Reason: Info on player
    Quote Quote  
  27. --
    Last edited by MGadAllah; 17th Aug 2012 at 13:44.
    Quote Quote  
  28. --
    Last edited by MGadAllah; 17th Aug 2012 at 13:45.
    Quote Quote  
  29. --
    Last edited by MGadAllah; 17th Aug 2012 at 13:45.
    Quote Quote  
  30. Member AlanHK's Avatar
    Join Date
    Apr 2006
    Location
    Hong Kong
    Search Comp PM
    Please don't repeatedly bump your thread.
    It's more likely to get you ignored than replied to.


    Originally Posted by MGadAllah View Post
    What settings should it be!?
    Also what is the command to export?
    When you open a script in Avspmod you should see sliders for all the parameters. So you can adjust them and see the result immediately.
    And you get tooltips on how to use each function if you place the cursor in the script

    Also paste your actual script as text, not a picture so others can easily suggest changes..


    Export to what?
    You can open the final AVS script in HCEnc to make MPEG.
    Or VirtualDub to make AVI.
    Etc.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!