ffmpeg-progressbar-cli icon indicating copy to clipboard operation
ffmpeg-progressbar-cli copied to clipboard

no output file

Open ghost opened this issue 7 years ago • 4 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

ghost avatar Sep 12 '18 13:09 ghost

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

fcastilloec avatar Jan 25 '19 22:01 fcastilloec

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)

ghost avatar Jan 26 '19 02:01 ghost

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.

fcastilloec avatar Jan 27 '19 00:01 fcastilloec

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 😞

ghost avatar Jan 28 '19 18:01 ghost