Jump to content
Sign in to follow this  
gil900

how can i reed text from cmd window?

Recommended Posts

gil900

Hello.

i want to reed text from this cmd window:

Posted Image

how can i do this?

Thanks for helpers!

Share this post


Link to post
Share on other sites
careca

Hello, last time i needed something like that, someone told me i couldn't do it. :(


Spoiler

Paster - Main function is to paste text, but has more functions. (No longer mantained, switched to String Trigger)

Renamer - Rename files and folders, remove portions of text from the filename etc.

GPO Tool - Export/Import Group policy settings.

MirrorDir - Synchronize/Backup/Mirror Folders

BeatsPlayer - Music player.

Params Tool - Right click an exe to see it's parameters or execute them.

String Trigger - Triggers pasting text or applications or internet links on specific strings.

Inconspicuous - Hide files in plain sight, not fully encrypted.

Regedit Control - Registry browsing history, quickly jump into any saved key.

Time4Shutdown - Write the time for shutdown in minutes.

Power Profiles Tool - Set a profile as active, delete, duplicate, export and import.

Firefox Profile Backup - Backup/restore previously saved profile.

Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes.

NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s.

IUIAutomation - Topic with framework and examples

Au3Record.exe

Share this post


Link to post
Share on other sites
Havoc

Try this function WinGetText()

Share this post


Link to post
Share on other sites
Melba23

gil900,

StdoutRead is what you need. The example in the Help file shows how to use it or you can search for the many examples on the forum. :)

M23


Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
FireFox

Question asked a ton of times.


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites
FireFox

Try this (not tested) :

#include <Constants.au3>
#include <String.au3>
#include <Date.au3>

Local $sCmd = "", $iPid = 0, $sStdOut = "", $aDuration = 0, $iDuration = 0, $aTime = 0, $iPercent = 0

$sCmd = "-i test.avi -c:v libx264 -preset medium -crf 15 -c:a copy output_test.avi"

$iPid = Run(@ScriptDir & "\ffmpeg.exe " & $sCmd, @ScriptDir, @SW_HIDE, $STDERR_CHILD)
While ProcessExists($iPid)
    $sStdOut = StderrRead($iPid)

    If $sStdOut <> "" Then
        If StringInStr($sStdOut, "Duration") Then
            $aDuration = _StringBetween($sStdOut, "Duration: ", ",")
            $aDuration = StringSplit($aDuration[0], ":")
            $iDuration = Int(_TimeToTicks($aDuration[1], $aDuration[2], Int($aDuration[3])) / 1000)
        ElseIf StringInStr($sStdOut, "time=") Then
            $aTime = _StringBetween($sStdOut, "time=", " bitrate=")
            $iPercent = Int(($aTime[0] / $iDuration) * 100)
            ConsoleWrite($iPercent & @CrLf)
        EndIf
    EndIf
WEnd

Br, FireFox.


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites
gil900

Try this (not tested) :

#include <Constants.au3>
#include <String.au3>
#include <Date.au3>

Local $sCmd = "", $iPid = 0, $sStdOut = "", $aDuration = 0, $iDuration = 0, $aTime = 0, $iPercent = 0

$sCmd = "-i test.avi -c:v libx264 -preset medium -crf 15 -c:a copy output_test.avi"

$iPid = Run(@ScriptDir & "\ffmpeg.exe " & $sCmd, @ScriptDir, @SW_HIDE, $STDERR_CHILD)
While ProcessExists($iPid)
    $sStdOut = StderrRead($iPid)

    If $sStdOut <> "" Then
        If StringInStr($sStdOut, "Duration") Then
            $aDuration = _StringBetween($sStdOut, "Duration: ", ",")
            $aDuration = StringSplit($aDuration[0], ":")
            $iDuration = Int(_TimeToTicks($aDuration[1], $aDuration[2], Int($aDuration[3])) / 1000)
        ElseIf StringInStr($sStdOut, "time=") Then
            $aTime = _StringBetween($sStdOut, "time=", " bitrate=")
            $iPercent = Int(($aTime[0] / $iDuration) * 100)
            ConsoleWrite($iPercent & @CrLf)
        EndIf
    EndIf
WEnd

Br, FireFox.

no.

it is not working.

i get:

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

...

Share this post


Link to post
Share on other sites
FireFox

Can you provide the standard error lines until the first line beginning with "frame=" ?

Br, FireFox.


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites
jerem488

your cmd command > output file.txt

example : ping www.google.fr > output.txt


Qui ose gagneWho Dares Win[left]CyberExploit[/left]

Share this post


Link to post
Share on other sites
FireFox

@jerem488

I'm pretty sure that he wants to know the progress of the conversion and if he makes a ConsoleWrite of the $sStdOut var he will have the content of your txt file.

Br, FireFox.


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites
gil900

@jerem488

I'm pretty sure that he wants to know the progress of the conversion and if he makes a ConsoleWrite of the $sStdOut var he will have the content of your txt file.

Br, FireFox.

Nice try.

But you can not calculate the percentage of progress by the information in the image. The reason is that you were wrong. This window does not display any progress by percent.

It does not display any information about it ...

This is kind of weird .. But in the beginning (before it begins to convert) it shows the length of the video. And during processing, you get the time processed ..

So you can calculate the percentage according to the time in the video it shows from the total time ...

Hope my English is clear ..

But I do not need that help ...

I can do it alone :)

Share this post


Link to post
Share on other sites
FireFox

Nice try.

But you can not calculate the percentage of progress by the information in the image.

Indeed, but I'm not wrong about that script otherwise I would not have posted it (not meaning that I'm always right, far from that but here it's the case).

I wanted you to provide the header of the stdout because ffmpeg shows the media length, so you can then calculate the progress with the data present in your image.

Br, FireFox.

Edited by FireFox

 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites
gil900

Indeed, but I'm not wrong about that script otherwise I would not have posted it (not meaning that I'm always right, far from that but here it's the case).

I wanted you to provide the header of the stdout because ffmpeg shows the media length, so you can then calculate the progress with the data present in your image.

Br, FireFox.

what is "header" and how i can get it?

Share this post


Link to post
Share on other sites
FireFox

@gil900

Can you reply without quoting everything, we know what we wrote. Just do that if you want to quote some sentenses ;)

#include <Constants.au3>
#include <String.au3>
#include <Date.au3>

Local $sCmd = "", $iPid = 0, $sStdOut = "", $aDuration = 0, $iDuration = 0, $aTime = 0, $iPercent = 0

$sCmd = "-i test.avi -c:v libx264 -preset medium -crf 15 -c:a copy output_test.avi"

$iPid = Run(@ScriptDir & "\ffmpeg.exe " & $sCmd, @ScriptDir, @SW_HIDE, $STDERR_CHILD)
While ProcessExists($iPid)
    Sleep(10)

    $sStdOut = StderrRead($iPid)
    If $sStdOut = "" Then ContinueLoop

ConsoleWrite($sStdOut & @CrLf)

    If StringInStr($sStdOut, "Duration") Then
        $aDuration = _StringBetween($sStdOut, "Duration: ", ",")
        $aDuration = StringSplit($aDuration[0], ":")
        $iDuration = Int(_TimeToTicks($aDuration[1], $aDuration[2], Int($aDuration[3])) / 1000)
    ElseIf StringInStr($sStdOut, "time=") Then
        $aTime = _StringBetween($sStdOut, "time=", " bitrate=")
        $iPercent = Int(($aTime[0] / $iDuration) * 100)
ConsoleWrite("Progress: " & $iPercent & @CrLf)
    EndIf
WEnd

My header (not with the same conversion params) :

FFmpeg version SVN-r23607, Copyright (c) 2000-2010 the FFmpeg developers
  built on Jun 15 2010 04:09:35 with gcc 4.4.2
  configuration: --target-os=mingw32 --enable-runtime-cpudetect --enable-avisynth --enable-gpl --enable-version3 --enable-bzlib --enable-libgsm --enable-libfaad --enable-pthreads --enable-libvorbis --enable-libtheora --enable-libspeex --enable-libmp3lame --enable-libopenjpeg --enable-libxvid --enable-libschroedinger --enable-libx264 --extra-libs='-lx264 -lpthread' --enable-libopencore_amrwb --enable-libopencore_amrnb --enable-librtmp --extra-libs='-lrtmp -lpolarssl -lws2_32 -lwinmm' --arch=x86 --cross-prefix=i686-mingw32- --cc='ccache i686-mingw32-gcc' --enable-memalign-hack
  libavutil     50.19. 0 / 50.19. 0
  libavcodec    52.76. 0 / 52.76. 0
  libavformat   52.68. 0 / 52.68. 0
  libavdevice   52. 2. 0 / 52. 2. 0
  libavfilter    1.20. 0 /  1.20. 0
  libswscale     0.11. 0 /  0.11. 0
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.mp4':
  Metadata:
    major_brand     : 3gp6
    minor_version   : 256
    compatible_brands: isom3gp6
  Duration: 00:04:12.26, start: 0.000000, bitrate: 81 kb/s
    Stream #0.0(und): Video: mpeg4, yuv420p, 176x144 [PAR 1:1 DAR 11:9], 55 kb/s, 12 fps, 12 tbr, 12 tbn, 12 tbc
    Stream #0.1(und): Audio: aac, 22050 Hz, mono, s16, 24 kb/s
Output #0, avi, to 'test2.avi':
  Metadata:
    ISFT            : Lavf52.68.0
    Stream #0.0(und): Video: mpeg4, yuv420p, 176x144 [PAR 1:1 DAR 11:9], q=2-31, 200 kb/s, 12 tbn, 12 tbc
    Stream #0.1(und): Audio: mp2, 22050 Hz, mono, s16, 64 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press [q] to stop encoding

In order to get the output just read the console from my script.

Br, FireFox.


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites
gil900

this is what i get(if this is what you want):

ffmpeg version N-51211-ge0e8c20 Copyright (c) 2000-2013 the FFmpeg developers
built on Mar 22 2013 08:56:38 with gcc 4.7.2 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
libavutil    52. 22.101 / 52. 22.101
libavcodec   55. 1.100 / 55. 1.100
libavformat 55. 0.100 / 55. 0.100
libavdevice 55. 0.100 / 55. 0.100
libavfilter  3. 48.100 / 3. 48.100
libswscale   2. 2.100 / 2. 2.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 2.100 / 52. 2.100
test.avi: No such file or directory

EDIT:

I changed the command and now it works.

this is what i get:

ffmpeg version N-51211-ge0e8c20 Copyright (c) 2000-2013 the FFmpeg developers
  built on Mar 22 2013 08:56:38 with gcc 4.7.2 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
  libavutil   52. 22.101 / 52. 22.101
  libavcodec     55.  1.100 / 55.  1.100
  libavformat    55.  0.100 / 55.  0.100
  libavdevice    55.  0.100 / 55.  0.100
  libavfilter    3. 48.100 /  3. 48.100
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
[avi @ 03a7eaa0] non-interleaved AVI
Guessed Channel Layout for  Input Stream #0.1 : mono
Input #0, avi, from 'D:\Debut\test.avi':
  Duration: 00:00:58.44, start: 0.000000, bitrate: 102964 kb/s
    Stream #0:0: Video: lagarith (LAGS / 0x5347414C), rgb24, 720x576, 25 tbr, 25 tbn, 25 tbc
    Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, mono, s16, 705 kb/s
No pixel format specified, yuv444p for H.264 encoding chosen.
Use -pix_fmt yuv420p for compatibility with outdated media players.
[libx264 @ 024c33e0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
[libx264 @ 024c33e0] profile High 4:4:4 Predictive, level 3.0, 4:4:4 8-bit
Output #0, avi, to 'D:\Temps\x264Convert\output_test2.avi':
  Metadata:
    ISFT            : Lavf55.0.100
    Stream #0:0: Video: h264 (H264 / 0x34363248), yuv444p, 720x576, q=-1--1, 25 tbn, 25 tbc
    Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, mono, 705 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (lagarith -> libx264)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame=   25 fps=0.0 q=0.0 size=   10kB time=00:00:01.14 bitrate=  69.5kbits/s   
Progress: 0
frame=   46 fps= 39 q=0.0 size=   10kB time=00:00:01.98 bitrate=  40.0kbits/s   
Progress: 0
frame=   54 fps= 28 q=20.0 size=     323kB time=00:00:02.30 bitrate=1149.7kbits/s   
Progress: 0
frame=   60 fps= 25 q=20.0 size=     781kB time=00:00:02.54 bitrate=2519.9kbits/s   
Progress: 0
frame=   65 fps= 21 q=20.0 size=    1167kB time=00:00:02.74 bitrate=3490.1kbits/s   
Progress: 0
frame=   70 fps= 19 q=20.0 size=    1593kB time=00:00:02.94 bitrate=4439.6kbits/s   
Progress: 0
frame=   74 fps= 18 q=20.0 size=    1949kB time=00:00:03.10 bitrate=5149.4kbits/s   
Progress: 0
frame=   81 fps= 17 q=20.0 size=    2543kB time=00:00:03.38 bitrate=6162.4kbits/s   
Progress: 0
frame=   86 fps= 16 q=20.0 size=    3018kB time=00:00:03.58 bitrate=6906.6kbits/s   
Progress: 0
frame=   92 fps= 15 q=20.0 size=    3564kB time=00:00:03.82 bitrate=7642.8kbits/s   
Progress: 0
frame=   98 fps= 15 q=20.0 size=    4050kB time=00:00:04.06 bitrate=8171.9kbits/s   
Progress: 0
frame=  104 fps= 14 q=20.0 size=    4535kB time=00:00:04.30 bitrate=8640.1kbits/s   
Progress: 0
frame=  108 fps= 14 q=20.0 size=    4857kB time=00:00:04.46 bitrate=8921.7kbits/s   
Progress: 0
frame=  113 fps= 14 q=20.0 size=    5280kB time=00:00:04.66 bitrate=9282.7kbits/s   
Progress: 0
frame=  118 fps= 13 q=20.0 size=    5731kB time=00:00:04.86 bitrate=9660.9kbits/s   
Progress: 0
frame=  124 fps= 13 q=20.0 size=    6231kB time=00:00:05.10 bitrate=10008.8kbits/s   
Progress: 0
frame=  129 fps= 13 q=20.0 size=    6624kB time=00:00:05.30 bitrate=10237.7kbits/s   
Progress: 0
frame=  135 fps= 13 q=20.0 size=    7047kB time=00:00:05.54 bitrate=10420.9kbits/s   
Progress: 0
frame=  140 fps= 13 q=20.0 size=    7384kB time=00:00:05.74 bitrate=10538.5kbits/s   
Progress: 0
frame=  145 fps= 12 q=20.0 size=    7733kB time=00:00:05.94 bitrate=10664.4kbits/s   
Progress: 0
frame=  151 fps= 12 q=20.0 size=    8134kB time=00:00:06.18 bitrate=10782.6kbits/s   
Progress: 0
frame=  157 fps= 12 q=20.0 size=    8506kB time=00:00:06.42 bitrate=10853.5kbits/s   
Progress: 0
frame=  163 fps= 12 q=20.0 size=    8842kB time=00:00:06.66 bitrate=10875.5kbits/s   
Progress: 0
frame=  169 fps= 12 q=20.0 size=    9166kB time=00:00:06.90 bitrate=10882.3kbits/s   
Progress: 0
frame=  175 fps= 12 q=20.0 size=    9490kB time=00:00:07.14 bitrate=10887.7kbits/s   
Progress: 0
frame=  180 fps= 12 q=20.0 size=    9746kB time=00:00:07.34 bitrate=10877.2kbits/s   
Progress: 0
frame=  187 fps= 12 q=20.0 size=   10111kB time=00:00:07.62 bitrate=10869.8kbits/s   
Progress: 0
frame=  193 fps= 12 q=20.0 size=   10394kB time=00:00:07.86 bitrate=10832.6kbits/s   
Progress: 0
frame=  199 fps= 12 q=20.0 size=   10663kB time=00:00:08.10 bitrate=10784.2kbits/s   
Progress: 0
frame=  204 fps= 12 q=20.0 size=   10918kB time=00:00:08.30 bitrate=10776.1kbits/s   
Progress: 0
frame=  210 fps= 11 q=20.0 size=   11211kB time=00:00:08.54 bitrate=10754.6kbits/s   
Progress: 0
frame=  216 fps= 11 q=20.0 size=   11514kB time=00:00:08.78 bitrate=10742.8kbits/s   
Progress: 0
frame=  222 fps= 11 q=20.0 size=   11822kB time=00:00:09.02 bitrate=10736.5kbits/s   
Progress: 0
frame=  229 fps= 11 q=20.0 size=   12243kB time=00:00:09.30 bitrate=10784.5kbits/s   
Progress: 0
frame=  235 fps= 11 q=20.0 size=   12643kB time=00:00:09.54 bitrate=10856.5kbits/s   
Progress: 0
frame=  241 fps= 11 q=20.0 size=   13008kB time=00:00:09.78 bitrate=10896.0kbits/s   
Progress: 0
frame=  246 fps= 11 q=20.0 size=   13420kB time=00:00:09.98 bitrate=11015.6kbits/s   
Progress: 0
frame=  252 fps= 11 q=20.0 size=   13884kB time=00:00:10.22 bitrate=11129.1kbits/s   
Progress: 0
frame=  258 fps= 11 q=20.0 size=   14378kB time=00:00:10.50 bitrate=11217.7kbits/s   
Progress: 0
frame=  262 fps= 11 q=20.0 size=   14736kB time=00:00:10.66 bitrate=11324.3kbits/s   
Progress: 0
frame=  268 fps= 11 q=20.0 size=   15257kB time=00:00:10.90 bitrate=11466.2kbits/s   
Progress: 0
frame=  274 fps= 11 q=20.0 size=   15798kB time=00:00:11.14 bitrate=11617.7kbits/s   
Progress: 0
frame=  280 fps= 11 q=20.0 size=   16320kB time=00:00:11.38 bitrate=11748.3kbits/s   
Progress: 0
frame=  285 fps= 11 q=20.0 size=   16755kB time=00:00:11.58 bitrate=11853.1kbits/s   
Progress: 0
frame=  290 fps= 11 q=20.0 size=   17196kB time=00:00:11.78 bitrate=11958.5kbits/s   
Progress: 0
frame=  296 fps= 11 q=20.0 size=   17747kB time=00:00:12.02 bitrate=12094.9kbits/s   
Progress: 0
frame=  301 fps= 11 q=20.0 size=   18222kB time=00:00:12.22 bitrate=12215.7kbits/s   
Progress: 0
frame=  307 fps= 11 q=20.0 size=   18748kB time=00:00:12.46 bitrate=12325.9kbits/s   
Progress: 0
frame=  312 fps= 11 q=20.0 size=   19145kB time=00:00:12.66 bitrate=12388.5kbits/s   
Progress: 0
frame=  317 fps= 11 q=20.0 size=   19605kB time=00:00:12.86 bitrate=12489.0kbits/s   
Progress: 0
frame=  321 fps= 11 q=20.0 size=   20025kB time=00:00:13.02 bitrate=12599.5kbits/s   
Progress: 0
frame=  327 fps= 11 q=20.0 size=   20527kB time=00:00:13.26 bitrate=12681.5kbits/s   
Progress: 0
frame=  333 fps= 10 q=20.0 size=   21114kB time=00:00:13.50 bitrate=12812.4kbits/s   
Progress: 0
frame=  339 fps= 10 q=20.0 size=   21614kB time=00:00:13.74 bitrate=12886.6kbits/s   
Progress: 0
frame=  345 fps= 10 q=20.0 size=   22163kB time=00:00:13.98 bitrate=12987.2kbits/s   
Progress: 0
frame=  351 fps= 10 q=20.0 size=   22723kB time=00:00:14.22 bitrate=13090.6kbits/s   
Progress: 0
frame=  357 fps= 10 q=20.0 size=   23302kB time=00:00:14.46 bitrate=13201.0kbits/s   
Progress: 0
frame=  363 fps= 10 q=20.0 size=   23856kB time=00:00:14.70 bitrate=13294.2kbits/s   
Progress: 0
frame=  367 fps= 10 q=20.0 size=   24208kB time=00:00:14.86 bitrate=13345.5kbits/s   
Progress: 0
frame=  371 fps= 10 q=20.0 size=   24547kB time=00:00:15.02 bitrate=13388.0kbits/s   
Progress: 0
frame=  377 fps= 10 q=20.0 size=   25087kB time=00:00:15.26 bitrate=13467.5kbits/s   
Progress: 0
frame=  383 fps= 10 q=20.0 size=   25586kB time=00:00:15.50 bitrate=13522.8kbits/s   
Progress: 0
frame=  387 fps= 10 q=20.0 size=   25925kB time=00:00:15.66 bitrate=13561.8kbits/s   
Progress: 0
frame=  393 fps= 10 q=20.0 size=   26394kB time=00:00:15.90 bitrate=13598.6kbits/s   
Progress: 0
frame=  398 fps= 10 q=20.0 size=   26740kB time=00:00:16.10 bitrate=13605.8kbits/s   
Progress: 0
frame=  405 fps= 10 q=20.0 size=   27247kB time=00:00:16.38 bitrate=13626.7kbits/s   
Progress: 0
frame=  410 fps= 10 q=20.0 size=   27569kB time=00:00:16.58 bitrate=13621.4kbits/s   
Progress: 0
frame=  416 fps= 10 q=20.0 size=   27934kB time=00:00:16.82 bitrate=13604.8kbits/s   
Progress: 0
frame=  422 fps= 10 q=20.0 size=   28309kB time=00:00:17.06 bitrate=13593.7kbits/s   
Progress: 0
frame=  428 fps= 10 q=20.0 size=   28633kB time=00:00:17.30 bitrate=13558.4kbits/s   
Progress: 0
frame=  433 fps= 10 q=20.0 size=   28931kB time=00:00:17.50 bitrate=13543.1kbits/s   
Progress: 0
frame=  439 fps= 10 q=20.0 size=   29211kB time=00:00:17.74 bitrate=13489.3kbits/s   
Progress: 0
frame=  443 fps= 10 q=20.0 size=   29391kB time=00:00:17.90 bitrate=13450.8kbits/s   
Progress: 0
frame=  449 fps= 10 q=20.0 size=   29630kB time=00:00:18.14 bitrate=13381.0kbits/s   
Progress: 0
frame=  454 fps= 10 q=20.0 size=   29825kB time=00:00:18.34 bitrate=13322.2kbits/s   
Progress: 0
frame=  459 fps= 10 q=20.0 size=   30039kB time=00:00:18.54 bitrate=13272.9kbits/s   
Progress: 0
frame=  463 fps= 10 q=20.0 size=   30246kB time=00:00:18.70 bitrate=13249.8kbits/s   
Progress: 0
frame=  469 fps= 10 q=20.0 size=   30586kB time=00:00:18.94 bitrate=13229.2kbits/s   
Progress: 0
frame=  475 fps= 10 q=20.0 size=   30933kB time=00:00:19.18 bitrate=13211.9kbits/s   
Progress: 0
frame=  478 fps= 10 q=20.0 size=   31109kB time=00:00:19.30 bitrate=13204.3kbits/s   
Progress: 0
frame=  484 fps= 10 q=20.0 size=   31407kB time=00:00:19.54 bitrate=13167.1kbits/s   
Progress: 0
frame=  488 fps= 10 q=20.0 size=   31634kB time=00:00:19.70 bitrate=13154.6kbits/s   
Progress: 0
frame=  492 fps=9.9 q=20.0 size=   31844kB time=00:00:19.86 bitrate=13135.3kbits/s   
Progress: 0
frame=  498 fps=9.9 q=20.0 size=   32168kB time=00:00:20.10 bitrate=13110.5kbits/s   
Progress: 0
frame=  502 fps=9.9 q=20.0 size=   32383kB time=00:00:20.26 bitrate=13093.8kbits/s   
Progress: 0
frame=  509 fps=9.9 q=20.0 size=   32815kB time=00:00:20.54 bitrate=13087.8kbits/s   
Progress: 0
frame=  515 fps=9.9 q=20.0 size=   33162kB time=00:00:20.78 bitrate=13073.2kbits/s   
Progress: 0
frame=  521 fps=9.9 q=20.0 size=   33533kB time=00:00:21.02 bitrate=13068.6kbits/s   
Progress: 0
frame=  527 fps=9.9 q=20.0 size=   33926kB time=00:00:21.26 bitrate=13072.7kbits/s   
Progress: 0
frame=  534 fps=9.9 q=20.0 size=   34372kB time=00:00:21.54 bitrate=13072.2kbits/s   
Progress: 0
frame=  537 fps=9.9 q=20.0 size=   34540kB time=00:00:21.66 bitrate=13063.4kbits/s   
Progress: 0
frame=  543 fps=9.9 q=20.0 size=   34893kB time=00:00:21.90 bitrate=13052.1kbits/s   
Progress: 0
frame=  550 fps=9.9 q=20.0 size=   35336kB time=00:00:22.18 bitrate=13050.9kbits/s   
Progress: 0
frame=  557 fps=9.9 q=20.0 size=   35714kB time=00:00:22.46 bitrate=13026.3kbits/s   
Progress: 0
frame=  564 fps=9.9 q=20.0 size=   36135kB time=00:00:22.74 bitrate=13017.5kbits/s   
Progress: 0
frame=  570 fps=9.9 q=20.0 size=   36466kB time=00:00:22.98 bitrate=12999.6kbits/s   
Progress: 0
frame=  576 fps=9.9 q=20.0 size=   36804kB time=00:00:23.22 bitrate=12984.5kbits/s   
Progress: 0
frame=  582 fps=9.9 q=20.0 size=   37172kB time=00:00:23.46 bitrate=12980.2kbits/s   
Progress: 0
frame=  588 fps=9.9 q=20.0 size=   37545kB time=00:00:23.70 bitrate=12977.7kbits/s   
Progress: 0
frame=  593 fps=9.9 q=20.0 size=   37868kB time=00:00:23.90 bitrate=12979.7kbits/s   
Progress: 0
frame=  597 fps=9.9 q=20.0 size=   38149kB time=00:00:24.06 bitrate=12989.1kbits/s   
Progress: 0
frame=  603 fps=9.9 q=20.0 size=   38493kB time=00:00:24.30 bitrate=12976.8kbits/s   
Progress: 0
frame=  610 fps=9.9 q=20.0 size=   38885kB time=00:00:24.58 bitrate=12959.7kbits/s   
Progress: 0
frame=  615 fps=9.9 q=20.0 size=   39173kB time=00:00:24.78 bitrate=12950.3kbits/s   
Progress: 0
frame=  621 fps=9.9 q=20.0 size=   39478kB time=00:00:25.02 bitrate=12925.7kbits/s   
Progress: 0
frame=  625 fps=9.9 q=20.0 size=   39695kB time=00:00:25.18 bitrate=12914.3kbits/s   
Progress: 0
frame=  632 fps=9.9 q=20.0 size=   40092kB time=00:00:25.46 bitrate=12899.8kbits/s   
Progress: 0
frame=  635 fps=9.9 q=20.0 size=   40268kB time=00:00:25.58 bitrate=12895.7kbits/s   
Progress: 0
frame=  641 fps=9.9 q=20.0 size=   40608kB time=00:00:25.82 bitrate=12883.7kbits/s   
Progress: 0
frame=  647 fps=9.9 q=20.0 size=   40943kB time=00:00:26.06 bitrate=12870.4kbits/s   
Progress: 0
frame=  651 fps=9.9 q=20.0 size=   41177kB time=00:00:26.22 bitrate=12865.0kbits/s   
Progress: 0
frame=  657 fps=9.8 q=20.0 size=   41518kB time=00:00:26.46 bitrate=12853.9kbits/s   
Progress: 0
frame=  662 fps=9.8 q=20.0 size=   41772kB time=00:00:26.66 bitrate=12835.6kbits/s   
Progress: 0
frame=  669 fps=9.8 q=20.0 size=   42275kB time=00:00:26.94 bitrate=12855.1kbits/s   
Progress: 0
frame=  674 fps=9.8 q=20.0 size=   42523kB time=00:00:27.14 bitrate=12835.2kbits/s   
Progress: 0
frame=  679 fps=9.8 q=20.0 size=   42839kB time=00:00:27.34 bitrate=12835.9kbits/s   
Progress: 0
frame=  685 fps=9.9 q=20.0 size=   43188kB time=00:00:27.58 bitrate=12828.0kbits/s   
Progress: 0
frame=  690 fps=9.8 q=20.0 size=   43445kB time=00:00:27.78 bitrate=12811.5kbits/s   
Progress: 0
frame=  696 fps=9.8 q=20.0 size=   43804kB time=00:00:28.02 bitrate=12806.6kbits/s   
Progress: 0
frame=  702 fps=9.8 q=20.0 size=   44171kB time=00:00:28.26 bitrate=12804.1kbits/s   
Progress: 0
frame=  708 fps=9.9 q=20.0 size=   44512kB time=00:00:28.50 bitrate=12794.4kbits/s   
Progress: 0
frame=  713 fps=9.8 q=20.0 size=   44830kB time=00:00:28.70 bitrate=12796.0kbits/s   
Progress: 0
frame=  719 fps=9.8 q=20.0 size=   45177kB time=00:00:28.94 bitrate=12788.2kbits/s   
Progress: 0
frame=  723 fps=9.8 q=20.0 size=   45411kB time=00:00:29.10 bitrate=12783.8kbits/s   
Progress: 0
frame=  729 fps=9.8 q=20.0 size=   45760kB time=00:00:29.34 bitrate=12776.6kbits/s   
Progress: 0
frame=  735 fps=9.8 q=20.0 size=   46104kB time=00:00:29.58 bitrate=12768.2kbits/s   
Progress: 0
frame=  741 fps=9.8 q=20.0 size=   46419kB time=00:00:29.82 bitrate=12752.0kbits/s   
Progress: 0
frame=  746 fps=9.8 q=20.0 size=   46757kB time=00:00:30.14 bitrate=12708.6kbits/s   
Progress: 0
frame=  752 fps=9.8 q=20.0 size=   47090kB time=00:00:30.38 bitrate=12697.9kbits/s   
Progress: 0
frame=  757 fps=9.8 q=20.0 size=   47404kB time=00:00:30.58 bitrate=12698.9kbits/s   
Progress: 0
frame=  762 fps=9.8 q=20.0 size=   47734kB time=00:00:30.78 bitrate=12704.3kbits/s   
Progress: 0
frame=  767 fps=9.8 q=20.0 size=   48030kB time=00:00:30.98 bitrate=12700.6kbits/s   
Progress: 0
frame=  774 fps=9.8 q=20.0 size=   48441kB time=00:00:31.26 bitrate=12694.5kbits/s   
Progress: 0
frame=  777 fps=9.8 q=20.0 size=   48640kB time=00:00:31.38 bitrate=12697.8kbits/s   
Progress: 0
frame=  783 fps=9.8 q=20.0 size=   49097kB time=00:00:31.62 bitrate=12719.9kbits/s   
Progress: 0
frame=  786 fps=9.8 q=20.0 size=   49279kB time=00:00:31.74 bitrate=12718.8kbits/s   
Progress: 0
frame=  791 fps=9.8 q=20.0 size=   49632kB time=00:00:31.94 bitrate=12729.7kbits/s   
Progress: 0
frame=  798 fps=9.8 q=20.0 size=   50111kB time=00:00:32.22 bitrate=12740.9kbits/s   
Progress: 0
frame=  805 fps=9.8 q=20.0 size=   50550kB time=00:00:32.50 bitrate=12741.6kbits/s   
Progress: 0
frame=  810 fps=9.8 q=17.0 size=   50878kB time=00:00:32.70 bitrate=12745.9kbits/s   
Progress: 0
frame=  817 fps=9.8 q=20.0 size=   51326kB time=00:00:32.98 bitrate=12749.0kbits/s   
Progress: 0
frame=  823 fps=9.8 q=20.0 size=   51634kB time=00:00:33.22 bitrate=12732.8kbits/s   
Progress: 0
frame=  829 fps=9.8 q=20.0 size=   51970kB time=00:00:33.46 bitrate=12723.8kbits/s   
Progress: 0
frame=  836 fps=9.8 q=20.0 size=   52325kB time=00:00:33.74 bitrate=12704.5kbits/s   
Progress: 0
frame=  839 fps=9.8 q=20.0 size=   52501kB time=00:00:33.86 bitrate=12701.9kbits/s   
Progress: 0
frame=  847 fps=9.8 q=20.0 size=   52889kB time=00:00:34.18 bitrate=12676.1kbits/s   
Progress: 0
frame=  851 fps=9.8 q=20.0 size=   53154kB time=00:00:34.34 bitrate=12680.1kbits/s   
Progress: 0
frame=  857 fps=9.8 q=20.0 size=   53568kB time=00:00:34.58 bitrate=12690.3kbits/s   
Progress: 0
frame=  863 fps=9.8 q=20.0 size=   53929kB time=00:00:34.82 bitrate=12687.8kbits/s   
Progress: 0
frame=  868 fps=9.8 q=20.0 size=   54229kB time=00:00:35.02 bitrate=12685.4kbits/s   
Progress: 0
frame=  874 fps=9.8 q=20.0 size=   54613kB time=00:00:35.26 bitrate=12688.2kbits/s   
Progress: 0
frame=  879 fps=9.8 q=20.0 size=   54941kB time=00:00:35.46 bitrate=12692.6kbits/s   
Progress: 0
frame=  885 fps=9.8 q=20.0 size=   55306kB time=00:00:35.70 bitrate=12690.8kbits/s   
Progress: 0
frame=  891 fps=9.8 q=20.0 size=   55673kB time=00:00:35.94 bitrate=12689.8kbits/s   
Progress: 0
frame=  897 fps=9.8 q=20.0 size=   56018kB time=00:00:36.18 bitrate=12683.8kbits/s   
Progress: 0
frame=  903 fps=9.8 q=20.0 size=   56417kB time=00:00:36.42 bitrate=12689.9kbits/s   
Progress: 0
frame=  907 fps=9.8 q=20.0 size=   56677kB time=00:00:36.58 bitrate=12692.8kbits/s   
Progress: 0
frame=  913 fps=9.8 q=20.0 size=   57062kB time=00:00:36.82 bitrate=12695.5kbits/s   
Progress: 0
frame=  917 fps=9.7 q=20.0 size=   57320kB time=00:00:36.98 bitrate=12697.8kbits/s   
Progress: 0
frame=  922 fps=9.7 q=20.0 size=   57665kB time=00:00:37.18 bitrate=12705.6kbits/s   
Progress: 0
frame=  928 fps=9.7 q=20.0 size=   58078kB time=00:00:37.42 bitrate=12714.4kbits/s   
Progress: 0
frame=  933 fps=9.7 q=20.0 size=   58411kB time=00:00:37.62 bitrate=12719.3kbits/s   
Progress: 0
frame=  938 fps=9.7 q=20.0 size=   58740kB time=00:00:37.82 bitrate=12723.3kbits/s   
Progress: 0
frame=  944 fps=9.7 q=20.0 size=   59162kB time=00:00:38.06 bitrate=12734.0kbits/s   
Progress: 0
frame=  950 fps=9.7 q=20.0 size=   59557kB time=00:00:38.30 bitrate=12738.6kbits/s   
Progress: 0
frame=  955 fps=9.7 q=20.0 size=   59901kB time=00:00:38.50 bitrate=12745.6kbits/s   
Progress: 0
frame=  960 fps=9.7 q=20.0 size=   60250kB time=00:00:38.70 bitrate=12753.7kbits/s   
Progress: 0
frame=  965 fps=9.7 q=20.0 size=   60572kB time=00:00:38.90 bitrate=12755.9kbits/s   
Progress: 0
frame=  970 fps=9.7 q=20.0 size=   60941kB time=00:00:39.10 bitrate=12768.1kbits/s   
Progress: 0
frame=  974 fps=9.7 q=20.0 size=   61225kB time=00:00:39.26 bitrate=12775.3kbits/s   
Progress: 0
frame=  980 fps=9.7 q=20.0 size=   61652kB time=00:00:39.50 bitrate=12786.3kbits/s   
Progress: 0
frame=  986 fps=9.7 q=20.0 size=   62065kB time=00:00:39.74 bitrate=12794.0kbits/s   
Progress: 0
frame=  992 fps=9.7 q=20.0 size=   62491kB time=00:00:39.98 bitrate=12804.5kbits/s   
Progress: 0
frame=  999 fps=9.7 q=20.0 size=   62988kB time=00:00:40.26 bitrate=12816.7kbits/s   
Progress: 0
frame= 1003 fps=9.7 q=20.0 size=   63262kB time=00:00:40.42 bitrate=12821.5kbits/s   
Progress: 0
frame= 1008 fps=9.7 q=20.0 size=   63575kB time=00:00:40.62 bitrate=12821.4kbits/s   
Progress: 0
frame= 1013 fps=9.7 q=20.0 size=   63908kB time=00:00:40.82 bitrate=12825.4kbits/s   
Progress: 0
frame= 1019 fps=9.7 q=20.0 size=   64269kB time=00:00:41.06 bitrate=12822.4kbits/s   
Progress: 0
frame= 1025 fps=9.7 q=20.0 size=   64600kB time=00:00:41.30 bitrate=12813.7kbits/s   
Progress: 0
frame= 1028 fps=9.6 q=20.0 size=   64761kB time=00:00:41.42 bitrate=12808.5kbits/s   
Progress: 0
frame= 1033 fps=9.6 q=20.0 size=   65061kB time=00:00:41.62 bitrate=12805.8kbits/s   
Progress: 0
frame= 1038 fps=9.6 q=20.0 size=   65354kB time=00:00:41.82 bitrate=12802.0kbits/s   
Progress: 0
frame= 1042 fps=9.6 q=20.0 size=   65605kB time=00:00:41.98 bitrate=12802.3kbits/s   
Progress: 0
frame= 1046 fps=9.6 q=20.0 size=   65872kB time=00:00:42.14 bitrate=12805.5kbits/s   
Progress: 0
frame= 1051 fps=9.6 q=20.0 size=   66237kB time=00:00:42.34 bitrate=12815.6kbits/s   
Progress: 0
frame= 1055 fps=9.6 q=20.0 size=   66511kB time=00:00:42.50 bitrate=12820.1kbits/s   
Progress: 0
frame= 1060 fps=9.6 q=20.0 size=   66865kB time=00:00:42.70 bitrate=12828.0kbits/s   
Progress: 0
frame= 1064 fps=9.6 q=20.0 size=   67146kB time=00:00:42.86 bitrate=12833.8kbits/s   
Progress: 0
frame= 1069 fps=9.6 q=20.0 size=   67511kB time=00:00:43.06 bitrate=12843.7kbits/s   
Progress: 0
frame= 1074 fps=9.6 q=20.0 size=   67858kB time=00:00:43.26 bitrate=12850.1kbits/s   
Progress: 0
frame= 1081 fps=9.6 q=20.0 size=   68356kB time=00:00:43.54 bitrate=12861.0kbits/s   
Progress: 0
frame= 1087 fps=9.6 q=20.0 size=   68763kB time=00:00:43.78 bitrate=12866.8kbits/s   
Progress: 0
frame= 1092 fps=9.6 q=20.0 size=   69113kB time=00:00:43.98 bitrate=12873.4kbits/s   
Progress: 0
frame= 1098 fps=9.6 q=20.0 size=   69558kB time=00:00:44.48 bitrate=12809.8kbits/s   
Progress: 0
frame= 1102 fps=9.6 q=20.0 size=   69855kB time=00:00:44.66 bitrate=12813.5kbits/s   
Progress: 0
frame= 1109 fps=9.6 q=20.0 size=   70366kB time=00:00:44.94 bitrate=12826.9kbits/s   
Progress: 0
frame= 1113 fps=9.6 q=20.0 size=   70682kB time=00:00:45.10 bitrate=12838.8kbits/s   
Progress: 0
frame= 1118 fps=9.5 q=20.0 size=   71018kB time=00:00:45.30 bitrate=12842.9kbits/s   
Progress: 0
frame= 1123 fps=9.5 q=20.0 size=   71410kB time=00:00:45.50 bitrate=12856.9kbits/s   
Progress: 0
frame= 1126 fps=9.5 q=20.0 size=   71613kB time=00:00:45.62 bitrate=12859.5kbits/s   
Progress: 0
frame= 1132 fps=9.5 q=20.0 size=   72131kB time=00:00:45.86 bitrate=12884.9kbits/s   
Progress: 0
frame= 1136 fps=9.5 q=20.0 size=   72448kB time=00:00:46.02 bitrate=12896.5kbits/s   
Progress: 0
frame= 1142 fps=9.5 q=17.0 size=   72872kB time=00:00:46.26 bitrate=12904.7kbits/s   
Progress: 0
frame= 1146 fps=9.5 q=20.0 size=   73181kB time=00:00:46.42 bitrate=12914.7kbits/s   
Progress: 0
frame= 1153 fps=9.5 q=20.0 size=   73666kB time=00:00:46.70 bitrate=12922.4kbits/s   
Progress: 0
frame= 1156 fps=9.5 q=20.0 size=   73882kB time=00:00:46.82 bitrate=12926.9kbits/s   
Progress: 0
frame= 1161 fps=9.5 q=20.0 size=   74257kB time=00:00:47.02 bitrate=12937.4kbits/s   
Progress: 0
frame= 1167 fps=9.5 q=20.0 size=   74727kB time=00:00:47.26 bitrate=12953.1kbits/s   
Progress: 0
frame= 1171 fps=9.5 q=17.0 size=   75036kB time=00:00:47.42 bitrate=12962.7kbits/s   
Progress: 0
frame= 1175 fps=9.5 q=20.0 size=   75337kB time=00:00:47.58 bitrate=12971.0kbits/s   
Progress: 0
frame= 1181 fps=9.5 q=20.0 size=   75814kB time=00:00:47.82 bitrate=12987.6kbits/s   
Progress: 0
frame= 1188 fps=9.5 q=20.0 size=   76314kB time=00:00:48.10 bitrate=12997.2kbits/s   
Progress: 0
frame= 1194 fps=9.5 q=20.0 size=   76592kB time=00:00:48.34 bitrate=12979.8kbits/s   
Progress: 0
frame= 1201 fps=9.5 q=20.0 size=   76897kB time=00:00:48.62 bitrate=12956.5kbits/s   
Progress: 0
frame= 1207 fps=9.5 q=20.0 size=   77199kB time=00:00:48.86 bitrate=12943.4kbits/s   
Progress: 0
frame= 1213 fps=9.5 q=20.0 size=   77528kB time=00:00:49.10 bitrate=12934.9kbits/s   
Progress: 0
frame= 1219 fps=9.5 q=20.0 size=   77842kB time=00:00:49.34 bitrate=12924.2kbits/s   
Progress: 0
frame= 1226 fps=9.5 q=20.0 size=   78186kB time=00:00:49.62 bitrate=12908.0kbits/s   
Progress: 0
frame= 1233 fps=9.5 q=20.0 size=   78557kB time=00:00:49.90 bitrate=12896.5kbits/s   
Progress: 0
frame= 1239 fps=9.6 q=20.0 size=   78839kB time=00:00:50.14 bitrate=12880.9kbits/s   
Progress: 0
frame= 1246 fps=9.6 q=20.0 size=   79161kB time=00:00:50.42 bitrate=12861.7kbits/s   
Progress: 0
frame= 1251 fps=9.6 q=20.0 size=   79401kB time=00:00:50.62 bitrate=12849.8kbits/s   
Progress: 0
frame= 1256 fps=9.6 q=20.0 size=   79636kB time=00:00:50.82 bitrate=12837.0kbits/s   
Progress: 0
frame= 1263 fps=9.6 q=20.0 size=   79988kB time=00:00:51.10 bitrate=12823.2kbits/s   
Progress: 0
frame= 1267 fps=9.6 q=20.0 size=   80206kB time=00:00:51.26 bitrate=12817.9kbits/s   
Progress: 0
frame= 1272 fps=9.6 q=20.0 size=   80484kB time=00:00:51.46 bitrate=12812.4kbits/s   
Progress: 0
frame= 1278 fps=9.6 q=20.0 size=   80805kB time=00:00:51.70 bitrate=12803.8kbits/s   
Progress: 0
frame= 1283 fps=9.6 q=20.0 size=   81082kB time=00:00:51.90 bitrate=12798.2kbits/s   
Progress: 0
frame= 1289 fps=9.6 q=20.0 size=   81407kB time=00:00:52.14 bitrate=12790.3kbits/s   
Progress: 0
frame= 1296 fps=9.6 q=20.0 size=   81779kB time=00:00:52.42 bitrate=12780.1kbits/s   
Progress: 0
frame= 1300 fps=9.6 q=20.0 size=   81993kB time=00:00:52.58 bitrate=12774.5kbits/s   
Progress: 0
frame= 1307 fps=9.6 q=20.0 size=   82388kB time=00:00:52.86 bitrate=12768.1kbits/s   
Progress: 0
frame= 1314 fps=9.6 q=20.0 size=   82742kB time=00:00:53.14 bitrate=12755.3kbits/s   
Progress: 0
frame= 1320 fps=9.6 q=20.0 size=   83100kB time=00:00:53.38 bitrate=12753.0kbits/s   
Progress: 0
frame= 1325 fps=9.6 q=20.0 size=   83382kB time=00:00:53.58 bitrate=12748.5kbits/s   
Progress: 0
frame= 1332 fps=9.6 q=20.0 size=   83749kB time=00:00:53.86 bitrate=12738.0kbits/s   
Progress: 0
frame= 1339 fps=9.6 q=20.0 size=   84147kB time=00:00:54.14 bitrate=12732.4kbits/s   
Progress: 0
frame= 1345 fps=9.6 q=20.0 size=   84446kB time=00:00:54.38 bitrate=12721.3kbits/s   
Progress: 0
frame= 1351 fps=9.6 q=17.0 size=   84735kB time=00:00:54.62 bitrate=12708.7kbits/s   
Progress: 0
frame= 1358 fps=9.6 q=20.0 size=   85194kB time=00:00:54.90 bitrate=12712.4kbits/s   
Progress: 0
frame= 1365 fps=9.6 q=20.0 size=   85584kB time=00:00:55.18 bitrate=12705.8kbits/s   
Progress: 0
frame= 1373 fps=9.7 q=20.0 size=   85961kB time=00:00:55.50 bitrate=12688.1kbits/s   
Progress: 0
frame= 1379 fps=9.7 q=20.0 size=   86326kB time=00:00:55.74 bitrate=12687.2kbits/s   
Progress: 0
frame= 1386 fps=9.7 q=20.0 size=   86682kB time=00:00:56.02 bitrate=12675.8kbits/s   
Progress: 0
frame= 1392 fps=9.7 q=20.0 size=   87000kB time=00:00:56.26 bitrate=12668.1kbits/s   
Progress: 0
frame= 1398 fps=9.7 q=20.0 size=   87276kB time=00:00:56.50 bitrate=12654.2kbits/s   
Progress: 0
frame= 1405 fps=9.7 q=20.0 size=   87683kB time=00:00:56.78 bitrate=12650.5kbits/s   
Progress: 0
frame= 1411 fps=9.7 q=20.0 size=   87969kB time=00:00:57.02 bitrate=12638.4kbits/s   
Progress: 0
frame= 1419 fps=9.7 q=20.0 size=   88324kB time=00:00:57.34 bitrate=12618.5kbits/s   
Progress: 0
frame= 1426 fps=9.7 q=20.0 size=   88671kB time=00:00:57.62 bitrate=12606.6kbits/s   
Progress: 0
frame= 1432 fps=9.7 q=20.0 size=   88937kB time=00:00:57.86 bitrate=12592.0kbits/s   
Progress: 0
frame= 1439 fps=9.7 q=20.0 size=   89253kB time=00:00:58.14 bitrate=12575.8kbits/s   
Progress: 0
frame= 1444 fps=9.7 q=20.0 size=   89487kB time=00:00:58.34 bitrate=12565.6kbits/s   
Progress: 0
frame= 1450 fps=9.5 q=2686559.0 Lsize=   92218kB time=00:00:58.44 bitrate=12926.9kbits/s   
video:87072kB audio:5034kB subtitle:0 global headers:0kB muxing overhead 0.122465%
[libx264 @ 024c33e0] frame I:14    Avg QP:17.94  size:106025
[libx264 @ 024c33e0] frame P:822   Avg QP:19.75  size: 72333
[libx264 @ 024c33e0] frame B:614   Avg QP:21.68  size: 45959
[libx264 @ 024c33e0] consecutive B-frames: 18.2% 73.1%  8.7%  0.0%
[libx264 @ 024c33e0] mb I  I16..4:  6.5% 81.8% 11.8%
[libx264 @ 024c33e0] mb P  I16..4:  1.7% 29.3%  3.4%  P16..4: 19.3% 28.6% 16.5%  0.0%  0.0%    skip: 1.3%
[libx264 @ 024c33e0] mb B  I16..4:  0.3%  5.2%  0.4%  B16..8: 33.4% 21.2%  8.6%  direct:27.6%  skip: 3.2%  L0:34.3% L1:24.5% BI:41.2%
[libx264 @ 024c33e0] 8x8 transform intra:85.5% inter:88.0%
[libx264 @ 024c33e0] coded y,u,v intra: 92.3% 83.1% 79.8% inter: 83.0% 77.6% 64.9%
[libx264 @ 024c33e0] i16 v,h,dc,p: 34% 56%  4%  5%
[libx264 @ 024c33e0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 15% 22% 26%  3%  6%  6%  6%  5%  9%
[libx264 @ 024c33e0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 10% 62% 12%  2%  2%  2%  3%  2%  4%
[libx264 @ 024c33e0] Weighted P-Frames: Y:15.5% UV:6.4%
[libx264 @ 024c33e0] ref P L0: 40.7% 18.8% 24.0% 15.2%  1.4%
[libx264 @ 024c33e0] ref B L0: 74.3% 25.0%  0.7%
[libx264 @ 024c33e0] ref B L1: 97.8%  2.2%
[libx264 @ 024c33e0] kb/s:12298.11

But it does not shows the percentage

Thank you very much for the help

I think I can do it alone. But if you're going to help me with it then let me know

Edited by gil900

Share this post


Link to post
Share on other sites
FireFox

It works or it does not ?

Here is a little edit which exits if the duration is missing, but your header seems to be correct :)

#include <Constants.au3>
#include <String.au3>
#include <Date.au3>

Local $sCmd = "", $iPid = 0, $sStdOut = "", $aDuration = 0, $iDuration = 0, $aTime = 0, $iPercent = 0

$sCmd = "-i test.avi -c:v libx264 -preset medium -crf 15 -c:a copy output_test.avi"

$iPid = Run(@ScriptDir & "\ffmpeg.exe " & $sCmd, @ScriptDir, @SW_HIDE, $STDERR_CHILD)
While ProcessExists($iPid)
    Sleep(10)

    $sStdOut = StderrRead($iPid)
    If $sStdOut = "" Then ContinueLoop
ConsoleWrite($sStdOut & @CrLf)

    If StringInStr($sStdOut, "Duration") Then
        $aDuration = _StringBetween($sStdOut, "Duration: ", ",")
        $aDuration = StringSplit($aDuration[0], ":")
        $iDuration = Int(_TimeToTicks($aDuration[1], $aDuration[2], Int($aDuration[3])) / 1000)
    ElseIf StringInStr($sStdOut, "time=") > 0 Then
        If $iDuration = 0 Then
            ConsoleWrite("!> Invalid Header" & @CrLf)
            ExitLoop
        EndIf
        $aTime = _StringBetween($sStdOut, "time=", " bitrate=")
        $iPercent = Int(($aTime[0] / $iDuration) * 100)
ConsoleWrite("Progress: " & $iPercent & @CrLf)
    EndIf
WEnd

Br, FireFox.


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×