[FFmpeg-devel] customize ffplay.c

Luca Malandrino lucamala
Tue Oct 2 15:37:11 CEST 2007

Dear Thorsten,
thank you for your mail...I didn't modify the ffmpeg's code. In the file "allformats.c" (where protocols and formats are registered) I simply added the string "register_protocol(&[my_protocol])" and the in the file "file.c" where "pipe" and "file" protocols behavior are defined (open,close,seek,ecc...) I added my protocol behavior with my new methods (open,close,seek,ecc..) for my new protocol. The problem is that I can't understand how let the player (by parsing arguments) using my protocol behavior: in what part of the code the player understands what protocol has to use?
Thank you


----------------------------------------> Date: Tue, 2 Oct 2007 15:28:07 +0200> From: tjordan at macrosystem.de> To: ffmpeg-devel at mplayerhq.hu> Subject: Re: [FFmpeg-devel] customize ffplay.c>> Luca Malandrino schrieb:>> Hi everybody,>> I'm new in FFmpeg community. I'm developing on Mac OSX Intel, and I'm running and debugging the simple media player ffplay.c in Xcode 2.4. I would like to use the player to play movies or media in general but from memory.>> So I need to get my data from a stream. I'm trying to register my own protocol in the player, cause I would like to pass as arguments to the player something like "[my_protocol_name]://[my_stream_id]". I inserted information about my new protocol in the files avio.h and file.c (my protocol behavior is grouped with pipe and file protocols behavior), but I can't understand in what place the player choose if get data from a file or from "pipe" or "http" etc.>> Probably the player parse the initial characters of the argument passed....Is it true?Can someone help me?>> Thank you in advance.>>> i guess this belongs to ffmpeg-user, but a short tip, check> url_register_protocol().> You dont need to modify ffmpeg's code to add your own protocols, it can> be done nicely with the existing interface.>> --> Greetings, Thorsten> _______________________________________________> ffmpeg-devel mailing list> ffmpeg-devel at mplayerhq.hu> http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-devel

Scarica GRATIS le emoticon della tua squadra del cuore e il calendario di serie A!

More information about the ffmpeg-devel mailing list