Re: [FFmpeg-user] Specifying a codec by name
On 3/15/16, Moritz Barsnick wrote: > Hi, > > On Tue, Mar 15, 2016 at 15:18:22 +0530, Sreenath BH wrote: >> We want to use the same ffmpeg libraries to load either the nvidia or >> the libx264 codec in our program. > > For the use of the libraries, please refer to the libav-user list: > https://lists.libav.org/mailman/listinfo/libav-devel/ > >> However, the function avcodec_open2 takes the codec ID as the argument. >> >> How do I specify the codec to be used by its name, instead of the codec >> ID? > > Well, if I read the documentation of that function, it clearly says: > https://www.ffmpeg.org/doxygen/2.7/group__lavc__core.html#ga11f785a188d7d9df71621001465b0f1d > > "The functions avcodec_find_decoder_by_name(), > avcodec_find_encoder_by_name(), avcodec_find_decoder() and > avcodec_find_encoder() provide an easy way for retrieving a codec." > > I know nothing more than that, sorry. :-) > > HTH, > Moritz > ___ > ffmpeg-user mailing list > ffmpeg-user@ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > Hi, Thanks. That's exactly what I wanted. And apologies for posting a question before reading available online documentation first. -Sreenath ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] Specifying a codec by name
On Tue, 15 Mar 2016 21:46:43 +0100 Moritz Barsnick wrote: > YIKES! What was I ... I *must* *get* more sleep. My bad, sorry. Just to clarify, my comment was not directed towards you but to the choice of names the fork chose to appropriate, and the usual, tired confusion and shenanigans that followed. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] Specifying a codec by name
On Tue, Mar 15, 2016 at 11:50:59 -0800, Lou wrote: > On Tue, 15 Mar 2016 12:27:48 +0100 > Moritz Barsnick wrote: > > > For the use of the libraries, please refer to the libav-user list: > > https://lists.libav.org/mailman/listinfo/libav-devel/ > > The name choices of that fork… Playing "Yackety Sax" and watching > penguins repeatedly slip on ice with cartoon sound effects is > obligatory in this case. YIKES! What was I ... I *must* *get* more sleep. My bad, sorry. > The correct link is: > http://ffmpeg.org/mailman/listinfo/libav-user Thank you! Moritz ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] Specifying a codec by name
blockquote, div.yahoo_quoted { margin-left: 0 !important; border-left:1px #715FFA solid !important; padding-left:1ex !important; background-color:white !important; } Will do, Thanks again. @admins: In case you find it better for administration of the mailing list please delete this message/thread to avoid future answers. Best regards Sent from Yahoo Mail for iPhone On dinsdag, maart 15, 2016, 8:51 PM, Lou wrote: On Tue, 15 Mar 2016 12:27:48 +0100 Moritz Barsnick wrote: > For the use of the libraries, please refer to the libav-user list: > https://lists.libav.org/mailman/listinfo/libav-devel/ The name choices of that fork… Playing "Yackety Sax" and watching penguins repeatedly slip on ice with cartoon sound effects is obligatory in this case. The correct link is: http://ffmpeg.org/mailman/listinfo/libav-user ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] Specifying a codec by name
On Tue, 15 Mar 2016 12:27:48 +0100 Moritz Barsnick wrote: > For the use of the libraries, please refer to the libav-user list: > https://lists.libav.org/mailman/listinfo/libav-devel/ The name choices of that fork… Playing "Yackety Sax" and watching penguins repeatedly slip on ice with cartoon sound effects is obligatory in this case. The correct link is: http://ffmpeg.org/mailman/listinfo/libav-user ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] Specifying a codec by name
Hi, On Tue, Mar 15, 2016 at 15:18:22 +0530, Sreenath BH wrote: > We want to use the same ffmpeg libraries to load either the nvidia or > the libx264 codec in our program. For the use of the libraries, please refer to the libav-user list: https://lists.libav.org/mailman/listinfo/libav-devel/ > However, the function avcodec_open2 takes the codec ID as the argument. > > How do I specify the codec to be used by its name, instead of the codec ID? Well, if I read the documentation of that function, it clearly says: https://www.ffmpeg.org/doxygen/2.7/group__lavc__core.html#ga11f785a188d7d9df71621001465b0f1d "The functions avcodec_find_decoder_by_name(), avcodec_find_encoder_by_name(), avcodec_find_decoder() and avcodec_find_encoder() provide an easy way for retrieving a codec." I know nothing more than that, sorry. :-) HTH, Moritz ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user