silicontrip / lavtools

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

libav-bitrate: --progress is broken now #11

Closed Nikoli closed 10 years ago

Nikoli commented 11 years ago

/usr/local/bin/libav-bitrate -P -e -I 1 video.ts > /tmp/log

[F  0% [                                        ] 24,244,249 24.244M/s eta 117s
[F  2% [                                        ] 60,821,830 36.578M/s eta 77s
[F  3% [=                                       ] 88,701,813 27.880M/s eta 100s
[F  4% [=                                       ] 115,633,952 26.932M/s eta 102s
[F  4% [=                                       ] 141,913,773 26.280M/s eta 104s
[F  5% [==                                      ] 168,994,764 27.081M/s eta 100s
[F  6% [==                                      ] 195,921,096 26.926M/s eta 99s
[F  7% [===                                     ] 220,729,578 24.808M/s eta 107s

and

    Stream #0.0[0x100]: Video: mpeg2video (Main), yuv420p, 720x576 [PAR 64:45 DAR 16:9], 3300 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0.1[0x101](eng): Audio: mp2, 48000 Hz, stereo, s16, 320 kb/s

[F  3% [=                                       ] 2,211,682 2.212M/s eta 26s
              Stream          Min Bitrate      Average bitrate          Max bitrate
               Total       2501584.000000       3608786.516129       4814008.000000
                   0       2179024.000000       3288827.806452       4514488.000000
                   1        299520.000000        319958.709677        322560.000000
silicontrip commented 11 years ago

Looks like a terminal issue. What terminal are you using? I'll look into using this code http://clpbar.sourceforge.net/

silicontrip commented 11 years ago

I've removed the terminal control codes and just used the carriage return character to return to the start of line. Hope this improves the display. I might have to look into ncurses otherwise.

Nikoli commented 11 years ago

Using Konsole-2.8.5 terminal emulator with KDE-4.8.5 and Qt-4.8.2

commit 76b1ba774c0bf8305a6d24d4c94dd30768f8283d solved problem for me, thank you :)