FAQ  •  Register  •  Login

.WTV file transcoding - occasional issue

<<

purevector

Serviio newbie

Posts: 5

Joined: Thu Jan 05, 2012 7:30 am

Post Thu Jan 05, 2012 7:44 am

.WTV file transcoding - occasional issue

I am trying to stream OTA HD signals from my PC to a WDTV Live. The files are created by Win7 WMC. Generally, everything works fine, but occasionally some files do not transcode. I used the debug log to look at the ffmpeg command and I ran it in a command prompt. I found that occasionally I got an error relating to genpts. After some searching around this forum and the web, I found that the solution is to add the following flags to the ffmpeg command line; "-fflags +genpts".

This problem was apparently fixed in a previous version according to this tread viewtopic.php?f=3&t=665&start=10, but my 6.0.1 does not include those flags. Could it be possible to add them? Also, in the interim, I wanted to use a .bat file to just add the flags manually, but since Serviio specifically calls ffmpeg.exe, I cannot do that. I tried to compile the bat, but that didn't seem to work well. Does anyone have a solution?
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Thu Jan 05, 2012 8:36 am

Re: .WTV file transcoding - occasional issue

You could try this:

added this on ServiioService.exe.vmoptions:
-Dffmpeg.location=C:\Serviio\lib\ffmpeg.exe -fflags +genpts

you probably have to change the ffmpeg.exe path
Illico
Sony 2010 KDL-46EX501 | BDP-S373 | SMP-N100 | Windows 8-i7 | Network DD HD-CE1.5TLU2 | Livebox2-UHD86 | ServiiDroid | ServiiGo | BubbleUPnP
Serviio beta tester - Moderator
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Thu Jan 05, 2012 10:00 am

Re: .WTV file transcoding - occasional issue

I did not find this option on ffmpeg documention, could you point me?
Illico
Sony 2010 KDL-46EX501 | BDP-S373 | SMP-N100 | Windows 8-i7 | Network DD HD-CE1.5TLU2 | Livebox2-UHD86 | ServiiDroid | ServiiGo | BubbleUPnP
Serviio beta tester - Moderator
<<

purevector

Serviio newbie

Posts: 5

Joined: Thu Jan 05, 2012 7:30 am

Post Thu Jan 05, 2012 11:13 pm

Re: .WTV file transcoding - occasional issue

I got the tip from the thread I mentioned before, as well as various webpages. The error this flag solves is: first pts value must set av_interleaved_write_frame(): Operation not permitted.

Your suggestion about ServiioService.exe.vmoptions helped me solve the problem. I changed the target to a batch file I created called ffmpeg2.bat. The batch file called ffmpeg with the -fflags genpts flags. This has seemed to solve my problem, but if it was included in the official release, I'm sure it will help others.
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Mon Jan 09, 2012 1:14 pm

Re: .WTV file transcoding - occasional issue

purevector wrote:Your suggestion about ServiioService.exe.vmoptions helped me solve the problem.
I changed the target to a batch file I created called ffmpeg2.bat. The batch file called ffmpeg with the -fflags genpts flags.
This has seemed to solve my problem, but if it was included in the official release, I'm sure it will help others.

Could you provide your ffmpeg2.bat file please?
Illico
Sony 2010 KDL-46EX501 | BDP-S373 | SMP-N100 | Windows 8-i7 | Network DD HD-CE1.5TLU2 | Livebox2-UHD86 | ServiiDroid | ServiiGo | BubbleUPnP
Serviio beta tester - Moderator
<<

purevector

Serviio newbie

Posts: 5

Joined: Thu Jan 05, 2012 7:30 am

Post Mon Jan 09, 2012 2:58 pm

Re: .WTV file transcoding - occasional issue

It's very simple:

ffmpeg.exe -fflags genpts %*
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Mon Jan 09, 2012 3:32 pm

Re: .WTV file transcoding - occasional issue

purevector wrote:It's very simple:

:D yes simple.
It seems that with the latest ffmpeg 0.9 version, command order is now important. What is your ffmpeg version?
Sony Aspect Ratio workaround doesn't work with latest ffmpeg version: viewtopic.php?f=11&t=2956&start=30#p27617
Illico
Sony 2010 KDL-46EX501 | BDP-S373 | SMP-N100 | Windows 8-i7 | Network DD HD-CE1.5TLU2 | Livebox2-UHD86 | ServiiDroid | ServiiGo | BubbleUPnP
Serviio beta tester - Moderator
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Jan 09, 2012 3:52 pm

Re: .WTV file transcoding - occasional issue

I'll be releasing a patch release soon which will have this added in. Join the beta group if you want to test this issue.
<<

uspino

Serviio newbie

Posts: 4

Joined: Sat Jan 28, 2012 1:40 pm

Post Sat Feb 04, 2012 12:53 am

Re: .WTV file transcoding - occasional issue

I'm trying to stream WTV files to my WDTV Live. It looks like it tries to read the files but after 15 seconds I get the "file not supported" message. I hace selected the WDTV profile. I'm runing 0.6.2

Is there something I'm doing wrong? I actually bought the WDTV Live after reading this thread under the impression that WTV files could be streamed from Serviio. They stream great to my Samsung Smart TV.

Any help?


UPDATE: I guess I helped myself. I solved the problem by changing:

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

to

<Video targetContainer="mpeg">
<Matches container="wtv" />

in the WDTV Live section of the Profiles.xlm file. What a difference two letters make. Now I have WTV streaming working beautifully. Thanks Serviio.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Sat Feb 04, 2012 12:17 pm

Re: .WTV file transcoding - occasional issue

thanks, will be included in the next release
<<

PMI

User avatar

DLNA master

Posts: 156

Joined: Tue Jan 03, 2012 3:32 am

Location: Milwaukee, Wisconsin

Post Sun Feb 05, 2012 4:06 pm

Re: .WTV file transcoding - occasional issue

Just as an aside, Panasonic suggested to me transcoding wtv files to MPEG-PS and not MPEG-TS for their devices.
(Had that discussion with new Panasonic profile Cerberus was kindly working on). This was added to the profile to solve that issue:

<!-- Remux WTV files to MPEG-PS with no transcoding-->
<Video targetContainer="mpeg">
<Matches container="wtv" />
</Video>


Since it also affects WDTV Live, it may really be a general issue, and not specific to one family of devices.

I am wondering now, does this also affect files recorded as wtv in WMC, and then converted to dvr-ms?
Peter
Beta Tester Group
Wiki | FAQ

Panasonic Viera TC-L32E3 LCD | Panasonic DMP-BDT210 | Windows 7 |
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

Cerberus

User avatar

DLNA master

Posts: 4114

Joined: Sun Jan 02, 2011 5:20 pm

Location: Reading, UK

Post Sun Feb 05, 2012 8:12 pm

Re: .WTV file transcoding - occasional issue

yep i can confirm that WTV files should be remuxed to MpegPS and not TS as ffmpeg is having issue with muxing to TS at the current time, i saw a bug ticket for this on there site but i forget exactly were.
Phil Bennett
Beta Tester Group
Wiki | FAQ

Samsung LE40C750 LCD | Samsung BD-C5900 | Sony PS3 | Windows 7 |
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging

Return to Transcoding

Who is online

Users browsing this forum: No registered users and 27 guests

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