2016-08-23, 13:29
does tvheadend support transcoding + ffmpeg yadif deinterlacing?
Quote:Transcoding
YMMV with different ffmpeg/libav versions. In Red Hat's (Fedora/Centos) build of ffmpeg, aac transcoding is experimental, so you have to enable -strict -2
pipe:///usr/bin/ffmpeg -loglevel fatal -i INPUTLINK -vcodec libx264 -acodec aac -strict -2 -mbd rd -copyinkf -flags +ilme+ildct -fflags +genpts
-metadata service_provider=STRING -metadata service_name=STRING -f mpegts -tune zerolatency pipe:1
Try to transcode as little as possible, since it will impact your cpu usage. And if you're using tvheadend to re-transcode... well..
So if your channel already has aac audio, maybe you only need to transcode the video stream.
pipe:///usr/bin/ffmpeg -loglevel fatal -i INPUTLINK -vcodec libx264 -acodec copy -mbd rd -copyinkf -flags +ilme+ildct -fflags +genpts
-metadata service_provider=STRING -metadata service_name=STRING -f mpegts -tune zerolatency pipe:1
(2016-08-25, 14:00)puithove Wrote: You can do the above with pipe:// and yes, that can work. But that means that you will be transcoding everything on the input side - so everything coming in will be transcoded.Although there currently is a bug with stream profiles and recorded content: TVH does not honor your stream profile for playing back a recording.
However, if you already have a working setup, all you really need to do is configure a stream profile (or multiple ones to choose for different clients). Set the stream profile to transcode, and yes, it does deinterlace using ffmpeg's yadif. Then on your client side, tell it what stream profile you want to use.
Documentation, you too can read it. https://tvheadend.readthedocs.io/en/stab...amprofile/
(2016-08-25, 14:00)puithove Wrote: You can do the above with pipe:// and yes, that can work. But that means that you will be transcoding everything on the input side - so everything coming in will be transcoded.
However, if you already have a working setup, all you really need to do is configure a stream profile (or multiple ones to choose for different clients). Set the stream profile to transcode, and yes, it does deinterlace using ffmpeg's yadif. Then on your client side, tell it what stream profile you want to use.
Documentation, you too can read it. https://tvheadend.readthedocs.io/en/stab...amprofile/