Trying to calculate the total size of a file by reading its bitrate.
Code snippet: Output:
Sadly there is no longer any output at all when i remove the bold code line.
Expected output:
When i remove the bold code line, which is just there for debuging, i want to get the proper expected filesize.
As of now, i assume awk fails due to the underlined floating point number?
Playtime does the same as pr_str, just for the duration of the file.
$TMP.info is filled by another prior function.
Hi all,
I'm looking to modify a script to check disk space usage.
Here is the code at the moment:
#
# The control file, MONITOR_DISK_SPACE, must be in the format ... Drive:;threshold_percentage
# eg.
# C:;95
# D:;98
# E:;90
#
# For each line in the control file (MONITOR_DISK_SPACE)... (2 Replies)
Hello,
I searched a lot on this Forum.
Please help me with the below problem.
I want to divide two numbers and the result should be the next nearest whole number.
E.G. Dividing 10.8/5 ideally gives 2.16. But the result should be 3 i.e. rounded off to the next whole number.
Any help will... (2 Replies)
Hi Guys,
I am generating a statistical report , below is the snippet of the code :
Now, $nSlices stands for the time duration,meaning,the statistics will be displayed for that particular time duration. Trouble is, for certain values of $totalTime (which is the end time - start time ), i... (9 Replies)
Here is the script I'm using
awk '{print $1,"\t",(($2+$3)/2)-x,"\t",(($2+$3)/2)+x,"\t",$4,"\t",$5}' x=500 $1
I just want to make float numbers (red) like normal numbers (green)
output
cX 1.65107e+08 1.65108e+08 13 64.2
cX 165112764 165113764 27 ... (7 Replies)
Hi,
I have managed to round up numbers by using the following command:
echo "5.54" | awk '{printf "%.0f\n", $1}'
result
6
How can I round up all the numbers in a column in a file and print the lines with the new calculated totals?
Thanks, (3 Replies)
Dear Experts,
I'm trying to find a way to round a number but in this way:
14367.577 ---> 14000
I used the following to round the number to the closer integer:
echo $var|awk '{print int($1+0.5)}'
and also:
xargs printf "%1.0f"
However, they don't work for my above... (9 Replies)
Hi all of you,
Would be great if you help me with how to round up to whole number from my input values like
2.99996,2.17890,3.00002,-2.3456,-2.7890
o/p should be like 3,2,3,-2,-3
thnks in adv!!!!
regards (3 Replies)
Hi guys,
could someone throw some light on the following behaviour of printf (I'll start with info about the system and the tool/shell/interpreter versions)?:
$ uname -a
Linux linux-86if.site 3.1.0-1.2-desktop #1 SMP PREEMPT Thu Nov 3 14:45:45 UTC 2011 (187dde0) x86_64 x86_64 x86_64... (9 Replies)
I have a number, which I want to convert into the nearest floating number upto two places after the decimal point.
E.g.
1.2346 will become 1.23
but
1.2356 will become 1.24 .
Similarly
0.009 will be 0.01
and
0.001 will be 0.00 or 0.0 (not 0, wnat to keep the decimal... (1 Reply)
Discussion started by: hbar
1 Replies
LEARN ABOUT DEBIAN
oggz-info
oggz-info(1) General Commands Manual oggz-info(1)NAME
oggz-info -- Display information about one or more Ogg files and their bitstreams.
SYNOPSIS
oggz-info [-l | --length ] [-b | --bitrate ] [-g | --page-stats ] [-p | --packet-stats ] [-k | --skeleton ] [-a | --all ] file-
name ...
oggz-info [-h | --help ] [-v | --version ]
Description
oggz-info displays information about one or more Ogg files and their bitstreams.
Options
oggz-info accepts the following options:
Display options
-l, --length
Display content lengths.
-b, --bitrate
Display bitrate information.
-g, --page-stats
Display Ogg page statistics.
-p, --packet-stats
Display Ogg packet statistics.
-k, --skeleton
Display Extra data from OggSkeleton bitstream.
-a, --all Display all information.
Miscellaneous options
-h, --help
Display usage information and exit.
-v, --version
Output version information and exit.
Units of measurement
oggz-info displays information using the following units:
Byte lengths
bytes (8 bits)
kB kilobytes (1024 bytes)
MB megabytes (1024*1024 bytes)
GB gigabytes (1024*1024*1024 bytes)
Bitrates
bps bits per second (bit/s)
kbps kilobits per second (1000 bit/s)
Mbps megabits per second (1000000 bit/s)
Gbps gigabits per second (1000000000 bit/s)
EXAMPLES
Describe all bitstreams in file.ogg:
oggz info file.ogg
Describe only the Theora bitstream in file.ogv:
oggz info -c theora file.ogv
AUTHOR
Conrad Parker March 10, 2005;
COPYRIGHT
Copyright (C) 2005 CSIRO Australia
SEE ALSO oggz-dump(1), oggz-rip(1), oggz-diff(1)hogg(1)oggz-info(1)