Page 1 of 1

wtv file on Samsung UE 37C6000

PostPosted: Thu Dec 29, 2011 9:08 pm
by fabiotosi2004
I have installed Serviio on Windows 7
I cannot see the .wtv files on my Samsung UE 37C6000 LED Full HD 100Hz: format not supported!

This solution viewtopic.php?f=7&t=3986&p=26267&hilit=wtv#p26267 doesn't work

Any ideas?

Re: wtv file on Samsung UE 37C6000

PostPosted: Thu Dec 29, 2011 9:25 pm
by moltra
Please post information on the file that will not play (see signature)

Re: wtv file on Samsung UE 37C6000

PostPosted: Fri Dec 30, 2011 5:10 pm
by fabiotosi2004
Sorry. How can see the signature?

Re: wtv file on Samsung UE 37C6000

PostPosted: Fri Dec 30, 2011 5:25 pm
by Cerberus
http://wiki.serviio.org/doku.php?id=file_np <--- there is link moltra is referring to

Re: wtv file on Samsung UE 37C6000

PostPosted: Wed Jan 04, 2012 11:30 am
by fabiotosi2004
This is the output


C:\Program Files (x86)\Serviio\lib>ffmpeg -i C:\Windows\Temp\test.wtv
ffmpeg version N-31480-g8bc3a48, Copyright (c) 2000-2011 the FFmpeg developers
built on Jul 14 2011 23:37:53 with gcc 4.4.2
configuration: --enable-static --disable-shared --disable-ffplay --disable-ffs
erver --enable-memalign-hack --enable-libmp3lame --enable-librtmp --extra-libs='
-lrtmp -lpolarssl -lws2_32 -lwinmm' --arch=x86 --enable-runtime-cpudetect --enab
le-pthreads --target-os=mingw32 --cross-prefix=i686-mingw32- --pkg-config=pkg-co
nfig
libavutil 51. 11. 0 / 51. 11. 0
libavcodec 53. 8. 0 / 53. 8. 0
libavformat 53. 6. 0 / 53. 6. 0
libavdevice 53. 2. 0 / 53. 2. 0
libavfilter 2. 25. 0 / 2. 25. 0
libswscale 2. 0. 0 / 2. 0. 0
[mp2 @ 02c770e0] Header missing
[mpeg2video @ 02c8a140] mpeg_decode_postinit() failure
Last message repeated 1 times
[wtv @ 016bc7a0] max_analyze_duration 5000000 reached at 5016000
Input #0, wtv, from 'C:\Windows\Temp\test.wtv':
Metadata:
WM/MediaClassPrimaryID: db9830bd-3ab3-4fab-8a371a995f7ff74
WM/MediaClassSecondaryID: ba7f258a-62f7-47a9-b21f4651c42a000
Title : 61┬░ Festival della Canzone Italiana
WM/SubTitleDescription: Show. 61┬░ Festival della Canzone Italiana
WM/OriginalReleaseTime: 0
WM/MediaCredits : ;;;
service_provider: Rai 1
service_name : Rai 1
WM/MediaNetworkAffiliation: Rai 1
WM/MediaOriginalChannel: 1
WM/MediaOriginalChannelSubNumber: 0
WM/MediaOriginalBroadcastDateTime: 0001-01-01T00:00:00Z
WM/MediaOriginalRunTime: 77947064980
WM/MediaIsStereo: false
WM/MediaIsRepeat: false
WM/MediaIsLive : false
WM/MediaIsTape : false
WM/MediaIsDelay : false
WM/MediaIsSubtitled: false
WM/MediaIsMovie : false
WM/MediaIsPremiere: false
WM/MediaIsFinale: false
WM/MediaIsSAP : false
WM/MediaIsSport : false
WM/Provider : MediaCenterDefault
WM/VideoClosedCaptioning: false
WM/WMRVEncodeTime: 2011-02-17 21:38:04
WM/WMRVSeriesUID: !GenericSeries!61┬░ Festival della Canzone Italiana
WM/WMRVServiceID: !Generated!14dc1c53c7c74dce9765aecd26a61323
WM/WMRVProgramID: !Loaders!Glid!Programs!318:1:3401!51534
WM/WMRVRequestID: 0
WM/WMRVScheduleItemID: 0
WM/WMRVQuality : 3
WM/WMRVOriginalSoftPrePadding: 7802
WM/WMRVOriginalSoftPostPadding: 180
WM/WMRVHardPrePadding: -7682
WM/WMRVHardPostPadding: 0
WM/WMRVATSCContent: false
WM/WMRVDTVContent: true
WM/WMRVHDContent: false
Duration : 30898961230
WM/WMRVEndTime : 2011-02-17 22:29:34
WM/WMRVBitrate : 5.611597
WM/WMRVKeepUntil: -1
WM/WMRVActualSoftPrePadding: 2398
WM/WMRVActualSoftPostPadding: -4524
WM/WMRVContentProtected: false
WM/WMRVContentProtectedPercent: 0
WM/WMRVExpirationSpan: 9223372036854775807
WM/WMRVInBandRatingSystem: 255
WM/WMRVInBandRatingLevel: 255
WM/WMRVInBandRatingAttributes: 0
WM/WMRVWatched : false
WM/MediaThumbType: 2
Duration: 00:51:28.70, start: 7472.735911, bitrate: 5613 kb/s
Stream #0.0[0x1f](ita): Audio: mp2, 48000 Hz, stereo, s16, 192 kb/s
Stream #0.1[0x20](oth): Audio: mp2, 48000 Hz, mono, s16, 64 kb/s
Stream #0.2[0x21]: Video: mpeg2video (Main), yuv420p, 720x576 [PAR 64:45 DAR
16:9], 10000 kb/s, 25.21 fps, 25 tbr, 10000k tbn, 50 tbc
Stream #0.3[0x22](ita): Subtitle: [0][0][0][0] / 0x0000
Stream #0.4[0x0]: Attachment: mjpeg
Metadata:
title : TV Thumbnail
At least one output file must be specified


Thanks
Fabio

Re: wtv file on Samsung UE 37C6000

PostPosted: Wed Jan 04, 2012 12:36 pm
by Illico
Could you enable serviio detailed logging ? (see signature link)
Then could you open the detailed logging file and found the ffmpeg command line used to transcode your wtv file? (post here the command line you found)
And could you try locally the same command line in a windows terminal and check the log resulting? (post here the log result)

Re: wtv file on Samsung UE 37C6000

PostPosted: Fri Jan 06, 2012 10:07 am
by fabiotosi2004
Hi

Here the output


serviio.log
============================================
  Code:
    2012-01-06 10:42:56,100 DEBUG [AbstractTranscodingDeliveryEngine] No suitable transcoding job exists yet, start one for client 'IPAddress=/192.168.0.3, Profile=Samsung TV / player (C/D-series)'
    2012-01-06 10:42:56,100 DEBUG [MediaItemDAOImpl] Getting file of media item 636
    2012-01-06 10:42:56,100 DEBUG [FFMPEGWrapper] Invoking FFmpeg to transcode video file: C:\Users\Public\Recorded TV\test.wtv
    2012-01-06 10:42:56,100 DEBUG [ProcessExecutor] Starting C:\Program Files (x86)\Serviio\bin\\..\lib/ffmpeg.exe -i C:\Users\Public\Recorded TV\test.wtv -y -async 1 -vcodec copy -acodec copy -map 0:2 -map 0:0 -sn -f mpegts C:\Users\Nicoletta\Temp\Serviio\transcoding-temp-636-MPEG2TS.stf
    2012-01-06 10:42:56,300 WARN  [ProcessExecutor] Process cmd has a return code of 1! This is a possible error.
    2012-01-06 10:42:56,300 DEBUG [TranscodingJobListener] Transcoding finished; successful: false
    2012-01-06 10:42:56,480 DEBUG [DiscoveryAdvertisementNotifier] Will advertise again in 00:01:00
    2012-01-06 10:42:56,600 ERROR [ResourceTransportRequestHandler] Error while processing resource, sending back 500 error. Message: FFmpeg execution failed
    java.io.IOException: FFmpeg execution failed
       at org.serviio.delivery.resource.transcode.FileBasedTranscodingDeliveryStrategy.createInputStream(FileBasedTranscodingDeliveryStrategy.java:47)
       at org.serviio.delivery.resource.transcode.AbstractTranscodingDeliveryEngine.retrieveTranscodedResource(AbstractTranscodingDeliveryEngine.java:129)
       at org.serviio.delivery.resource.AbstractDeliveryEngine.deliver(AbstractDeliveryEngine.java:96)
       at org.serviio.delivery.MediaResourceRetrievalStrategy.retrieveResource(MediaResourceRetrievalStrategy.java:121)
       at org.serviio.upnp.webserver.ResourceTransportRequestHandler.handleRequest(ResourceTransportRequestHandler.java:116)
       at org.serviio.upnp.webserver.AbstractRequestHandler.handle(AbstractRequestHandler.java:54)
       at org.apache.http.protocol.HttpService.doService(HttpService.java:293)
       at org.serviio.upnp.webserver.ServiioHttpService.doService(ServiioHttpService.java:58)
       at org.apache.http.protocol.HttpService.handleRequest(HttpService.java:212)
       at org.serviio.upnp.webserver.WebServer$WorkerThread.run(WebServer.java:187)
    2012-01-06 10:42:59,990 DEBUG [WebServer] Incoming connection from /192.168.0.3:50482
    2012-01-06 10:42:59,990 DEBUG [ServiceControlRequestHandler] ServiceControl request received for action '"urn:schemas-upnp-org:service:ContentDirectory:1#X_GetFeatureList"' from 192.168.0.3:
    2012-01-06 10:42:59,990 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.0.3
    2012-01-06 10:43:00,000 DEBUG [ServiceControlRequestHandler] Returning OK SOAP message



command line used to transcode (I think...)
================================================
  Code:
    C:\Program Files (x86)\Serviio\bin\\..\lib/ffmpeg.exe -i C:\Users\Public\Recorded TV\test.wtv -y -async 1 -vcodec copy -acodec copy -map 0:2 -map 0:0 -sn -f mpegts C:\Users\Nicoletta\Temp\Serviio\transcoding-temp-636-MPEG2TS.stf




log resulting using ffmpeg in windows terminal
================================================
  Code:
    C:\Program Files (x86)\Serviio\lib>ffmpeg.exe -i "C:\Users\Public\Recorded TV\te
    st.wtv" -y -async 1 -vcodec copy -acodec copy -map 0:2 -map 0:0 -sn -f mpegts C:
    \Users\Nicoletta\Temp\Serviio\transcoding-temp.stf

    ffmpeg version 0.9, Copyright (c) 2000-2011 the FFmpeg developers
      built on Dec 13 2011 20:46:11 with gcc 4.4.2
      configuration: --enable-static --disable-shared --disable-ffplay --disable-ffs
    erver --enable-memalign-hack --enable-libmp3lame --enable-librtmp --extra-libs='
    -lrtmp -lpolarssl -lws2_32 -lwinmm' --arch=x86 --enable-runtime-cpudetect --enab
    le-pthreads --target-os=mingw32 --cross-prefix=i686-mingw32- --pkg-config=pkg-co
    nfig
      libavutil    51. 32. 0 / 51. 32. 0
      libavcodec   53. 42. 0 / 53. 42. 0
      libavformat  53. 24. 0 / 53. 24. 0
      libavdevice  53.  4. 0 / 53.  4. 0
      libavfilter   2. 53. 0 /  2. 53. 0
      libswscale    2.  1. 0 /  2.  1. 0
    [mp2 @ 02c66c80] Header missing
    [mpeg2video @ 0151d3e0] mpeg_decode_postinit() failure
        Last message repeated 1 times
    Input #0, wtv, from 'C:\Users\Public\Recorded TV\test.wtv':
      Metadata:
        WM/MediaClassPrimaryID: db9830bd-3ab3-4fab-8a371a995f7ff74
        WM/MediaClassSecondaryID: ba7f258a-62f7-47a9-b21f4651c42a000
        Title           : 61┬░ Festival della Canzone Italiana
        WM/SubTitleDescription: Show. 61┬░ Festival della Canzone Italiana
        WM/OriginalReleaseTime: 0
        WM/MediaCredits : ;;;
        service_provider: Rai 1
        service_name    : Rai 1
        WM/MediaNetworkAffiliation: Rai 1
        WM/MediaOriginalChannel: 1
        WM/MediaOriginalChannelSubNumber: 0
        WM/MediaOriginalBroadcastDateTime: 0001-01-01T00:00:00Z
        WM/MediaOriginalRunTime: 77947064980
        WM/MediaIsStereo: false
        WM/MediaIsRepeat: false
        WM/MediaIsLive  : false
        WM/MediaIsTape  : false
        WM/MediaIsDelay : false
        WM/MediaIsSubtitled: false
        WM/MediaIsMovie : false
        WM/MediaIsPremiere: false
        WM/MediaIsFinale: false
        WM/MediaIsSAP   : false
        WM/MediaIsSport : false
        WM/Provider     : MediaCenterDefault
        WM/VideoClosedCaptioning: false
        WM/WMRVEncodeTime: 2011-02-17 21:38:04
        WM/WMRVSeriesUID: !GenericSeries!61┬░ Festival della Canzone Italiana
        WM/WMRVServiceID: !Generated!14dc1c53c7c74dce9765aecd26a61323
        WM/WMRVProgramID: !Loaders!Glid!Programs!318:1:3401!51534
        WM/WMRVRequestID: 0
        WM/WMRVScheduleItemID: 0
        WM/WMRVQuality  : 3
        WM/WMRVOriginalSoftPrePadding: 7802
        WM/WMRVOriginalSoftPostPadding: 180
        WM/WMRVHardPrePadding: -7682
        WM/WMRVHardPostPadding: 0
        WM/WMRVATSCContent: false
        WM/WMRVDTVContent: true
        WM/WMRVHDContent: false
        Duration        : 30898961230
        WM/WMRVEndTime  : 2011-02-17 22:29:34
        WM/WMRVBitrate  : 5.611597
        WM/WMRVKeepUntil: -1
        WM/WMRVActualSoftPrePadding: 2398
        WM/WMRVActualSoftPostPadding: -4524
        WM/WMRVContentProtected: false
        WM/WMRVContentProtectedPercent: 0
        WM/WMRVExpirationSpan: 9223372036854775807
        WM/WMRVInBandRatingSystem: 255
        WM/WMRVInBandRatingLevel: 255
        WM/WMRVInBandRatingAttributes: 0
        WM/WMRVWatched  : false
        WM/MediaThumbType: 2
      Duration: 00:51:28.70, start: 7472.735911, bitrate: 5613 kb/s
        Stream #0:0[0x1f](ita): Audio: mp2 (P[0][0][0] / 0x0050), 48000 Hz, stereo,
    s16, 192 kb/s
        Stream #0:1[0x20](oth): Audio: mp2 (P[0][0][0] / 0x0050), 48000 Hz, mono, s1
    6, 64 kb/s
        Stream #0:2[0x21]: Video: mpeg2video (Main), yuv420p, 720x576 [SAR 64:45 DAR
    16:9], 10000 kb/s, 26.25 fps, 25 tbr, 10000k tbn, 50 tbc
        Stream #0:3[0x22](ita): Subtitle: dvb_teletext
        Stream #0:4[0x0]: Attachment: mjpeg
        Metadata:
          title           : TV Thumbnail
    [mpegts @ 02ced340] muxrate VBR, pcr every 2 pkts, sdt every 200, pat/pmt every
    40 pkts
    Output #0, mpegts, to 'C:\Users\Nicoletta\Temp\Serviio\transcoding-temp.stf':
      Metadata:
        WM/MediaClassPrimaryID: db9830bd-3ab3-4fab-8a371a995f7ff74
        WM/MediaClassSecondaryID: ba7f258a-62f7-47a9-b21f4651c42a000
        Title           : 61┬░ Festival della Canzone Italiana
        WM/SubTitleDescription: Show. 61┬░ Festival della Canzone Italiana
        WM/OriginalReleaseTime: 0
        WM/MediaCredits : ;;;
        service_provider: Rai 1
        service_name    : Rai 1
        WM/MediaNetworkAffiliation: Rai 1
        WM/MediaOriginalChannel: 1
        WM/MediaOriginalChannelSubNumber: 0
        WM/MediaOriginalBroadcastDateTime: 0001-01-01T00:00:00Z
        WM/MediaOriginalRunTime: 77947064980
        WM/MediaIsStereo: false
        WM/MediaIsRepeat: false
        WM/MediaIsLive  : false
        WM/MediaIsTape  : false
        WM/MediaIsDelay : false
        WM/MediaIsSubtitled: false
        WM/MediaIsMovie : false
        WM/MediaIsPremiere: false
        WM/MediaIsFinale: false
        WM/MediaIsSAP   : false
        WM/MediaIsSport : false
        WM/Provider     : MediaCenterDefault
        WM/VideoClosedCaptioning: false
        WM/WMRVEncodeTime: 2011-02-17 21:38:04
        WM/WMRVSeriesUID: !GenericSeries!61┬░ Festival della Canzone Italiana
        WM/WMRVServiceID: !Generated!14dc1c53c7c74dce9765aecd26a61323
        WM/WMRVProgramID: !Loaders!Glid!Programs!318:1:3401!51534
        WM/WMRVRequestID: 0
        WM/WMRVScheduleItemID: 0
        WM/WMRVQuality  : 3
        WM/WMRVOriginalSoftPrePadding: 7802
        WM/WMRVOriginalSoftPostPadding: 180
        WM/WMRVHardPrePadding: -7682
        WM/WMRVHardPostPadding: 0
        WM/WMRVATSCContent: false
        WM/WMRVDTVContent: true
        WM/WMRVHDContent: false
        Duration        : 30898961230
        WM/WMRVEndTime  : 2011-02-17 22:29:34
        WM/WMRVBitrate  : 5.611597
        WM/WMRVKeepUntil: -1
        WM/WMRVActualSoftPrePadding: 2398
        WM/WMRVActualSoftPostPadding: -4524
        WM/WMRVContentProtected: false
        WM/WMRVContentProtectedPercent: 0
        WM/WMRVExpirationSpan: 9223372036854775807
        WM/WMRVInBandRatingSystem: 255
        WM/WMRVInBandRatingLevel: 255
        WM/WMRVInBandRatingAttributes: 0
        WM/WMRVWatched  : false
        WM/MediaThumbType: 2
        encoder         : Lavf53.24.0
        Stream #0:0: Video: mpeg2video, yuv420p, 720x576 [SAR 64:45 DAR 16:9], q=2-3
    1, 10000 kb/s, 26.25 fps, 90k tbn, 25 tbc
        Stream #0:1(ita): Audio: mp2 (P[0][0][0] / 0x0050), 48000 Hz, stereo, 192 kb
    /s
    Stream mapping:
      Stream #0:2 -> #0:0 (copy)
      Stream #0:0 -> #0:1 (copy)
    Press [q] to stop, [?] for help
    [mpegts @ 02ced340] first pts value must set
    av_interleaved_write_frame(): Operation not permitted

Re: wtv file on Samsung UE 37C6000

PostPosted: Fri Jan 06, 2012 10:23 am
by zip
try changing this in your C/D profile:

  Code:
<Video targetContainer="mpegts">
        <Matches container="wtv" />
</Video>

to

  Code:
<Video targetContainer="mpegts" targetVCodec="mpeg2video" forceVTranscoding="true">
        <Matches container="wtv" />
</Video>

Re: wtv file on Samsung UE 37C6000

PostPosted: Fri Jan 06, 2012 11:47 am
by fabiotosi2004
solved
your are great!
thanks

Re: wtv file on Samsung UE 37C6000

PostPosted: Fri Jan 06, 2012 1:50 pm
by purevector
I'd like to add my 2cents here. Although forcing transcoding does seem to solve the problem for most people with this error, I don't think its a good solution. There are many issues I have encountered with transcoding, some of which include forcing deinterlacing (ffmpeg does a much worse job than my TV) and not to mention high CPU load. Usually WTV files are generated by WMC when people record OTA TV. In North America anyway, these files are MPEG2 and either 720P or 1080i. In my neck of the woods, most are 1080i and use a huge amount of CPU time to transcode.

I have found a way to solve the "first pts value must set av_interleaved_write_frame(): Operation not permitted" error, and it is outlined in this thread: viewtopic.php?f=7&t=4606

It involves a little work, so it would be helpful if the fix was made official.

Re: wtv file on Samsung UE 37C6000

PostPosted: Fri Jan 06, 2012 2:10 pm
by zip
yes, I saw that and will fix it for a future version.

Re: wtv file on Samsung UE 37C6000

PostPosted: Fri Jan 06, 2012 2:26 pm
by purevector
That's great. I must say that the technical support for this software is top notch. Keep up the good work! :D