silicontrip / lavtools

mjpeg utils and avcodec frame based video editing tools and ffmpeg filters
15 stars 3 forks source link

libav-bitrate: add --progress option #7

Closed Nikoli closed 11 years ago

Nikoli commented 11 years ago

Please add optional progress bar, something like wget does:

46% [=====================>                          ] 18,037,911  1.87M/s  eta 10s

It will help when decoding large (>=1G) files from sshfs mount point.

Nikoli commented 11 years ago

scan-build output:

/usr/bin/ccc-analyzer -g  -I/usr/local/include/mjpegtools -I/usr/local/include  -I/usr/X11/include/ -I/usr/X11/include/freetype2/    -c -o progress.o progress.c
progress.c: In function ‘progress_loadBar’:
progress.c:113:2: warning: format ‘%lld’ expects type ‘long long int’, but argument 3 has type ‘off_t’
/usr/bin/ccc-analyzer  -lswscale -lavcodec -lavformat -lavutil -L/usr/X11/lib  -L/usr/local/lib  -g  -I/usr/local/include/mjpegtools -I/usr/local/include  -I/usr/X11/include/ -I/usr/X11/include/freetype2/  -o libav-bitrate  progress.o libav-bitrate.c

'-P' works, thank you, but please print new line before exit. Else terminal is corrupted.

silicontrip commented 11 years ago

I changed the output code. Terminal corruption should be fixed.