WTV driving me nuts
I am currently fighting with the .wtv transcoding. I use a hd-pvr within WMC7 for all my tv recording (movies, series, etc) and it would be great to share them without having to convert them. They are h.264 wtv (audio depends on source channel but is either aac or ac3). I wrote a perl script as a layer between serviio and ffmpeg so I could modify various items that I cannot find a way to modify within serviio. For instance -r, for some reason I see really odd -r parameters like 59.37 and 63.27 and I assure you they generally record at 23.976 and are all 1080i cbr 10mbs. I used what serviio sent out to ffmpeg and played a couple and they were horrible, jerky and pretty much unplayable. Just overriding the -r to 23.976 made them pretty darn good... I also played with -bufsize and increased that and the resulting files play great , if I rename them to xxx.ts and move them to a usb drive and play them directly from the tv. When I uses serviio I get an "invalid file" error from my LG TV as well as the bravia and samsung tvs and blueray players, but they all play the files if I serve them from a usb drive as a .ts. I am thinking there is something odd here. I am doing most of the test with a nearby LG E322VL that is using the following profile
<Profile id="15" name="LG NetCast.TV" extendsProfileId="1">
<Detection>
<HttpHeaders>
<USER-AGENT>.*LGE_DLNA_SDK.*</USER-AGENT>
</HttpHeaders>
</Detection>
<Transcoding>
<Video targetContainer="mpegts" targetVCodec="mpeg2video" maxVBitrate="10000">
<Matches container="wtv" />
</Video>
</Transcoding>
</Profile>
As I said most of my media is h.264 5.1 ac3 or aac and this profile plays any of the .ts with those specs (usually 20mbs and 448k) as well as a dozen or so blue ray rips in .mkv form (main feature rips only) but the wtv is just not working.
The command line that I out put that creates files I can play on the tv (and this processed command line from serviio)
/usr/bin/ffmpegReal -i /mnt/RecordedTV/Tosh.0_CCHD_2011_03_15_21_57_00.wtv -y -threads 1 -vcodec mpeg2video -b 10000k -maxrate 10000k -r 23.976 -g 15 -acodec copy -map 0:1 -map 0:0 -sn -bufsize 65535k -f mpegts /tmp/Serviio/transcoding-temp-535-MPEG2TS.stf
This produces a very watchable file via WMC7 from a remote share and perfect playing via the TV's usb drive.
it would seem that this matches the profile setting, with the fps set correctly (serviio sent -r 63.27 in this case according to the debug log), so is there something in the meta type translation I am missing perhaps? It would seem that the issue must be in the file type serviio is passing to the tv as the set is quite happy to play the file generated by that command with the extension changed to .ts
Any help would be great
Rick
<Profile id="15" name="LG NetCast.TV" extendsProfileId="1">
<Detection>
<HttpHeaders>
<USER-AGENT>.*LGE_DLNA_SDK.*</USER-AGENT>
</HttpHeaders>
</Detection>
<Transcoding>
<Video targetContainer="mpegts" targetVCodec="mpeg2video" maxVBitrate="10000">
<Matches container="wtv" />
</Video>
</Transcoding>
</Profile>
As I said most of my media is h.264 5.1 ac3 or aac and this profile plays any of the .ts with those specs (usually 20mbs and 448k) as well as a dozen or so blue ray rips in .mkv form (main feature rips only) but the wtv is just not working.
The command line that I out put that creates files I can play on the tv (and this processed command line from serviio)
/usr/bin/ffmpegReal -i /mnt/RecordedTV/Tosh.0_CCHD_2011_03_15_21_57_00.wtv -y -threads 1 -vcodec mpeg2video -b 10000k -maxrate 10000k -r 23.976 -g 15 -acodec copy -map 0:1 -map 0:0 -sn -bufsize 65535k -f mpegts /tmp/Serviio/transcoding-temp-535-MPEG2TS.stf
This produces a very watchable file via WMC7 from a remote share and perfect playing via the TV's usb drive.
it would seem that this matches the profile setting, with the fps set correctly (serviio sent -r 63.27 in this case according to the debug log), so is there something in the meta type translation I am missing perhaps? It would seem that the issue must be in the file type serviio is passing to the tv as the set is quite happy to play the file generated by that command with the extension changed to .ts
Any help would be great
Rick