[vdr] How to compute length of a recording?

Dirk dirk-mailinglisten at wor.net
Mon Jul 16 14:40:18 CEST 2007


Walter Koch wrote:
> Moin,
>
>   
>> how do I get the duration in a shell script?
>>     
> So sth like
>   echo "$(stat -c %s index.vdr) / 200.0" | bc
> would help you on a bash.
>   

Thank you, very much. I am now using

sumlen=$(echo "$(stat --format=%s "$recdir"/index.vdr) / 200" | bc)


Dirk



More information about the vdr mailing list