Page 1 of 2

Transcoding HLS (applehttp, m3u8) via Serviio

PostPosted: Sat Feb 02, 2013 4:20 am
by portshner
Hey Guys,
Love Serviio, use it for everything.

One issue I'm running in to. When trying to load an M3U8 playlist file in to the "Live stream" part of the libary, I can see it on my PS3 or XBOX, I press it, it plays for under a minute, then freezes and crashes.

It works so well until it crashes too, any input would help.

Here's a log

2013-02-01 23:15:35,350 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.22
2013-02-01 23:15:40,328 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target upnp:rootdevice from address /192.168.1.22:58912
2013-02-01 23:15:40,329 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.22
2013-02-01 23:15:40,329 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target upnp:rootdevice from address /192.168.1.22:58912
2013-02-01 23:15:40,329 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.22
2013-02-01 23:15:40,329 DEBUG [DiscoverySearchResponder] Sending 1 M-SEARCH response message(s) to /192.168.1.22:58912
2013-02-01 23:15:40,330 DEBUG [DiscoverySearchResponder] Sending 1 M-SEARCH response message(s) to /192.168.1.22:58912
2013-02-01 23:15:40,331 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target urn:schemas-upnp-org:device:CE:1 from address /192.168.1.22:58912
2013-02-01 23:15:40,331 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.22
2013-02-01 23:15:40,332 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target urn:schemas-upnp-org:device:MediaServer:1 from address /192.168.1.22:58912
2013-02-01 23:15:40,332 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.22
2013-02-01 23:15:40,332 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target urn:schemas-upnp-org:device:CE:1 from address /192.168.1.22:58912
2013-02-01 23:15:40,332 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.22
2013-02-01 23:15:40,332 DEBUG [DiscoverySearchResponder] Sending 1 M-SEARCH response message(s) to /192.168.1.22:58912
2013-02-01 23:15:40,332 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target urn:dmc-samsung-com:device:SyncServer:1 from address /192.168.1.22:58912
2013-02-01 23:15:40,332 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.22
2013-02-01 23:15:40,333 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target urn:samsung.com:device:MainTVServer2:1 from address /192.168.1.22:58912
2013-02-01 23:15:40,333 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.22
2013-02-01 23:15:40,333 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target urn:dmc-samsung-com:device:SyncServer:1 from address /192.168.1.22:58912
2013-02-01 23:15:40,333 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.22
2013-02-01 23:15:40,333 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target urn:samsung.com:device:RemoteControlReceiver:1 from address /192.168.1.22:58912
2013-02-01 23:15:40,333 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.22
2013-02-01 23:15:40,334 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target urn:schemas-upnp-org:device:MediaRenderer:1 from address /192.168.1.22:58912
2013-02-01 23:15:40,334 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.22
2013-02-01 23:15:40,334 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target urn:samsung.com:device:RemoteControlReceiver:1 from address /192.168.1.22:58912
2013-02-01 23:15:40,334 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.22
2013-02-01 23:15:43,204 DEBUG [DiscoverySSDPMessageListener] The message is not a valid M-SEARCH request
2013-02-01 23:15:43,204 DEBUG [DiscoverySSDPMessageListener] The message is not a valid M-SEARCH request

Not too sure what I should be looking for though.

Thanks!

Re: Transcoding HLS (m3u8) via Serviio

PostPosted: Sat Feb 02, 2013 4:30 am
by rdaltry
I am also having this same issue. Playback is perfect up until it stops and replaying yields a network connection error. Any input is greatly appreciated! Thanks in advance.

Re: Transcoding HLS (m3u8) via Serviio

PostPosted: Sat Feb 02, 2013 4:34 am
by portshner
also just noticed

2013-02-01 23:33:01,464 DEBUG [WebServer] I/O error: Pipe broken

in logs. This is happening on XBOX, PS3, and Samsung Smart TV

Re: Transcoding HLS (m3u8) via Serviio

PostPosted: Sat Feb 02, 2013 5:17 am
by portshner
ffmpeg -i returns:

[NULL @ 003BE8C0] non-existing PPS referenced
[h264 @ 0142F300] non-existing PPS 0 referenced
[h264 @ 0142F300] decode_slice_header error
[h264 @ 0142F300] no frame!
[NULL @ 003BE8C0] non-existing PPS referenced
[h264 @ 0142F300] non-existing PPS 0 referenced
[h264 @ 0142F300] decode_slice_header error
[h264 @ 0142F300] no frame!
[NULL @ 003BE8C0] non-existing PPS referenced
[h264 @ 0142F300] non-existing PPS 0 referenced
[h264 @ 0142F300] decode_slice_header error
[h264 @ 0142F300] no frame!
[NULL @ 003BE8C0] non-existing PPS referenced
[h264 @ 0142F300] non-existing PPS 0 referenced
[h264 @ 0142F300] decode_slice_header error
[h264 @ 0142F300] no frame!
[NULL @ 003BE8C0] non-existing PPS referenced
[h264 @ 0142F300] non-existing PPS 0 referenced
[h264 @ 0142F300] decode_slice_header error
[h264 @ 0142F300] no frame!
[NULL @ 003BE8C0] non-existing PPS referenced
[h264 @ 0142F300] non-existing PPS 0 referenced
[h264 @ 0142F300] decode_slice_header error
[h264 @ 0142F300] no frame!
[NULL @ 003BE8C0] non-existing PPS referenced
[h264 @ 0142F300] non-existing PPS 0 referenced
[h264 @ 0142F300] decode_slice_header error
[h264 @ 0142F300] no frame!
[NULL @ 003BE8C0] non-existing PPS referenced
[h264 @ 0142F300] non-existing PPS 0 referenced
[h264 @ 0142F300] decode_slice_header error
[h264 @ 0142F300] no frame!
[NULL @ 003BE8C0] non-existing PPS referenced
[h264 @ 0142F300] non-existing PPS 0 referenced
[h264 @ 0142F300] decode_slice_header error
[h264 @ 0142F300] no frame!
[NULL @ 003BE8C0] non-existing PPS referenced
[h264 @ 0142F300] non-existing PPS 0 referenced
[h264 @ 0142F300] decode_slice_header error
[h264 @ 0142F300] no frame!
[NULL @ 003BE8C0] non-existing PPS referenced
[h264 @ 0142F300] non-existing PPS 0 referenced
[h264 @ 0142F300] decode_slice_header error
[h264 @ 0142F300] no frame!
[NULL @ 003BE8C0] non-existing PPS referenced
[h264 @ 0142F300] non-existing PPS 0 referenced
[h264 @ 0142F300] decode_slice_header error
[h264 @ 0142F300] no frame!
[NULL @ 003BE8C0] non-existing PPS referenced
[h264 @ 0142F300] non-existing PPS 0 referenced
[h264 @ 0142F300] decode_slice_header error
[h264 @ 0142F300] no frame!
[NULL @ 003BE8C0] non-existing PPS referenced
[h264 @ 0142F300] non-existing PPS 0 referenced
[h264 @ 0142F300] decode_slice_header error
[h264 @ 0142F300] no frame!
[NULL @ 003BE8C0] non-existing PPS referenced
[h264 @ 0142F300] non-existing PPS 0 referenced
[h264 @ 0142F300] decode_slice_header error
[h264 @ 0142F300] no frame!
[NULL @ 003BE8C0] non-existing PPS referenced
[h264 @ 0142F300] non-existing PPS 0 referenced
[h264 @ 0142F300] decode_slice_header error
[h264 @ 0142F300] no frame!
[NULL @ 003BE8C0] non-existing PPS referenced
[h264 @ 0142F300] non-existing PPS 0 referenced
[h264 @ 0142F300] decode_slice_header error
[h264 @ 0142F300] no frame!
[NULL @ 003BE8C0] non-existing PPS referenced
[h264 @ 0142F300] non-existing PPS 0 referenced
[h264 @ 0142F300] decode_slice_header error
[h264 @ 0142F300] no frame!
[NULL @ 003BE8C0] non-existing PPS referenced
[h264 @ 0142F300] non-existing PPS 0 referenced
[h264 @ 0142F300] decode_slice_header error
[h264 @ 0142F300] no frame!
[hls,applehttp @ 003BBB80] Estimating duration from bitrate, this may be inaccur
ate
Input #0, hls,applehttp, from 'http://url.com/playlist.m3u8':
Duration: N/A, start: 7776.701000, bitrate: N/A
Stream #0:0: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 1280x720
[SAR 1:1 DAR 16:9], 59.94 tbr, 90k tbn, 119.88 tbc
Metadata:
variant_bitrate : 1800000
Stream #0:1: Audio: aac ([15][0][0][0] / 0x000F), 44100 Hz, stereo, s16
Metadata:
variant_bitrate : 1800000
At least one output file must be specified

Re: Transcoding HLS (m3u8) via Serviio

PostPosted: Sun Feb 03, 2013 3:56 am
by portshner
Nobody has the slightest clue? Using my Samsung ES8000 series, it will play for about 15 seconds, then Serviio will disconnect from the TV completely, at first I thought it may be my network, but on several different internet providers/networks the same thing happends, on any device.

What could possibly be caushing this? I've tried updating to a new FFMpeg with no luck either, stumped.

Re: Transcoding HLS (applehttp, m3u8) via Serviio

PostPosted: Wed Feb 06, 2013 9:31 am
by portshner
bumping this because it is driving me insane.

I have tried updating ffmpeg, i have tried messing with the profiles, i have tried messing with application-profiles.

I got something in logs I think that can help

2013-02-06 04:14:55,101 DEBUG [AbstractTranscodingDeliveryEngine] Getting media info for transcoded version of file http://67.213.218.185/vod/HSTV15_020520 ... +SbTX2iA==
2013-02-06 04:14:55,101 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file http://67.213.218.185/vod/HSTV15_020520 ... +SbTX2iA==: WMVHIGH_FULL
2013-02-06 04:14:55,103 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 1000000080001174 (online)
2013-02-06 04:14:55,103 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 8)
2013-02-06 04:14:55,103 DEBUG [VideoDeliveryEngine] Delivering item '1000000080001174' for client 'IPAddress=/192.168.1.39, Profile=Xbox 360'
2013-02-06 04:14:55,103 DEBUG [VideoDeliveryEngine] Delivering file 'http://67.213.218.185/vod/HSTV15_02052013/PREMIUM_HSTV_15HD.m3u8?token=ES/2n1GVzVma+wFjWYmLn8MUEX4rKFBc1nafID+peI6nyB1MI1GLOdwLLWu6SUorE9YxEIoN0Xouy6+SbTX2iA==' using transcoding
2013-02-06 04:14:55,103 DEBUG [AbstractTranscodingDeliveryEngine] No suitable transcoding job exists yet, start one for client 'IPAddress=/192.168.1.39, Profile=Xbox 360'
2013-02-06 04:14:55,103 DEBUG [FFMPEGWrapper] Invoking FFmpeg to transcode video file: http://67.213.218.185/vod/HSTV15_020520 ... +SbTX2iA==
2013-02-06 04:14:55,104 DEBUG [ProcessExecutor] Starting C:\Program Files\Serviio\bin\\..\lib/ffmpeg.exe -analyzeduration 10000000 -threads auto -i http://67.213.218.185/vod/HSTV15_020520 ... +SbTX2iA== -y -copyts -c:v wmv2 -b:v 15360k -maxrate:v 15360k -bufsize:v 15360k -r 30000/1001 -g 15 -c:a wmav2 -b:a 112k -ac 2 -map 0:0 -map 0:1 -sn -f asf pipe:
2013-02-06 04:14:57,608 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file http://67.213.218.185/vod/HSTV15_020520 ... +SbTX2iA==: WMVHIGH_FULL
2013-02-06 04:14:57,608 DEBUG [ResourceDeliveryProcessor] Stream entity has length: 50000000000
2013-02-06 04:14:57,609 DEBUG [ResourceDeliveryProcessor] Sending file back
2013-02-06 04:14:57,609 DEBUG [ResourceTransportRequestHandler] Creating entity with chunked transfer
2013-02-06 04:14:57,609 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 200 OK, headers = [[Content-Type: video/x-ms-wmv,Date: Wed, 06 Feb 2013 09:14:57 GMT,Server: Windows NT (unknown), UPnP/1.0 DLNADOC/1.50, Serviio/1.1,Cache-control: no-cache,transferMode.dlna.org: Streaming,realTimeInfo.dlna.org: DLNA.ORG_TLAG=*]]

I'm not sur ewhy it's reading it as a WMV (is that what it is transcoding to?) - The file has a bitrate of 3200k - not sure if that means much.

If you can help me with this you will be a god amongst men.

Re: Transcoding HLS (applehttp, m3u8) via Serviio

PostPosted: Wed Feb 06, 2013 11:17 am
by Illico
Your m3u8 stream is an "applehttp/h264/aac" format not supported by your XBOX renderer (idem PS3 or Samsung).
So Serviio/ffmpeg will transcode to WMVHIGH_FULL format supported by your XBOX device.

The ffmpeg command line seems good :
"C:\Program Files\Serviio\bin\\..\lib/ffmpeg.exe" -analyzeduration 10000000 -threads auto -i "http://67.213.218.185/vod/HSTV15_02052013/PREMIUM_HSTV_15HD.m3u8?token=ES/2n1GVzVma+wFjWYmLn8MUEX4rKFBc1nafID+peI6nyB1MI1GLOdwLLWu6SUorE9YxEIoN0Xouy6+SbTX2iA==" -y -copyts -c:v wmv2 -b:v 15360k -maxrate:v 15360k -bufsize:v 15360k -r 30000/1001 -g 15 -c:a wmav2 -b:a 112k -ac 2 -map 0:0 -map 0:1 -sn -f asf pipe:

The 3200k is a high bitrate for a live stream and I don't know if your cpu system support such load (we have to check the ffmpeg fps process value).

If you can try the command line locally and check the ffmpeg output log (you probably need to rebuild token), we probably find error or fps value.

Re: Transcoding HLS (applehttp, m3u8) via Serviio

PostPosted: Wed Feb 06, 2013 6:55 pm
by portshner
Thanks for the answer!

Running that command locally, scrolls a bunch of unidentified characters and freezes cmd prompt.

System specs are:

Windows 8
Intel Core i7 3770k
32GB ram
256GB SSD Vector

I think the system should be good enough to handle the transcode :)

I've posted a screenshot of CMD output http://imageshack.us/photo/my-images/9/ffmpegv.gif/

Thanks for all of your help.

Re: Transcoding HLS (applehttp, m3u8) via Serviio

PostPosted: Thu Feb 07, 2013 10:53 pm
by zip
change the pipe: at the end to a file path (to store the stream on the drive rather than pushing it to stdout)

Re: Transcoding HLS (applehttp, m3u8) via Serviio

PostPosted: Fri Feb 08, 2013 1:57 am
by portshner
Aha,

Duration: 02:42:27.00, start: 0.700000, bitrate: N/A
Program 0
Metadata:
variant_bitrate : 3200000
Stream #0:0: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 1280x720
[SAR 1:1 DAR 16:9], 29.97 fps, 60 tbr, 90k tbn, 119.88 tbc
Metadata:
variant_bitrate : 3200000
Stream #0:1: Audio: aac ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp, 10
5 kb/s
Metadata:
variant_bitrate : 3200000
[wmv2 @ 0000000003a19b40] impossible bitrate constraints, this will fail
Output #0, asf, to 'O:\file.asf':
Metadata:
WM/EncodingSettings: Lavf54.61.104
Stream #0:0: Video: wmv2 (WMV2 / 0x32564D57), yuv420p, 1280x720 [SAR 1:1 DAR
16:9], q=2-31, 15360 kb/s, 1k tbn, 29.97 tbc
Metadata:
variant_bitrate : 3200000
Stream #0:1: Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo, fltp, 112
kb/s
Metadata:
variant_bitrate : 3200000
Stream mapping:
Stream #0:0 -> #0:0 (h264 -> wmv2)
Stream #0:1 -> #0:1 (aac -> wmav2)
Press [q] to stop, [?] for help
frame= 63 fps=0.0 q=2.0 size= 2060kB time=00:00:02.13 bitrate=7889.7kbits/s
frame= 107 fps=105 q=2.0 size= 4616kB time=00:00:03.62 bitrate=10432.2kbits/
warning, clipping 1 dct coefficients to -255..255
frame= 155 fps=102 q=2.0 size= 6857kB time=00:00:05.20 bitrate=10794.0kbits/
frame= 195 fps= 97 q=2.0 size= 10616kB time=00:00:06.55 bitrate=13273.6kbits/
frame= 222 fps= 88 q=3.0 size= 12748kB time=00:00:07.43 bitrate=14049.2kbits/
frame= 247 fps= 82 q=3.0 size= 14304kB time=00:00:08.26 bitrate=14170.6kbits/
s dup=21 drop=221

That is all that is shown, after this it stops - and file.asf plays for 3 seconds and stops.

Re: Transcoding HLS (applehttp, m3u8) via Serviio

PostPosted: Fri Feb 08, 2013 8:32 am
by Illico
portshner wrote:s dup=21 drop=221

I don't know what this...ffmpeg problem, you have to contact ffmpeg support forum.

Re: Transcoding HLS (applehttp, m3u8) via Serviio

PostPosted: Fri Feb 08, 2013 9:36 am
by portshner
I'm not too sure it's an ffmpeg issue, although running that command in ffmpeg and trying to strip it, still returns the same.

c:\Program Files\Serviio\lib>ffmpeg -i "http://67.213.218.185/vod/HSTV15_0205201
3/PREMIUM_HSTV_15HD.m3u8" -f asf O:\output.asf
ffmpeg version N-49610-gc2dd5a1 Copyright (c) 2000-2013 the FFmpeg developers
built on Feb 5 2013 13:26:02 with gcc 4.7.2 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libg
sm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --e
nable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --e
nable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-
libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable
-libx264 --enable-libxavs --enable-libxvid --enable-zlib
libavutil 52. 17.101 / 52. 17.101
libavcodec 54. 91.100 / 54. 91.100
libavformat 54. 61.104 / 54. 61.104
libavdevice 54. 3.103 / 54. 3.103
libavfilter 3. 35.101 / 3. 35.101
libswscale 2. 2.100 / 2. 2.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 2.100 / 52. 2.100
[mpegts @ 0000000002128840] Estimating duration from bitrate, this may be inaccu
rate
Input #0, hls,applehttp, from 'http://67.213.218.185/vod/HSTV15_02052013/PREMIUM
_HSTV_15HD.m3u8':
Duration: 02:42:27.00, start: 0.700000, bitrate: N/A
Program 0
Metadata:
variant_bitrate : 3200000
Stream #0:0: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 1280x720
[SAR 1:1 DAR 16:9], 29.97 fps, 60 tbr, 90k tbn, 119.88 tbc
Metadata:
variant_bitrate : 3200000
Stream #0:1: Audio: aac ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp, 10
5 kb/s
Metadata:
variant_bitrate : 3200000
Output #0, asf, to 'O:\output.asf':
Metadata:
WM/EncodingSettings: Lavf54.61.104
Stream #0:0: Video: msmpeg4v3 (MP43 / 0x3334504D), yuv420p, 1280x720 [SAR 1:
1 DAR 16:9], q=2-31, 200 kb/s, 1k tbn, 60 tbc
Metadata:
variant_bitrate : 3200000
Stream #0:1: Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo, fltp, 128
kb/s
Metadata:
variant_bitrate : 3200000
Stream mapping:
Stream #0:0 -> #0:0 (h264 -> msmpeg4)
Stream #0:1 -> #0:1 (aac -> wmav2)
Press [q] to stop, [?] for help
frame= 116 fps=0.0 q=31.0 size= 707kB time=00:00:02.04 bitrate=2833.3kbits/
frame= 229 fps=228 q=31.0 size= 1451kB time=00:00:03.94 bitrate=3010.1kbits/
frame= 345 fps=229 q=31.0 size= 2257kB time=00:00:05.89 bitrate=3135.3kbits/
frame= 457 fps=227 q=31.0 size= 3044kB time=00:00:07.70 bitrate=3235.2kbits/
frame= 471 fps=183 q=31.0 size= 3123kB time=00:00:07.98 bitrate=3202.7kbits/
frame= 561 fps=183 q=31.0 size= 3873kB time=00:00:09.47 bitrate=3348.9kbits/
frame= 675 fps=189 q=31.0 size= 4638kB time=00:00:11.37 bitrate=3339.7kbits/
frame= 788 fps=194 q=31.0 size= 5426kB time=00:00:13.23 bitrate=3358.1kbits/
frame= 898 fps=196 q=31.0 size= 6388kB time=00:00:15.04 bitrate=3478.1kbits/
s dup=1 drop=0

It then freezes (so the file length is 15 seconds, then it stops, which is exactly the behavior when using Serviio)

The Roku somehow manages to succesfully transcode HLS in to someting playable.

http://forums.roku.com/viewtopic.php?p= ... c4cb7c2e9f

% cat /usr/share/ffmpeg/libx264-roku.ffpreset
coder=1
flags=+loop
cmp=+chroma
partitions=+parti8x8+parti4x4+partp8x8+partb8x8
me_method=umh
subq=8
me_range=16
g=250
keyint_min=25
sc_threshold=40
i_qfactor=0.71
b_strategy=2
qcomp=0.6
qmin=10
qmax=51
qdiff=4
bf=4
refs=4
directpred=3
trellis=1
flags2=+wpred+mixed_refs+dct8x8+fastpskip

Maybe that can help someone that knows this stuff come up with a different ffmpeg command?

Re: Transcoding HLS (applehttp, m3u8) via Serviio

PostPosted: Fri Feb 08, 2013 10:01 am
by portshner
Would also like to add, the stream is flawless in VLC 2.0.5 (Windows 8)

Re: Transcoding HLS (applehttp, m3u8) via Serviio

PostPosted: Mon Feb 11, 2013 7:34 pm
by portshner
bump?

Re: Transcoding HLS (applehttp, m3u8) via Serviio

PostPosted: Tue Feb 12, 2013 9:04 am
by Illico
portshner wrote:...
The Roku somehow manages to succesfully transcode HLS in to someting playable.
http://forums.roku.com/viewtopic.php?p= ... c4cb7c2e9f
...
Maybe that can help someone that knows this stuff come up with a different ffmpeg command?

Why are you talking about Roku h264 encoding option ??

The above ffmpeg command transcode m3u8 HLS stream to asf output format, but it seems that the process crash arround 15s.
Then contact ffmpeg support forum.

You can try with the latest ffmpeg/windows build (make a backup of the serviio ffmpeg version) : http://ffmpeg.zeranoe.com/builds/

Re: Transcoding HLS (applehttp, m3u8) via Serviio

PostPosted: Wed Feb 20, 2013 6:42 pm
by n3mmr
I think my post viewtopic.php?f=5&t=9345 might have a bearing on the problem in this thread.

I think there's a lack of robustness in ffmeg combined with serviio. Most of the problem seems to be in ffmpeg, and serviio could probably do nothing more about it than being very accurate in the args to ffmpeg, and possibly do like rtmpdump used to do, keep track of where ffmpeg failed and restart ffmpeg from that point. If that can even be done with HLS and HDS.

Re: Transcoding HLS (applehttp, m3u8) via Serviio

PostPosted: Thu Feb 21, 2013 9:06 pm
by grolschie
Has anyone submitted a bug report to ffmpeg: http://ffmpeg.org/trac/ffmpeg/report?

Re: Transcoding HLS (applehttp, m3u8) via Serviio

PostPosted: Mon Feb 25, 2013 1:17 am
by portshner
I haven't - but it does seem like an issue with FFMpeg. Hopefully it gets fixed soon.

Re: Transcoding HLS (applehttp, m3u8) via Serviio

PostPosted: Mon Feb 25, 2013 4:43 am
by grolschie
I would suggest, if possible, that people submit a bug report to ffmpeg (where applicable) as they might not be aware of the particular issue one is having. I don't have a concrete example that I can provide them that I can defintely say is an ffmpeg problem.

Does ffplay.exe play the stream/s no problems? I downloaded this with the Zeranoe ffmpeg binary package. It might be a good test to see if it's an ffmpeg problem.

What about VLC?

Re: Transcoding HLS (applehttp, m3u8) via Serviio

PostPosted: Tue Feb 26, 2013 9:02 am
by portshner
VLC plays it fine, I'm not sure how to use ffplay