[Libav-user] Unknown decoder 'copy' = avcodec_find_decoder_by_name("copy") returning 0 on iOS
Alex Cohn
alexcohn at netvision.net.il
Thu May 10 17:25:52 CEST 2012
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
More information about the Libav-user
mailing list