FAQ  •  Register  •  Login

[SOLVED]Need some help with Mp4 and Xbox

<<

cannon_dt

Serviio newbie

Posts: 3

Joined: Mon Apr 06, 2015 10:14 am

Post Mon Apr 06, 2015 10:23 am

[SOLVED]Need some help with Mp4 and Xbox

Hi,
I have been using serviio 1.4.1.2 for some time now and it has served me well. I run it out of my Linux mint and I have the latest ffmpeg sources compiled as per your instructions. My issue is that some mp4 files do not work when I try to stream them to my xbox. Upon searching the forums I found that it could be due to channels and downmixing might be required, however I did find (using media info) that it was 2 channels.

Working media info
  Code:
General
Complete name                            : a.mp4
Format                                   : MPEG-4
Format profile                           : Base Media
Codec ID                                 : isom
File size                                : 752 MiB
Duration                                 : 1h 33mn
Overall bit rate mode                    : Variable
Overall bit rate                         : 1 126 Kbps
Encoded date                             : UTC 2014-10-21 23:43:39
Tagged date                              : UTC 2014-10-21 23:43:39

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L4.1
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 4 frames
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 1h 33mn
Bit rate                                 : 1 028 Kbps
Maximum bit rate                         : 9 147 Kbps
Width                                    : 1 280 pixels
Height                                   : 536 pixels
Display aspect ratio                     : 2.40:1
Frame rate mode                          : Constant
Frame rate                               : 25.000 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.060
Stream size                              : 687 MiB (91%)
Writing library                          : x264 core 142 r2409 d6b4e63
Encoding settings                        : cabac=1 / ref=4 / deblock=1:-1:-1 / analyse=0x3:0x133 / me=umh / subme=9 / psy=1 / psy_rd=1.00:0.15 / mixed_ref=1 / me_range=24 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=0 / chroma_qp_offset=-3 / threads=12 / 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=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=60 / rc=2pass / mbtree=1 / bitrate=1028 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / vbv_maxrate=31250 / vbv_bufsize=31250 / nal_hrd=none / filler=0 / ip_ratio=1.40 / aq=1:1.00
Encoded date                             : UTC 2014-10-21 23:43:39
Tagged date                              : UTC 2014-10-21 23:43:48
Color primaries                          : BT.709
Matrix coefficients                      : BT.709

Audio
ID                                       : 2
Format                                   : AAC
Format/Info                              : Advanced Audio Codec
Format profile                           : LC
Codec ID                                 : 40
Duration                                 : 1h 33mn
Bit rate mode                            : Variable
Bit rate                                 : 93.8 Kbps
Maximum bit rate                         : 99.6 Kbps
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 48.0 KHz
Compression mode                         : Lossy
Stream size                              : 62.6 MiB (8%)
Language                                 : English
Encoded date                             : UTC 2014-10-21 23:43:47
Tagged date                              : UTC 2014-10-21 23:43:48



Non working media info
  Code:
General
Complete name                            : b.mp4
Format                                   : MPEG-4
Format profile                           : Base Media
Codec ID                                 : isom
File size                                : 865 MiB
Duration                                 : 1h 58mn
Overall bit rate mode                    : Variable
Overall bit rate                         : 1 024 Kbps
Encoded date                             : UTC 2014-06-04 22:12:28
Tagged date                              : UTC 2014-06-04 22:12:28

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L4.1
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 4 frames
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 1h 58mn
Bit rate                                 : 926 Kbps
Maximum bit rate                         : 6 916 Kbps
Width                                    : 1 280 pixels
Height                                   : 536 pixels
Display aspect ratio                     : 2.40:1
Frame rate mode                          : Constant
Frame rate                               : 23.976 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.056
Stream size                              : 782 MiB (90%)
Writing library                          : x264 core 142 r2409 d6b4e63
Encoding settings                        : cabac=1 / ref=4 / deblock=1:-1:-1 / analyse=0x3:0x133 / me=umh / subme=9 / psy=1 / psy_rd=1.00:0.15 / mixed_ref=1 / me_range=24 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=0 / chroma_qp_offset=-3 / threads=48 / lookahead_threads=4 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=60 / rc=2pass / mbtree=1 / bitrate=926 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / vbv_maxrate=31250 / vbv_bufsize=31250 / nal_hrd=none / filler=0 / ip_ratio=1.40 / aq=1:1.00
Encoded date                             : UTC 2014-06-04 22:12:28
Tagged date                              : UTC 2014-06-04 22:12:35
Color primaries                          : BT.709
Matrix coefficients                      : BT.709

Audio
ID                                       : 2
Format                                   : AAC
Format/Info                              : Advanced Audio Codec
Format profile                           : LC
Codec ID                                 : 40
Duration                                 : 1h 58mn
Bit rate mode                            : Variable
Bit rate                                 : 93.8 Kbps
Maximum bit rate                         : 103 Kbps
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 48.0 KHz
Compression mode                         : Lossy
Stream size                              : 79.2 MiB (9%)
Language                                 : English
Encoded date                             : UTC 2014-06-04 22:12:33
Tagged date                              : UTC 2014-06-04 22:12:35



As you can see both have 2 channels, so I am not sure what is the issue here. I even tried converting to mkv using mkvmerge but I end up with the same error - The connection to the host PC was lost - 53-COODF238

Can someone please help me out here?

Peace
Ananth
Last edited by cannon_dt on Mon Apr 06, 2015 2:06 pm, edited 1 time in total.
<<

cannon_dt

Serviio newbie

Posts: 3

Joined: Mon Apr 06, 2015 10:14 am

Post Mon Apr 06, 2015 10:25 am

Re: Need some help with Mp4 and Xbox

I just reset my logging and I found this exception related to the video I was playing, I am unable to understand it :(

  Code:
2015-04-06 15:51:28,746 WARN  [ProcessExecutor] Process /home/ananthakrishnan/bin/ffmpeg has a return code of 1! This is a possible error. Detailed output follows.
[AVFilterGraph @ 0x2bcbe20] [Eval @ 0x7fff1e97aeb0] Undefined constant or missing '(' in 'auto'
[AVFilterGraph @ 0x2bcbe20] Unable to parse option value "auto"
[Parsed_subtitles_0 @ 0x2bcb7e0] Unable to open /media/ananthakrishnan/movies/temp store/video/Ayalnaadu/Winter\\\s Tale (2014)/Winters.Tale.2014.720p.BluRay.x264.YIFY.srt
[AVFilterGraph @ 0x2bcbe20] Error initializing filter 'subtitles' with args 'filename=/media/ananthakrishnan/movies/temp store/video/Ayalnaadu/Winter\\\\\\\s Tale (2014)/Winters.Tale.2014.720p.BluRay.x264.YIFY.srt:original_size=1280x536:charenc=UTF-8'
Error opening filters!
2015-04-06 15:51:28,746 DEBUG [TranscodingJobListener] Transcoding finished; successful: false
2015-04-06 15:51:33,034 DEBUG [DiscoveryAdvertisementNotifier] Multicasting SSDP alive using interface eth0 (eth0) and address 192.168.1.106, timeout = 0
2015-04-06 15:51:33,035 DEBUG [DiscoveryAdvertisementNotifier] Sending 6 'alive' messages describing device e5738f9a-567c-3169-8f16-9e102aa87386
2015-04-06 15:51:34,839 DEBUG [DiscoveryAdvertisementNotifier] Will advertise again in 00:03:52 (advertisement duration is 1800 sec.)
2015-04-06 15:51:38,715 DEBUG [TranscodingJobListener] Deleted temp file '/tmp/Serviio/transcoding-temp-8081-3-ORIGINAL-55c07b1e7542e38c8b75d035ef7e6182.stf': true
2015-04-06 15:51:38,715 DEBUG [AbstractTranscodingDeliveryEngine] Removing transcoding listener with id transcoding-temp-8081-3-ORIGINAL-55c07b1e7542e38c8b75d035ef7e6182.stf
2015-04-06 15:51:38,715 ERROR [ResourceTransportRequestHandler] Error while processing resource, sending back 500 error. Message: FFmpeg execution failed
java.io.IOException: FFmpeg execution failed
   at org.serviio.delivery.resource.transcode.FileBasedTranscodingDeliveryStrategy.createInputStream(FileBasedTranscodingDeliveryStrategy.java:49)
   at org.serviio.delivery.resource.transcode.AbstractTranscodingDeliveryEngine.retrieveTranscodedResource(AbstractTranscodingDeliveryEngine.java:134)
   at org.serviio.delivery.resource.AbstractDeliveryEngine.deliver(AbstractDeliveryEngine.java:110)
   at org.serviio.delivery.MediaResourceRetrievalStrategy.retrieveResource(MediaResourceRetrievalStrategy.java:153)
   at org.serviio.delivery.GETMethodProcessor.retrieveResource(GETMethodProcessor.java:121)
   at org.serviio.delivery.GETMethodProcessor.buildDeliveryContainer(GETMethodProcessor.java:48)
   at org.serviio.delivery.AbstractMethodProcessor.handleRequest(AbstractMethodProcessor.java:132)
   at org.serviio.delivery.ResourceDeliveryProcessor.deliverContent(ResourceDeliveryProcessor.java:81)
   at org.serviio.upnp.webserver.ResourceTransportRequestHandler.handleRequest(ResourceTransportRequestHandler.java:86)
   at org.serviio.upnp.webserver.AbstractRequestHandler.handle(AbstractRequestHandler.java:61)
   at org.apache.http.protocol.HttpService.doService(HttpService.java:293)
   at org.serviio.upnp.webserver.ServiioHttpService.doService(ServiioHttpService.java:77)
   at org.apache.http.protocol.HttpService.handleRequest(HttpService.java:212)
   at org.serviio.upnp.webserver.WebServer$WorkerThread.run(WebServer.java:196)



UPDATE:
Upon removing the srt from the folder, the video works fine, so it is evident that the problem is the srt, how can I fix this, I do need subs :(

Some more info from log incl ffmpeg command:
  Code:
2015-04-06 16:36:23,742 DEBUG [MediaItemDAOImpl] Getting file of media item 8233
2015-04-06 16:36:23,744 DEBUG [SubtitlesService] Found external subtitle file: /media/ananthakrishnan/movies/temp store/video/Ayalnaadu/Winter's Tale/Winters.Tale.2014.720p.BluRay.x264.YIFY.srt
2015-04-06 16:36:23,744 DEBUG [GenreDAOImpl] Reading a Genre (id = 121)
2015-04-06 16:36:23,744 DEBUG [VideoDAOImpl] Reading a Video (id = 8233)
2015-04-06 16:36:23,745 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 8233 and profile Xbox 360
2015-04-06 16:36:23,745 DEBUG [MediaItemDAOImpl] Getting file of media item 8233
2015-04-06 16:36:23,746 DEBUG [SubtitlesService] Found external subtitle file: /media/ananthakrishnan/movies/temp store/video/Ayalnaadu/Winter's Tale/Winters.Tale.2014.720p.BluRay.x264.YIFY.srt
2015-04-06 16:36:23,746 DEBUG [MediaItemDAOImpl] Getting file of media item 8233
2015-04-06 16:36:23,747 DEBUG [SubtitlesService] Found external subtitle file: /media/ananthakrishnan/movies/temp store/video/Ayalnaadu/Winter's Tale/Winters.Tale.2014.720p.BluRay.x264.YIFY.srt
2015-04-06 16:36:23,747 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file Winters.Tale.2014.720p.BluRay.x264.YIFY.mp4: WMVHIGH_FULL
2015-04-06 16:36:23,747 DEBUG [CoverImageDAOImpl] Reading a CoverImage (id = 6841)
2015-04-06 16:36:23,748 DEBUG [MediaItemDAOImpl] Getting file of media item 8233
2015-04-06 16:36:23,749 DEBUG [SubtitlesService] Found external subtitle file: /media/ananthakrishnan/movies/temp store/video/Ayalnaadu/Winter's Tale/Winters.Tale.2014.720p.BluRay.x264.YIFY.srt
2015-04-06 16:36:23,749 DEBUG [FolderDAOImpl] Getting number of VIDEO sub-folders and media items in folder 1537 (filter: ALL) [Any]
2015-04-06 16:36:23,750 DEBUG [LocalContentCacheDecorator] Stored entry in the cache (local_default), returning it
2015-04-06 16:36:23,754 DEBUG [ServiceControlRequestHandler] Returning OK SOAP message
2015-04-06 16:36:26,616 DEBUG [DiscoveryAdvertisementNotifier] Multicasting SSDP alive using interface eth0 (eth0) and address 192.168.1.106, timeout = 0
2015-04-06 16:36:26,617 DEBUG [DiscoveryAdvertisementNotifier] Sending 6 'alive' messages describing device e5738f9a-567c-3169-8f16-9e102aa87386
2015-04-06 16:36:27,433 DEBUG [ServiioHttpService] Incoming request from /192.168.1.108:43525: GET /resource/8233/MEDIA_ITEM/WMVHIGH_FULL-0/ORIGINAL HTTP/1.1, headers = [User-Agent: Xenon,Connection: Keep-alive,Host: 192.168.1.106:8895]]
2015-04-06 16:36:27,433 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.108
2015-04-06 16:36:27,434 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.108
2015-04-06 16:36:27,439 DEBUG [ResourceDeliveryProcessor] Resource request accepted. Using client 'Identifier=192.168.1.108, Profile=Xbox 360'
2015-04-06 16:36:27,440 DEBUG [ResourceDeliveryProcessor] Request for resource 8233 and type 'MEDIA_ITEM' received
2015-04-06 16:36:27,440 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 8233 (local)
2015-04-06 16:36:27,440 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 8233)
2015-04-06 16:36:27,446 DEBUG [VideoDAOImpl] Reading a Video (id = 8233)
2015-04-06 16:36:27,447 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 8233, format WMVHIGH_FULL and profile Xbox 360
2015-04-06 16:36:27,447 DEBUG [MediaItemDAOImpl] Getting file of media item 8233
2015-04-06 16:36:27,448 DEBUG [SubtitlesService] Found external subtitle file: /media/ananthakrishnan/movies/temp store/video/Ayalnaadu/Winter's Tale/Winters.Tale.2014.720p.BluRay.x264.YIFY.srt
2015-04-06 16:36:27,448 DEBUG [MediaItemDAOImpl] Getting file of media item 8233
2015-04-06 16:36:27,449 DEBUG [SubtitlesService] Found external subtitle file: /media/ananthakrishnan/movies/temp store/video/Ayalnaadu/Winter's Tale/Winters.Tale.2014.720p.BluRay.x264.YIFY.srt
2015-04-06 16:36:27,449 DEBUG [AbstractTranscodingDeliveryEngine] Getting media info for transcoded version of file Winters.Tale.2014.720p.BluRay.x264.YIFY.mp4
2015-04-06 16:36:27,449 DEBUG [MediaItemDAOImpl] Getting file of media item 8233
2015-04-06 16:36:27,450 DEBUG [SubtitlesService] Found external subtitle file: /media/ananthakrishnan/movies/temp store/video/Ayalnaadu/Winter's Tale/Winters.Tale.2014.720p.BluRay.x264.YIFY.srt
2015-04-06 16:36:27,450 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file Winters.Tale.2014.720p.BluRay.x264.YIFY.mp4: WMVHIGH_FULL
2015-04-06 16:36:27,452 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 8233 (local)
2015-04-06 16:36:27,452 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 8233)
2015-04-06 16:36:27,452 DEBUG [VideoDAOImpl] Reading a Video (id = 8233)
2015-04-06 16:36:27,453 DEBUG [VideoDeliveryEngine] Delivering item '8233' for client 'Identifier=192.168.1.108, Profile=Xbox 360'
2015-04-06 16:36:27,453 DEBUG [MediaItemDAOImpl] Getting file of media item 8233
2015-04-06 16:36:27,454 DEBUG [SubtitlesService] Found external subtitle file: /media/ananthakrishnan/movies/temp store/video/Ayalnaadu/Winter's Tale/Winters.Tale.2014.720p.BluRay.x264.YIFY.srt
2015-04-06 16:36:27,454 DEBUG [MediaItemDAOImpl] Getting file of media item 8233
2015-04-06 16:36:27,455 DEBUG [SubtitlesService] Found external subtitle file: /media/ananthakrishnan/movies/temp store/video/Ayalnaadu/Winter's Tale/Winters.Tale.2014.720p.BluRay.x264.YIFY.srt
2015-04-06 16:36:27,455 DEBUG [VideoDeliveryEngine] Delivering file 'Winters.Tale.2014.720p.BluRay.x264.YIFY.mp4' using transcoding
2015-04-06 16:36:27,455 DEBUG [MediaItemDAOImpl] Getting file of media item 8233
2015-04-06 16:36:27,456 DEBUG [SubtitlesService] Found external subtitle file: /media/ananthakrishnan/movies/temp store/video/Ayalnaadu/Winter's Tale/Winters.Tale.2014.720p.BluRay.x264.YIFY.srt
2015-04-06 16:36:27,459 DEBUG [AbstractTranscodingDeliveryEngine] No suitable transcoding job exists yet, start one for client 'Identifier=192.168.1.108, Profile=Xbox 360'
2015-04-06 16:36:27,460 DEBUG [MediaItemDAOImpl] Getting file of media item 8233
2015-04-06 16:36:27,461 DEBUG [FFMPEGWrapper] Invoking FFmpeg to transcode video file: /media/ananthakrishnan/movies/temp store/video/Ayalnaadu/Winter's Tale/Winters.Tale.2014.720p.BluRay.x264.YIFY.mp4
2015-04-06 16:36:27,461 DEBUG [ProcessExecutor] Starting /home/ananthakrishnan/bin/ffmpeg -threads auto -i /media/ananthakrishnan/movies/temp store/video/Ayalnaadu/Winter's Tale/Winters.Tale.2014.720p.BluRay.x264.YIFY.mp4 -y -threads auto -c:v wmv2 -b:v 15360k -maxrate:v 15360k -bufsize:v 15360k -vf subtitles=filename='/media/ananthakrishnan/movies/temp store/video/Ayalnaadu/Winter\\\\\\\'s Tale/Winters.Tale.2014.720p.BluRay.x264.YIFY.srt':original_size=1280x536:charenc=UTF-8 -r 24000/1001 -g 15 -c:a wmav2 -b:a 96k -ac 2 -map 0:0 -map 0:1 -sn -f asf /tmp/Serviio/transcoding-temp-8233-3-ORIGINAL-55c07b1e7542e38c8b75d035ef7e6182.stf
2015-04-06 16:36:27,498 WARN  [ProcessExecutor] Process /home/ananthakrishnan/bin/ffmpeg has a return code of 1! This is a possible error. Detailed output follows.
[AVFilterGraph @ 0x3b87e20] [Eval @ 0x7fff32a84d90] Undefined constant or missing '(' in 'auto'
[AVFilterGraph @ 0x3b87e20] Unable to parse option value "auto"
[Parsed_subtitles_0 @ 0x3b877e0] Unable to open /media/ananthakrishnan/movies/temp store/video/Ayalnaadu/Winter\\\s Tale/Winters.Tale.2014.720p.BluRay.x264.YIFY.srt
[AVFilterGraph @ 0x3b87e20] Error initializing filter 'subtitles' with args 'filename=/media/ananthakrishnan/movies/temp store/video/Ayalnaadu/Winter\\\\\\\s Tale/Winters.Tale.2014.720p.BluRay.x264.YIFY.srt:original_size=1280x536:charenc=UTF-8'
Error opening filters!
2015-04-06 16:36:27,498 DEBUG [TranscodingJobListener] Transcoding finished; successful: false
2015-04-06 16:36:28,420 DEBUG [DiscoveryAdvertisementNotifier] Will advertise again in 00:03:39 (advertisement duration is 1800 sec.)


Attaching srt file
Attachments
Winters.Tale.2014.720p.BluRay.x264.YIFY.srt.zip
(26.67 KiB) Downloaded 362 times
<<

cannon_dt

Serviio newbie

Posts: 3

Joined: Mon Apr 06, 2015 10:14 am

Post Mon Apr 06, 2015 2:05 pm

[SOLVED]Re: Need some help with Mp4 and Xbox

It was the apostrophe !!!!!!
Now it works as expected :)
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Tue Apr 07, 2015 4:37 pm

Re: [SOLVED]Need some help with Mp4 and Xbox

This (the subtitles apostrophy on Linux) should be fixed in 1.5.1 and above I think

Return to Serviio Support & Help

Who is online

Users browsing this forum: No registered users and 30 guests

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