I analyze stream from multicast address. Output of the command looks like this:
...
Sep 03 19:06:45: INFO: Bitrate: 8241 Kbit/s
Sep 03 19:06:45: ERROR: Scrambled: 250=4792 251=132 252=132 253=263
...
I need get value after Bitrate: [ 8241 ] and set frist variable in php script, and after Scrambled: only before "=" [250,251,252,253] for second variable.
Example $var1=8241; $var2=250,251,252,253
. I found how grep -oP '(?<=Bitrate: )[0-9]+'
so I get "8241" but i need both variables i one step.