Dnia 2009-04-18, sob o godzinie 23:23 +0200, Stephan Raue pisze:
> I also have problems playing streamed videos like youtube. how i can
> test youtube videos with gst-launch?
Open youtube in any web browser and find some video. Click on it and
then view source of the page. Find the line similar to this:

var swfArgs = {"q": "test", "fexp": "902401", "vq": null, "sourceid":
"ys", "video_id": "v86UcHOZlYs", "l": 387, "sk":
"kCEGx0Sq6ftCHyGODBsUZqJay9GODco0C", "fmt_map": "", "usef": 0, "t":
"vjVQa1PpcFOFBnRp-Qo-D3YrzITkUY944Dk4B2MLEXg=", "hl": "pl", "plid":
"AARn-LH_MdDI7rS9", "cr": "PL", "playnext": "1", "sdetail": "f%
3APlayList%2C"};

Now you will need 2 fields from that - "video_id" and "t", in this case:
video_id="v86UcHOZlYs"
t="vjVQa1PpcFOFBnRp-Qo-D3YrzITkUY944Dk4B2MLEXg="

To play this video from gst-launch you should run:
gst-launch playbin 
uri="http://www.youtube.com/get_video?video_id=v86UcHOZlYs&t=vjVQa1PpcFOFBnRp-Qo-D3YrzITkUY944Dk4B2MLEXg=";

(substitute video_id and t values with yours)
You can also change the quality by adding "&q=N" where N is proper number. 


Reply via email to