FAQ  •  Register  •  Login

D5520 transcoding issue

<<

psiho

Streaming enthusiast

Posts: 25

Joined: Thu Jun 30, 2011 10:59 pm

Post Sat Jul 16, 2011 11:20 pm

Re: D5520 transcoding issue

I have run manually a command found in log, used to transcode file:

  Code:
C:\Program Files (x86)\Serviio\bin\\..\lib/ffmpeg.exe -i D:\movies\MyMovie.mkv -y -threads 2 -vcodec mpeg2video -sameq -r 23.976 -g 15 -copyts -acodec copy -map 0:0 -map 0:1 -sn -f mpegts C:\Windows\TEMP\Serviio\transcoding-temp-27991-MPEG2TS.stf


... renamed it to .mpg, moved to stick and it played on my TV ok!

I also tried streaming same file from Serviio and it played ok on my TV too (streamed in native format!) here is log:

  Code:
2011-07-17 01:07:31,270 DEBUG [VideoDeliveryEngine] Delivering item '28055' for client 'IPAddress=/192.168.1.132, Profile=Samsung D5520'
2011-07-17 01:07:31,270 DEBUG [VideoDeliveryEngine] Delivering file 'transcoding-temp-27991-MPEG2TS.mpg' in native format


So, question remains, why my SAmsung D5520 reports "video codec not supported" :?:
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Sun Jul 17, 2011 4:20 pm

Re: D5520 transcoding issue

is the PC running Serviio strong enough for transcoding in real time? I get this message sometimes when I run Serviio in debug mode, which is slower. The TV probably times out the request and displays this message.
<<

psiho

Streaming enthusiast

Posts: 25

Joined: Thu Jun 30, 2011 10:59 pm

Post Sun Jul 17, 2011 9:29 pm

Re: D5520 transcoding issue

When I use above command to encode encode manually, dos prompt displays some stats and I get 30 fps there at start and it drops after several minutes to 25. I didn't go further. I hope I interpereted those ffmpeg stats correctly.

Server is relatively new and uncluttered: Pentium Dual core 2.6 Ghz (E5300) with Windows 7 64 bit and 2GB of memory. I guess it should be enough. How to be sure this is not the problem?
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Jul 18, 2011 12:21 pm

Re: D5520 transcoding issue

25 is not enough for real-time streaming, it'll be buffering quite a lot anyway. It might also take some time before ffmpeg starts producing some output. So I guess the PC is not strong enough. Is the video HD or SD?
<<

psiho

Streaming enthusiast

Posts: 25

Joined: Thu Jun 30, 2011 10:59 pm

Post Mon Jul 18, 2011 12:34 pm

Re: D5520 transcoding issue

video is HD, but video itself is 23,97 fps (if I remember correctly) so by those stats it should not bother my TV first minute or so?

Anyway, is there a way to be sure, in example somehow make it easier fro encoder, decrease transcoding resolution or bandwidth, so it goes up to 40, 50, 60 fps, leaving other settings sae. I guess this would proove it.

I manually reencode movies anyway, but this ability to transcode is a nice way to preview some files before I manualy do it.
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Mon Jul 18, 2011 12:41 pm

Re: D5520 transcoding issue

psiho wrote:...
Anyway, is there a way to be sure, in example somehow make it easier fro encoder, decrease transcoding resolution or bandwidth, so it goes up to 40, 50, 60 fps, leaving other settings sae. I guess this would proove it.

You can try to change the output resolution, but not sure the fps grows up...
C:\Program Files (x86)\Serviio\bin\\..\lib/ffmpeg.exe -i D:\movies\MyMovie.mkv -y -threads 2 -vcodec mpeg2video -sameq -r 23.976 -g 15 -s 720×576 -copyts -acodec copy -map 0:0 -map 0:1 -sn -f mpegts C:\Windows\TEMP\Serviio\transcoding-temp-27991-MPEG2TS.stf
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
<<

psiho

Streaming enthusiast

Posts: 25

Joined: Thu Jun 30, 2011 10:59 pm

Post Mon Jul 18, 2011 1:18 pm

Re: D5520 transcoding issue

can I change it in transcoding profile in Serviio? Changing it in ffmpeg cmd line can show me fps grows up or not, but will not proove anything about reasons TV refuses to play transcoded file.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Jul 18, 2011 1:32 pm

Re: D5520 transcoding issue

not in the profile, you'd have to find a SD content that needs to be transcoded as well
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Mon Jul 18, 2011 1:51 pm

Re: D5520 transcoding issue

psiho wrote:Can I change it in transcoding profile in Serviio?

Not yet for output resolution, I opened a feature request ticket for future: https://bitbucket.org/xnejp03/serviio/i ... n-renderer
But you can change the output maximum video bitrate with "maxVBitrate" option.

psiho wrote:Changing it in ffmpeg cmd line can show me fps grows up or not, but will not proove anything about reasons TV refuses to play transcoded file.


According to your previous post:
viewtopic.php?f=10&t=2697&start=10#p17401
The file created with the ffmpeg command line is streamed in native format without problem, so its probably due to "fps" of the transcoding process too low.
But why TV response ""video codec not supported", I don't know.
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
<<

psiho

Streaming enthusiast

Posts: 25

Joined: Thu Jun 30, 2011 10:59 pm

Post Mon Jul 18, 2011 2:00 pm

Re: D5520 transcoding issue

I'm aware of "probable" couse of this, I'm just looking to proove it. When I come home, I'll try using lower bitrate and see if that helps. If not, I'll reencode file to smaller resolution and then try transcoding that. If any of those 2 passes i guess that is proof problem was in power of server that does transcoding.

I'll let you know the results of test as soon as i execute it.
<<

psiho

Streaming enthusiast

Posts: 25

Joined: Thu Jun 30, 2011 10:59 pm

Post Mon Jul 18, 2011 9:59 pm

Re: D5520 transcoding issue

test done with a bit unexpected results. FIrst, I tried playing with ffmpeg command in dos prompt and decreased output bitrate and video size. To my surprise, fps havent' changed considerably and even were worse with smaller video sizes.

Then I tried just adding maxVBitrate="64" to my profile and it worked!

However, since that does not really increase fps I tested further... I tried increasing maxVBitrate. 1024, 4096, and finaly 8192 which is more than original movie. I was surprised that ALL worked. It was more interruptions as maxVBitrate increased but there was no error on my tv. Also, I noticed that when my D5520 runs "out of stream data" it displayes "loading" in top-right corner of the screen so again, it does not report error.

So, I guess this prooves my server is too weak after all, but possibly there are impoovements to make anyway? I checked ffmpeg command in detailed log to compare difference with and without maxVBitrate used. -b setting and -maxrate are what I expected butthere is also -bufsize. Can it be that this buffer size is what helps my tv to avoid error? Can it also be used without maxVBitrate setting in profile? Can it be increased?

I guess this might help play some border-line cases.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Tue Jul 19, 2011 10:58 am

Re: D5520 transcoding issue

the buffer setting is only used when using maxvbitrate as well
<<

psiho

Streaming enthusiast

Posts: 25

Joined: Thu Jun 30, 2011 10:59 pm

Post Tue Jul 19, 2011 11:35 am

Re: D5520 transcoding issue

ok, then I guess we can consider this issue solved. We can conlcude issue was in slow transcoding server and partial workarround can be using maxVbitrate in profile.
Next

Return to Samsung

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.