VideoHelp Forum




+ Reply to Thread
Results 1 to 14 of 14
  1. Easiest cheapest (free best) way to do this?

    Here is the original video.

    www.youtube.com/watch?v=9QGg4FoQWlE

    and here is the subject video

    www.youtube.com/watch?v=3gEwc82jRLM

    As you can see in the first video he has a slide show going on but the luminance difference and lack of dynamic range means the screen is for the most part blown out.

    I also have the slide show (he sent it to me)

    I loaded this PDF on my phone turned on screen recorder and simply followed along as best I could as he did it in the original video.

    for now I have users play the first video switch to the second video play it and turn off its sound. listening to one watching the other.

    what I want to do is "overlay" the second video (no sound just the video use sound from original video) ONTO the first video to "cover up" the wall mounted display panel. in fact I could even make it bigger almost as big as the way so I would end up with something like this.

    https://forum.videohelp.com/images/imgfiles/4akiAsH.jpg

    I just want to plop one video on top of the other specifying where it "sits" on the other video and just make them into one video (no alpha that just the quicked way I had to make a quick and dirty example of what I mean)

    I don't care if its obvious that is fine Just want to make it one video.

    suggestions?
    Quote Quote  
  2. BTW I tried vegas. it won't touch the files. says can't open file make sure it exists . when I open in VLC it plays just fine.
    Quote Quote  
  3. Last edited by pandy; 2nd Mar 2016 at 02:12.
    Quote Quote  
  4. No transparency photoshop was broken and irfanview had a watermark function so i could show what i wanted. Yes pip is probably what i want.

    I tried to read that. I did. Maybe after some time i might be able to figure it out. But right now i just go blurry and see greek trying to understand that.

    Any chance you can break it down to me so i can understand what the variable are what they mean etc.. so i k ow what i need to change to get my desired end result?

    I think the important bit is the x and y of the corner of the pip video and the size of the pip window. Those variable should be enough to define where to draw the video into the video.

    X and y of what? In what units? I assume pixels?

    What about the audio? Do i strip the audio from the second file first or can i tell it to ignore and not use the audio from the second file? And only use the audio from the first file.

    What if the second video is shorter than the first. Is that ok? What will it do when it hits that point? Keep using the last frame forward or simply revert back to original video?

    I appreciate any help you can provide.
    Quote Quote  
  5. There must be hundreds of tutorials on PIP on youtube.
    Extraordinary claims require extraordinary evidence -Carl Sagan
    Quote Quote  
  6. This works pretty well between the time when the camera settles down (about 10 seconds in) and when it's jostled (about 20.5 minutes in) :

    Code:
    base = ffVideoSource("base.mp4") 
    ovr = ffVideoSource("ovr.mp4").Crop(330,0,-330,-0).AddBorders(64,72,64,72).BilinearResize(268,222)
    bg = blankclip(ovr)
    ovr = skew(ovr, bg, ltopx=0,ltopy=6,lbotx=2,lboty=216, resize = "line").Rotate(-3.0)
    bmask = base.Trim(22088,22088).Loop(base.framecount, 0, 0).ColorYUV(gain_y=10000, off_y=-9000)
    bmask = bmask.Crop(536,102,268,222).mt_expand().Blur(1.0).Blur(1.0).Blur(1.0).Greyscale()
    Overlay(base, ovr, x=536, y=102, mask=bmask)
    ReplaceFramesSimple(base, last, mappings="[225 36775]")
    After the jostle at 20.5 minutes it's a few pixels off. Once the camera starts moving around at 42.5 seconds it's way off, of course.

    First 60 seconds attached (video only).
    Image Attached Files
    Last edited by jagabo; 2nd Mar 2016 at 21:42.
    Quote Quote  
  7. Member
    Join Date
    Aug 2010
    Location
    San Francisco, California
    Search PM
    Originally Posted by nerys View Post
    BTW I tried vegas. it won't touch the files. says can't open file make sure it exists . when I open in VLC it plays just fine.
    This would be a snap in Vegas. And you could even put in some keyframes to deal with the camera movement. What kind of video files are they?
    Quote Quote  
  8. Easy to do in free video editors too, like aviutl . It will open almost any type of file, because it can use l-smash to import (based on ffmpeg/ libav libraries). "commercial" editors usually have limited support for various formats
    Quote Quote  
  9. Same impression form my side - perhaps it is better to convert videos to some vegas acceptable format and use it instead ffmpeg - i have no vegas so as poor guy i need to use ffmpeg... (of course i can think on PiP script)
    Quote Quote  
  10. Originally Posted by nerys View Post
    Easiest cheapest (free best) way to do this?

    Here is the original video.

    www.youtube.com/watch?v=9QGg4FoQWlE

    and here is the subject video

    www.youtube.com/watch?v=3gEwc82jRLM

    As you can see in the first video he has a slide show going on but the luminance difference and lack of dynamic range means the screen is for the most part blown out.

    I also have the slide show (he sent it to me)

    I loaded this PDF on my phone turned on screen recorder and simply followed along as best I could as he did it in the original video.

    for now I have users play the first video switch to the second video play it and turn off its sound. listening to one watching the other.

    what I want to do is "overlay" the second video (no sound just the video use sound from original video) ONTO the first video to "cover up" the wall mounted display panel. in fact I could even make it bigger almost as big as the way so I would end up with something like this.

    https://forum.videohelp.com/images/imgfiles/4akiAsH.jpg

    I just want to plop one video on top of the other specifying where it "sits" on the other video and just make them into one video (no alpha that just the quicked way I had to make a quick and dirty example of what I mean)

    I don't care if its obvious that is fine Just want to make it one video.

    suggestions?
    What needs to be done is, to cut out or overlay a green or blue section where the screen is on the original video (Nice and large so the slides can be read), then using green/blue screen chroma effect just insert the second video so it shows through onto the main vid.

    I can proably do this, but I am lazy basterd so someone else will have to do it lol.
    Quote Quote  
  11. Originally Posted by VHSRules View Post
    What needs to be done is, to cut out or overlay a green or blue section where the screen is on the original video
    Nonsense. No need to chromakey when you can just do a picture in picture.
    Quote Quote  
  12. Originally Posted by smrpix View Post
    Originally Posted by VHSRules View Post
    What needs to be done is, to cut out or overlay a green or blue section where the screen is on the original video
    Nonsense. No need to chromakey when you can just do a picture in picture.
    I wasnt putting forward a water tight theory on mixing two videos together. It was just a suggestion. I was basing it on my experience of the video software I have, which doesnt have picture in picture (as far as I can tell).
    Quote Quote  
  13. @VHSRules. Sorry, I didn't need to be rude.
    Quote Quote  
  14. Got it.

    https://www.youtube.com/watch?v=ofqk-Bw45zc

    figured out how to both use vegas (have to use pan crop AND track motion)

    pan crop lets me crop down to the section of the video I need (him near the podium) and track motion lets me scale and move the video to the position where I need it.

    I also figured out why I could not load it into vegas. I used my goto favorite program (do you guys have suggestions for a GUI replacement ie similar simple dead simple program for cutting and merging videos without transcoding!!!

    I used mpeg stream clip to join the two files together (the phone hits a 4gb wall and stops around 46-47 minutes so I had to "restart" the recording and ended up with 2 files) I combined them with mpeg stream clip to upload. man am I glad I saved the originals for it seems mpegstream clip "does" something to the files that vegas can not deal with and it refuses to even see them as valid files "at all" not just bad format or something (although youtube see's them fine and vlc see's them fine)

    strange.

    btw that merge you did for me with the sample file. that is badass man I was just going to use the whole wall and then realized I would be better off making the primary video the slide show since THAT has the interesting content and simply make the speaker a PIP !

    It would be amazing if someone made a decent GUI for ffmpeg for doing stuff like this but then again I guess then it would be "vegas" or something similar and similarly big and complicated.

    amazes me that you did that with a command string. Going to save this thread and maybe one day I can learn to effectively use ffmpeg.

    any suggestions for a replacement for mpeg stream clip that won't muck up the files? dirt simple visual program to "trim/clip/Split" files and or "merge" files with the simple GUI interface and no transcoding that mpeg stream clip allows but more modern/compatible with modern larger files (oddly enough it works with my 4k files too but the action is "blind" since it can't "preview" the content. so I have to play the file and "note" the time index I want to start and end with. Still nice and fast though
    Quote Quote  



Similar Threads

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