Add a movie file

Added by Hed Wallace 6 months ago

Hi mates

Is it possible to add a mkv movie file to tvheadend? any trick to add the file as a channels?

I use the HTS Tvheadend 4.2.2-8~g8ff5aa2.el7.centos versión

Thanks you very much in advance

Replies (6)

RE: Add a movie file - Added by Ron L 6 months ago

Not sure if this feature is in version 4.2 but might be.

Create a new IPTV mux and for the url you enter a command such as this that points to your video file...

pipe:///usr/bin/ffmpeg -loglevel fatal -re -i /media/ron/external/Movies/garfield.mp4 -vcodec copy -acodec copy -metadata service_provider=FIFO -metadata service_name=Garfield -f mpegts -tune zerolatency pipe:1

Let the MUX scan and a service will be created that can be mapped to a channel.

Obviously ffmpeg needs to be installed on your system.

RE: Add a movie file - Added by Hiro Protagonist 6 months ago

It's also possible to add an existing file as a recording.

RE: Add a movie file - Added by Hed Wallace 5 months ago

@Ron L i have tried you solution with a mkv file but it didn't work, does it work only with mp4 files?

@Hiro Protagonist how do you add an existing file as a recording? I can't see that option

RE: Add a movie file - Added by Hiro Protagonist 5 months ago

Have a look at the version of there will work for files with no spaces in the path or filename.
You'll need to modify the URL used by curl - change admin:secret to a username:password that works for your TVH.
If you want a version that can handle spaces, let me know.

RE: Add a movie file - Added by Ron L 5 months ago

I have it working with mkv as well as mp4. The codecs are h264 for video and ac3 for audio. There may some codecs in video files that might not be allowed in an mpegts container perhaps, not certain.

The more likely scenario is that your version of TVHeadend predates the addition of the pipe:// URL.

I have no qualms in recommending people use a 4.3 or git master build instead of the now very dated 4.2 stable build. I have seen nothing but absolute rock solid performance using the git master build.

RE: Add a movie file - Added by clint jones 4 months ago

this works on a local network

pipe:///usr/bin/ffmpeg -loglevel fatal -i /var/www/html/Matrix.mp4 -vcodec copy -acodec copy -metadata service_provider=STRING -metadata service_name=STRING -f mpegts -tune zerolatency pipe:1

there is a way you can

///file .... something else goes here

but I can not find in my notes