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 8 of 8
Thread
  1. Member
    Join Date
    May 2017
    Location
    Canada
    Search Comp PM
    Hi there, so I have 120+ videos from my surveillance camera located in the backyard and I don't want to watch 48+ hours of video footage. I was hoping someone here knows a program that can sort videos by their noise level? I want to take all the videos with high levels of noise and cut them into a single video, that's the easy part. The hard part is finding the videos... So, does anyone know a tool that can help?
    Quote Quote  
  2. Member
    Join Date
    Aug 2010
    Location
    San Francisco, California
    Search PM
    Do you really mean noise or do you mean "audio"?
    Quote Quote  
  3. Member
    Join Date
    May 2017
    Location
    Canada
    Search Comp PM
    Oops, sorry, I mean the audio. Since the videos are nearly dead silent when a "disturbance" isn't occurring.
    Quote Quote  
  4. Member
    Join Date
    Aug 2010
    Location
    San Francisco, California
    Search PM
    You could do it with FFmpeg and a batch file.

    Code:
    for %%F in (*.mp4) do (
        ffmpeg.exe -i %%F -vn -af volumedetect -f null nul 2> volumedetect.log
        for /f "tokens=5" %%G in ('find "mean_volume" volumedetect.log') do (
            set V=%%G
            set V=0!V:~1!
            set V=!V:~-4!
            echo !V! %%F >> volumelist.txt
        )
    )
    sort /r <volumelist.txt >volumesort.txt
    Quote Quote  
  5. Member
    Join Date
    May 2017
    Location
    Canada
    Search Comp PM
    Thank you for the link and the code. It sorted the videos but volumesort.txt returned all the videos. I guess it's still detecting background noise. How would I make the audio detection more lenient? The audio I'm searching for is quite loud.
    Quote Quote  
  6. Member
    Join Date
    Aug 2010
    Location
    San Francisco, California
    Search PM
    The result is all videos sorted in order of decreasing average volume; the videos at the top of the list have the highest average volume. If you want maximum volume instead, replace "mean_volume" with "max_volume."
    Quote Quote  
  7. Member
    Join Date
    May 2017
    Location
    Canada
    Search Comp PM
    Ah, that makes sense now. Thank you, you've been very helpful!
    Quote Quote  
  8. Thanks for the thread, Im sure Ill find this useful at some point!

    Andrew
    Quote Quote  



Similar Threads