VideoHelp Forum


Try DVDFab Video Downloader and rip Netflix video! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 17 of 17
Thread
  1. Hi all

    and I'm a cat

    Please can I wonder a question? I have 2 files:

    A.MXF
    that have almost the same timecode of
    B.MXF

    We can suppose that A.MXF have timecode starting from 13:39:40,00

    and B.MXF have timecode starting from 13:39:50,00

    A.MXF and B.MXF are present on the same folder


    We already suppose that A.MXF have as final timecode: 13:45:16,00

    and B.MXF have as final timecode: 13:43:00

    I would like do a "program" (ffplay?) that analyze the timecode of A.MXF and the timecode of B.MXF and playback in syncronous on the pc-desktop the 2 files on 2 separate windows starting from the common minimum interval timecode that are (in this case) 13:39:50,00 until 13:43:00


    How can I do? thanks

    ps: I don't need to see timecode as picture on the screen, "simply" I need to playback on 2 windows the 2 video files in the part of video that have a common timecode
    Last edited by marcorocchini; 30th Jun 2015 at 19:19.
    Quote Quote  
  2. One way is to play them with an avisynth script , using StackHorizontal or StackVertical

    You can use Trim() to align them on which frames you want them to start on
    Quote Quote  
  3. mmm poison are you meaning to do an .avs file that have a program1 video stream and program2 video stream in witch the trim is the common part [referred to the timecode] of a.mxf and b.mxf? and then play this .avs for example with vlc
    Last edited by marcorocchini; 1st Jul 2015 at 03:22.
    Quote Quote  
  4. Name:  ccat9.gif
Views: 398
Size:  5.00 MB


    mmm but maybe if I well understand in this way ffmpeg generate and output file with the "mosaic" of the inputs. But I need the screen playback only between 2 input video files, however is interesting thanks
    Quote Quote  
  5. avisynth doesn't work in timecodes, so convert the start and end points to frames using math.

    e.g if you want to start at 1 min exactly , and it's 25fps content,

    25frames/s * 60s/min * 1min = 1500 frames

    So the start point for 1 min would be Trim(1500,0) if you wanted to play to the end (that's what the ,0 is for)

    You can use showtime() to overlay the time on each clip if it helps, and/or showframenumber()
    Quote Quote  
  6. Originally Posted by marcorocchini View Post
    Image
    [Attachment 32343 - Click to enlarge]



    mmm but maybe if I well understand in this way ffmpeg generate and output file with the "mosaic" of the inputs. But I need the screen playback only between 2 input video files, however is interesting thanks
    Sorry, my fault, completely forgot about cats... use instead ffmpeg (from same package) ffplay where video is visible on screen...
    Quote Quote  
  7. I have upload A.MXF and B.MXF with a sincronous timecode (there are connected to the cameras a timecode generator, it's connected also to the betacam deck shown in the video. I personally check from above that the timecode was exactly sincronous to all)

    please download:

    https://www.dropbox.com/s/asjcilbo88nnlhs/A.MXF?dl=0

    https://www.dropbox.com/s/clfgx0kp6qidasy/B.MXF?dl=0

    so that this is the situation

    Click image for larger version

Name:	SINC1.jpg
Views:	80
Size:	827.5 KB
ID:	32353

    I try to understand if there is way to playback the common part of the 2 video files, in 2 windows, in this case the start and stop of the playback have to be the total lenght of the B.MXF
    Quote Quote  
  8. with FFPLAY I have try

    Code:
    ffplay -b.mxf -an
    and playback is fine, but only of the b.mxf file

    How can I playback both a.mxf and b.mxf in 2 separate windows? thanks

    OR

    with avisynth how can it possibile create 2 video stream?
    Quote Quote  
  9. Originally Posted by marcorocchini View Post
    How can I playback both a.mxf and b.mxf in 2 separate windows? thanks
    Create batch file with:
    Code:
    @start ffplay -i %1 -an
    @start ffplay -i %2 -an
    
    @pause
    @exit
    Execute batch file with two file names e.g. batch.cmd filename1 filename2
    Quote Quote  
  10. it "works" but I need to make start the A.mxf from the timecode (starting) of B.mxf and put besides the 2 windows as this

    Click image for larger version

Name:	SINC2.jpg
Views:	78
Size:	982.7 KB
ID:	32363
    Quote Quote  
  11. Replace Bob() with whatever deinterlacer you want.

    Code:
    a = ffVideoSource("A.MXF").Bob().Trim(111, 0).BilinearResize(960, 540)
    b = ffVideoSource("B.MXF").Bob().ConvertToYV12().BilinearResize(960, 540)
    StackHorizontal(a, b)
    Last edited by jagabo; 2nd Jul 2015 at 07:31.
    Quote Quote  
  12. Originally Posted by jagabo View Post
    Replace Bob() with whatever deinterlacer you want.

    Code:
    a = ffVideoSource("A.MXF").Bob().Trim(111, 0).BilinearResize(960, 540)
    b = ffVideoSource("B.MXF").Bob().ConvertToYV12().BilinearResize(960, 540)
    StackHorizontal(a, b)
    Name:  ohmy1.jpg
Views: 117
Size:  8.7 KB
    seems a nice avs
    Quote Quote  
  13. is there a way to say to avisynth that the playback have to stop when the first or second video clip finisced to playback? in this case to stop playback when B.MXF has finisced to play? thanks
    Quote Quote  
  14. Trim() off the end of the video. Add this to the end of my earlier script:

    Code:
    a.framecount < b.framecount ? Trim(0,a.framecount) : Trim(0, b.framecount)
    Quote Quote  
  15. jagabo , it won't matter in this case since you're trimming off the end, but shouldn't it be framecount-1 for trimming the endframe ?

    e.g if he wanted to stop 1 frame early, it would be framecount-2 since numbering starts at zero
    Quote Quote  
  16. Yes, framecount-1 would be more precise.
    Quote Quote  



Similar Threads