[Libav-user] Unknown decoder 'copy' = avcodec_find_decoder_by_name("copy") returning 0 on iOS

Wagner Patriota wagner.patriota at gmail.com
Thu May 10 21:21:36 CEST 2012


hummm, nevermind...
it happened because I used the ffmpeg() more than once.... the first time
was working...
so I had to reset the static variables of ffmpeg.c to use it over... now
it's ok

On Thu, May 10, 2012 at 12:49 PM, Wagner Patriota <wagner.patriota at gmail.com
> wrote:

> ok, the thing is that I am adapting from ffmpeg.c, like renaming
> main(argc,argv) -> ffmpeg(argc,argv) and using this function with the
> parameter I want... so it's supposed to have the same behavior of the
> command line... is there any problem with it?
>
>
> On Thu, May 10, 2012 at 12:25 PM, Alex Cohn <alexcohn at netvision.net.il>wrote:
>
>> On Thu, May 10, 2012 at 6:18 PM, Wagner Patriota
>> <wagner.patriota at gmail.com> wrote:
>> > sorry, I forgot something... the equivalent ffmpeg command is:
>> >
>> > ffmpeg -i input.mp4 -acodec copy output.ts
>> >
>> >
>> > On Thu, May 10, 2012 at 11:47 AM, Wagner Patriota
>> > <wagner.patriota at gmail.com> wrote:
>> >>
>> >> Hello... I compiled for iOS with the following parameters:
>> >>
>> >> [in this case, for simulator]
>> >> ./configure \
>> >>
>> >>
>> --cc=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc
>> >> \
>> >> --as='/usr/local/bin/gas-preprocessor.pl
>> >>
>> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc'
>> >> \
>> >>
>> >>
>> --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk
>> >> \
>> >> --target-os=darwin \
>> >> --arch=i386 \
>> >> --cpu=i386 \
>> >> --extra-cflags='-arch i386' \
>> >> --extra-ldflags='-arch i386 -isysroot
>> >>
>> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk'
>> >> \
>> >> --prefix=compiled/i386 \
>> >> --enable-cross-compile \
>> >> --enable-nonfree \
>> >> --enable-gpl \
>> >> --enable-postproc \
>> >> --enable-avfilter \
>> >> --disable-armv5te \
>> >> --disable-ffplay \
>> >> --disable-ffserver \
>> >> --disable-ffprobe \
>> >> --disable-doc \
>> >> --disable-debug \
>> >> --disable-neon \
>> >> --disable-pic \
>> >> --disable-asm
>> >>
>> >>
>> >> when I get to avcodec_find_decoder_by_name("copy") ... it returns 0...
>> >>
>> >> I am doing the equivalent of doing "ffmpeg -i input.mp4 output.ts"
>> >>
>> >> any ideia of what is happening?
>>
>> "copy" is a placeholder for not running codec at all. In your program
>> that implements this logic, you should "short-circuit" the demuxer and
>> the muxer. Note that in some cases, you cannot avoid running the video
>> codec, because it is the way to extract global headers, etc.
>>
>> BR,
>> Alex Cohn
>> _______________________________________________
>> Libav-user mailing list
>> Libav-user at ffmpeg.org
>> http://ffmpeg.org/mailman/listinfo/libav-user
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20120510/20bf2bd4/attachment.html>


More information about the Libav-user mailing list