ximarx / vlc-shares

Automatically exported from code.google.com/p/vlc-shares
0 stars 1 forks source link

Cannot open stream #13

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Open any video (local or internet) in the browser
2. Click Start VLC Stream
3. Click Go To Stream

What is the expected output? What do you see instead?
Expected: the video to start streaming
Actual: on my android phone I get a 'this video cannot be opened' error, when 
trying it in a normal pc web browser I get a "could not connect to 
[ip-address]:8081" error

What version of the product are you using? On what operating system?
vlc-shares 0.5.2 
ubuntu server 10.04.2

Please provide any additional information below.
Extract from log:

[22/02/2011 20:09:36] [III] (X_Debug::init:36) Debug log enabled, level: 3
[22/02/2011 20:09:36] [III] (X_Env::initForcedPort:32) Apache port is: 8000
[22/02/2011 20:09:36] [III] (X_Env::initTranslator:198) Translator enabled
[22/02/2011 20:09:37] [III] 
(X_VlcShares_Plugins_Helper_Devices::__construct:14) User agent: Mozilla/5.0 
(X11; U; Linux x86_64; en-US) AppleWebKit/534.21 (KHTML, like Gecko) 
Ubuntu/10.10 Chromium/11.0.679.0 Chrome/11.0.679.0 Safari/534.21
[22/02/2011 20:09:37] [III] (X_VlcShares_Plugins::init:97) Plugin system enabled
[22/02/2011 20:09:37] [III] (X_VlcShares_Plugins::init:99) Plugins registered: 
plugininstaller, fileSystem, megavideo, profiles, outputs, fileSubs, 
hideHidden, filterExt, sortItems, wiimc, mobilerenderer, redirectControls, 
controls, workaround_wiimc1, workaround_vlc1, coreStats, widgetDevAlert, 
streaminfo, dbforever, animeland, southpark, narutoget, widgetDevNews, 
backupper, emptylists
[22/02/2011 20:09:37] [III] (X_VlcShares_Plugins::init:101) Helpers registered: 
mediainfo, language, ffmpeg, devices, stream
[22/02/2011 20:09:37] [III] 
(X_VlcShares_Plugins_Helper_Broker::registerHelper:93) Plugin helper megavideo 
registered
[22/02/2011 20:09:37] [III] (X_Controller_Action::preDispatch:45) Required 
action: [browse/stream]
[22/02/2011 20:09:37] [III] 
(X_VlcShares_Plugins_RedirectControls::gen_beforePageBuild:50) Plugin triggered 
for: browse/stream
[22/02/2011 20:09:37] [III] (X_Vlc::lazyInit:60) Adapter: X_Vlc_Adapter_Linux
[22/02/2011 20:09:37] [WWW] (X_Vlc::lazyInit:75) Commander: no selection
[22/02/2011 20:09:37] [III] 
(X_VlcShares_Plugins_SouthPark::preRegisterVlcArgs:163) Plugin triggered
[22/02/2011 20:09:40] [III] (X_VlcShares_Plugins_Profiles::registerVlcArgs:190) 
Plugin triggered
[22/02/2011 20:09:40] [III] (X_Env::execute:66) Executing: "/usr/bin/ffmpeg" -i 
"http://v2.nonxt1.googlevideo.com/videoplayback?id=1ba7c69854697a2e&itag=5&app=b
logger&ip=0.0.0.0&ipbits=0&expire=1298310119&sparams=id,itag,ip,ipbits,expire&si
gnature=4C0D7E5C6E5FA0501423C917FF707A974079943E.6230C519BDC011780CD75E9B8053CE3
754EA76FF&key=ck1" 2>&1
[22/02/2011 20:09:41] [III] (Application_Model_ProfilesMapper::findBest:95) 
SELECT "plg_profiles".* FROM "plg_profiles" WHERE (cond_formats LIKE '' AND 
cond_devices IS NULL) OR (cond_devices = 100 AND cond_formats IS NULL) OR 
(cond_formats LIKE '' AND cond_devices = 100) OR (cond_formats IS NULL AND 
cond_devices IS NULL) ORDER BY "cond_formats" DESC, "cond_devices" DESC, 
"weight" DESC, "label" ASC LIMIT 1
[22/02/2011 20:09:41] [III] (X_VlcShares_Plugins_FileSubs::registerVlcArgs:191) 
Plugin triggered
[22/02/2011 20:09:41] [III] 
(X_VlcShares_Plugins_Outputs::postRegisterVlcArgs:204) Plugin triggered
[22/02/2011 20:09:41] [III] (X_Env::execute:62) Executing: /usr/bin/vlc 
--play-and-exit 
"http://v2.nonxt1.googlevideo.com/videoplayback?id=1ba7c69854697a2e&itag=5&app=b
logger&ip=0.0.0.0&ipbits=0&expire=1298310119&sparams=id,itag,ip,ipbits,expire&si
gnature=4C0D7E5C6E5FA0501423C917FF707A974079943E.6230C519BDC011780CD75E9B8053CE3
754EA76FF&key=ck1" 
--sout="#transcode{venc=ffmpeg,vcodec=mp2v,vb=4000,scale=.5,width=640,fps=25,aco
dec=a52,ab=384,channels=6,samplerate=48000,soverlay}:std{access=http,mux=ts,dst=
:8081}" --sout-keep    -I http --http-host="127.0.0.1:4212" --daemon 
--pidfile="/tmp/vlcLock.pid" > /dev/null 2>&1
[22/02/2011 20:09:41] [III] (X_VlcShares_Plugins_Outputs::getStreamItems:156) 
Plugin triggered
[22/02/2011 20:09:41] [III] 
(X_VlcShares_Plugins_MobileRenderer::gen_afterPageBuild:22) Plugin triggered
[22/02/2011 20:09:52] [III] (X_Debug::init:35) 
------------------------------------------------------
[22/02/2011 20:09:52] [III] (X_Debug::init:36) Debug log enabled, level: 3
[22/02/2011 20:09:52] [III] (X_Env::initForcedPort:32) Apache port is: 8000
[22/02/2011 20:09:52] [III] (X_Env::initTranslator:198) Translator enabled
[22/02/2011 20:09:52] [III] 
(X_VlcShares_Plugins_Helper_Devices::__construct:14) User agent: Mozilla/5.0 
(X11; U; Linux x86_64; en-US) AppleWebKit/534.21 (KHTML, like Gecko) 
Ubuntu/10.10 Chromium/11.0.679.0 Chrome/11.0.679.0 Safari/534.21
[22/02/2011 20:09:52] [III] (X_VlcShares_Plugins::init:97) Plugin system enabled
[22/02/2011 20:09:52] [III] (X_VlcShares_Plugins::init:99) Plugins registered: 
plugininstaller, fileSystem, megavideo, profiles, outputs, fileSubs, 
hideHidden, filterExt, sortItems, wiimc, mobilerenderer, redirectControls, 
controls, workaround_wiimc1, workaround_vlc1, coreStats, widgetDevAlert, 
streaminfo, dbforever, animeland, southpark, narutoget, widgetDevNews, 
backupper, emptylists
[22/02/2011 20:09:52] [III] (X_VlcShares_Plugins::init:101) Helpers registered: 
mediainfo, language, ffmpeg, devices, stream
[22/02/2011 20:09:52] [III] 
(X_VlcShares_Plugins_Helper_Broker::registerHelper:93) Plugin helper megavideo 
registered
[22/02/2011 20:09:52] [III] (X_Controller_Action::preDispatch:45) Required 
action: [test/index]
[22/02/2011 20:09:52] [III] 
(X_VlcShares_Plugins_RedirectControls::gen_beforePageBuild:41) No vlc instance

All system tests are successful except for 'Mediainfo path is valid'

Original issue reported on code.google.com by roelvang...@gmail.com on 22 Feb 2011 at 7:25

GoogleCodeExporter commented 9 years ago
I have 10.10and .52 and stream is fine to my mac however stream to droid says 
cannot play this type of media sing mvideoplayer and videoplayer

Original comment by them1kew...@gmail.com on 23 Feb 2011 at 2:19

GoogleCodeExporter commented 9 years ago
Your android phone have a "PC" signature (or the log is wrong):

[22/02/2011 20:09:37] [III] 
(X_VlcShares_Plugins_Helper_Devices::__construct:14) User agent: Mozilla/5.0 
(X11; U; Linux x86_64; en-US) AppleWebKit/534.21 (KHTML, like Gecko) 
Ubuntu/10.10 Chromium/11.0.679.0 Chrome/11.0.679.0 Safari/534.21

VLCShares recognizes Android Phone looking for the /iAndroid/ pattern in the 
User-Agent. So, try to send me a log about an Android request

Original comment by ximarx@gmail.com on 23 Feb 2011 at 6:59

GoogleCodeExporter commented 9 years ago
I get this on my android request, eventually my ideo player comes up and says 
file cannot be played.

Original comment by them1kew...@gmail.com on 23 Feb 2011 at 10:16

Attachments:

GoogleCodeExporter commented 9 years ago
Have you tried changing transcoding profile to "Android LQ"?

Original comment by ximarx@gmail.com on 24 Feb 2011 at 6:37

GoogleCodeExporter commented 9 years ago
Interesring, both my video players never throw an eeror, but the screen is just 
black,no audio

Original comment by them1kew...@gmail.com on 24 Feb 2011 at 12:08

GoogleCodeExporter commented 9 years ago
I use vlc-shares on a Athlon 1.4 Ghz with ubuntu 10.04 with the original 
VLC in official repository. If i try to use Android LQ 
profile, sometimes i get a good quality video stream, sometimes not 
(original source codec and resolution make a big difference). Using 
Android HQ i have no stream at all.

In a different configuration (Core 2 Duo, 4gb ram, W7 64bit, last vlc 
available) i have no problem with HQ and LQ transconding. It works even with 
1080p videos using android HQ profile. Video is 
smooth and audio is synched.

What i think: i don't know if the problem is related to ubuntu version of 
vlc or it's only a power related problem. I will try ubuntu on the C2D 
configuration this weekend. Maybe tweaking a bit the transcoding profile is 
possible to archive a good streaming quality even in low power configuration 
and 
ubuntu. Unfortunately i can't tweak it myself because I don't have an 
Android Phone so someone must do it for me.

Original comment by ximarx@gmail.com on 24 Feb 2011 at 1:30

GoogleCodeExporter commented 9 years ago
ximarx I would think if it was power of the pc running vlc shares it would have 
likely streaming period, if you can let me know how to work directly I would be 
happy to tweak the transcoding on your suggestion and test with my droidx

Original comment by them1kew...@gmail.com on 25 Feb 2011 at 2:13

GoogleCodeExporter commented 9 years ago
Looks like some of my problems were auto-inflicted: replying to issue-14 I 
remember that i use vlc (1.1.7) from lucid-bleed-experimental ppa on ubuntu 
10.04. I removed that version and reinstalled the one from official repository 
+ ffmpeg version from mediabuntu. Now everything works better. Maybe some of 
your problems are related to ffmpeg and aac encoder. You should give a try.

About profiles tweaks: to do it you have only to change the "vlc param" field 
in the android hq/lq profile. The string inside "vlc param" will be used as 
param while spawning vlc.

As you can see in the log:

[22/02/2011 20:09:41] [III] (X_Env::execute:62) Executing: /usr/bin/vlc 
--play-and-exit "VIDEOURL" 
--sout="#transcode{venc=ffmpeg,vcodec=mp2v,vb=4000,scale=.5,width=640,fps=25,aco
dec=a52,ab=384,channels=6,samplerate=48000,soverlay}:std{access=http,mux=ts,dst=
:8081}" --sout-keep    -I http --http-host="127.0.0.1:4212" --daemon 
--pidfile="/tmp/vlcLock.pid" > /dev/null 2>&1

the vlc-param field will be inserted inside the vlc param after the # char.

You have to read also a bit of vlc documentation to understand how params work:
http://www.videolan.org/doc/streaming-howto/en/ch03.html

Original comment by ximarx@gmail.com on 25 Feb 2011 at 8:18

GoogleCodeExporter commented 9 years ago
Issue 14 has been merged into this issue.

Original comment by ximarx@gmail.com on 25 Feb 2011 at 7:32

GoogleCodeExporter commented 9 years ago
i have a problem with the 4shared video. it saves fine and it plays ok when i 
click on the video in my online library. but on my wiimc, it says "invalid 
link", when there should be "watch directly". megavideo is fine and other video 
sites, so whats wrong with 4shared? 
reply plz

Original comment by arabsho...@googlemail.com on 19 May 2011 at 11:31

GoogleCodeExporter commented 9 years ago
Your problem isn't related to this issue. Open a new one and attach a full 
debug log.

Original comment by ximarx@gmail.com on 20 May 2011 at 7:46

GoogleCodeExporter commented 9 years ago
I can access my shares and stream fine from internal, but external does not 
work. Internal connection is http://[internal-ip]/vlc-shares and external is 
http://[external-ip]/vlc-shares

After accessing from the internet on both Android and PC, the stream location 
is http://[internal-ip]:8081/

Obviously there is something wrong it the configuration, because internal 
should stream at http://[internal-ip]:8081/ and external should stream at 
http://[external-ip]:8081/

Where is my configuration wrong? Apache? VLC-Shares?

Original comment by steven.m...@gmail.com on 26 May 2011 at 5:00

GoogleCodeExporter commented 9 years ago
This issue is not a "all generic configuration related problems goes here".

Your problem is specific. Start a new issue!

This problem has already been fixed in vlc-shares 0.5.4: 
http://www.wiimc.org/forum/viewtopic.php?f=8&t=1294

If you are already using vlc-shares 0.5.4, start a new issue and provide a full 
debug log

Original comment by ximarx@gmail.com on 26 May 2011 at 5:21

GoogleCodeExporter commented 9 years ago

Original comment by ximarx@gmail.com on 2 Jan 2012 at 3:27