[coherence-dev] .config transcoding for sony bravia
Alexander E. Patrakov
patrakov at gmail.com
Tue Jan 26 07:28:43 CET 2010
26.01.2010 04:11, Thomas Hecker пишет:
> Hi all,
>
> could anyone send a working .config file with video transcoding for a
> sony bravia tv to me?
>
There is no such thing. First, different Sony Bravia TVs can do
different things. For the 4500 series, you can stream only mp3 music and
jpeg photos, and transcoding isn't needed. For the 5500 series, you can,
in addition, transcode videos to MPEG-PS format. However, out of the
box, Coherence supports only MPEG-TS format as a video transcoding
target. So you have to modify the source. Find the pipeline in the
MP2TSTranscode class and replace it with the following:
self.pipeline = gst.parse_launch(
"mplex format=3 vbr=true mux-bitrate=15360 bufsize=1024
name=mux %s ! decodebin2 name=d ! ffmpegcolorspace ! mpeg2enc format=3
bitrate=10000 constraints=false bufsize=1024 reduction-4x4=4
reduction-2x2=4 ! mux. d. ! queue ! audioconvert ! twolame ! mux." %
self.uri)
Warning - this is suitable only for short video clips, not long films,
because Coherence attempts to transcode the entire clip to RAM. Probably
this is because of the incorrectly-placed "queue" elements.
This also relies on the "mplex" and "mpeg2enc" gstreamer elements that
require mjpegtools and are not available by default in the Linux distros.
--
Alexander E. Patrakov
More information about the coherence-dev
mailing list