Recent Posts by alari36
|
Feb 21, 2008
|
Topic: Issues / FTP Video Fails, Image Succeeds No solution for the problem? I have same issue, that video thumbnail is ok, but file is 0 bytes. I have encoded about 40 videos and this is the first problem. My solution works link this: - web user uploads a videofile - I call heywatch.com/discover.xml with HTTP_Request - heywatch downloads videofile, converts it and sends it to my ftp I can’t read my ftp log, that maybe there was a problem. I used ping_url_after_encode, but is it done before encoded video is sent back to my over ftp or after? I did not find any ping_url_after_uploaded parameter, that I can find out was this upload to my server ok or not. |
|
Feb 11, 2008
|
Topic: Issues / problem with automatic_encode Tnx for such fast response! I also thought that it was asked format ID, but i did not find how I can find this ID of the format I created. I removed default format and now it works! |
|
Feb 11, 2008
|
Topic: Issues / problem with automatic_encode I have $req->addPostData(“automatic_encode”, “true”); in my php code, but it does not work! If I put checkbox Automatic encode under Account, then it works. But it does not take waterimage. I have put default format. My code is (it uploads the video but does not encode): <?php require_once “HTTP/Request.php”; // PEAR HTTP request // upload file $rawfile = ‘http://www…..mov’; $req =& new HTTP_Request(“http://heywatch.com/discover.xml”); $req->setBasicAuth(“user”, “pass”); $req->setMethod(HTTP_REQUEST_METHOD_POST); $req->addPostData(“url”, $rawfile); $req->addPostData(“title”, ‘23’); $req->addPostData(“download”, “true”); $req->addPostData(“automatic_encode”, “true”); $req->addPostData(“format_id”, “my_format_name”); $req->addPostData(“ping_url_after_encode”, “http://www…./back.php”); $req->addPostData(“ping_url_if_error”, “http://www….../error.php”); $req->addPostData(“keep_video_size”, “true”); $req->addPostData(“watermark_image_url”, “http://www…../logo.png”); $req->addPostData(“watermark_position”, “bottomright”); $req->addPostData(“ftp_directive”, “ftp://ftpuser:ftppass(at)www.mydomain.ee“); $req->addPostData(“my_video_id”, “23”); if (!PEAR::isError($req->sendRequest())) { $response = $req->getResponseBody(); // return XML; up to you to parse it or not print($response); } else { $response = “Request error”; } ?> |