VideoHelp Forum

Try DVDFab and download streaming video, copy, convert or make Blu-rays,DVDs! Download free trial !
+ Reply to Thread
Results 1 to 3 of 3
Thread
  1. Member Budman1's Avatar
    Join Date
    Jul 2012
    Location
    NORTHWEST ILLINOIS, USA
    Search Comp PM
    Good evening. I need to find frames similar to other frames of a video in order to cut and merge and make it as seamless as possible. I have been using the following FFMpeg script but it outputs everything to the CMD window but I have been unable to redirect it to a text file. I have tried '|' pipe, 2>&1 >, -null > and I have found no method. I know this is probably easy but i need the output in a searchable text file.

    Also is there any way to prevent Everything from listing and output just the matches?

    Script:
    Code:
    ffmpeg.exe -i video.mp4 -loop 1 -i output.jpg -an -filter_complex "blend=difference:shortest=1,blackframe=99:32" -f null -
    Output:
    frame= 4384 fps=151 q=-0.0 size=N/A time=00:03:02.66 bitrate=N/A speed=6.28x
    frame= 4460 fps=151 q=-0.0 size=N/A time=00:03:05.83 bitrate=N/A speed=6.28x
    frame= 4536 fps=151 q=-0.0 size=N/A time=00:03:09.00 bitrate=N/A speed=6.28x
    frame= 4611 fps=151 q=-0.0 size=N/A time=00:03:12.12 bitrate=N/A speed=6.28x
    frame= 4687 fps=151 q=-0.0 size=N/A time=00:03:15.29 bitrate=N/A speed=6.28x
    frame= 4763 fps=151 q=-0.0 size=N/A time=00:03:18.45 bitrate=N/A speed=6.28x
    frame= 4839 fps=151 q=-0.0 size=N/A time=00:03:21.62 bitrate=N/A speed=6.28x
    [Parsed_blackframe_1 @ 078c4c40] frame:4847 pblack:99 pts:18176250 t:201.958333
    type:P last_keyframe:4820
    [Parsed_blackframe_1 @ 078c4c40] frame:4848 pblack:99 pts:18180000 t:202.000000
    type:P last_keyframe:4820
    [Parsed_blackframe_1 @ 078c4c40] frame:4849 pblack:100 pts:18183750 t:202.041667
    type:P last_keyframe:4820
    [Parsed_blackframe_1 @ 078c4c40] frame:4850 pblack:99 pts:18187500 t:202.083333
    type:P last_keyframe:4820
    frame= 4914 fps=151 q=-0.0 size=N/A time=00:03:24.75 bitrate=N/A speed=6.28x
    frame= 4990 fps=151 q=-0.0 size=N/A time=00:03:27.91 bitrate=N/A speed=6.28x
    frame= 5066 fps=151 q=-0.0 size=N/A time=00:03:31.08 bitrate=N/A speed=6.28x
    frame= 5141 fps=151 q=-0.0 size=N/A time=00:03:34.20 bitrate=N/A speed=6.28x
    frame= 5183 fps=151 q=-0.0 Lsize=N/A time=00:03:35.95 bitrate=N/A speed=6.28x
    Thanks in advance to anyone who can help on this!
    Quote Quote  
  2. Just add "2> output.txt" to the end of the command.

    Code:
    ffmpeg.exe -i video.mp4 -loop 1 -i output.jpg -an -filter_complex "blend=difference:shortest=1,blackframe=99:32" -f null - 2>output.txt
    Quote Quote  
  3. Member Budman1's Avatar
    Join Date
    Jul 2012
    Location
    NORTHWEST ILLINOIS, USA
    Search Comp PM
    Thx... That works. I still get all the header info even specifying no header, quiet, etc. No biggy but I get all lines with only a Carriage Return (hex 0D) instead of CRLF (0D0A). The CMD command 'findstr' doesn't seem to recognize this so all lines before the actual match are considered as the same line. I just takes an extra step to convert before seeking,but again I can make it work.

    Strange the 2>&1 does not work but 2> does... hmmm'
    Thanks for the information.
    Quote Quote  



Similar Threads