|
MythTV
0.26-pre
|
00001 #!/bin/sh 00002 00003 # Converts png's in /tmp to streams that can be used by DummyDTVecorder. 00004 00005 create_ts() 00006 { 00007 convert /tmp/$1.png ppm:- | \ 00008 ppmtoy4m -n15 -F$3 -A$4 -I$5 -r -S 420mpeg2 | \ 00009 mpeg2enc -c -n n -a$6 --no-constraints -s -o /tmp/tmp.es 00010 vlc /tmp/tmp.es --sout \ 00011 '#std{access=file,mux=ts{pid-pmt=0x20,pid-video=0x21.tsid=1},\ 00012 url="/tmp/tmp.ts"}' vlc:quit 00013 mv /tmp/tmp.ts /tmp/dummy$1$2.ts 00014 } 00015 00016 create_ts 640x480 p29.97 30000:1001 10:11 p 2 00017 create_ts 720x480 p29.97 30000:1001 1:1 p 2 00018 create_ts 768x576 p50.00 50:1 59:54 p 2 00019 create_ts 1280x720 p29.97 30000:1001 1:1 p 3 00020 create_ts 1920x1088 p29.97 30000:1001 1:1 p 3
1.7.6.1