Stream to Android
87 posts
• Page 4 of 5 • 1, 2, 3, 4, 5
not being able to stream in .mp4/.mkv container is a upno limitation or a serviio limitation?
Re: Stream to Android
Its not that you cannot stream videos in an mp4 container, its just that you cannot stream a video in an mp4 container before you finish writing to it, so you cannot transcode to it on the fly and stream as you go. If your videos were already in mp4 containers with h264 video and aac audio, they would just fine with ServiiGo on Original, or any DLNA app.
As for mkv, again you can stream it just fine, there has never really been a need to transcode/repackage to it, normally mpegts works just fine.
As for mkv, again you can stream it just fine, there has never really been a need to transcode/repackage to it, normally mpegts works just fine.
Re: Stream to Android
Do you happen to have a mpegts sample file to test locally somewhere?
Re: Stream to Android
try viewtopic.php?f=5&t=608#p9486 (although that doesn't really contain what you wanted).
If you play a 'Low' quality video in ServiiGo, serviio will generate a transcoded mpegts file with mpeg2video in you tmp directory, you could then copy that to the sd card and try to play it locally.
If you play a 'Low' quality video in ServiiGo, serviio will generate a transcoded mpegts file with mpeg2video in you tmp directory, you could then copy that to the sd card and try to play it locally.
Re: Stream to Android
Good Morning
Lets see if I can help.
First a review of the posts refer to a variety of things.
online & local, choppy video(whats that mean?) and choppy audio,
different players, different codecs.
We need to get a solid base and work on one thing.
I'd suggest the folllowing:
Serviio 1.0 with my Android Profile selected for your device.
MX player with decode default set to SW.
This file..download using
http://www.filedropper.com/testavcac312sec
Force Refresh your Serviio library
Verify the video plays on your TV with Serviio.
If the TV playback works, try and play the video on your device, first with bubbleUPnP/MX player, then with ServiiGo/MX player, Original, Medium and post the result in each case.
With Bubble and original, measure how long it took the video to play..it will be longer than 12 seconds.
Lets see if I can help.
First a review of the posts refer to a variety of things.
online & local, choppy video(whats that mean?) and choppy audio,
different players, different codecs.
We need to get a solid base and work on one thing.
I'd suggest the folllowing:
Serviio 1.0 with my Android Profile selected for your device.
MX player with decode default set to SW.
This file..download using
http://www.filedropper.com/testavcac312sec
Force Refresh your Serviio library
Verify the video plays on your TV with Serviio.
If the TV playback works, try and play the video on your device, first with bubbleUPnP/MX player, then with ServiiGo/MX player, Original, Medium and post the result in each case.
With Bubble and original, measure how long it took the video to play..it will be longer than 12 seconds.
Last edited by jhb50 on Sun Jul 29, 2012 1:27 pm, edited 1 time in total.
Re: Stream to Android
i tested 3 files:
1)
I downloaded a file from:
http://www.w6rz.net/
Input #0, mpegts, from 'bbb24p_00.ts':
Duration: 00:00:49.12, start: 11.516278, bitrate: 74245 kb/s
Program 1
Stream #0.0[0x31]: Video: mpeg2video (4:2:2), yuv422p, 1920x1080 [PAR 1:1 DAR 16:9], 70010 kb/s, 24 fps, 24 tbr, 90k tbn, 48 tbc
Stream #0.1[0x32]: Audio: ac3, 48000 Hz, stereo, s16, 384 kb/s
At least one output file must be specified
mx player plays the file, choppy video and sound dies after a few seconds, but its 1080 so that was to be expected, but i heared some sound and saw some video until it hang
mobo player stays mute
2) the file you pasted plays in mx player
Input #0, mpegts, from 'video_subs_ttxt+dvbsub.ts':
Duration: 00:02:21.72, start: 458.712200, bitrate: 6010 kb/s
Program 6301
Metadata:
service_name : BBC 1 London
service_provider: BSkyB
Stream #0.0[0x1388]: Video: mpeg2video (Main), yuv420p, 720x576 [PAR 64:45 DAR 16:9], 7980 kb/s, 25.40 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0.1[0x1389](eng): Audio: mp2, 48000 Hz, stereo, s16, 256 kb/s
Stream #0.2[0x138a](NAR): Audio: mp2, 48000 Hz, stereo, s16, 256 kb/s
Stream #0.3[0x138b](eng): Subtitle: [6][0][0][0] / 0x0006
...
3) i enabled the profile proposed earlier
"<Profile id="android" name="Android NVidia" extendsProfileId="1">
<Transcoding>
<Video targetContainer="mpegts" targetACodec="aac">
<Matches container="*" aCodec="ac3" />
<Matches container="*" aCodec="mp3" />
</Video>
</Transcoding>
</Profile>
"
started bubbleupnp and tried to download the file to sd card, interresting thing, download is not possible
tried with upnplay download failed aswell
4) serviiogo test
could not find a tmp/ dir but i assume its the same problem, i am unable to download/stream.
1)
I downloaded a file from:
http://www.w6rz.net/
Input #0, mpegts, from 'bbb24p_00.ts':
Duration: 00:00:49.12, start: 11.516278, bitrate: 74245 kb/s
Program 1
Stream #0.0[0x31]: Video: mpeg2video (4:2:2), yuv422p, 1920x1080 [PAR 1:1 DAR 16:9], 70010 kb/s, 24 fps, 24 tbr, 90k tbn, 48 tbc
Stream #0.1[0x32]: Audio: ac3, 48000 Hz, stereo, s16, 384 kb/s
At least one output file must be specified
mx player plays the file, choppy video and sound dies after a few seconds, but its 1080 so that was to be expected, but i heared some sound and saw some video until it hang
mobo player stays mute
2) the file you pasted plays in mx player
Input #0, mpegts, from 'video_subs_ttxt+dvbsub.ts':
Duration: 00:02:21.72, start: 458.712200, bitrate: 6010 kb/s
Program 6301
Metadata:
service_name : BBC 1 London
service_provider: BSkyB
Stream #0.0[0x1388]: Video: mpeg2video (Main), yuv420p, 720x576 [PAR 64:45 DAR 16:9], 7980 kb/s, 25.40 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0.1[0x1389](eng): Audio: mp2, 48000 Hz, stereo, s16, 256 kb/s
Stream #0.2[0x138a](NAR): Audio: mp2, 48000 Hz, stereo, s16, 256 kb/s
Stream #0.3[0x138b](eng): Subtitle: [6][0][0][0] / 0x0006
...
3) i enabled the profile proposed earlier
"<Profile id="android" name="Android NVidia" extendsProfileId="1">
<Transcoding>
<Video targetContainer="mpegts" targetACodec="aac">
<Matches container="*" aCodec="ac3" />
<Matches container="*" aCodec="mp3" />
</Video>
</Transcoding>
</Profile>
"
started bubbleupnp and tried to download the file to sd card, interresting thing, download is not possible
tried with upnplay download failed aswell
4) serviiogo test
could not find a tmp/ dir but i assume its the same problem, i am unable to download/stream.
Re: Stream to Android
The tmp directory will be whatever you set up in the Serviio Console under the transcoding tab, I think it defaults /tmp/ (and places a folder called Serviio in it), if Serviio isn't able to write to that, then anything that uses transcoding won't work so can you check that first.
Re: Stream to Android
tmp/ dir was/is writeable, i set it to a seperate dir to better see whats going on there, but when i start serviiogo with medium stream the tmp/ dir stays empty, nothing there.
Re: Stream to Android
OK. Can you stop the server, turn on detailed logging (see my sig), start the server, and then post a log of you playing a video using the Low quality. Serviio has to create a tempory file to transcode, so that would cetainly exaplin the fact that the profiles we gave you didn't work, and the fact the Medium and Low on ServiiGo don't work.
Re: Stream to Android
and here we go with an ffmpeg error
- Code:
...
2012-07-29 15:50:17,448 DEBUG [VideoDAOImpl] Reading a Video (id = 3)
2012-07-29 15:50:17,464 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 3 and profile ServiiGo
2012-07-29 15:50:17,467 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file bla.mkv: MPEG_TS_SD_EU_ISO
2012-07-29 15:50:17,467 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file bla.mkv: MPEG_TS_SD_NA_ISO
2012-07-29 15:50:17,468 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file bla.mkv MPEG_TS_SD_KO_ISO
2012-07-29 15:50:17,468 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file bla.mkv: MPEG_TS_SD_EU_ISO
2012-07-29 15:50:17,468 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file bla.mkv: MPEG_TS_SD_NA_ISO
2012-07-29 15:50:17,468 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file bla.mkv: MPEG_TS_SD_KO_ISO
2012-07-29 15:50:17,469 DEBUG [CoverImageDAOImpl] Reading a CoverImage (id = 3)
2012-07-29 15:50:17,481 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 3)
2012-07-29 15:50:17,482 DEBUG [MediaItemDAOImpl] Getting file of media item 3
2012-07-29 15:50:17,482 DEBUG [VideoDAOImpl] Retrieving number of videos for series 1 season 4 [Any]
2012-07-29 15:50:17,484 DEBUG [LocalContentCacheDecorator] Stored entry in the cache (local_resetafterplay), returning it
2012-07-29 15:50:27,106 DEBUG [CDSRetrieveMediaServerResource] Request for content delivery accepted
2012-07-29 15:50:27,109 DEBUG [ResourceDeliveryProcessor] Resource request accepted. Using client 'IPAddress=/192.168.1.103, Profile=ServiiGo'
2012-07-29 15:50:27,110 DEBUG [ResourceDeliveryProcessor] Request for resource 3 and type 'MEDIA_ITEM' received
2012-07-29 15:50:27,112 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 3 (local)
2012-07-29 15:50:27,112 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 3)
2012-07-29 15:50:27,113 DEBUG [VideoDAOImpl] Reading a Video (id = 3)
2012-07-29 15:50:27,114 DEBUG [VideoDeliveryEngine] Delivering item '3' for client 'IPAddress=/192.168.1.103, Profile=ServiiGo'
2012-07-29 15:50:27,114 DEBUG [VideoDeliveryEngine] Delivering file 'bla.mkv' using transcoding
2012-07-29 15:50:27,115 DEBUG [AbstractTranscodingDeliveryEngine] No suitable transcoding job exists yet, start one for client 'IPAddress=/192.168.1.103, Profile=ServiiGo'
2012-07-29 15:50:27,115 DEBUG [MediaItemDAOImpl] Getting file of media item 3
2012-07-29 15:50:27,116 DEBUG [FFMPEGWrapper] Invoking FFmpeg to transcode video file: /home/dan/data/media/series/blubb/bla.mkv
2012-07-29 15:50:27,117 DEBUG [ProcessExecutor] Starting ffmpeg -i /home/dan/data/media/series/blubb/bla.mkv -y -threads 1 -copyts -c:v mpeg2video -b:v 1000k -vf scale=853:480 -r 24000/1001 -g 15 -c:a libmp3lame -b:a 192k -ar 44100 -ac 2 -map 0:0 -map 0:1 -sn -f mpegts /tmp/Serviio/transcoding-temp-3-serviigo-MEDIUM.stf
2012-07-29 15:50:27,271 WARN [ProcessExecutor] Process ffmpeg has a return code of 1! This is a possible error.
2012-07-29 15:50:27,272 DEBUG [TranscodingJobListener] Transcoding finished; successful: false
2012-07-29 15:50:28,839 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target urn:schemas-upnp-org:device:MediaServer:1 from address /192.168.1.101:53983
2012-07-29 15:50:28,839 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.101
2012-07-29 15:50:28,840 DEBUG [DiscoverySearchResponder] Sending 1 M-SEARCH response message(s) to /192.168.1.101:53983
2012-07-29 15:50:29,583 DEBUG [WebServer] Incoming connection from /192.168.1.101:60195
2012-07-29 15:50:29,585 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.101
2012-07-29 15:50:29,586 DEBUG [ServiceEventSubscriptionRequestHandler] ServiceEvent renewal request received for service X_MS_MediaReceiverRegistrar and subscription uuid:6db04926-f9e9-4c42-86b2-38e860a283a5
2012-07-29 15:50:29,586 DEBUG [ServiceEventSubscriptionRequestHandler] Event subscription renewed for service urn:microsoft.com:serviceId:X_MS_MediaReceiverRegistrar and subscription 6db04926-f9e9-4c42-86b2-38e860a283a5
2012-07-29 15:50:34,619 WARN [ServiioStatusService] IOException occured. Returning error code 500 to the REST layer. Message: Transcoded file '/tmp/Serviio/transcoding-temp-3-serviigo-MEDIUM.stf' cannot be found, FFmpeg execution probably failed
2012-07-29 15:50:34,619 DEBUG [ServiioStatusService] Detailed exception:
java.io.IOException: Transcoded file '/tmp/Serviio/transcoding-temp-3-serviigo-MEDIUM.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)
at org.serviio.delivery.resource.AbstractDeliveryEngine.deliver(AbstractDeliveryEngine.java:95)
at org.serviio.delivery.MediaResourceRetrievalStrategy.retrieveResource(MediaResourceRetrievalStrategy.java:120)
at org.serviio.delivery.ResourceDeliveryProcessor.deliverContent(ResourceDeliveryProcessor.java:84)
at org.serviio.upnp.service.contentdirectory.rest.resources.server.CDSRetrieveMediaServerResource.deliver(CDSRetrieveMediaServerResource.java:65)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.restlet.resource.ServerResource.doHandle(ServerResource.java:449)
at org.restlet.resource.ServerResource.get(ServerResource.java:616)
at org.restlet.resource.ServerResource.doHandle(ServerResource.java:378)
at org.restlet.resource.ServerResource.doNegotiatedHandle(ServerResource.java:591)
at org.restlet.resource.ServerResource.doConditionalHandle(ServerResource.java:299)
at org.serviio.restlet.AbstractProEditionServerResource.doConditionalHandle(AbstractProEditionServerResource.java:35)
at org.serviio.upnp.service.contentdirectory.rest.resources.server.AbstractCDSServerResource.doConditionalHandle(AbstractCDSServerResource.java:50)
at org.serviio.upnp.service.contentdirectory.rest.resources.server.AbstractRestrictedCDSServerResource.doConditionalHandle(AbstractRestrictedCDSServerResource.java:53)
at org.restlet.resource.ServerResource.handle(ServerResource.java:846)
at org.restlet.resource.Finder.handle(Finder.java:510)
at org.restlet.routing.Filter.doHandle(Filter.java:156)
at org.restlet.routing.Filter.handle(Filter.java:203)
at org.restlet.routing.Router.doHandle(Router.java:497)
at org.restlet.routing.Router.handle(Router.java:737)
at org.restlet.routing.Filter.doHandle(Filter.java:156)
at org.restlet.routing.Filter.handle(Filter.java:203)
at org.restlet.routing.Filter.doHandle(Filter.java:156)
at org.restlet.engine.application.StatusFilter.doHandle(StatusFilter.java:151)
at org.restlet.routing.Filter.handle(Filter.java:203)
at org.restlet.routing.Filter.doHandle(Filter.java:156)
at org.restlet.routing.Filter.handle(Filter.java:203)
at org.restlet.engine.ChainHelper.handle(ChainHelper.java:111)
at org.restlet.engine.application.ApplicationHelper.handle(ApplicationHelper.java:72)
at org.restlet.Application.handle(Application.java:388)
at org.restlet.routing.Filter.doHandle(Filter.java:156)
at org.restlet.routing.Filter.handle(Filter.java:203)
at org.restlet.routing.Router.doHandle(Router.java:497)
at org.restlet.routing.Router.handle(Router.java:737)
at org.restlet.routing.Filter.doHandle(Filter.java:156)
at org.restlet.routing.Filter.handle(Filter.java:203)
at org.restlet.routing.Router.doHandle(Router.java:497)
at org.restlet.routing.Router.handle(Router.java:737)
at org.restlet.routing.Filter.doHandle(Filter.java:156)
at org.restlet.engine.application.StatusFilter.doHandle(StatusFilter.java:151)
at org.restlet.routing.Filter.handle(Filter.java:203)
at org.restlet.routing.Filter.doHandle(Filter.java:156)
at org.restlet.routing.Filter.handle(Filter.java:203)
at org.restlet.engine.ChainHelper.handle(ChainHelper.java:111)
at org.restlet.Component.handle(Component.java:388)
at org.restlet.Server.handle(Server.java:488)
at org.restlet.engine.http.connector.BaseServerHelper.handle(BaseServerHelper.java:158)
at org.restlet.engine.http.connector.BaseServerHelper.handleInbound(BaseServerHelper.java:167)
at org.restlet.engine.http.connector.BaseHelper.handleNextInbound(BaseHelper.java:418)
at org.restlet.engine.http.connector.Connection.readMessages(Connection.java:695)
....
Re: Stream to Android
Can you post the output of:
Edit: the problem is mostly that 1.0 uses the new ffmpeg commandline options (well not that new), and your version is simply too old and isn't even running.
Edit: the problem is mostly that 1.0 uses the new ffmpeg commandline options (well not that new), and your version is simply too old and isn't even running.
Last edited by will on Sun Jul 29, 2012 1:59 pm, edited 1 time in total.
Re: Stream to Android
Invoking ffmpeg from the cli i get:
Unrecognized option 'c:v'
Failed to set value 'mpeg2video' for option 'c:v'
in case that helps
Unrecognized option 'c:v'
Failed to set value 'mpeg2video' for option 'c:v'
in case that helps
Re: Stream to Android
See my post, you ffmpeg version is simply too old to work with Serviio 1.0 so you will have to install a newer one/build it from source (really not that hard).
Once you have done that, you can then use the profile zip provided, or put the video section from it into the serviigo profile and it should all work (fingers crossed).
See http://wiki.serviio.org/doku.php?id=build_ffmpeg_linux for building from source, at a minimum build librtmp and then ffmpeg, you don't really need the other libraries (x264/libvpx)
Once you have done that, you can then use the profile zip provided, or put the video section from it into the serviigo profile and it should all work (fingers crossed).
See http://wiki.serviio.org/doku.php?id=build_ffmpeg_linux for building from source, at a minimum build librtmp and then ffmpeg, you don't really need the other libraries (x264/libvpx)
Re: Stream to Android
My version comes with ubuntu 12.04, which is the current version of ubuntu, so a majority of linux users, have this version.
ill get the new version and report back.
But being incompatible with the current most widely spread linux distribution is not something one should aim for.
Give me a few minutes to find/compile current version
Edit: is there a way to tell serviio to use ffmpeg in another directory sinc i dont want to mess with distributions versioning/packaging, that always leads to dependency issues in a few dist-upgrades.
ill get the new version and report back.
But being incompatible with the current most widely spread linux distribution is not something one should aim for.
Give me a few minutes to find/compile current version
Edit: is there a way to tell serviio to use ffmpeg in another directory sinc i dont want to mess with distributions versioning/packaging, that always leads to dependency issues in a few dist-upgrades.
Last edited by hanzibanzi on Sun Jul 29, 2012 2:15 pm, edited 1 time in total.
Re: Stream to Android
Yes, use ffmpeg.location http://www.serviio.org/index.php?option ... icle&id=43
e.g. change serviio.sh to have
@zip can you list the minimum ffmpeg version for the new command line options in the FAQ
e.g. change serviio.sh to have
@zip can you list the minimum ffmpeg version for the new command line options in the FAQ
Re: Stream to Android
Thats looks good.
Unfortunately i have to leave and wont be back till tomorrow. Ill try it out tomorrow and check back here to report.
Thank you all for your time and support so far, very much appreciated.
greetings
Unfortunately i have to leave and wont be back till tomorrow. Ill try it out tomorrow and check back here to report.
Thank you all for your time and support so far, very much appreciated.
greetings
Re: Stream to Android
OK. Well I'm about 95% sure that everything should work just fine once you have a new version of ffmpeg and the revised profile for ServiiGo (based on zip's post) that transcodes to aac audio when selecting 'Original'.
Re: Stream to Android
Sorry for the late response.
I just installed latest ffmpeg and i can confirm it works now, video is still a bit stuttery but transcoding the video stream with targetVCodec mpeg2video works wonders, video looks a bit worse but streams perfectly.
Serviigo medium && low works now aswell.
Thank you all for your time and support, very much appreciated.
I just installed latest ffmpeg and i can confirm it works now, video is still a bit stuttery but transcoding the video stream with targetVCodec mpeg2video works wonders, video looks a bit worse but streams perfectly.
Serviigo medium && low works now aswell.
Thank you all for your time and support, very much appreciated.
Re: Stream to Android
Did you make any adjustments for the Original quality (the one that by default just had some commented out video stuff). You can always increase the resolution and bitrate of the Medium quality section. At the moment it is set to ~1Mbit/s to stream reasonably well over 3G.
87 posts
• Page 4 of 5 • 1, 2, 3, 4, 5
Return to Serviio Support & Help
Who is online
Users browsing this forum: No registered users and 32 guests