hi all we are working on something that will convert email video attachments to video files the attachment as read with php shows up as a big long string what we would like is something similar to php's imagecreatefromstring() but obviously there's no videocreatefromstring() can ffmpeg <http://www.videohelp.com/tools?tool=ffmpeg> convert a video in string format to an actual video? eg. ffmeg -i --convert-string-to-video videoinstringformat.3gp -b 50 -vcodec mpeg4 videoinbinaryformat.mp4 thanks dave
On Mon, Jun 20, 2005 at 10:01:18AM +1000, dtra wrote:
hi all
we are working on something that will convert email video attachments to video files the attachment as read with php shows up as a big long string
what we would like is something similar to php's imagecreatefromstring() but obviously there's no videocreatefromstring()
can ffmpeg <http://www.videohelp.com/tools?tool=ffmpeg> convert a video in string format to an actual video? eg. ffmeg -i --convert-string-to-video videoinstringformat.3gp -b 50 -vcodec mpeg4 videoinbinaryformat.mp4
What in the world does "string format" mean? Your example and what you're asking for don't make a lot of sense.. Rich
Rich Felker wrote:
On Mon, Jun 20, 2005 at 10:01:18AM +1000, dtra wrote:
hi all
we are working on something that will convert email video attachments to video files the attachment as read with php shows up as a big long string
what we would like is something similar to php's imagecreatefromstring() but obviously there's no videocreatefromstring()
can ffmpeg <http://www.videohelp.com/tools?tool=ffmpeg> convert a video in string format to an actual video? eg. ffmeg -i --convert-string-to-video videoinstringformat.3gp -b 50 -vcodec mpeg4 videoinbinaryformat.mp4
What in the world does "string format" mean? Your example and what you're asking for don't make a lot of sense..
Rich
______________________________________________
basically if you read a binary file directly into a web browser without the correct header it will display with just a whole heap of jibberish it looks like a big long hash, eg. 'ihg4598hglkdhfgs974y5shjh45h08' but using php's imagecreatefromstring() function, that "string" can be converted into an image and saved as a file it's something to do with the encoding of the file just wanted to know if ffmpeg could do something like that because our system will be based on user's submitted video's using email and we will set up a system that automatically opens emails and converts legitimate attachments into video files dave
On Mon, Jun 20, 2005 at 02:42:04PM +1000, dtra wrote:
Rich Felker wrote:
On Mon, Jun 20, 2005 at 10:01:18AM +1000, dtra wrote:
hi all
we are working on something that will convert email video attachments to video files the attachment as read with php shows up as a big long string
what we would like is something similar to php's imagecreatefromstring() but obviously there's no videocreatefromstring()
can ffmpeg <http://www.videohelp.com/tools?tool=ffmpeg> convert a video in string format to an actual video? eg. ffmeg -i --convert-string-to-video videoinstringformat.3gp -b 50 -vcodec mpeg4 videoinbinaryformat.mp4
What in the world does "string format" mean? Your example and what you're asking for don't make a lot of sense..
Rich
______________________________________________
basically if you read a binary file directly into a web browser without the correct header it will display with just a whole heap of jibberish it looks like a big long hash, eg. 'ihg4598hglkdhfgs974y5shjh45h08' but using php's imagecreatefromstring() function, that "string" can be converted into an image and saved as a file it's something to do with the encoding of the file
just wanted to know if ffmpeg could do something like that because our system will be based on user's submitted video's using email and we will set up a system that automatically opens emails and converts legitimate attachments into video files
i don't think there's any conversion to be done. the 'string' is already the video file. just write it to disk, unless there's some sort of base64 encoding or whatnot that you have to undo first. certainly there's nothing video-specific to be done. rich
Rich Felker wrote:
On Mon, Jun 20, 2005 at 02:42:04PM +1000, dtra wrote:
On Mon, Jun 20, 2005 at 10:01:18AM +1000, dtra wrote:
hi all
we are working on something that will convert email video attachments to video files the attachment as read with php shows up as a big long string [snip] basically if you read a binary file directly into a web browser without
Rich Felker wrote: the correct header it will display with just a whole heap of jibberish it looks like a big long hash, eg. 'ihg4598hglkdhfgs974y5shjh45h08' but using php's imagecreatefromstring() function, that "string" can be converted into an image and saved as a file it's something to do with the encoding of the file
just wanted to know if ffmpeg could do something like that because our system will be based on user's submitted video's using email and we will set up a system that automatically opens emails and converts legitimate attachments into video files
i don't think there's any conversion to be done. the 'string' is already the video file. just write it to disk, unless there's some sort of base64 encoding or whatnot that you have to undo first. certainly there's nothing video-specific to be done.
Since these video files originated as email attachments, I would say that yes, you have to base64 decode them. I've never worked with PHP but I would guess that it already contains routines for this. Martin -- Martin B?hme Inst. f. Neuro- and Bioinformatics Ratzeburger Allee 160, D-23538 Luebeck Phone: +49 451 500 5514 Fax: +49 451 500 5502 boehme at inb.uni-luebeck.de
Martin Boehme wrote:
Rich Felker wrote:
i don't think there's any conversion to be done. the 'string' is already the video file. just write it to disk, unless there's some sort of base64 encoding or whatnot that you have to undo first. certainly there's nothing video-specific to be done.
Since these video files originated as email attachments, I would say that yes, you have to base64 decode them. I've never worked with PHP but I would guess that it already contains routines for this.
Martin
hey, thanks guys, that's all i needed to do now just to work out how to get an ffmpeg rpm with amr_nb enabled does anyone know of this? for redhat es3 dave
participants (3)
-
boehme@inb.uni-luebeck.de -
dalias@aerifal.cx -
dtra@faceyoursfears.com