FAQ  •  Register  •  Login

Samsung TV plays some .wtv files others fail

<<

c957031

Serviio newbie

Posts: 5

Joined: Sat Jul 14, 2012 8:59 pm

Location: Copenhagen, Denmark

Post Sat Jul 14, 2012 9:37 pm

Samsung TV plays some .wtv files others fail

Serviio Wizards!!!

You guys have created an awesome piece of sw, thank you for that! :D

My setup is like this: I record DVB-T tv with a Windows 7 Media Center and store the files on a Linux (Ubuntu 12.04 LTS) server where I have my Serviio running. The TV Samsung UE32D6207 plays some files while others fail. When failing this is what ends up in the logs:

2012-07-14 22:52:43,129 WARN [ProcessExecutor] Process ffmpeg has a return code of 1! This is a possible error.
2012-07-14 22:52:43,582 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)

Please find attached a text file with "media-info" on my test samples with both working and non-working examples:
(The above error was thrown by playing the file:
L:\\Bamses Lillebitte Billedbog_DR Ramasjang_2012_02_12_17_38_00.wtv
But this file worked fine:
L:\\Den travle by_DR1_2012_06_08_07_33_00.wtv)

I recognize that some of the params in the media-info are different from the files that work to the files that fail, but I have no idea how to configure my way out of it.

ANY ideas would be highly appreciated.

/David

PS: Please excuse me if this has already been answered before, I have spent some time browsing the forums without finding the clue.
Attachments
test_files.txt
(7.15 KiB) Downloaded 416 times
Samsung TV UE32D6207
Samsung GALAXY TAB 7
Ubuntu 12.04 (LTS) server with Serviio Version 1.0.1
FFmpeg, built from GIT Aug 29 2012
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Tue Jul 17, 2012 1:26 pm

Re: Samsung TV plays some .wtv files others fail

THere is some improvement on wtv files playback in 1.0, try it when it's out (couple of weeks max)
<<

c957031

Serviio newbie

Posts: 5

Joined: Sat Jul 14, 2012 8:59 pm

Location: Copenhagen, Denmark

Post Tue Jul 17, 2012 9:22 pm

Re: Samsung TV plays some .wtv files others fail

Thank you Zip

I got a little further, found the call to ffmpeg in the log. When run from a shell, it fails

Current (fails):
ffmpeg -i "/media/store/video/mp4/test/Bamses Lillebitte Billedbog_DR Ramasjang_2012_02_12_17_38_00.wtv" -y -async 1 -vcodec copy -vbsf h264_mp4toannexb -fflags +genpts -acodec copy -map 0:2 -map 0:1 -sn -f mpegts /tmp/Serviio/transcoding-temp-240-MPEG2TS.stf
Output attached.
Since it states that "copy" is not an option I tried to insert other options, mpeg4 and libx264, these work

Working (command line issued in the shell):
ffmpeg -i "/media/store/video/mp4/test/Bamses Lillebitte Billedbog_DR Ramasjang_2012_02_12_17_38_00.wtv" -y -async 1 -vcodec mpeg4 -vbsf h264_mp4toannexb -fflags +genpts -acodec copy -map 0:2 -map 0:1 -sn -f mpegts /tmp/Serviio/transcoding-temp-240-MPEG2TS.stf
ffmpeg -i "/media/store/video/mp4/test/Bamses Lillebitte Billedbog_DR Ramasjang_2012_02_12_17_38_00.wtv" -y -async 1 -vcodec libx264 -vbsf h264_mp4toannexb -fflags +genpts -acodec copy -map 0:2 -map 0:1 -sn -f mpegts /tmp/Serviio/transcoding-temp-240-MPEG2TS.stf

How can I tell serviio to use these options? (edit the profile?) OR Is this a bad way to solve my problem ?

Thanks for any help

/David
Attachments
command_line_output.txt
(10.93 KiB) Downloaded 357 times
Samsung TV UE32D6207
Samsung GALAXY TAB 7
Ubuntu 12.04 (LTS) server with Serviio Version 1.0.1
FFmpeg, built from GIT Aug 29 2012
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Tue Jul 17, 2012 10:17 pm

Re: Samsung TV plays some .wtv files others fail

you can't change the parameters Serviio sends to FFmpeg. Wait for 1.0, hopefully it'll solve your problem.
<<

c957031

Serviio newbie

Posts: 5

Joined: Sat Jul 14, 2012 8:59 pm

Location: Copenhagen, Denmark

Post Wed Jul 18, 2012 10:45 am

Re: Samsung TV plays some .wtv files others fail

Thanks for your answer, I cannot wait for 1.0.

If you need some beta testing assistance I would gladly participate, especially around .wtv stuff.

In the mean time I made a minor hack to my ffmpeg (I had the source from git already) that would manipulate the command line arguments to fit my needs. Now I only have one problem left, but that does not belong in this thread. :)

/david
Samsung TV UE32D6207
Samsung GALAXY TAB 7
Ubuntu 12.04 (LTS) server with Serviio Version 1.0.1
FFmpeg, built from GIT Aug 29 2012
<<

c957031

Serviio newbie

Posts: 5

Joined: Sat Jul 14, 2012 8:59 pm

Location: Copenhagen, Denmark

Post Mon Aug 20, 2012 9:05 am

Re: Samsung TV plays some .wtv files others fail

HMMMRPFF

The upgrade to 1.0 and then 1.0.1 didn't do the trick for me.
I think in order to compare my result with everybody else's, I need to know which version of ffmpeg you recommend for serviio to perform best.
My ffmpeg is one I got from git about a month back:

ffmpeg version git-2012-07-06-60270eb
built on Jul 18 2012 10:44:22 with gcc 4.6.3
configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-version3 --enable-x11grab
libavutil 51. 64.100 / 51. 64.100
libavcodec 54. 33.100 / 54. 33.100
libavformat 54. 15.100 / 54. 15.100
libavdevice 54. 1.100 / 54. 1.100
libavfilter 3. 0.101 / 3. 0.101
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 15.100 / 0. 15.100
libpostproc 52. 0.100 / 52. 0.100


Anybody who can tell me what ffmpeg you are happy with and if possible where to get it (linux ubuntu compatible)

/David
Samsung TV UE32D6207
Samsung GALAXY TAB 7
Ubuntu 12.04 (LTS) server with Serviio Version 1.0.1
FFmpeg, built from GIT Aug 29 2012
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Tue Aug 28, 2012 11:26 pm

Re: Samsung TV plays some .wtv files others fail

You can download the sources on serviio.org

Return to Samsung

Who is online

Users browsing this forum: No registered users and 7 guests

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