I figured that transcoding from the .ts to .flv format would be necessary, so with some Googling, I found a command string that should do the conversion:
- Code: Select all
ffmpeg -i input.ts -sn -vcodec copy -sameq -acodec copy -f matroska output.mkv
which I modified like this for Subsonic use:
- Code: Select all
ffmpeg -i %s -sn -vcodec copy -sameq -acodec copy -f matroska
I then created this transcoding entry:
- Code: Select all
Name: ts video
Convert From: ts
Convert To: flv
Step 1: ffmpeg -i %s -sn -vcodec copy -sameq -acodec copy -f matroska
Step 2: ffmpeg -ss %o -i %s -async 1 -b %bk -s %wx%h -ar 44100 -ac 2 -v 0 -f flv -vcodec libx264 -preset superfast -threads 0 -
Step 1 should transcode from .ts to .mkv, then Step 2 is the default transcode line that should convert the .mkv to .flv for playing at the destination. However, the .ts files still don't show up in the file listing.
I'm currently running Subsonic 4.8 (build 3434) – April 17, 2013 (Yes, I know it's rather old. I'm preparing for a server update that will include the latest version of Subsonic, as well.)
This is my first attempt at adding a transcoding entry, so I wouldn't be surprised if I did something wrong. Also, I'm not sure what's necessary to make the files visible to Subsonic so it knows it can play them. Any tips, pointers or suggestions are more than welcome.
