FAQ  •  Register  •  Login

New Panasonic Profiles Requiring Testers.

<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Fri Dec 07, 2012 2:58 pm

Re: New Panasonic Profiles Requiring Testers.

Looking ahead on how subtitles will be supported....

It looks like (some?) Viera devices support embedded subtitles, at least in MKV. We may remux MKV to mpegts though, thus losing the subtitles track. I'll need someone to run a test, remux MKV with subtitles track into mpegts with subtitles track and try to play it via Serviio - do you get the subs available for selection?

You'll need to add -codec:s with the subtitle codec. I think it might be dvdsub or dvbsub. Probably the former.

If this doesn't work we'll have to transcode the file to have the subs burned-in, triggering high CPU usage.

BTW, do external (str) subtitles work with all video formats for you?
<<

leepa

Serviio newbie

Posts: 9

Joined: Fri Nov 16, 2012 9:30 am

Post Thu Dec 13, 2012 9:05 am

Re: New Panasonic Profiles Requiring Testers.

I can run the tests but I would need more details on how to remux MKV with subtitles into mpegts with subtitles...

External (srt) subtitles do work with avi and mkv - they definitely don't work with mp4 format.
This is why one of the reasons I remux mp4 to mkv with subtitles - I can have the subtitles and the text is larger than in case of srt file.
Leepa
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Thu Dec 13, 2012 2:10 pm

Re: New Panasonic Profiles Requiring Testers.

try something like this:

  Code:
ffmpeg -i in.mp4 -i in.srt -y -c:v copy -c:a copy -c:s dvdsub -f mpegts out.mpg


I haven't tested this, there might be a syntax error.. but something along these lines
<<

leepa

Serviio newbie

Posts: 9

Joined: Fri Nov 16, 2012 9:30 am

Post Thu Dec 13, 2012 2:33 pm

Re: New Panasonic Profiles Requiring Testers.

Unfortunately:
dvdsub works with bitmap subtitles, and srt files are text subtitles. Neither ffmpeg nor libavcodec is able to rasterize text subtitles.


Found the following suggestion:
If you are ok with hardcoding the subtitles in the video, you can convert the srt file to ASS and use the ass filter: -vf ass=movie.ass
but it is not working for me at the moment...
Leepa
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Thu Dec 13, 2012 3:09 pm

Re: New Panasonic Profiles Requiring Testers.

leepa wrote:but it is not working for me at the moment...

You need a ffmpeg compiled with libass library.
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 Thu Dec 13, 2012 3:49 pm

Re: New Panasonic Profiles Requiring Testers.

Ok, so it looks this is not a solution. You said mp4 cannot show external srt files... so the future subtitles config for Viera will have to transcode mp4 files if you need subtitles. Are you 100% sure that is the case?
<<

leepa

Serviio newbie

Posts: 9

Joined: Fri Nov 16, 2012 9:30 am

Post Thu Dec 13, 2012 5:41 pm

Re: New Panasonic Profiles Requiring Testers.

zip wrote:Ok, so it looks this is not a solution. You said mp4 cannot show external srt files... so the future subtitles config for Viera will have to transcode mp4 files if you need subtitles. Are you 100% sure that is the case?

Yes, I am - subtitles do not work with mp4 in either USB or DLNA mode.
Leepa
<<

leepa

Serviio newbie

Posts: 9

Joined: Fri Nov 16, 2012 9:30 am

Post Fri Dec 14, 2012 2:49 pm

Re: New Panasonic Profiles Requiring Testers.

OK, I was able to test the mpegts with subtitles.

I have an ffmpeg build from Zeranoe webpage - it supports libass filter.
The libass needs some settings to actually work - as per this post.
Convert the srt subtitiles file into ass (make sure that srt is encoded with UTF8):
  Code:
ffmpeg -i test.srt test.ass

And finally, embed the subtitles into mpg container:
  Code:
ffmpeg -i test.mp4 -acodec copy -vcodec libx264 -vf ass=test.ass -f mpegts test.mpg


I guess, you cannot copy the video stream (by"-c:v copy" or "-vcodec copy") as you modify the video to have subtitles...

MediaInfo on the converted sample file:
  Code:
General
Format                                   : MPEG-TS
File size                                : 192 MiB
Duration                                 : 41mn 41s
Overall bit rate mode                    : Variable
Overall bit rate                         : 643 Kbps

Video
ID                                       : 256 (0x100)
Menu ID                                  : 1 (0x1)
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L3.0
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 4 frames
Codec ID                                 : 27
Duration                                 : 41mn 41s
Width                                    : 720 pixels
Height                                   : 404 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Variable
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Writing library                          : x264 core 128 r2216 198a7ea
Encoding settings                        : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=6 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=23.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00

Audio
ID                                       : 257 (0x101)
Menu ID                                  : 1 (0x1)
Format                                   : AAC
Format/Info                              : Advanced Audio Codec
Format version                           : Version 4
Format profile                           : LC
Muxing mode                              : ADTS
Codec ID                                 : 15
Duration                                 : 41mn 41s
Bit rate mode                            : Variable
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 48.0 KHz
Compression mode                         : Lossy

Menu
ID                                       : 4096 (0x1000)
Menu ID                                  : 1 (0x1)
Duration                                 : 41mn 41s
List                                     : 256 (0x100) (AVC) / 257 (0x101) (AAC)
Service name                             : Service01
Service provider                         : FFmpeg
Service type                             : digital television

I didn't specify any x264 options as I was only trying to have the burnt-in subtitles and didn't care about the picture quality.

Such file plays with no problems on my Viera ST50 (just to remind you that I have transcoding turned off in Serviio).

I hope this helps :)
Leepa
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Fri Dec 14, 2012 4:28 pm

Re: New Panasonic Profiles Requiring Testers.

Yes, this is the CPU intensive way, which will be supported in 1.2. I just thought if there is a way of just muxing the subtitles track in mpegts as embedded subttiles.
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Fri Dec 14, 2012 6:17 pm

Re: New Panasonic Profiles Requiring Testers.

zip wrote:Yes, this is the CPU intensive way, which will be supported in 1.2. I just thought if there is a way of just muxing the subtitles track in mpegts as embedded subttiles.


According to this link : http://en.wikipedia.org/wiki/Comparison ... er_formats

embedded subtitle is possible via ETSI EN 300 743 (DVBsub) on MPEGTS *.ts stream

embedded subtitle is possible on BDAV *.ms2ts stream (PGS or srt, but PGS are commun used by BD player)

But I don't know how ffmpeg could implement this. ( something like this : ffmpeg -i video.ts -i subtitle.srt -vcodec copy -acodec copy -scodec dvbsub output.ts )

it seems that Tsmuxer can do this : http://www.videohelp.com/tools/tsMuxeR
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 Fri Dec 14, 2012 11:02 pm

Re: New Panasonic Profiles Requiring Testers.

Apparently you have to first convert the text srt file to sub (image based) using this: http://www.videohelp.com/tools/AVIAddXSubs

Then you can add the sub file into a subtitles track via FFmpeg and it should play. Unfortunately FFmpeg can't do that for now, so it won't work with Serviio.
<<

erhamm

Serviio newbie

Posts: 5

Joined: Wed Jan 16, 2013 1:48 am

Post Wed Jan 16, 2013 1:51 am

Re: New Panasonic Profiles Requiring Testers.

The final profile for my Viera GT without Avi support works great and the aspect ratio is perfect (no more stretched heads) but the TV doesn't support DTS so the sound has disappeared for all the MKV's I am playing. Ideas?
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Thu Jan 17, 2013 4:53 pm

Re: New Panasonic Profiles Requiring Testers.

did you try one of the built-in Viera profiles?
<<

erhamm

Serviio newbie

Posts: 5

Joined: Wed Jan 16, 2013 1:48 am

Post Mon Jan 21, 2013 7:27 pm

Re: New Panasonic Profiles Requiring Testers.

I've tried the built in Viera profiles and some of the custom ones found in this thread. With a MKV I either get no sound and the aspect of the picture is perfect or I get sound and the picture is stretched vertically. I think i need a profile where for MKV with DTS is transcodes the audio but not the video.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Tue Jan 22, 2013 2:27 pm

Re: New Panasonic Profiles Requiring Testers.

It should already transcode only audio. The problem with aspect ratio is that mpegts doesn't store the value (mkv does) and it expects it in the h264 stream (it's probably missing in your file).

https://lists.ffmpeg.org/pipermail/ffmp ... 06543.html

So we would have to transcode video as well to keep the aspect ratio correct.
<<

erhamm

Serviio newbie

Posts: 5

Joined: Wed Jan 16, 2013 1:48 am

Post Wed Jan 23, 2013 4:11 am

Re: New Panasonic Profiles Requiring Testers.

Thanks, I'm still a newbie with everything. Is there a change to the profile I should do or do I need to transcode the video ahead of time?
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Thu Jan 24, 2013 3:14 pm

Re: New Panasonic Profiles Requiring Testers.

either ahead of time or you could set up transcoding of the video as well (instead of just remuxing it)
PreviousNext

Return to Panasonic

Who is online

Users browsing this forum: No registered users and 19 guests

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