FAQ  •  Register  •  Login

1.0.1 - SONY 2011 - MPEGTS-h264-dts won't play

<<

soundcheck

Post Thu Sep 06, 2012 6:10 pm

1.0.1 - SONY 2011 - MPEGTS-h264-dts won't play

Hi folks.

I upgraded to 1.0.1.

Now my SONY 2011 - won't play MPEG2TS-h264-dts anymore.

What went potentially wrong ???

Any hint is appreciated.

THX
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Thu Sep 06, 2012 6:35 pm

Re: 1.0.1 - SONY 2011 - MPEGTS-h264-dts won't play

That could be due to DTS audio transcoding crash or h264 remux crash due to video filter (h264_annex4).
Could you enable detailed logging and extract the ffmpeg command line used for transcoding ?
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
<<

soundcheck

Post Thu Sep 06, 2012 6:57 pm

Re: 1.0.1 - SONY 2011 - MPEGTS-h264-dts won't play

ffmpeg version git-2012-08-27-60924df Copyright (c) 2000-2012 the FFmpeg developers
built on Aug 27 2012 16:25:28 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-postproc --enable-version3 --enable-x11grab --enable-libvpx --enable-librtmp --enable-libxvid
libavutil 51. 70.100 / 51. 70.100
libavcodec 54. 54.100 / 54. 54.100
libavformat 54. 25.104 / 54. 25.104
libavdevice 54. 2.100 / 54. 2.100
libavfilter 3. 13.101 / 3. 13.101
libswscale 2. 1.101 / 2. 1.101
libswresample 0. 15.100 / 0. 15.100
libpostproc 52. 0.100 / 52. 0.100
[mpegts @ 0x27c6280] max_analyze_duration 5000000 reached at 5004000
[mpegts @ 0x27c6280] Could not find codec parameters for stream 2 (Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[NULL @ 0x27cb300] start time is not set in estimate_timings_from_pts
Input #0, mpegts, from '00006.m2ts':
Duration: 02:16:54.23, start: 4197.958300, bitrate: 25169 kb/s
Program 1
Stream #0:0[0x1011]: Video: h264 (High) (HDMV / 0x564D4448), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc
Stream #0:1[0x1100]: Audio: dts (DTS-HD MA) ([134][0][0][0] / 0x0086), 48000 Hz, 5.1(side), s16, 1536 kb/s
Stream #0:2[0x1200]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)



Here comes the file-info.

ffmpeg i compiled from git.
<<

soundcheck

Post Thu Sep 06, 2012 7:09 pm

Re: 1.0.1 - SONY 2011 - MPEGTS-h264-dts won't play

2012-09-06 21:00:05,184 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.0.26
2012-09-06 21:00:05,185 DEBUG [ResourceDeliveryProcessor] Resource request accepted. Using client 'IPAddress=/192.168.0.26, Profile=Sony Bravia TV (2011)'
2012-09-06 21:00:05,185 DEBUG [ResourceDeliveryProcessor] Request for resource 38 and type 'MEDIA_ITEM' received
2012-09-06 21:00:05,185 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 38 (local)
2012-09-06 21:00:05,185 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 38)
2012-09-06 21:00:05,186 DEBUG [VideoDAOImpl] Reading a Video (id = 38)
2012-09-06 21:00:05,186 DEBUG [VideoDeliveryEngine] Delivering item '38' for client 'IPAddress=/192.168.0.26, Profile=Sony Bravia TV (2011)'
2012-09-06 21:00:05,186 DEBUG [VideoDeliveryEngine] Delivering file '00006.m2ts' using transcoding
2012-09-06 21:00:05,187 DEBUG [AbstractTranscodingDeliveryEngine] No other client uses transcoding job of file 'transcoding-temp-11-sony2011-ORIGINAL.stf', will stop the job
2012-09-06 21:00:05,187 DEBUG [AbstractTranscodingDeliveryEngine] Stopping previous transcoding job of file 'transcoding-temp-11-sony2011-ORIGINAL.stf'
2012-09-06 21:00:05,187 DEBUG [TranscodingJobListener] Deleted temp file '/media/music/Serviio/transcoding-temp-11-sony2011-ORIGINAL.stf': false
2012-09-06 21:00:05,187 DEBUG [AbstractTranscodingDeliveryEngine] No suitable transcoding job exists yet, start one for client 'IPAddress=/192.168.0.26, Profile=Sony Bravia TV (2011)'
2012-09-06 21:00:05,188 DEBUG [MediaItemDAOImpl] Getting file of media item 38
2012-09-06 21:00:05,188 DEBUG [FFMPEGWrapper] Invoking FFmpeg to transcode video file: /media/video/video/Test/BDMV/STREAM/00006.m2ts
2012-09-06 21:00:05,189 DEBUG [ProcessExecutor] Starting ffmpeg -i /media/video/video/Test/BDMV/STREAM/00006.m2ts -y -threads 4 -copyts -c:v mpeg2video -b:v 17000k -maxrate:v 17000k -bufsize:v 17000k -r 24000/1001 -g 15 -c:a ac3 -b:a 384k -ac 2 -map 0:0 -map 0:1 -sn -f mpegts /media/music/Serviio/transcoding-temp-38-sony2011-ORIGINAL.stf
2012-09-06 21:00:05,211 WARN [ProcessExecutor] Process ffmpeg has a return code of 1! This is a possible error.
2012-09-06 21:00:05,211 DEBUG [TranscodingJobListener] Transcoding finished; successful: false
2012-09-06 21:00:12,693 ERROR [ResourceTransportRequestHandler] Error while processing resource, sending back 500 error. Message: Transcoded file '/media/music/Serviio/transcoding-temp-38-sony2011-ORIGINAL.stf' cannot be found, FFmpeg execution probably failed
java.io.IOException: Transcoded file '/media/music/Serviio/transcoding-temp-38-sony2011-ORIGINAL.stf' cannot be found, FFmpeg execution probably failed
at org.serviio.delivery.resource.transcode.FileBasedTranscodingDeliveryStrategy.createInputStream(FileBasedTranscodingDeliveryStrategy.java:45)
at org.serviio.delivery.resource.transcode.AbstractTranscodingDeliveryEngine.retrieveTranscodedResource(AbstractTranscodingDeliveryEngine.java:125)




Here is the log. ffmpeg seems to fail.
<<

soundcheck

Post Thu Sep 06, 2012 7:12 pm

Re: 1.0.1 - SONY 2011 - MPEGTS-h264-dts won't play

If I execute above ffmpeg command from command line ( other target dir) it works.
<<

soundcheck

Post Thu Sep 06, 2012 7:16 pm

Re: 1.0.1 - SONY 2011 - MPEGTS-h264-dts won't play

Should I change the cache dir?
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Thu Sep 06, 2012 7:23 pm

Re: 1.0.1 - SONY 2011 - MPEGTS-h264-dts won't play

Thanks for file info, but I need the detailed logging...
Illico wrote:Could you enable detailed logging and extract the ffmpeg command line used for transcoding ?
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
<<

soundcheck

Post Thu Sep 06, 2012 7:45 pm

Re: 1.0.1 - SONY 2011 - MPEGTS-h264-dts won't play

Illico wrote:Thanks for file info, but I need the detailed logging...
Illico wrote:Could you enable detailed logging and extract the ffmpeg command line used for transcoding ?


2nd log post = detailed debug log ???
<<

will

DLNA master

Posts: 2138

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Thu Sep 06, 2012 7:47 pm

Re: 1.0.1 - SONY 2011 - MPEGTS-h264-dts won't play

You need to manually run the ffmpeg command from the log with all the options so that we can see the output of ffmpeg when transcoding
Will

ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: Download | Home | Support
<<

soundcheck

Post Thu Sep 06, 2012 8:01 pm

Re: 1.0.1 - SONY 2011 - MPEGTS-h264-dts won't play

as i said i did it.
ffmpeg transcoded the file.
no problems.
u still need it?
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Thu Sep 06, 2012 8:11 pm

Re: 1.0.1 - SONY 2011 - MPEGTS-h264-dts won't play

soundcheck wrote:2nd log post = detailed debug log ???

Ooups sorry...

Are you sure you execute exactly the same command line, because on debug log we see that ffmpeg crashed.
Are you sure to have enough free space on tmp folder ?

PS: Why does this h264 was transcoded to mpeg2video, its probably a h264 profile level >4.1, could you provide MediaInfo tool result to confirm?
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
<<

will

DLNA master

Posts: 2138

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Thu Sep 06, 2012 8:24 pm

Re: 1.0.1 - SONY 2011 - MPEGTS-h264-dts won't play

Yes just to check run
  Code:
ffmpeg -i /media/video/video/Test/BDMV/STREAM/00006.m2ts -y -threads 4 -copyts -c:v mpeg2video -b:v 17000k -maxrate:v 17000k -bufsize:v 17000k -r 24000/1001 -g 15 -c:a ac3 -b:a 384k -ac 2 -map 0:0 -map 0:1 -sn -f mpegts /media/music/Serviio/transcoding-temp-38-sony2011-ORIGINAL.stf

Please also confirm which user you run serviio under, and what the permissions of /media/music/ and /media/music/Serviio/ are, specially can the serviio user write to it. That may explain why running it manually works, but not when serviio runs it.
Will

ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: Download | Home | Support
<<

soundcheck

Post Thu Sep 06, 2012 8:41 pm

Re: 1.0.1 - SONY 2011 - MPEGTS-h264-dts won't play

i'll continue tomorrow. thx for now.
<<

soundcheck

Post Fri Sep 07, 2012 10:40 am

Re: 1.0.1 - SONY 2011 - MPEGTS-h264-dts won't play

Below is the rule chosen by default profile.xml (yesterday I've been testing with a sligthly adapted rule - because I thought "dca" trasncoding was missing.

  Code:
 ffmpeg -fflags +genpts -i /media/video/video/1. Test/BDMV/STREAM/00006.m2ts -y -copyts -c:v copy -vbsf h264_mp4toannexb -c:a ac3 -b:a 384k -ac 2 -map 0:0 -map 0:1 -sn -f mpegts /media/win/Serviio/transcoding-temp-38-sony2011-ORIGINAL.stf


Maybe there are two problems:

1. When running above from command line ffmpeg didn't like spaces in the directory name.

After tying without space:

2. FFMPEG issued following error:

  Code:
Failed to open bitstream filter h264_mp4toannexb for stream 0 with codec copy: Invalid argument
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Fri Sep 07, 2012 11:25 am

Re: 1.0.1 - SONY 2011 - MPEGTS-h264-dts won't play

soundcheck wrote:1. When running above from command line ffmpeg didn't like spaces in the directory name.


You have to set path under "" like this:
  Code:
ffmpeg -fflags +genpts -i "/media/video/video/1. Test/BDMV/STREAM/00006.m2ts" -y -copyts -c:v copy -vbsf h264_mp4toannexb -c:a ac3 -b:a 384k -ac 2 -map 0:0 -map 0:1 -sn -f mpegts "/media/win/Serviio/transcoding-temp-38-sony2011-ORIGINAL.stf"


soundcheck wrote:2. FFMPEG issued following error:
  Code:
Failed to open bitstream filter h264_mp4toannexb for stream 0 with codec copy: Invalid argument

Ok, its probably relative to this issue : https://bitbucket.org/xnejp03/serviio/i ... -if-source
retry like this :
  Code:
ffmpeg -fflags +genpts -i "/media/video/video/1. Test/BDMV/STREAM/00006.m2ts" -y -copyts -c:v copy -c:a ac3 -b:a 384k -ac 2 -map 0:0 -map 0:1 -sn -f mpegts "/media/win/Serviio/transcoding-temp-38-sony2011-ORIGINAL.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
<<

soundcheck

Post Fri Sep 07, 2012 11:46 am

Re: 1.0.1 - SONY 2011 - MPEGTS-h264-dts won't play

Guess what.

I figured all that before you sent your answer. ;)

Always good to step into known bugs. I probably should have better stayed with 0.6x

Now. What to do about it??

Yesterday I managed to get around the issue when changing profile.xml. ( Result was the earlier posted ffmpeg commandline). What would be the best setting / workaround ???



And still there seems o be a problem that Serviio has an issue with the path?!?!? Otherwise there wouldn't be the related message in the log !?!?!
Because the path message remained even when I changed the profile.xml which led to the working transcoding line.
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Fri Sep 07, 2012 12:14 pm

Re: 1.0.1 - SONY 2011 - MPEGTS-h264-dts won't play

soundcheck wrote:Now. What to do about it??
Yesterday I managed to get around the issue when changing profile.xml. ( Result was the earlier posted ffmpeg commandline). What would be the best setting / workaround ???

Wokaround could be to transcode MPEGTS-H264-DTS to MPEGTS-MPEG2-AC3.
Or wait for the next 1.0.2
soundcheck wrote:And still there seems o be a problem that Serviio has an issue with the path?!?!? Otherwise there wouldn't be the related message in the log !?!?!
Because the path message remained even when I changed the profile.xml which led to the working transcoding line.

When serviio write the command line to the debug file, "" are removed (don't know why), so when you copy/past to a local windows terminal, you have to add manually the "" for path.
So there are no problem when spaces are present to the pathfile.
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
<<

soundcheck

Post Fri Sep 07, 2012 12:42 pm

Re: 1.0.1 - SONY 2011 - MPEGTS-h264-dts won't play

Below my profile diff. This and removing the blank from the path solved the problem.

Basically I ran into two issues.

There seems to be an issue with the parser! How can I get this under control, without changeing all my pathnames !??!

  Code:
*** profiles.xml.test   2012-09-07 11:52:11.929282996 +0200
--- profiles.xml.orig   2012-09-06 19:30:22.631264333 +0200
***************
*** 602,608 ****
              <Matches container="*" vCodec="h264" profile="high" levelGreaterThan="4.1" />
              <Matches container="*" vCodec="h264" profile="main" levelGreaterThan="4.1" />
              <Matches container="mpegts" vCodec="vc1" />
-             <Matches container="mpegts" vCodec="h264" aCodec="dca" />
              <Matches container="asf" vCodec="vc1" aCodec="wmapro" />
              <Matches container="avi" vCodec="dvvideo" />
           </Video>
--- 602,607 ----
<<

soundcheck

Post Fri Sep 07, 2012 1:01 pm

Re: 1.0.1 - SONY 2011 - MPEGTS-h264-dts won't play

Oneliner workaround:

  Code:
for i in  ./*/ ; do mv "$i" "${i// /-}" ; done ; 


:D
<<

will

DLNA master

Posts: 2138

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Fri Sep 07, 2012 1:37 pm

Re: 1.0.1 - SONY 2011 - MPEGTS-h264-dts won't play

Just to re-itterate what Illico said. Having spaces in the path is NOT a problem. When Serviio runs ffmpeg it puts quotes around the path automatically, however, these quotes aren't shown in the log so when using a command from a log, you need to add the quotes yourself. There is no need to move/rename files/directories to removes spaces from the path.
Will

ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: Download | Home | Support
Next

Return to Sony

Who is online

Users browsing this forum: No registered users and 33 guests

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