Transcode MKV for VOD over RTSP On-the-fly
Posted: 28 Nov 2009 05:09
So I've got a pretty nice VLC server setup that creates a Video on demand key for every file using a configuration file.
Startup:
vlm.conf
This setup allows me to play any of the videos from a client:
vlc rtsp://myserver:5554/OP334
to watch One Piece - 334.mp4
To deal with bandwidth any of the videos that is too high quality for my comcast connection I transcode into a smaller frame size.
The problem I have is that the MKV files do not work whether or not I run them through an output transcoder or not. All the other video formats I have in this collection work well.
I'm looking for a way to on-the-fly transcode the soft subtitles into the video as hard subtitles. Any ideas?
Here's the MKV file info:
Video: MPEG4 Video (H264) 1280x720 23.98fps [Japanese (Video 1)]
Audio: AAC 48000Hz stereo [Japanese (Audio 1)]
Subtitle: UTF-8 [English (Subtitle 1)]
Startup:
Code: Select all
start vlc --ttl 12 -vvv --color -I telnet --vlm-conf=vlm.conf --extraintf=http --telnet-password PASS --telnet-port 5555 --rtsp-host 0.0.0.0:5554
Code: Select all
new OP8 vod enabled input "E:\My Videos\Anime\One Piece\001-050\One Piece - 008.avi"
new OP334 vod enabled input "E:\My Videos\Anime\One Piece\301-350\One Piece - 334.mp4" output #transcode{vcodec=mp4v,acodec=mpga,fps=23.98,vb=2048,ab=128,width=480,height=270,audio-sync,deinterlace}
new OP366 vod enabled input "E:\My Videos\Anime\One Piece\351-366\One Piece - 366.mkv" output #transcode{vcodec=mp4v,acodec=mpga,fps=23.98,vb=2048,ab=128,width=480,height=270,audio-sync,deinterlace}
new OP401 vod enabled input "E:\My Videos\Anime\One Piece\401-450\One Piece - 401.mkv"
vlc rtsp://myserver:5554/OP334
to watch One Piece - 334.mp4
To deal with bandwidth any of the videos that is too high quality for my comcast connection I transcode into a smaller frame size.
The problem I have is that the MKV files do not work whether or not I run them through an output transcoder or not. All the other video formats I have in this collection work well.
I'm looking for a way to on-the-fly transcode the soft subtitles into the video as hard subtitles. Any ideas?
Here's the MKV file info:
Video: MPEG4 Video (H264) 1280x720 23.98fps [Japanese (Video 1)]
Audio: AAC 48000Hz stereo [Japanese (Audio 1)]
Subtitle: UTF-8 [English (Subtitle 1)]