hummm, nevermind...<div>it happened because I used the ffmpeg() more than once.... the first time was working...</div><div>so I had to reset the static variables of ffmpeg.c to use it over... now it's ok<br><br><div class="gmail_quote">

On Thu, May 10, 2012 at 12:49 PM, Wagner Patriota <span dir="ltr"><<a href="mailto:wagner.patriota@gmail.com" target="_blank">wagner.patriota@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

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?<div class="HOEnZb">

<div class="h5"><br>
<br><div class="gmail_quote">On Thu, May 10, 2012 at 12:25 PM, Alex Cohn <span dir="ltr"><<a href="mailto:alexcohn@netvision.net.il" target="_blank">alexcohn@netvision.net.il</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div><div>On Thu, May 10, 2012 at 6:18 PM, Wagner Patriota<br>
<<a href="mailto:wagner.patriota@gmail.com" target="_blank">wagner.patriota@gmail.com</a>> wrote:<br>
> sorry, I forgot something... the equivalent ffmpeg command is:<br>
><br>
> ffmpeg -i input.mp4 -acodec copy output.ts<br>
><br>
><br>
> On Thu, May 10, 2012 at 11:47 AM, Wagner Patriota<br>
> <<a href="mailto:wagner.patriota@gmail.com" target="_blank">wagner.patriota@gmail.com</a>> wrote:<br>
>><br>
>> Hello... I compiled for iOS with the following parameters:<br>
>><br>
>> [in this case, for simulator]<br>
>> ./configure \<br>
>><br>
>> --cc=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc<br>
>> \<br>
>> --as='/usr/local/bin/<a href="http://gas-preprocessor.pl" target="_blank">gas-preprocessor.pl</a><br>
>> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc'<br>
>> \<br>
>><br>
>> --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk<br>
>> \<br>
>> --target-os=darwin \<br>
>> --arch=i386 \<br>
>> --cpu=i386 \<br>
>> --extra-cflags='-arch i386' \<br>
>> --extra-ldflags='-arch i386 -isysroot<br>
>> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk'<br>
>> \<br>
>> --prefix=compiled/i386 \<br>
>> --enable-cross-compile \<br>
>> --enable-nonfree \<br>
>> --enable-gpl \<br>
>> --enable-postproc \<br>
>> --enable-avfilter \<br>
>> --disable-armv5te \<br>
>> --disable-ffplay \<br>
>> --disable-ffserver \<br>
>> --disable-ffprobe \<br>
>> --disable-doc \<br>
>> --disable-debug \<br>
>> --disable-neon \<br>
>> --disable-pic \<br>
>> --disable-asm<br>
>><br>
>><br>
>> when I get to avcodec_find_decoder_by_name("copy") ... it returns 0...<br>
>><br>
>> I am doing the equivalent of doing "ffmpeg -i input.mp4 output.ts"<br>
>><br>
>> any ideia of what is happening?<br>
<br>
</div></div>"copy" is a placeholder for not running codec at all. In your program<br>
that implements this logic, you should "short-circuit" the demuxer and<br>
the muxer. Note that in some cases, you cannot avoid running the video<br>
codec, because it is the way to extract global headers, etc.<br>
<br>
BR,<br>
Alex Cohn<br>
_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org" target="_blank">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a><br>
</blockquote></div><br>
</div></div></blockquote></div><br></div>