Changeset 4939


Ignore:
Timestamp:
12/21/10 20:54:02 (12 years ago)
Author:
nit
Message:

[grab.sh] fix 16:9 problem with 576i/p

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/grab/grab.sh

    r4899 r4939  
    22
    33pngfile="/tmp/vdump.png"
     4vmode=`cat /proc/stb/video/videomode`
     5stream_aspect="undef"
    46
    57# hole e2service referenc nummer
     
    79rm -f "$pngfile"
    810
     11# check mode
     12if [ "$vmode" == "576p50" ] || [ "$vmode" == "576i50" ] || [ "$vmode" == "pal" ]; then
     13  echo "[grab.sh] videomod = $vmode"
     14  stream_aspect=`cat /proc/stb/vmpeg/0/aspect`
     15fi
     16
    917# erzeuge tv bild
    1018ffmpeg -itsoffset -4 -i "http://127.0.0.1:8001/$e2service" -vframes 1 -vcodec png -sn -an -y -f image2 "$pngfile"
    1119echo "[grab.sh] used video grab file: $pngfile"
    1220
    13 # merge tv bild mit osd bild
    14 grab -l -p -f "$pngfile"
     21# merge tv bild mit osd bild
     22if [ "$stream_aspect" == "1" ]; then
     23        echo "[grab.sh] convert to 16:9"
     24  grab -r 1024 -i 576 -p -f "$pngfile"
     25else
     26  grab -p -f "$pngfile"
     27fi
    1528rm -f "$pngfile"
Note: See TracChangeset for help on using the changeset viewer.