Adobe flash media playback setup

About encoding, codec settings, muxers and filter usage
DerekNoffke
Blank Cone
Blank Cone
Posts: 22
Joined: 16 Jun 2011 14:36

Adobe flash media playback setup

Postby DerekNoffke » 16 Jun 2011 15:36

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

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

Rémi Denis-Courmont
Developer
Developer
Posts: 15231
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Adobe flash media playback setup

Postby Rémi Denis-Courmont » 16 Jun 2011 15:43

VLC cannot do SWF, only FLV.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

DerekNoffke
Blank Cone
Blank Cone
Posts: 22
Joined: 16 Jun 2011 14:36

Re: Adobe flash media playback setup

Postby DerekNoffke » 16 Jun 2011 15:50

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

Is this SWF or FLV?

Rémi Denis-Courmont
Developer
Developer
Posts: 15231
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Adobe flash media playback setup

Postby Rémi Denis-Courmont » 16 Jun 2011 16:33

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

Is this SWF or FLV?
Emphasis added.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

DerekNoffke
Blank Cone
Blank Cone
Posts: 22
Joined: 16 Jun 2011 14:36

Re: Adobe flash media playback setup

Postby DerekNoffke » 16 Jun 2011 17:03

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

Rémi Denis-Courmont
Developer
Developer
Posts: 15231
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Adobe flash media playback setup

Postby Rémi Denis-Courmont » 16 Jun 2011 18:54

It should work.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

DerekNoffke
Blank Cone
Blank Cone
Posts: 22
Joined: 16 Jun 2011 14:36

Re: Adobe flash media playback setup

Postby DerekNoffke » 16 Jun 2011 21:27

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"

Greg
Cone that earned his stripes
Cone that earned his stripes
Posts: 316
Joined: 24 Feb 2009 00:37

Re: Adobe flash media playback setup

Postby Greg » 16 Jun 2011 22:22

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

DerekNoffke
Blank Cone
Blank Cone
Posts: 22
Joined: 16 Jun 2011 14:36

Re: Adobe flash media playback setup

Postby DerekNoffke » 17 Jun 2011 09:14

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/#

Greg
Cone that earned his stripes
Cone that earned his stripes
Posts: 316
Joined: 24 Feb 2009 00:37

Re: Adobe flash media playback setup

Postby Greg » 17 Jun 2011 14:20

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.

DerekNoffke
Blank Cone
Blank Cone
Posts: 22
Joined: 16 Jun 2011 14:36

Re: Adobe flash media playback setup

Postby DerekNoffke » 17 Jun 2011 14:55

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.

Greg
Cone that earned his stripes
Cone that earned his stripes
Posts: 316
Joined: 24 Feb 2009 00:37

Re: Adobe flash media playback setup

Postby Greg » 17 Jun 2011 15:09

Outcome sucessfull?

DerekNoffke
Blank Cone
Blank Cone
Posts: 22
Joined: 16 Jun 2011 14:36

Re: Adobe flash media playback setup

Postby DerekNoffke » 17 Jun 2011 15:15

Nope, plays only on vlc, does not work with adobe flash media playback.

Greg
Cone that earned his stripes
Cone that earned his stripes
Posts: 316
Joined: 24 Feb 2009 00:37

Re: Adobe flash media playback setup

Postby Greg » 17 Jun 2011 15:50

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

DerekNoffke
Blank Cone
Blank Cone
Posts: 22
Joined: 16 Jun 2011 14:36

Re: Adobe flash media playback setup

Postby DerekNoffke » 17 Jun 2011 16:11

Thank you Greg.

I will feedback once I have got mine working.

DerekNoffke
Blank Cone
Blank Cone
Posts: 22
Joined: 16 Jun 2011 14:36

Re: Adobe flash media playback setup

Postby DerekNoffke » 17 Jun 2011 16:47

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}"

Greg
Cone that earned his stripes
Cone that earned his stripes
Posts: 316
Joined: 24 Feb 2009 00:37

Re: Adobe flash media playback setup

Postby Greg » 17 Jun 2011 17:14

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

DerekNoffke
Blank Cone
Blank Cone
Posts: 22
Joined: 16 Jun 2011 14:36

Re: Adobe flash media playback setup

Postby DerekNoffke » 17 Jun 2011 17:35

Port 6666 works on my lan for all the other formats I have tried.

I suspect the adobe flash imposes its own port restrictions.

Greg
Cone that earned his stripes
Cone that earned his stripes
Posts: 316
Joined: 24 Feb 2009 00:37

Re: Adobe flash media playback setup

Postby Greg » 17 Jun 2011 21:00

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.


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 25 guests