FAQ  •  Register  •  Login

Transcoding Files

<<

afflictor

Serviio newbie

Posts: 13

Joined: Thu May 09, 2013 2:35 pm

Post Thu May 09, 2013 2:38 pm

Transcoding Files

Hello, I have one question about transcoding.
I have a LG TV and use the lg tv profile. When I want to play a mkv file it says me thatthe file is an invalid format. But the transcoding file went bigger and bigger, but playback stops. Why went the file bigger?
<<

DenyAll

DLNA master

Posts: 2257

Joined: Fri Mar 08, 2013 11:16 pm

Location: Adelaide, Australia

Post Thu May 09, 2013 2:59 pm

Re: Transcoding Files

The ffmpeg process (that does the transcoding) will continue even after it has failed on your TV. The file will get bigger until it is fully transcoded. It will be deleted eventually.

Post details of the file that doesn't play and we may be able to help you with that. See here for how to provide this info - MediaInfo will provide the better information.
DenyAll
Panasonic Viera FX800A | Panasonic Viera CS610A | Sony PS4 | Sony PS3 | Panasonic DMP-BD79 | Yamaha RX-V500D | iPad | Windows 10 | Serviio 1.10.1 Pro
WinHelper | MediaInfo

Beta Tester, Moderator
Please do not PM me for support as any solution cannot be shared with others.
<<

afflictor

Serviio newbie

Posts: 13

Joined: Thu May 09, 2013 2:35 pm

Post Thu May 09, 2013 4:10 pm

Re: Transcoding Files

Ah ok, thanks for info. I was only wondering that after failing the file is getting bigger.
Here is the file, that won't play..
Other files with dts would play with transcoding.
Attachments
ffmpeg.txt
FFMPEG
(3.46 KiB) Downloaded 554 times
<<

afflictor

Serviio newbie

Posts: 13

Joined: Thu May 09, 2013 2:35 pm

Post Sat May 11, 2013 1:17 pm

Re: Transcoding Files

What about the file?
<<

DenyAll

DLNA master

Posts: 2257

Joined: Fri Mar 08, 2013 11:16 pm

Location: Adelaide, Australia

Post Sat May 11, 2013 2:11 pm

Re: Transcoding Files

Sorry, I lost track of this thread.

Have you edited your profile (the standard LG profile in 1.2.1 doesn't do any transcoding, but your OP suggests that the mkv file was being transcoded)? Anyway, assuming its the standard profile....

Some LG TV's do not support DTS audio. The standard LG profile in Serviio has some code commented out that transcodes DTS. Try my post: viewtopic.php?f=5&t=10355&p=68933#p68933 and see if this rectifies the problem for this file. If that doesn't work then post the details of the file using MediaInfo (see viewtopic.php?f=5&t=4510).
DenyAll
Panasonic Viera FX800A | Panasonic Viera CS610A | Sony PS4 | Sony PS3 | Panasonic DMP-BD79 | Yamaha RX-V500D | iPad | Windows 10 | Serviio 1.10.1 Pro
WinHelper | MediaInfo

Beta Tester, Moderator
Please do not PM me for support as any solution cannot be shared with others.
<<

afflictor

Serviio newbie

Posts: 13

Joined: Thu May 09, 2013 2:35 pm

Post Sun May 12, 2013 9:51 pm

Re: Transcoding Files

Yeah I commendet that out, that dts is transcoding. Other files play normally, but they are a little smaller! Maybe this is the problem!
I provide Media Info File later.
<<

afflictor

Serviio newbie

Posts: 13

Joined: Thu May 09, 2013 2:35 pm

Post Wed May 15, 2013 6:57 pm

Re: Transcoding Files

Sorry for the long delay, but here is the mediainfo:

Allgemein
Unique ID : 226039760225596423139431270958746666245 (0xAA0DAC9DE14C59B2BC4CECFC63B58505)
Complete name : \\10.0.0.1\video\movies\8 Mile (2002)\8 Mile_(2002)_1080p.mkv
Format : Matroska
Format version : Version 2
File size : 14,4 GiB
Duration : 1h 50min
Overall bit rate : 18,6 Mbps
Encoded date : UTC 2010-02-08 22:22:06
Writing application : mkvmerge v3.1.0 ('Happy up here') gebaut am Jan 19 2010 12:09:24
Writing library : libebml v0.7.9 + libmatroska v0.8.1

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings, CABAC : Ja
Format settings, ReFrames : 5 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 1h 50min
Bit rate : 16,7 Mbps
Width : 1 920 Pixel
Height : 814 Pixel
Display aspect ratio : 2,35:1
Frame rate mode : konstant
Frame rate : 23,976 FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : progressiv
Bits/(Pixel*Frame) : 0.446
Stream size : 12,3 GiB (86%)
Writing library : x264 core 84 r1416kMod fcf70c2
Encoding settings : cabac=1 / ref=5 / deblock=1:-3:-3 / analyse=0x3:0x113 / me=umh / subme=9 / psy=1 / psy_rd=1.0:0.0 / mixed_ref=1 / me_range=32 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=6,6 / fast_pskip=0 / chroma_qp_offset=-2 / threads=6 / sliced_threads=0 / nr=0 / decimate=0 / mbaff=0 / constrained_intra=0 / bframes=4 / b_pyramid=0 / b_adapt=2 / b_bias=-20 / direct=3 / wpredb=1 / wpredp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc=2pass / mbtree=0 / bitrate=16713 / ratetol=1000000000.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.10 / pb_ratio=1.10 / aq=2:0.70
Language : Englisch
Default : Nein
Forced : Nein

Audio #1
ID : 2
Format : DTS
Format/Info : Digital Theater Systems
Mode : 16
Format settings, Endianness : Big
Codec ID : A_DTS
Duration : 1h 50min
Bit rate mode : konstant
Bit rate : 768 Kbps
Channel(s) : 6 Kanäle
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48,0 KHz
Bit depth : 24 bits
Stream size : 607 MiB (4%)
Language : Deutsch
Default : Ja
Forced : Nein

Audio #2
ID : 3
Format : DTS
Format/Info : Digital Theater Systems
Mode : 16
Format settings, Endianness : Big
Codec ID : A_DTS
Duration : 1h 50min
Bit rate mode : konstant
Bit rate : 1 509 Kbps
Channel(s) : 6 Kanäle
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48,0 KHz
Bit depth : 24 bits
Stream size : 1,16 GiB (8%)
Language : Englisch
Default : Nein
Forced : Nein

Text #1
ID : 4
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Language : Deutsch
Default : Ja
Forced : Nein

Text #2
ID : 5
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Language : Deutsch
Default : Nein
Forced : Nein

Text #3
ID : 6
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Language : Englisch
Default : Nein
Forced : Nein

Menü
00:00:00.000 : :00:00:00.000
00:03:11.942 : :00:03:11.942
00:10:07.899 : :00:10:07.899
00:14:51.724 : :00:14:51.724
00:19:51.357 : :00:19:51.357
00:23:31.035 : :00:23:31.035
00:27:20.889 : :00:27:20.889
00:34:40.870 : :00:34:40.870
00:38:59.796 : :00:38:59.796
00:46:49.390 : :00:46:49.390
00:52:54.338 : :00:52:54.338
01:01:47.871 : :01:01:47.871
01:06:02.417 : :01:06:02.417
01:11:44.133 : :01:11:44.133
01:13:47.965 : :01:13:47.965
01:16:44.934 : :01:16:44.934
01:24:30.732 : :01:24:30.732
01:27:56.438 : :01:27:56.438
01:38:19.143 : :01:38:19.143
01:43:30.538 : :01:43:30.538
01:45:29.114 : :01:45:29.114
<<

DenyAll

DLNA master

Posts: 2257

Joined: Fri Mar 08, 2013 11:16 pm

Location: Adelaide, Australia

Post Thu May 16, 2013 9:45 am

Re: Transcoding Files

As a test, you can try reducing the video bitrate for the file - change your present LG profile to (lines 2 to 4 are new, the rest should already be there):

  Code:
<Transcoding>
   <Video targetContainer="mpegts" targetVCodec="mpeg2video" maxVBitrate="12000" targetACodec="ac3" aBitrate="384">
      <Matches container="matroska" vCodec="h264" profile="high" levelGreaterThan="4.0" />
   </Video>
   <Video targetContainer="mpegts" targetACodec="ac3" aBitrate="384">
      <Matches container="matroska" aCodec="dca" />
   </Video>
   <Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3" aBitrate="384" >
      <Matches container="flv" />
      <Matches container="asf" vCodec="wmv2"/>
      <Matches container="rm" />
   </Video>
</Transcoding>

If it works then try varying the maxVBitrate to "15000" and then "17000" to find how high we can go before failing. The problem with this is it will transcode files that may not need to be, but lets work out what's happening first.
DenyAll
Panasonic Viera FX800A | Panasonic Viera CS610A | Sony PS4 | Sony PS3 | Panasonic DMP-BD79 | Yamaha RX-V500D | iPad | Windows 10 | Serviio 1.10.1 Pro
WinHelper | MediaInfo

Beta Tester, Moderator
Please do not PM me for support as any solution cannot be shared with others.
<<

afflictor

Serviio newbie

Posts: 13

Joined: Thu May 09, 2013 2:35 pm

Post Fri May 17, 2013 3:33 pm

Re: Transcoding Files

No it says again, invalid file. And with this Profile, encoding is very slow!! So other video files won't work or are very very slow.
<<

DenyAll

DLNA master

Posts: 2257

Joined: Fri Mar 08, 2013 11:16 pm

Location: Adelaide, Australia

Post Fri May 17, 2013 10:53 pm

Re: Transcoding Files

That's fine. This was only designed to test whether bit rate was the issue - it may pay to do one more test with a low bit rate, say 4000 to rule it out all together.
If you remove lines 2-4 in the above do you end up back with the profile you started with? If not can you please post your profile just so we are on the same page.
How many files are failing?
DenyAll
Panasonic Viera FX800A | Panasonic Viera CS610A | Sony PS4 | Sony PS3 | Panasonic DMP-BD79 | Yamaha RX-V500D | iPad | Windows 10 | Serviio 1.10.1 Pro
WinHelper | MediaInfo

Beta Tester, Moderator
Please do not PM me for support as any solution cannot be shared with others.
<<

afflictor

Serviio newbie

Posts: 13

Joined: Thu May 09, 2013 2:35 pm

Post Sat May 18, 2013 12:32 pm

Re: Transcoding Files

Here is my current profile. It workes fine (til now) with all video files except the one above from me.

  Code:
<Profile id="8" name="LG TV / player" extendsProfileId="1">
      <Detection>
         <HttpHeaders>
            <friendlyName.dlna.org>LG.*</friendlyName.dlna.org>
         </HttpHeaders>
      </Detection>
      <!-- ResourceTransportProtocolHandler>org.serviio.upnp.protocol.http.transport.LGProtocolHandler</ResourceTransportProtocolHandler -->
      <MediaFormatProfiles>
         <MediaFormatProfile mime-type="video/mp4" name="">AVI</MediaFormatProfile>
      </MediaFormatProfiles>      
      <Transcoding>         
         <Video targetContainer="mpegts" targetACodec="ac3" aBitrate="384">
            <Matches container="*" aCodec="dca" />
         </Video>
         <Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3" >
            <Matches container="flv" />
               <Matches container="asf" vCodec="wmv2"/>
               <Matches container="rm" />
         </Video>
      </Transcoding>
      <Subtitles>
         <SoftSubs mime-type="text/srt" />         
      </Subtitles>   
   </Profile>
<<

DenyAll

DLNA master

Posts: 2257

Joined: Fri Mar 08, 2013 11:16 pm

Location: Adelaide, Australia

Post Sun May 19, 2013 6:39 am

Re: Transcoding Files

Given that it is only one file, and that I can't see anything obvious from MediaInfo for the file, it could simply be that this file is malformed in some way. It may be simpler to re-mux this file - try, from the command prompt:

    "path\ffmpeg.exe" -i "\\10.0.0.1\video\movies\8 Mile (2002)\8 Mile_(2002)_1080p.mkv" -map 0 -vcodec copy -acodec copy test.mkv
substituting path to where your copy of the ffmpeg command is (in Windows 7 this is C:\Program Files\Serviio\lib\). This will simply re-mux the video and audio to a new mkv container (test.mkv). See if that plays or has the same error.

Failing this you may want to look at MakeMKV to recreate the mkv file.
DenyAll
Panasonic Viera FX800A | Panasonic Viera CS610A | Sony PS4 | Sony PS3 | Panasonic DMP-BD79 | Yamaha RX-V500D | iPad | Windows 10 | Serviio 1.10.1 Pro
WinHelper | MediaInfo

Beta Tester, Moderator
Please do not PM me for support as any solution cannot be shared with others.
<<

afflictor

Serviio newbie

Posts: 13

Joined: Thu May 09, 2013 2:35 pm

Post Mon May 20, 2013 7:41 pm

Re: Transcoding Files

thx for the tip, but with this command I get something like this:
  Code:
[matroska @ 0xfa85c0] st:0 PTS: 6626325 DTS: 6626325 < 6626353 invalid, clipping
[matroska @ 0xfa85c0] st:0 PTS: 6626335 DTS: 6626335 < 6626353 invalid, clipping
[matroska @ 0xfa85c0] st:0 PTS: 6626345 DTS: 6626345 < 6626353 invalid, clipping
frame=158908 fps=165 q=-1.0 Lsize=15093964kB time=01:50:27.71 bitrate=18656.5kbits/s


And I think this "invalid" is something bad.
<<

afflictor

Serviio newbie

Posts: 13

Joined: Thu May 09, 2013 2:35 pm

Post Thu May 23, 2013 5:45 pm

Re: Transcoding Files

I cannot create a new mkv file wih MakeMKV.. It said, that he had failed.
<<

DenyAll

DLNA master

Posts: 2257

Joined: Fri Mar 08, 2013 11:16 pm

Location: Adelaide, Australia

Post Fri May 24, 2013 12:24 am

Re: Transcoding Files

Can you actually watch this movie direct eg. On your PC.
DenyAll
Panasonic Viera FX800A | Panasonic Viera CS610A | Sony PS4 | Sony PS3 | Panasonic DMP-BD79 | Yamaha RX-V500D | iPad | Windows 10 | Serviio 1.10.1 Pro
WinHelper | MediaInfo

Beta Tester, Moderator
Please do not PM me for support as any solution cannot be shared with others.
<<

afflictor

Serviio newbie

Posts: 13

Joined: Thu May 09, 2013 2:35 pm

Post Fri May 24, 2013 9:12 am

Re: Transcoding Files

Yes on my notebook with VLC it works. Because of that I'm asking why only that video isn't working :P
<<

DenyAll

DLNA master

Posts: 2257

Joined: Fri Mar 08, 2013 11:16 pm

Location: Adelaide, Australia

Post Fri May 24, 2013 10:48 am

Re: Transcoding Files

You should be able to re-package the file using MakeMKV. As you can't, and because of the errors you have when ffmpeg'ing it, it looks like this file is stuffed in some way. Have you played it all the way through in VLC (looks like the error could be late in the movie)?

In any case, it seems to be a one off, so you wouldn't change the Serviio profile to cater for it (even if you could work it out, you'd likely make all other mkv's unplayable). I'd try to get the file from its source again.
DenyAll
Panasonic Viera FX800A | Panasonic Viera CS610A | Sony PS4 | Sony PS3 | Panasonic DMP-BD79 | Yamaha RX-V500D | iPad | Windows 10 | Serviio 1.10.1 Pro
WinHelper | MediaInfo

Beta Tester, Moderator
Please do not PM me for support as any solution cannot be shared with others.
<<

afflictor

Serviio newbie

Posts: 13

Joined: Thu May 09, 2013 2:35 pm

Post Fri May 24, 2013 2:47 pm

Re: Transcoding Files

MakeMKV starts to convert, and in middle of the process it fails!! At start it says, track 4-6 were skipped because of an error or because of the type.
And I think I remember, that I played the file over Seagate GoFlex TV.
I played it everytime with VLC.

Don't worry about the one file. Something is wrong. I can download it again xD

Thanks for the help :D

Return to Transcoding

Who is online

Users browsing this forum: No registered users and 8 guests

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