FAQ  •  Register  •  Login

WTV and/or DVR-MS files?

<<

brotherjohn

Streaming enthusiast

Posts: 31

Joined: Thu Sep 16, 2010 3:30 pm

Post Thu Sep 16, 2010 3:35 pm

WTV and/or DVR-MS files?

Would it be possible to add streaming/transcoding functionality of wtv and/or dvr-ms files, please?
wtv is the file format for recorded files of the windows media center in Windows 7 and dvr-ms is the same for Windows Vista.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Thu Sep 16, 2010 3:38 pm

Re: WTV and/or DVR-MS files?

provide "ffmpeg -i file" on those files to see if they can be recognized
<<

brotherjohn

Streaming enthusiast

Posts: 31

Joined: Thu Sep 16, 2010 3:30 pm

Post Mon Sep 20, 2010 5:27 pm

Re: WTV and/or DVR-MS files?

For the dvr-ms file, ffmpeg returns the following:
  Code:
FFmpeg version SVN-r23012, Copyright (c) 2000-2010 the FFmpeg developers
  built on May  3 2010 19:05:24 with gcc 3.4.5 (mingw-vista special r3)
  configuration: --enable-static --disable-shared --disable-ffplay --disable-ffs
erver --enable-memalign-hack --enable-libmp3lame --enable-w32threads --extra-ldf
lags=-L/static/lib --extra-cflags=-I/static/include
  libavutil     50.15. 0 / 50.15. 0
  libavcodec    52.66. 0 / 52.66. 0
  libavformat   52.62. 0 / 52.62. 0
  libavdevice   52. 2. 0 / 52. 2. 0
  libswscale     0.10. 0 /  0.10. 0
[mpeg2video @ 028f5fe0]interlaced frame in progressive sequence, ignoring
[mpeg2video @ 028f5fe0]invalid frame_pred_frame_dct
[mpeg2video @ 028f5fe0]slice below image (30 >= 30)
[asf @ 003fba10]max_analyze_duration reached

Seems stream 2 codec frame rate differs from container frame rate: 50.00 (50/1)
-> 25.00 (25/1)
Input #0, asf, from 'i:\tv-aufz-convert\afrika01.dvr-ms':
  Metadata:
    DVR Index Granularity: 500
    WM/SubTitle     : Safari und Savanne
    WM/SubTitleDescription: Zweiteilige Dokumentation. Der erste Teil konzentrie
rt sich auf die Natursch+ñtze des Landes und seine Tourismusidustrie.
    WM/Genre        : Sonstiges;Dokumentation
    WM/OriginalReleaseTime: 0
    WM/Language     :
    WM/MediaCredits : ;;;
    WM/MediaStationCallSign: ZDFinfokanal
    WM/MediaStationName: ZDF Infokanal
    WM/MediaNetworkAffiliation:
    WM/MediaOriginalChannel: 50
    WM/MediaOriginalChannelSubNumber: 0
    WM/MediaOriginalBroadcastDateTime: 2010-06-14T22:00:00Z
    WM/MediaOriginalRunTime: 1844674
    WM/MediaIsStereo: 0
    WM/MediaIsRepeat: 0
    WM/MediaIsLive  : 0
    WM/MediaIsTape  : 0
    WM/MediaIsDelay : 0
    WM/MediaIsSubtitled: 0
    WM/MediaIsMovie : 0
    WM/MediaIsPremiere: 0
    WM/MediaIsFinale: 0
    WM/MediaIsSAP   : 0
    WM/MediaIsSport : 0
    WM/ParentalRating:
    WM/ParentalRatingReason:
    WM/Provider     : MediaCenterDefault
    WM/ProviderCopyright:
    WM/ProviderRating:
    WM/VideoClosedCaptioning: 0
    WM/WMRVEncodeTime: 2021479
    WM/WMRVSeriesUID: !GenericSeries!Afrikas Sch+ñtze
    WM/WMRVServiceID: !Generated!72f7eb9a9d944f1b9ea22331cdbc9c99
    WM/WMRVProgramID: !MCProgram!22860966
    WM/WMRVRequestID: 0
    WM/WMRVScheduleItemID: 0
    WM/WMRVQuality  : 3
    WM/WMRVOriginalSoftPrePadding: 420
    WM/WMRVOriginalSoftPostPadding: 180
    WM/WMRVHardPrePadding: 184
    WM/WMRVHardPostPadding: 0
    WM/WMRVBrandingName:
    WM/WMRVBrandingImageID:
    WM/WMRVATSCContent: 0
    WM/WMRVDTVContent: 1
    WM/WMRVHDContent: 0
    WM/WMRVEndTime  : 1881098
    WM/WMRVBitrate  : 1844674
    WM/WMRVKeepUntil: 184
    WM/WMRVActualSoftPrePadding: 412
    WM/WMRVActualSoftPostPadding: 180
    WM/WMRVContentProtected: 0
    WM/WMRVContentProtectedPercent: 0
    WM/WMRVExpirationDate: 1844674
    WM/WMRVExpirationSpan: 1844674
    WM/WMRVInBandRatingSystem: 255
    WM/WMRVInBandRatingLevel: 255
    WM/WMRVInBandRatingAttributes: 0
    WM/WMRVWatched  : 0
    WM/MediaThumbType: 3
    WM/MediaThumbWidth: 352
    WM/MediaThumbHeight: 281
    WM/MediaThumbStride: 105
    WM/MediaThumbRet: 0
    WM/MediaThumbRatingSystem: 255
    WM/MediaThumbRatingLevel: 255
    WM/MediaThumbRatingAttributes: 0
    WM/MediaThumbAspectRatioX: 16
    WM/MediaThumbAspectRatioY: 9
    WM/MediaThumbTimeStamp: 1844674
    WMFSDKVersion   : 12.0.7600.16385
    WMFSDKNeeded    : 0.0.0.0000
    VBR Peak        : 159
    IsVBR           : 1
    title           : Afrikas Sch+ñtze
    author          :
    copyright       :
    comment         :
  Duration: 00:49:51.70, start: 0.000000, bitrate: 7427 kb/s
    Stream #0.0(ger): Audio: mp2, 48000 Hz, 2 channels, s16, 255 kb/s
    Stream #0.1(ger): Invalid Codec type -1
    Stream #0.2(ger): Video: mpeg2video, yuv420p, 704x480 [PAR 64:45 DAR 1408:67
5], 15000 kb/s, 25.28 fps, 25 tbr, 1k tbn, 50 tbc
At least one output file must be specified


For the wtv-file, it returns this:
  Code:
FFmpeg version SVN-r23012, Copyright (c) 2000-2010 the FFmpeg developers
  built on May  3 2010 19:05:24 with gcc 3.4.5 (mingw-vista special r3)
  configuration: --enable-static --disable-shared --disable-ffplay --disable-ffs
erver --enable-memalign-hack --enable-libmp3lame --enable-w32threads --extra-ldf
lags=-L/static/lib --extra-cflags=-I/static/include
  libavutil     50.15. 0 / 50.15. 0
  libavcodec    52.66. 0 / 52.66. 0
  libavformat   52.62. 0 / 52.62. 0
  libavdevice   52. 2. 0 / 52. 2. 0
  libswscale     0.10. 0 /  0.10. 0
[NULL @ 00feba10]Format detected only with low score of 25, misdetection possibl
e!
[mp3 @ 00fedc80]Header missing
    Last message repeated 41 times
[mp3 @ 00feba10]max_analyze_duration reached
[mp3 @ 00feba10]Estimating duration from bitrate, this may be inaccurate
Input #0, mp3, from 'i:\tv-aufz-convert\weltspiegel.wtv':
  Duration: 23:20:25.34, start: 0.000000, bitrate: 256 kb/s
    Stream #0.0: Audio: mp3, 48000 Hz, 2 channels, s16, 256 kb/s
At least one output file must be specified
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Sep 20, 2010 6:18 pm

Re: WTV and/or DVR-MS files?

The first one should be added to your library. What is the file's extension? It looks like mpeg2 video in asf container, so if your device cannot play it it should be possible to transcode it.
The second one seems to be a mp3 file - is that correct or is FFmpeg just playing games here?
<<

brotherjohn

Streaming enthusiast

Posts: 31

Joined: Thu Sep 16, 2010 3:30 pm

Post Tue Sep 21, 2010 4:13 pm

Re: WTV and/or DVR-MS files?

File extension of second one is wtv. This is a recorded file from TV (DVB-S) of the windows media center (Windows 7 32 Bit).
File extension of the first one is dvr-ms. This is converted from the first one with the built-in function of Windows 7: Right-click on the file and via context menu I've chosen 'Convert to dvr-ms'. I guess, it's the format of recorded TV-files of Windows Vista, too.

My client devie is a Sony TV Bravia KDL-40EX505.
<<

NickF

Serviio newbie

Posts: 6

Joined: Sun Dec 05, 2010 10:40 am

Post Wed Dec 08, 2010 6:41 pm

Re: WTV and/or DVR-MS files?

Hi, I'm new here but am glad to have found Serviio. I have just bought a new Sony KDL-32EX713 Bravia TV with DNLA. I use a couple of Windows 7 PCs to record TV using Media Center and really want to be able to play this via the new Sony using DNLA. Windows Media Player does a very poor job of transcoding these .wtv files. Can I add my name to the list of those wanting transcoding of .wtv files on Serviio? Is there a planned date for this?

Nick.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Thu Dec 09, 2010 12:21 am

Re: WTV and/or DVR-MS files?

can you provide a ffmpeg -i <WTV FILE>
<<

NickF

Serviio newbie

Posts: 6

Joined: Sun Dec 05, 2010 10:40 am

Post Thu Dec 09, 2010 7:34 am

Re: WTV and/or DVR-MS files?

Hi Zip, there is an ffmpeg -i from brotherjohn in this thread. I will try to produce another one today but don't know how yet!

Nick.
<<

NickF

Serviio newbie

Posts: 6

Joined: Sun Dec 05, 2010 10:40 am

Post Thu Dec 09, 2010 5:35 pm

Re: WTV and/or DVR-MS files?

I have produced an ffmpeg output:

c:\>ffmpeg.exe -i "g:\corrie.wtv"
FFmpeg version SVN-r23012, Copyright (c) 2000-2010 the FFmpeg developers
built on May 3 2010 19:05:24 with gcc 3.4.5 (mingw-vista special r3)
configuration: --enable-static --disable-shared --disable-ffplay --disable-ffs
erver --enable-memalign-hack --enable-libmp3lame --enable-w32threads --extra-ldf
lags=-L/static/lib --extra-cflags=-I/static/include
libavutil 50.15. 0 / 50.15. 0
libavcodec 52.66. 0 / 52.66. 0
libavformat 52.62. 0 / 52.62. 0
libavdevice 52. 2. 0 / 52. 2. 0
libswscale 0.10. 0 / 0.10. 0
[NULL @ 012db9d0]Format detected only with low score of 25, misdetection possibl
e!
[mp3 @ 012ddbe0]Header missing
Last message repeated 36 times
[mp3 @ 012db9d0]max_analyze_duration reached
[mp3 @ 012db9d0]Estimating duration from bitrate, this may be inaccurate
Input #0, mp3, from 'g:\corrie.wtv':
Duration: 12:20:00.64, start: 0.000000, bitrate: 192 kb/s
Stream #0.0: Audio: mp1, 48000 Hz, 2 channels, s16, 192 kb/s

I don't think this is going to help as there is no video information included. I think your best bet is to record a .wtv yourself using Media Center and try it out.

Nick
Last edited by NickF on Thu Dec 09, 2010 5:47 pm, edited 1 time in total.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Thu Dec 09, 2010 5:44 pm

Re: WTV and/or DVR-MS files?

attachment is missing.
<<

NickF

Serviio newbie

Posts: 6

Joined: Sun Dec 05, 2010 10:40 am

Post Thu Dec 09, 2010 5:51 pm

Re: WTV and/or DVR-MS files?

What attachment is needed? I have included the ffmpeg output above.

Nick.
<<

NickF

Serviio newbie

Posts: 6

Joined: Sun Dec 05, 2010 10:40 am

Post Fri Dec 10, 2010 7:19 pm

Re: WTV and/or DVR-MS files?

Is there another tool to find more info about these wtv files as ffmpeg doesn't seem able to decode them.

Nick.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Fri Dec 10, 2010 7:44 pm

Re: WTV and/or DVR-MS files?

Hmm... so video track. Serviio will not recognize this file, I'm affraid. Until FFmpeg provide support for this.
<<

NickF

Serviio newbie

Posts: 6

Joined: Sun Dec 05, 2010 10:40 am

Post Fri Dec 10, 2010 8:50 pm

Re: WTV and/or DVR-MS files?

How about using the Win 7 wtv to dvrms conversion service to convert the file first then use ffmpeg to do the mpeg2 conversion for streaming to the target device. The dvrms file would need to be deleted after creation of the mpeg2 file. Is this possible?

Nick.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Sat Dec 11, 2010 12:00 am

Re: WTV and/or DVR-MS files?

t5he dvr-ms file streaming will be possible, the other one probably not. Don't forget this SW runs on many OSes, not just Windows.
<<

jasonparekh

Serviio newbie

Posts: 3

Joined: Sat Jan 22, 2011 4:44 am

Post Sat Jan 22, 2011 4:50 am

Re: WTV and/or DVR-MS files?

Looks like ffmpeg is on the verge of getting WTV support. The builds at http://ffmpeg.arrozcru.org/autobuilds/ support this container:

C:\Program Files\Serviio\lib>ffmpeg -i "D:\Recorded TV\$..! My Dad Says_WGCLDT_2
010_10_21_20_31_00.wtv"
FFmpeg version SVN-r26400, Copyright (c) 2000-2011 the FFmpeg developers
built on Jan 18 2011 04:07:05 with gcc 4.4.2
configuration: --enable-gpl --enable-version3 --enable-libgsm --enable-libvorb
is --enable-libtheora --enable-libspeex --enable-libmp3lame --enable-libopenjpeg
--enable-libschroedinger --enable-libopencore_amrwb --enable-libopencore_amrnb
--enable-libvpx --disable-decoder=libvpx --arch=x86 --enable-runtime-cpudetect -
-enable-libxvid --enable-libx264 --enable-librtmp --extra-libs='-lrtmp -lpolarss
l -lws2_32 -lwinmm' --target-os=mingw32 --enable-avisynth --enable-w32threads --
cross-prefix=i686-mingw32- --cc='ccache i686-mingw32-gcc' --enable-memalign-hack

libavutil 50.36. 0 / 50.36. 0
libavcore 0.16. 1 / 0.16. 1
libavcodec 52.108. 0 / 52.108. 0
libavformat 52.93. 0 / 52.93. 0
libavdevice 52. 2. 3 / 52. 2. 3
libavfilter 1.74. 0 / 1.74. 0
libswscale 0.12. 0 / 0.12. 0
[mpeg2video @ 02852770] mpeg_decode_postinit() failure
Last message repeated 11 times
[wtv @ 003fbd40] Estimating duration from bitrate, this may be inaccurate
Input #0, wtv, from 'D:\Recorded TV\$..! My Dad Says_WGCLDT_2010_10_21_20_31_00.
wtv':
Duration: 00:07:28.23, start: 1.917454, bitrate: 65394 kb/s
Stream #0.0[0x20](eng): Audio: ac3, 48000 Hz, 5.1, s16, 448 kb/s
Stream #0.1[0x21]: Video: mpeg2video, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9],
65000 kb/s, 57.22 fps, 29.97 tbr, 10000k tbn, 59.94 tbc
Stream #0.2[0x22]: Subtitle: [0][0][0][0] / 0x0000
At least one output file must be specified


I've dropped this ffmpeg version into "Serviio\lib" and added my "D:\Recorded TV" folder to Serviio's list. Unfortunately, the videos still do not get picked up. Is there anything hard-coded in Serviio that would prevent it from attempting to index the .WTV files? I even tried naively renaming the extension to .AVI in hopes that Serviio would index, but no luck.

Is Serviio open source? I'd be willing to get WTV supported.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Sat Jan 22, 2011 11:22 am

Re: WTV and/or DVR-MS files?

Ah cool. 0.5 comes with very recent ffmpeg build so hopefully it's in there. Do you have a short example I could download to try it out?
<<

jasonparekh

Serviio newbie

Posts: 3

Joined: Sat Jan 22, 2011 4:44 am

Post Sat Jan 22, 2011 1:46 pm

Re: WTV and/or DVR-MS files?

Yup, grab a sample at http://goo.gl/XwzJi .
<<

jasonparekh

Serviio newbie

Posts: 3

Joined: Sat Jan 22, 2011 4:44 am

Post Sat Jan 22, 2011 5:43 pm

Re: WTV and/or DVR-MS files?

Good news, I was able to playback both OTA HD recordings and cable HW MPEG2-encoded recordings. My approach is very proof-of-conceptish, so I'd still like official support :)

My steps to test all this out:
- Get ffmpeg from http://binaryinspirations.blogspot.com/ ... pport.html instead of the link I gave in the previous post. This version fixes/works around the "non-monotone timestamps". We will call this ffmpeg-real.exe.
- Create a ffmpeg.exe proxy that adds additional command-line flags before it delegates to ffmpeg-real.exe. It also re-writes the response from ffmpeg-real.exe to Serviio. The additional flags are "-fflags genpts", and the re-writing was replacing the "wtv" container with "matroska,webm".
- Use the Samsung C-series TV/player profile, since it calls ffmpeg with the flags to change the container to mpeg2ts instead of mkv.
- Rename the .wtv file to .mpg, just so it passes Serviio's file name filter.

I hope this helps, and I look forward to official support :) (The renaming from .wtv to .mpg is preventing me from actually using this with all my recordings, since I don't think Windows Media Center will like my renaming the files underneath it)
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Sat Jan 22, 2011 10:09 pm

Re: WTV and/or DVR-MS files?

I've tried your example with the ffmpeg I have and it successfully remuxed into mpegts. I'll include the support for a next version.

https://bitbucket.org/xnejp03/serviio/i ... -wtv-files
Next

Return to Feature requests

Who is online

Users browsing this forum: No registered users and 30 guests

cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.