Flickr API / Discuss

Current Discussion

App Page - RSS Feed
Latest: 18 hours ago
views per day - flickr.stats.getPhotoStats
Latest: 25 hours ago
Problem witj callback - jsonp
Latest: 3 days ago
API apps that keep track of visits to groups?
Latest: 3 days ago
Can't get access_token,url return "signature_invalid"
Latest: 6 days ago
Any alternative to Javascript for Flickr web application ?
Latest: 7 days ago
Flickr API is giving different results for same request in different time
Latest: 9 days ago
timestamp refused
Latest: 9 days ago
Missing "max-age" / "expires" Cache-Control headers in api responses
Latest: 10 days ago
Flickr.Net API library (a question for Sam Judson)
Latest: 2 weeks ago
Recent API changes?
Latest: 2 weeks ago
contacts activity
Latest: 2 weeks ago
More...

Search this group's discussions

Quick info on videos in the API

view profile

kellan is a group administrator kellan  Pro User  says:

Just a heads up.

API methods which take an "extras" argument now have a new extra type, "media". Passing "media" as as extras argument will add media="photo" or media="video" to the returned photo elements.

Additionally flickr.photos.search() takes an argument "media" that defaults to "all" but can also be set to "photos" or "videos" to filter results by media type.
Posted at 7:22PM, 8 April 2008 PDT (permalink)

view photostream

scubapup says:

thanks for the tip
Posted 62 months ago. (permalink)

view photostream

kalebdf  Pro User  says:

How do we get the preview image for the video?

Is it just a thumbnail using the same way we have been creating photo urls using the secret and other things passed back in photos.search()
Is there any way of finding this info out without calling xxx.getInfo or something of that nature?

Thank you.

-Kaleb
Posted 62 months ago. (permalink)

view photostream

kellan is a group administrator kellan  Pro User  says:

From our perspective videos are just a funny type of photo, so yeah a preview thumbnail image is constructed just like any other thumbnail (or square, and medium size, or whatever)

The infos available from any method that returns a "standard photo response". (which is to say any method that takes "extras" as an argument)
Posted 62 months ago. (permalink)

view photostream

Silly Luis  Pro User  says:

: For example, this is the photos.getSizes response for one of my vids:

<rsp stat="ok">
<sizes canblog="1" canprint="1" candownload="0">
<size label="Square" width="75" height="75" source="9999999999_s.jpg" url="http://www.flickr.com/photos/lucamar/2370384451/sizes/sq/" />
<size label="Thumbnail" width="100" height="75" source="9999999999_t.jpg" url="http://www.flickr.com/photos/lucamar/2370384451/sizes/t/" />
<size label="Small" width="240" height="180" source="9999999999_m.jpg" url="http://www.flickr.com/photos/lucamar/2370384451/sizes/s/" />
<size label="Medium" width="320" height="240" source="9999999999.jpg" url="http://www.flickr.com/photos/lucamar/2370384451/sizes/m/" />
<size label="Original" width="320" height="240" source="9999999999_o.png" url="http://www.flickr.com/photos/lucamar/2370384451/sizes/o/" />
</sizes>
</rsp>


As you see, it's treated as if it were just a normal photo.
Originally posted 62 months ago. (permalink)
Silly Luis edited this topic 62 months ago.

view photostream

thomas marban says:

just tried media=photo in the interestingness call via phpflickr but it doesn't seem to filter. anyone else?
Posted 62 months ago. (permalink)

view photostream

kosso  Pro User  says:

Good tips.

But the question on everybody's lips is, how can we determine the actual FLV url, so we can pull in to other players and systems etc.

Is an enclosure element in an rss to the flv url too much to ask perchance? :)

go ooon! ;)

pretty please?

with cherries on top?

and beer?
Posted 62 months ago. (permalink)

view photostream

Mark Eichin  Pro User  says:

Has upload changed yet? www.flickr.com/services/api/upload.api.html doesn't mention media, and content_type is still listed as 1/2/3 for photo/screenshot/other...
Posted 62 months ago. (permalink)

view photostream

wasvel says:

I tried to upload a video taken with my mobile phone using the existing upload API. At a first try it seems to work, since the video went up to the portal and the flickr website displayed a message saying 'we are processing your video'.

then after a while an error message appeared stating that it was unable to process this video. I am wondering why, since i am using an N70 that records mp4 files, which should be supported...any hint?
Posted 62 months ago. (permalink)

view photostream

blech​  Pro User  says:

kosso: I wrote a blog post about how the embed code that you can find on a video page can be used with the API. It's more of an overview than a handholding step by step guide (mainly because I didn't want to try embedding that much HTML into a post on Vox), but it should suffice to get started.

I suspect access to the FLV (and original media?) would be subject to the same limitations as access to original photos, but I didn't get as far as looking at that; the fact I don't have any video uploaded kind of gets in the way there.
Originally posted 62 months ago. (permalink)
blech​ edited this topic 62 months ago.

view photostream

Silly Luis  Pro User  says:

With respect to content_type, I guess the discriminant is media="video", i which case contetn_type will be 1/2/3 for movie/screencast/other.

I haven't tried uploads yet, but a replace definitively doesn't work (as was expected): It returns a new error: "video can't be replaced".

You don't need to upload any; there are quite a lot of CC'ed videos in Flickr with which to try. ;-)
Originally posted 62 months ago. (permalink)
Silly Luis edited this topic 62 months ago.

view photostream

kellan is a group administrator kellan  Pro User  says:

@thomas marban: the filtering was on 'photos' and 'videos' plural. But I've added support for the singular forms.

@kosso: enclosures in RSS soon.

@Mark Eichin: what Silly Luis said.

@wasvel: thats probably a better question for the official bugs thread
Originally posted 62 months ago. (permalink)
kellan edited this topic 62 months ago.

view photostream

kosso  Pro User  says:

@kellan that IS great news. thank you.

I pay for this service after all. :))

@blech ermm.. they're MY videos :)
Posted 62 months ago. (permalink)

view photostream

kosso  Pro User  says:

@kellan : will this be to the flv? Or a SWF of your player? thx

(flv MUCH preferred)

thx
Posted 62 months ago. (permalink)

view photostream

kellan is a group administrator kellan  Pro User  says:

SWFs are in the feeds as of last night, both in the MediaRSS elements, and as enclosures in RSS2.0.

We're looking at how to expose the FLVs in both the API and the feeds. Currently they don't have stable URIs so aren't terribly useful. Can't really give you a timeline other then we're looking at it.
Posted 62 months ago. (permalink)

view photostream

kellan is a group administrator kellan  Pro User  says:

I'm taking a quick survey to see if adding new sizes to flickr.photos.getSizes() is going to break anyone's code.

Got an opinion?
Posted 62 months ago. (permalink)

view photostream

Silly Luis  Pro User  says:

Not mine; my code always checks the sizes it needs. Though I'll look again, just in case...

edit: I did a test run on my apps with a simulated response and nothing barked at me, so it's all right. :-)

BTW, are you planning to expose the original video too?
Originally posted 62 months ago. (permalink)
Silly Luis edited this topic 62 months ago.

view photostream

kosso  Pro User  says:

Hi Kellan,

I see that the enclosure link in the RSS2.0 feeds now have a url to the SWF player, but every time I try to access this SWF, wither directly, or via another Flash file, the player appears with the message "This video is no longer available on Flickr."

erm...? :)

cheers,
kosso
Posted 62 months ago. (permalink)

view photostream

kellan is a group administrator kellan  Pro User  says:

Kosso, you'd see that if you were trying to watch a private video and not including the secret or not properly unescaping the escaped ampersand in the SWF url (and consquently not sending the photo id)
Posted 62 months ago. (permalink)

view photostream

kosso  Pro User  says:

Ahhh! Gotcha! Thanks. The old unescaping ampersand trick, eh?


Also, another question: It appears that it's not possible to upload an FLV file.

Any chance of allowing this? (As I have a system which creates FLV - and will have a time limit feature) - which can auto-crosspost to a member's flickr account. (It currently supports photos and I'd love to add videos to the mix)

Thanks for getting back to me so soon! :)

Top banana!
Kosso :)
Originally posted 62 months ago. (permalink)
kosso edited this topic 62 months ago.

view photostream

joncowan  Pro User  says:

Can somebody help me build the url for the SWF file? I am having trouble getting all the pieces together.

What is the proper format for the url?

I have been trying:

"http://farm[farm#].static.flickr.com/[server]/[id]_[secret].swf"

Am I way off here?

Thanks,
Jon
Originally posted 62 months ago. (permalink)
joncowan edited this topic 61 months ago.

view photostream

kellan is a group administrator kellan  Pro User  says:

I've added a blog post on working with video in the API, hopefully its coherent enough to make things clearer, and not more muddled.
Posted 61 months ago. (permalink)

view photostream

wduff2 says:

Any thoughts on adding something to the flickr.people.getUploadStatus call to return if a given user is able to upload video?

I know the videos are a new feature, so this would help older apps (that might have hardcoded a check to see if a user was pro before allowing video uploads) if Flickr ever expanded the ability to upload videos to non-pro users.
Originally posted 61 months ago. (permalink)
wduff2 edited this topic 61 months ago.

view photostream

feikevisser says:

Is there any way to load the swf into a Flex-application.
Because the domain is www.flickr.com, I am getting the sandbox-errors (no crossdomain-file there).

Anyway to access the swf from another location?
Posted 60 months ago. (permalink)

view photostream

sharda s patel says:

Hi I am able to upload photo in flickr using api

api.flickr.com/services/upload/

but not able to upload video .
IS API is supporting for video upload??? . as i had seen there is no updation on api regarding video .
could u please help me to upload video .
Posted 60 months ago. (permalink)

view photostream

Silly Luis  Pro User  says:

sharda s patel : You should be able to upload videos the same way than photos; just make sure you're using using the correct media type. One thing to take into account is that video processing can take a lot more time than image processing, though that shouldn't affect you significantly.

wduff2 : Just check whether the account you're dealing with is a *pro* one.
Posted 60 months ago. (permalink)

view photostream

pr1001  Pro User  says:

Like kosso I would like to be able to upload FLV files. Can we expect this soon? If not, is there any particular reason why?
Posted 60 months ago. (permalink)

view photostream

smithjenya says:

Hi!

I try to get only the videos from a specific group (I search by group ID and media='videos') but I receive all the photos. ??
Posted 60 months ago. (permalink)

view photostream

smithjenya says:

Someone? =(
Posted 60 months ago. (permalink)

view photostream

Silly Luis  Pro User  says:

Which group?
Posted 60 months ago. (permalink)

view photostream

m0o says:

Hi everyone,

I'm trying to add video upload support to my application. However, I'm getting error code 5 (Filetype was not recognised), and I'm not sure why. I know the movie works with Flickr since I've had someone else upload it using a different uploader on their pro account. Photos are uploaded fine. Any suggestions? (Here's the request that gets sent, captured with Charles)

Also, are pro accounts available for developers? It would be a lot easier to test things with one.

Thanks!
Posted 60 months ago. (permalink)

view photostream

scubapup says:

pro accounts are available to everyone, you just have to buy them
Posted 60 months ago. (permalink)

view photostream

Silly Luis  Pro User  says:

And that's probably why you're getting the error: only *pro* accounts admit video.
Posted 60 months ago. (permalink)

view photostream

m0o says:

Silly Luis: I thought that might be, but it's a strange error to be throwing (there are more appropriate error messages). That's also why I asked about free pro accounts for developers - intuitively, it would be a good idea to support API developers who bring in more users. I'm not going to pay for the privilege of doing development for Flickr, though.
Posted 60 months ago. (permalink)

view photostream

smithjenya says:

Sorry about the delay =)

It happens in any group.
Posted 60 months ago. (permalink)

view photostream

aaronanderson7 says:

@kellan : is the case still 'We don’t currently provide a way to get to the FLV for a video'? because I would really appreciate getting access to either swfs or flvs (I am using the flickr api to bring photos, and hopefully video as well, into flash content)
Posted 57 months ago. (permalink)

view photostream

feikevisser says:

Hello...

Any news on my question regarding getting the swf...?

Seems that there is low activity regarding answering questions?, is this the right way to ask questions.

thx!
Feike
Posted 57 months ago. (permalink)

view photostream

WarAxe  Pro User  says:

Bueller?
Posted 57 months ago. (permalink)

view photostream

prajun00 says:

Hi,
I seem to be getting the following error code and message back while trying to upload a video for a non-pro account .

error code - 4: Filesize was zero.

Is that a reliable error code to depend on to distinguish non-pro vs pro accounts ? Or is there a better solution for it such as knowing the account type of a user before submitting a video upload?
thanks,
praj
Posted 55 months ago. (permalink)

view photostream

Silly Luis  Pro User  says:

prajun00 I'm not sure what's returned when trying to upload a video to a free account (this previous post seems to suggest it's "5-Filetype was not recognised") but the particular one you're getting is usually a good clue of a malformed HTTP/POST

As to your question, the best way, IMHO, to know if you can upload a video is to call flickr.people.getUploadStatus before the upload, since that call will tell you not only whether the user is pro os not, but also the max file size you should try to send up and if the user has run out of monthly allowance.
Posted 55 months ago. (permalink)

view photostream

myang1969 says:

Hi, all
my desktop app is using Flickr Net to upload Video to Flickr website. But, the uploaded .avi file will become a jpg on Flickr website. Any someone please let me know what's wrong wiht me?
Posted 54 months ago. (permalink)

view photostream

stev.ie  Pro User  says:

Hi all

I'm wondering if there's any way to 'auto-play' a movie that's loaded via the API, i.e. by passing a param to the movie via FlashVars.

Anyone know?

Thanks!
Originally posted 53 months ago. (permalink)
stev.ie edited this topic 53 months ago.

view photostream

dopiaza is a group administrator dopiaza  Pro User  says:

A quick view of the generated source on a video page reveals a flag:

flickr_noAutoPlay=false
Posted 53 months ago. (permalink)

view photostream

stev.ie  Pro User  says:

Thanks dopiaza, I did come across that, but couldn't get it to work :\

Anyone got this working?
Posted 53 months ago. (permalink)

view photostream

stev.ie  Pro User  says:

Just to demonstrate, I've set up a test page that uses flickr_noAutoPlay=false here:

stev.ie/flickr/video.html

The video doesn't auto-play.

It'd be nice to do this, I think. Anyone know how?

Thanks.
-- I'll stop spamming now :)
Posted 53 months ago. (permalink)

view photostream

stev.ie  Pro User  says:

Yay, got it working!

As well as 'flickr_noAutoPlay=false' you need 'onsite=true' in the FlashVars!

-- I'll stop spamming now. for real. :)
Posted 53 months ago. (permalink)

view photostream

zoopy.zoopy says:

Is there any projection on when the raw video files will be accessible via API?
Posted 52 months ago. (permalink)

view photostream

cyberhobo  Pro User  says:

Thanks space.Boy for replying with your answers and leaving your scratch page up - helpful!
Posted 52 months ago. (permalink)

view photostream

eternalstorms says:

are there any plans to make the sources of the video available through the API?
Posted 52 months ago. (permalink)

view photostream

mrfranz says:

So we have flickr_noAutoPlay, onsite and the infobox, any other flashvars that the player will accept?
Posted 52 months ago. (permalink)

view photostream

WarAxe  Pro User  says:

Any updates on getting the video source URI returned by API method?
Posted 52 months ago. (permalink)

view photostream

Bart CB  Pro User  says:

Hi,
I'm working on a personal backup tool and I would like to download my video (avi or swf), but I'm still not able to do it... And I see the last message is now 4 months old, so any progress ?

Cheers.
Posted 48 months ago. (permalink)

view photostream

WarAxe  Pro User  says:

*yawn*
Posted 47 months ago. (permalink)

view photostream

eternalstorms says:

so what file formats are supported? I don't see any article on that.
mp4? mpg? mov? avi? flv? mkv?

Edit:
OK, now, seconds after posting, I stumble upon the answer:
AVI (Proprietary codecs may not work)
WMV
MOV (AVID or other proprietary codecs may not work)
MPEG (1, 2, and 4)
3gp

Sorry and Thanks,
Matthias
Originally posted 47 months ago. (permalink)
eternalstorms edited this topic 47 months ago.

view photostream

Spone says:

I'm also trying to get the FLV file URL from the API. Could you keep us informed about the status of this feature?
Posted 47 months ago. (permalink)

view photostream

akstern says:

Hi , if any needs to use flickr video with any flash player such as JW FLV Media Player or flowplayer , instead of flv can use mp4 format.
I ' using phpFlickr library and the result of getSizes is:
$f->photos_getSizes($photo['id']);
// Array (
//[0] => Array ( [label] => Square [width] => 75 [height] => 75 [source] => farm3.static.flickr.com/2573/3726436678_eb0f723ee1_s.jpg [url] => www.flickr.com/photos/name/3726436678/sizes/sq/ [media] => photo )
...
//[6] => Array ( [label] => Site MP4 [width] => 320 [height] => 240 [source] => www.flickr.com/photos/name/3726436678/play/site/eb0f723ee1/ [url] => www.flickr.com/photos/name/3726436678/ [media] => video )
//[7] => Array ( [label] => Mobile MP4 [width] => 480 [height] => 360 [source] => www.flickr.com/photos/name/3726436678/play/mobile/eb0f723... [url] => www.flickr.com/photos/name/3726436678/ [media] => video ) )

I tried to use $Array [6]['source'] as source of flowplayer and i succeded.
I hope that is usefull for someone.
Originally posted 46 months ago. (permalink)
akstern edited this topic 46 months ago.

view photostream

WarAxe  Pro User  says:

Anyone!?!
Posted 41 months ago. (permalink)

view photostream

radam_chin says:

Hi, i've project hanging on getting the full video urls as well. So, me too!
Posted 39 months ago. (permalink)

view photostream

Sam Judson is a group administrator Sam Judson  Pro User  says:

flickr.photo.getSizes returns the URL for the MP4 version of the video does it not?
Posted 39 months ago. (permalink)

view photostream

radam_chin says:

@Sam Judson Correct, i tried it out and using flickr.photo.getSizes and the mp4 urls it returns, provides what i need. Thanks.
Originally posted 38 months ago. (permalink)
radam_chin edited this topic 38 months ago.

view photostream

WarAxe  Pro User  says:

Oh wait... really? I'll check out the MP4s.
Posted 37 months ago. (permalink)

view photostream

ShenalDevani  Pro User  says:

Hi,

I have just started uploading videos to my Flickr account, and added 1 photo and 2 videos to a photoset. When I use the api to call flickr.photosets.getList, it returns 3 photos and 0 videos.

Am I doing something wrong in the video upload or do I need to edit the videos after and change a flag???
Posted 21 months ago. (permalink)

view photostream

Sam Judson is a group administrator Sam Judson  Pro User  says:

Why are you adding onto a nearly 2 year old topic?

I suspect you are just confused - in the XML even videos are called 'photo'.
Posted 21 months ago. (permalink)

Would you like to comment?

Sign up for a free account, or sign in (if you're already a member).

RSS 2.0 feedSubscribe to a feed of stuff on this page...</!!> Feed – Subscribe to Flickr API discussion threads