sidneys / ffmpeg-progressbar-cli

A colored progress bar for FFmpeg.

Home Page:https://npmjs.com/package/ffmpeg-progressbar-cli

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

no output file

mnervik opened this issue · comments

Would it be possible to have a progress bar without specifying an output file?
In my case, I'm checking video files for error's using ffmpeg

Sample: ffmpeg -v error -i "1.mp4" -f null -> "1.log" 2>&1

I just found this project and I'm loving it. For your request, I also hate displaying the output file on the progress bar. I think it's easy to fix, just use BAR_FILENAME_LENGTH=0 when calling ffmpeg-bar, you'll see the output as:
selection_006

Given that there's a way, I think it's safe to close this issue

Can't get the "BAR_FILENAME_LENGTH" to work though...
More Info

EDIT:
Btw...what I wanted to do was have a progress bare when using
ffmpeg -i "1.mp4" -f NULL (this will not make any file)
INSTEAD OF
ffmpeg -i "1.mp4" "1_conv.mp4" (this will make "1_conv.mp4")

BAR_FILENAME_LENGTH would just hide the filename from ffmpeg-bar, but since the command I'm using ffmpeg -v error -i "1.mp4" -f null -> "1.log" 2>&1 does not print any progress-bar at all (the system just halt's while ffmpeg is working)...this command would have no affect on the result (i would still not get a progress bar)

Have you tried not redirecting the output anywhere? I believe that this project works by analyzing the output from ffmpeg to create the progress bar, if you redirect that somewhere else, then it will never work.

Also, just in case, do you think ffprobe might work for your case? If you're analyzing each byte in a stream, then ffprobe won't cut it.

I'm analyzing each frame for an error so ffprobe won't work.

To test not redirecting anywhere I tested using the following code
ffmpeg-bar "1.mp4" "1_conv.mp4" -v error, but that had the same problem. After some tinkering I found out that to get the progress bar I had to write ffmpeg-bar -i "1.mp4" "1_conv.mp4" (omitting "-v error" entirely), but this will just convert the file, not check if any frame has issues...

It might just be that it's not possible for this program to have a progressbar for my usecase 😞