Page 1 of 1

Some .ts files not playing

PostPosted: Thu Jun 16, 2011 7:19 pm
by kcusoundman
I have had a good look around and not seen any answers that seem relevent on the forum.

I am using Serviio 0.5.2 on Windows XP SP3 and a Sony S370 blueray to playback.

I have a load of .ts files that were created on a Humax Freeview PVR. Some play fine (BBC1 Shaun the Sheep - don't ask I have kids!) but loads don't.

I have attached a detailed log (truncated - it was too big) where I tried to play two files, "Flash Gordon 20101211 1541 .ts" that fails and "Shaun the Sheep 01 20100904 1829 .ts" that works. I have also attached the ffmpeg and mediainfo output in the fail.txt and work.txt files.

Any idea why one works and one does not and if so whether I need to play with the profile and transcode or whether I need to convert them all to something else, and if so what would be best.

Any help willingly received.

Re: Some .ts files not playing

PostPosted: Fri Jun 17, 2011 7:22 am
by Illico
Failed: Format settings, GOP : M=3, N=36
Work : Format settings, GOP : M=3, N=15
A regular GOP structure can be described with two parameters: N, which is the number of pictures in the GOP, and M, which is the spacing of P-pictures(predicted pictures).
Maximum frames per GOP: 18 (NTSC) / 15 (PAL), i.e. 0.6 seconds both.
36 is probably to high.
Source : http://en.wikipedia.org/wiki/MPEG-2#DVD-Video

Re: Some .ts files not playing

PostPosted: Fri Jun 17, 2011 9:05 am
by kcusoundman
Thanks for that. On further digging it appears that UK DVB broadcasters use high GOP values to get round limited bandwidth and still have viewable pictures.

Given that the files are otherwise identical, I assume that I am not going to be able to transcode in Serviio as I can not identify which ones need it.

Anyone got any recommendation for software to convert them?

Re: Some .ts files not playing

PostPosted: Fri Jun 17, 2011 11:55 am
by Illico
kcusoundman wrote:I assume that I am not going to be able to transcode in Serviio as I can not identify which ones need it.

Right.
kcusoundman wrote:Anyone got any recommendation for software to convert them?

You could try locally and add to serviio library the OUTPUT.ts file
ffmpeg.exe -i "INPUTFILE" -y -threads 2 -vcodec mpeg2video -sameq -r 25 -g 15 -copyts -acodec ac3 -ab 192k -ar 48000 -ac 2 -map 0:0 -map 0:1 -sn -f mpegts "OUTPUT.ts"

Re: Some .ts files not playing

PostPosted: Thu Mar 08, 2012 7:05 pm
by phn2
where does that line fit in?

best regards, Per.

Re: Some .ts files not playing

PostPosted: Thu Mar 08, 2012 10:49 pm
by kcusoundman
It is stand alone. You have to have ffmpeg installed and run the line at the commandline. The output is then added to the library