Page 1 of 1

Adobe flash media playback setup

Posted: 16 Jun 2011 15:36
by DerekNoffke
Can vlc be used to provide a flash stream suitable for this website?

http://www.osmf.org/configurator/fmp/#

Re: Adobe flash media playback setup

Posted: 16 Jun 2011 15:43
by Rémi Denis-Courmont
VLC cannot do SWF, only FLV.

Re: Adobe flash media playback setup

Posted: 16 Jun 2011 15:50
by DerekNoffke
The website plays the following URL: http://osmf.org/videos/cathy2.flv

Is this SWF or FLV?

Re: Adobe flash media playback setup

Posted: 16 Jun 2011 16:33
by Rémi Denis-Courmont
The website plays the following URL: http://osmf.org/videos/cathy2.flv

Is this SWF or FLV?
Emphasis added.

Re: Adobe flash media playback setup

Posted: 16 Jun 2011 17:03
by DerekNoffke
Perhaps I should re-phrase my question...

Can vlc be used to provide a .FLV flash stream suitable for this website?

http://www.osmf.org/configurator/fmp/#

The website plays the following URL: http://osmf.org/videos/cathy2.flv

I have played this steam in vlc and the media info shows the following:
Video : VP6F
Audio: mpga

Re: Adobe flash media playback setup

Posted: 16 Jun 2011 18:54
by Rémi Denis-Courmont
It should work.

Re: Adobe flash media playback setup

Posted: 16 Jun 2011 21:27
by DerekNoffke
How do I make vlc produce a stream compatible with flash media player?

I have tried the following, no success.

"C:\Program Files\VideoLAN\VLC\vlc.exe" -I qt dshow:// --dshow-vdev="Logitech QuickCam Messenger" --dshow-adev="none" --dshow-size="640x480" --dshow-fps=1.0 --sout=#transcode{vcodec=FLV1,vb=192,scale=1,fps=0.2,acodec=mp3}:duplicate{dst=std{access=http{mime=video/x-flv},mux=ffmpeg{mux=flv},dst=192.168.1.88:6666/stream.flv},dst=display}

1) Connecting from vlc on another PC - takes 5mins and 30 secs to start?

2) Connecting from my browser (flash plugin) - "Sorry we are unable to connect to the content you have requested"

Re: Adobe flash media playback setup

Posted: 16 Jun 2011 22:22
by Greg
The method and examples here work. (I am guessing your audio settings and missing quotes may be giving you problems?)
http://wiki.videolan.org/Stream_VLC_to_ ... lash__.flv
There is a command line in the Appendix further on in the wiki

Re: Adobe flash media playback setup

Posted: 17 Jun 2011 09:14
by DerekNoffke
Thanks for the suggestion.
The quotes around "#transcode{....}" don't seem to matter, still same outcome.
I have tried with audio and with audio and specified sample rate as per other examples is the wiki, same outcome.

My guess at the problem is that "mux=ffmpeg{mux=flv}" does not work on my system, WinXP SP3.

What I would really appreciate is if someone can confirm that they have successfully connected from the Adobe flash media playback website to vlc and please share their --sout settings.

http://www.osmf.org/configurator/fmp/#

Re: Adobe flash media playback setup

Posted: 17 Jun 2011 14:20
by Greg
The quotes around "#transcode{....}" don't seem to matter, still same outcome.
Outcome...Failure?
Correct use of the "xxx" Quotes syntax is critical to the command string.

I can confirm that the wiki example (modified with my adev & vdev, no other changes!!!) command line works fine with WinXP sp3. Perhaps your OS or VLC is in some way broken? Otherwise your command line is probably wrong.
Suggest you revisit the wiki in detail and try examples as they stand.

What I would really appreciate is if someone can confirm that they have successfully connected from the Adobe flash media playback website to vlc and please share their --sout settings.
This really does not make any sense.! The link is pointing at a configurator. The link cathy2.flv within the config is pointing to a file on their website.

Re: Adobe flash media playback setup

Posted: 17 Jun 2011 14:55
by DerekNoffke
Thanks for your input Greg.

1) I have added back the audio as you suggested. This has helped in that the vlc playback delay has dropped from 5 mins to 5 secs.

"C:\Program Files\VideoLAN\VLC\vlc.exe" -I qt dshow:// --dshow-vdev="Logitech QuickCam Messenger" --dshow-adev="Logitech Microphone (Messenger)" --dshow-size="640x480" --dshow-fps="1.0" --sout="#transcode{vcodec=FLV1,vb=192,ab=16,scale=1,acodec=mp3,fps=0.2,samplerate=11025,channels=2}:duplicate{dst=std{access=http{mime=video/x-flv},mux=ffmpeg{mux=flv},dst=192.168.1.88:6666/stream.flv},dst=display}"


2)
This really does not make any sense.! The link is pointing at a configurator. The link cathy2.flv within the config is pointing to a file on their website.
The idea is that you put your own flash stream URL into the configurator and test it online. Really cool - in my often humbled opinion.

Re: Adobe flash media playback setup

Posted: 17 Jun 2011 15:09
by Greg
Outcome sucessfull?

Re: Adobe flash media playback setup

Posted: 17 Jun 2011 15:15
by DerekNoffke
Nope, plays only on vlc, does not work with adobe flash media playback.

Re: Adobe flash media playback setup

Posted: 17 Jun 2011 15:50
by Greg
OK, as is a wet friday afternoon.......

This :sout is tested and currently working with your link configurator


Code: Select all

:sout=#transcode{vcodec=h264,vb=200,fps=25,deinterlace,width=256,height=192,ab=32,acodec=mp3,samplerate=44100,audio-sync}:duplicate{dst=std{access=http{mime=video/x-flv},mux=ffmpeg{mux=flv},dst=192.168.0.11:8082/stream.flv},dst=display} --sout-keep --audio-desync=-200

Re: Adobe flash media playback setup

Posted: 17 Jun 2011 16:11
by DerekNoffke
Thank you Greg.

I will feedback once I have got mine working.

Re: Adobe flash media playback setup

Posted: 17 Jun 2011 16:47
by DerekNoffke
It works! Thanks again Greg.

My mistake was my port number. 6666 does not work for adobe flash player... When I changed to your port choice 8082 - success.

"C:\Program Files\VideoLAN\VLC\vlc.exe" -I qt dshow:// --dshow-vdev="Logitech QuickCam Messenger" --dshow-adev="Logitech Microphone (Messenger)" --dshow-size="640x480" --dshow-fps="1.0" --sout="#transcode{vcodec=FLV1,vb=192,ab=16,scale=1,acodec=mp3,fps=0.2,samplerate=11025,channels=2}:duplicate{dst=std{access=http{mime=video/x-flv},mux=ffmpeg{mux=flv},dst=192.168.1.88:8082/stream.flv},dst=display}"

Re: Adobe flash media playback setup

Posted: 17 Jun 2011 17:14
by Greg
Port 6666 is used for IRC etc, so you probably had a conflict. IE it was reserved for something else.
Also used by malware as a back door. Devilish number anyway..... :)
Pleased you now have it working

Re: Adobe flash media playback setup

Posted: 17 Jun 2011 17:35
by DerekNoffke
Port 6666 works on my lan for all the other formats I have tried.

I suspect the adobe flash imposes its own port restrictions.

Re: Adobe flash media playback setup

Posted: 17 Jun 2011 21:00
by Greg
If you want to tidy up a bit

If audio is not required, adev=none, then remove all the audio references in the string. Leaving oddments of audio commands here and there will lead to problems.
Perhaps use the option --no-audio and a sout string more like

sout "#transcode{vcodec=FLV1,vb=200,fps=1.0,scale=1}.....etc)"

Now you have something working, you can tinker and refine with more confidence.
This will save some cpu and bandwidth.

Out of curiosity I tried port 6666 without problem with flash on wan... I would however suggest you keep to ports above 8080.