Hello,
We (me and my friend from the States) have the following problem. My friend wants to watch tv programs from Europe, which I stream to him. Because my upload is not too big (about 0.5 megabits) we used externremux script together with stream-device plugin for vdr to encode stream with h264 codec and after that stream it into internet. I have to say that my friend was impressed, quality was really nice. Now we want more :-) It is so inconvenient to use web-interface for switching channels, search EPG etc. And here is our question: is it possible to use vdr-stream plugin to stream from one VDR (server) to another VDR( client) h264 encoded stream in the same way as it is implemented in VDR-2-VDR with mpeg2? I mean with remote menu, epg searching, switching channels.
Regards,
Yarema
We (me and my friend from the States) have the following problem. My friend wants to watch tv programs from Europe, which I stream to him. Because my upload is not too big (about 0.5 megabits) we used externremux script together with stream-device plugin for vdr to encode stream with h264 codec and after that stream it into internet.
do you encode mpeg2 satellite channels to h.264 on the fly ? It seems to me it's very hard job for CPU or do you stream in Internet h.264 dvb-s2 channels ?
Igor
Yes, we encode it on the fly: Abit I-N73HD motherboard with overclocked Intel Pentium E2160 processor. Working like a charm, about 50-60% loading of the each of processors. Here is my encoding line: (Middle quality) cat $OUT.avi & /usr/bin/mencoder "$IN" -vf scale=512:384 -ovc x264 -x264encopts bitrate=300:threads=auto -oac lavc -lavcopts acodec=aac:abitrate=20 -o $OUT.avi &>$OUT.log
High quality: cat $OUT.avi & /usr/bin/mencoder "$IN" -vf scale=512:384 -ovc x264 -x264encopts bitrate=256:subq=5:8x8dct:frameref=2:bframes=3:b_pyramid:weight_b:threads=auto -oac lavc -lavcopts acodec=aac:abitrate=20 -o $OUT.avi &>$OUT.log
Yarema
We (me and my friend from the States) have the following problem. My friend wants to watch tv programs from Europe, which I stream to him. Because my upload is not too big (about 0.5 megabits) we used externremux script together with stream-device plugin for vdr to encode stream with h264 codec and after that stream it into internet.
do you encode mpeg2 satellite channels to h.264 on the fly ? It seems to me it's very hard job for CPU or do you stream in Internet h.264 dvb-s2 channels ?
Igor
vdr mailing list vdr@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr
Yes, we encode it on the fly: Abit I-N73HD motherboard with overclocked Intel Pentium E2160 processor. Working like a charm, about 50-60% loading of the each of processors. Here is my encoding line: (Middle quality) cat $OUT.avi & /usr/bin/mencoder "$IN" -vf scale=512:384 -ovc x264 -x264encopts bitrate=300:threads=auto -oac lavc -lavcopts acodec=aac:abitrate=20 -o $OUT.avi &>$OUT.log
High quality: cat $OUT.avi & /usr/bin/mencoder "$IN" -vf scale=512:384 -ovc x264 -x264encopts bitrate=256:subq=5:8x8dct:frameref=2:bframes=3:b_pyramid:weight_b:threads=auto -oac lavc -lavcopts acodec=aac:abitrate=20 -o $OUT.avi &>$OUT.log
it's interesting... BTW - does the picture's quality change after high quality h264 decoding ? Which bitrate and resolution have the mpeg2 channels ?
Igor
BTW - does the picture's quality change after high quality h264 decoding ?
Sure it changes! The only one problem is the low upload speed.
Which bitrate and resolution have the mpeg2 channels ?
Here is extract from log file:
VIDEO: MPEG2 704x576 (aspect 2) 25.000 fps 3900.0 kbps (487.5 kbyte/s) [V] filefmt:29 fourcc:0x10000002 size:704x576 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) ========================================================================== Opening video filter: [expand osd=1] Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1 Opening video filter: [scale w=512 h=384] ========================================================================== Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough VDec: vo config request - 704 x 576 (preferred colorspace: Mpeg PES) The selected video_out device is incompatible with this codec. Try adding the scale filter, e.g. -vf spp,scale instead of -vf spp. 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)) ========================================================================== VDec: vo config request - 704 x 576 (preferred colorspace: 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 7 -> 6 SwScaler: reducing / aligning filtersize 7 -> 6
SwScaler: BICUBIC scaler, from yuv420p to yuv420p using MMX2 SwScaler: using 8-tap MMX scaler for horizontal luminance scaling SwScaler: using 8-tap MMX scaler for horizontal chrominance scaling SwScaler: using n-tap MMX scaler for vertical scaling (YV12 like) SwScaler: 704x576 -> 512x384 x264 [info]: using SAR=1/1 x264 [info]: using cpu capabilities MMX MMXEXT SSE SSE2 Pos: 0.0s 2f ( 0%) 0.00fps Trem: 0min 0mb A-V:-0.004 [0:0]
Yarema
On Tue, 29 Apr 2008 15:23:58 +0200, YUP wrote
is it possible to use vdr-stream plugin to stream from one VDR (server) to another VDR( client) h264 encoded stream in the same way as it is implemented in VDR-2-VDR with mpeg2?
Some time ago the VTP part of streamdev-server has been extended to support extern remux. The streamdev-client could select externremux by issuing a "CAPS EXTERN" instead of the standard "CAPS TSPIDS" (you will need to modify the source). Of course the client VDR needs to support h264 - patches are available - and externremux has to emit an h264 TS stream. That's the theory. Your mileage may vary. Probably noone even tried the CAPS EXTERN part.
Good luck ;) Frank