[vdr] externremux.sh

João Mamede foreveruni at clix.pt
Wed Feb 15 15:37:12 CET 2006


Hi guys a couple months ago I asked something about how to encode the
stream in streamdev-server(http) someone said to put this in /etc/vdr/
#!/bin/sh
rm /tmp/out.avi
mkfifo /tmp/out.avi
cat /tmp/out.avi &
mencoder -ovc xvid -oac mp3lame -ffourcc XVID -lameopts
vbr=3:abr:cbr=50:aq=9:mode=3 -xvidencopts bitrate=164 -vf scale -zoom
-xy 400 -o /tmp/out.avi -- - &>/tmp/out.log

so when I mplayer http://localhost:3000/EXTERNE/1 vdr starts encoding (I
can see it in /tmp/out.log but no stream comes with vdr.why?I don't have
/tmp/out.avi:
MEncoder 1.0pre7try2-3.4.4 (C) 2000-2005 MPlayer Team
CPU: Advanced Micro Devices Athlon MP/XP/XP-M Barton (Family: 6,
Stepping: 0)
Detected cache-line size is 64 bytes
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE

File not found: 'frameno.avi'
Failed to open frameno.avi
Reading from stdin...
success: format: 0  data: 0x0 - 0x0
Cannot seek backward in linear streams!
Seek failed
Win32 LoadLibrary failed to load: avisynth.dll,
/usr/lib/win32/avisynth.dll, /usr/local/lib/win32/avisynth.dll
Cannot seek backward in linear streams!
Seek failed
Cannot seek backward in linear streams!
Seek failed
Cannot seek backward in linear streams!
Seek failed
TS file format detected.
DEMUX OPEN, AUDIO_ID: -1, VIDEO_ID: -1, SUBTITLE_ID: -1,
Cannot seek backward in linear streams!
Seek failed
PROBING UP TO 2000000, PROG: 0
VIDEO MPEG2(pid=4496)AUDIO MPA(pid=4497) NO SUBS (yet)!  PROGRAM N. 0
Opened TS demuxer, audio: 50(pid 4497), video: 10000002(pid
4496)...POS=120132
Cannot seek backward in linear streams!
Seek failed
VIDEO:  MPEG2  544x576  (aspect 2)  25.000 fps  15000.0 kbps (1875.0
kbyte/s)
[V] filefmt:29  fourcc:0x10000002  size:544x576  fps:25.00  ftime:=0.0400
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 48000 Hz, 2 ch, s16le, 160.0 kbit/10.42% (ratio: 20000->192000)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
xvid: using library version 1.1.0 (build xvid-1.1.0)
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1  (-1=autodetect) osd: 1
Opening video filter: [scale]
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 544 x 576 (preferred csp: Mpeg PES)
The selected video_out device is incompatible with this codec.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b
Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG-1 or 2 (libmpeg2))
==========================================================================
Forcing output fourcc to 44495658 [XVID]
MP3 audio selected
Building audio filter chain for 48000Hz/2ch/s16le -> 48000Hz/1ch/s16le...
Writing AVI header...
ODML: Aspect information not (yet?) available or unspecified, not
writing vprp header.
VDec: vo config request - 544 x 576 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
SwScaler: reducing / aligning filtersize 7 -> 8
SwScaler: reducing / aligning filtersize 7 -> 8
SwScaler: reducing / aligning filtersize 9 -> 8
SwScaler: reducing / aligning filtersize 9 -> 8

SwScaler: BICUBIC scaler, from Planar YV12 to Planar YV12 using MMX2
videocodec: XviD (400x300 fourcc=44495658 [XVID])
xvid: par=0/0 (vga11), displayed=400x300, sampled=400x300
xvid: CBR Rate Control -- bitrate=350kbit/s
ODML: vprp aspect is 4:3.   0fps Trem:   0min   0mb  A-V:-0.004 [0:0]

1 duplicate frame(s)!
Pos:   0.8s     22f ( 0%)   0fps Trem:   0min   0mb  A-V:-0.084 [0:64]
1 duplicate frame(s)!
Pos:   1.2s     32f ( 0%)  28fps Trem:   0min   0mb  A-V:-0.084 [443:64]
1 duplicate frame(s)!
Pos:   1.6s     42f ( 0%)  26fps Trem:   0min   0mb  A-V:-0.084 [385:63]
1 duplicate frame(s)!
Pos:   2.1s     52f ( 0%)  25fps Trem:   0min   0mb  A-V:-0.084 [360:64]
1 duplicate frame(s)!
Pos:   2.5s     62f ( 0%)  26fps Trem:   0min   0mb  A-V:-0.084 [366:64]
1 duplicate frame(s)!
Pos:   3.0s     72f ( 0%)  26fps Trem:   0min   0mb  A-V:-0.084 [343:64]
1 duplicate frame(s)!
Pos:   3.4s     82f ( 0%)  26fps Trem:   0min   0mb  A-V:-0.084 [326:64]
1 duplicate frame(s)!
Pos:   3.8s     92f ( 0%)  25fps Trem:   0min   0mb  A-V:-0.084 [332:63]
1 duplicate frame(s)!
Pos:   4.3s    102f ( 0%)  25fps Trem:   0min   0mb  A-V:-0.084 [324:64]
1 duplicate frame(s)!
Pos:   4.7s    112f ( 0%)  26fps Trem:   0min   0mb  A-V:-0.084 [321:63]
1 duplicate frame(s)!
Pos:   5.2s    122f ( 0%)  26fps Trem:   0min   0mb  A-V:-0.084 [313:64]
1 duplicate frame(s)!
Pos:   5.6s    132f ( 0%)  25fps Trem:   0min   0mb  A-V:-0.084 [315:64]
1 duplicate frame(s)!
Pos:   6.0s    142f ( 0%)  25fps Trem:   0min   0mb  A-V:-0.084 [320:64]
1 duplicate frame(s)!
Pos:   6.5s    152f ( 0%)  26fps Trem:   0min   0mb  A-V:-0.084 [315:64]
1 duplicate frame(s)!
Pos:   6.9s    162f ( 0%)  25fps Trem:   0min   0mb  A-V:-0.084 [319:63]
1 duplicate frame(s)!
Pos:   7.4s    172f ( 0%)  25fps Trem:   0min   0mb  A-V:-0.084 [314:64]
1 duplicate frame(s)!
Pos:   7.8s    182f ( 0%)  25fps Trem:   0min   0mb  A-V:-0.084 [309:64]
1 duplicate frame(s)!
Pos:   8.2s    192f ( 0%)  25fps Trem:   0min   0mb  A-V:-0.084 [308:64]
1 duplicate frame(s)!
Pos:   8.7s    202f ( 0%)  25fps Trem:   0min   0mb  A-V:-0.084 [306:64]
1 duplicate frame(s)!
Pos:   9.1s    212f ( 0%)  25fps Trem:   0min   0mb  A-V:-0.084 [326:64]
1 duplicate frame(s)!
Pos:   9.6s    222f ( 0%)  25fps Trem:   0min   0mb  A-V:-0.084 [323:64]
1 duplicate frame(s)!
Pos:  10.0s    232f ( 0%)  25fps Trem:   0min   0mb  A-V:-0.084 [320:63]
1 duplicate frame(s)!
Pos:  10.4s    242f ( 0%)  25fps Trem:   0min   0mb  A-V:-0.084 [321:64]
1 duplicate frame(s)!
Pos:  10.9s    252f ( 0%)  25fps Trem:   0min   0mb  A-V:-0.084 [322:63]
1 duplicate frame(s)!
Pos:  11.3s    262f ( 0%)  25fps Trem:   0min   0mb  A-V:-0.084 [320:63]
1 duplicate frame(s)!
Pos:  11.8s    272f ( 0%)  25fps Trem:   0min   0mb  A-V:-0.084 [325:64]
1 duplicate frame(s)!
Pos:  12.2s    282f ( 0%)  25fps Trem:   0min   0mb  A-V:-0.084 [328:63]
1 duplicate frame(s)!
TS_PARSE: COULDN'T SYNC%)  25fps Trem:   0min   0mb  A-V:-0.048 [327:63]

Broken frame at 0x3EB20                                                 
Pos:  12.5s    288f ( 0%)  22fps Trem:   0min   0mb  A-V:-0.068 [325:63]
Flushing video frames


CBR audio: 8000 bytes/sec, 192 bytes/block

Writing AVI index...
Fixing AVI header...
ODML: vprp aspect is 4:3.

Video stream:  324.356 kbit/s  (40544 bps)  size: 509239 bytes  12.560
secs  288 frames

Audio stream:   64.000 kbit/s  (8000 bps)  size: 103872 bytes  12.984 secs
Best Regards
João Mamede



More information about the vdr mailing list