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 <[email protected]
> 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 <[email protected]>wrote:
>
>> On Thu, May 10, 2012 at 6:18 PM, Wagner Patriota
>> <[email protected]> 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
>> > <[email protected]> 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
>> [email protected]
>> http://ffmpeg.org/mailman/listinfo/libav-user
>>
>
>
_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user

Reply via email to