Project

General

Profile

Add a movie file

Added by Hed Wallace over 3 years 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 over 3 years 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 over 3 years ago

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

RE: Add a movie file - Added by Hed Wallace over 3 years 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 over 3 years ago

Have a look at https://tvheadend.org/boards/5/topics/37107 the version of tvhimport.sh 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 over 3 years 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 over 3 years 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

clint

    (1-6/6)