VideoHelp Forum

Our website is made possible by displaying online advertisements to our visitors. Consider supporting us by disable your adblocker or Try ConvertXtoDVD and convert all your movies to DVD. Free trial ! :)
+ Reply to Thread
Results 1 to 2 of 2
  1. Member Budman1's Avatar
    Join Date
    Jul 2012
    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?

    ffmpeg.exe -i video.mp4 -loop 1 -i output.jpg -an -filter_complex "blend=difference:shortest=1,blackframe=99:32" -f null -
    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.

    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  

Similar Threads