SHOW:
|
|
- or go back to the newest paste.
1 | Hi Team, | |
2 | ||
3 | Unable to resolve this error... | |
4 | ||
5 | >[libx264 @ 0x1639e30] broken ffmpeg default settings detected | |
6 | >[libx264 @ 0x1639e30] use an encoding preset (e.g. -vpre medium) | |
7 | >[libx264 @ 0x1639e30] preset usage: -vpre <speed> -vpre <profile> | |
8 | >[libx264 @ 0x1639e30] speed presets are listed in x264 --help | |
9 | >[libx264 @ 0x1639e30] profile is optional; x264 defaults to high | |
10 | >Cannot open video encoder for stream #0 | |
11 | >Error occurred: Operation not permitted | |
12 | ||
13 | how to set -vpre option programmetically? | |
14 | ||
15 | options tried.. | |
16 | ||
17 | //libx264-ipod320.ffpreset | |
18 | av_opt_set(enc_ctx->priv_data, "vprofile", "baseline", 0); | |
19 | av_opt_set(enc_ctx->priv_data, "level", "30", 0); | |
20 | av_opt_set(enc_ctx->priv_data, "maxrate", "768000", 0); | |
21 | av_opt_set(enc_ctx->priv_data, "bufsize", "3000000", 0); | |
22 | ||
23 | ||
24 | Note: Executing on Android environment. | |
25 | ||
26 | Can you help me to resolve this problem. | |
27 | ||
28 | ||
29 | ||
30 | ||
31 | P.S: | |
32 | ||
33 | #FFMpeg configure | |
34 | ./configure \ | |
35 | --prefix=/xyz/ffmpegLibs \ | |
36 | --enable-shared \ | |
37 | --disable-static \ | |
38 | --disable-ffmpeg \ | |
39 | --disable-ffplay \ | |
40 | --disable-ffprobe \ | |
41 | --disable-ffserver \ | |
42 | --disable-avdevice \ | |
43 | --disable-symver \ | |
44 | --cross-prefix=arm-linux-androideabi- \ | |
45 | --target-os=linux \ | |
46 | --arch=arm \ | |
47 | --enable-cross-compile \ | |
48 | --disable-programs \ | |
49 | --disable-doc \ | |
50 | --disable-htmlpages \ | |
51 | --disable-manpages \ | |
52 | --disable-podpages \ | |
53 | --disable-txtpages \ | |
54 | --enable-avresample \ | |
55 | --enable-pic \ | |
56 | --disable-asm \ | |
57 | --enable-libmp3lame \ | |
58 | --enable-libx264 \ | |
59 | --enable-gpl \ | |
60 | --extra-libs=-ldl \ | |
61 | --extra-ldflags="-L/asdf/x264Libs/lib -L/asdf/FFMPEG/lameLibs/lib" \ | |
62 | - | --extra-cflags="-I/asdf/lameLibs/include -I/asdf/x264Libs/include" |
62 | + | --extra-cflags="-I/asdf/lameLibs/include -I/asdf/x264Libs/include" |
63 | ||
64 | ||
65 | P.S: | |
66 | ||
67 | #x264 configure | |
68 | ./configure \ | |
69 | --prefix=/asdf/x264Libs \ | |
70 | --disable-cli \ | |
71 | --enable-shared \ | |
72 | --disable-opencl \ | |
73 | --disable-asm \ | |
74 | --enable-strip \ | |
75 | --enable-pic \ | |
76 | --host=arm-linux-androideabi |