Answer the question
In order to leave comments, you need to log in
How much RAM do you need to transcode a 1GB video?
How much RAM do you need to transcode a 1GB video?
Hello, tell me what server capacities are needed for video encoding - 400mb, 800mb and 1gb.
Prompt gives error
Alexander Muxalich @muxalich
ffmpeg -i /home/portalgrad/xn--80aa6ayb0b.xn--80addfm9cd4gza.xn--p1ai/application/../docs//file/temp/123.avi -threads 0 -vcodec libx264 -b 450k -bt 500 -ab 128 -ar 44100 -ac 2 -vol 256 -skip_frame none -coder 1 -async 1 -flags +loop+mv4 -me_method tesa -nr 0 -wpredp 0 -g 250 -qcomp 0.60 -qmin 10 -qmax 50 -bf 16 -sc_threshold 40 -qdiff 4 -keyint_min 25 -deblockalpha 0 -deblockbeta 0 -b_strategy 1 -cmp chroma -me_range 16 -flags2 +wpred+dct8x8+mixed_refs+mbtree -trellis 2 -partitions +parti8x8+parti4x4+partp8x8+partb8x8 -i_qfactor 1.41 -y -f flv /home/portalgrad/xn--80aa6ayb0b.xn--80addfm9cd4gza.xn--p1ai/application/../docs//file/temp/123_convert.avi
ffmpeg version 0.7.12, Copyright (c ) 2000-2011 the FFmpeg developers
built on May 4 2012 10:55:55 with gcc 4.2.1 20070719 [FreeBSD]
configuration: --prefix=/usr/local --mandir=/usr/local/man --enable-shared --enable-gpl --enable-postproc --enable-avfilter --enable-pthreads --enable-x11grab --enable-memalign-hack --enable-runtime-cpudetect --cc=cc --extra-cflags='-I/usr/local/include/vorbis -I/usr/local/include' --extra-ldflags ='-L/usr/local/lib'--extra-libs=-pthread --disable-debug --disable-sse --disable-mmx --disable-libaacplus --disable-indev=alsa --disable-outdev=alsa --disable-libopencore-amrnb - -disable-libopencore-amrwb --disable-libcelt --disable-libdirac --enable-libfaac --enable-libfreetype --enable-frei0r --enable-libgsm --enable-libmp3lame --enable-libopencv --enable- libopenjpeg --disable-librtmp --enable-libschroedinger --disable-ffplay --enable-libspeex --enable-libtheora --disable-vaapi --disable-vdpau --disable-libvo-aacenc --disable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-nonfree
libavutil 50.43.0 /
50.43.0 libavcodec 52.123. 0 / 52.123. 0
libavformat 52.111. 0 / 52.111. 0
libavdevice 52.5.0 /
52.5.0 libavfilter 1.80.0 / 1.80.0 libswscale 0.14.1 /
0.14.1 libpostproc 51.2.0 /
51.2.0
Seems stream 0 codec frame rate differs from container frame rate: 23.98 (65534/2733) -> 23.98 (2500000/104271)
Input #0, avi, from '/home/portalgrad/xn--80aa6ayb0b.xn--80addfm9cd4gza.xn- -p1ai/application/../docs//file/temp/123.avi':
Metadata:
encoder : VirtualDubMod 1.5.10.3 | www.virtualdub-fr.org || (build 2550/release)
Duration: 00:59:58.80, start: 0.000000, bitrate: 1883 kb/s
Stream #0.0: Video: mpeg4, yuv420p, 720x400 [PAR 1:1 DAR 9:5], 23.98 tbr, 23.98 tbn, 23.98 tbc
Stream #0.1: Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s
Stream #0.2: Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s
WARNING: The bitrate parameter is set too low. It takes bits/s as argument, not kbits/s
[buffer @ 0x29c07510] w:720 h:400 pixfmt:yuv420p tb:1/1000000 sar:1/1 sws_param:
[libx264 @ 0x29c0c910] using SAR=1/1
[ libx264 @ 0x29c0c910] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2
x264 [error]: malloc of size 1455104 failed
Output #0, flv, to '/home/portalgrad/xn--80aa6ayb0b.xn--80addfm9cd4gza.xn- -p1ai/application/../docs//file/temp/123_convert.avi':
Stream #0.0: Video: libx264, yuv420p, 720x400 [PAR 1:1 DAR 9:5], q=10-50, 450 kb/s, 90k tbn, 23.98 tbc
Stream #0.1: Audio: libmp3lame, 44100 Hz, stereo , s16, 0 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
Error while opening encoder for output stream #0.0 - maybe incorrect parameters such as bit_rate, rate, width or height
[[email protected] ~]$ ffmpeg -i /home/portalgrad/xn--80aa6ayb0b.xn--80addfm9cd4gza.xn--p1ai/application/../docs//file/temp/123.avi -threads 0 -vcodec libx264 -b 450k -bt 500 -ab 128 -ar 44100 -ac 2 -vol 256 -skip_frame none -coder 1 -async 1 -flags +loop+mv4 -me_method tesa -nr 0 -wpredp 0 -g 250 -qcomp 0.60 - qmin 10 -qmax 50 -bf 16 -sc_threshold 40 -qdiff 4 -keyint_min 25 -deblockalpha 0 -deblockbeta 0 -b_strategy 1 -cmp chroma -me_range 16 -flags2 +wpred+dct8x8+mixed_refs+mbtree -trellis 2 -partitions +parti8x8+ parti4x4+partp8x8+partb8x8 -i_qfactor 1.41 -y -f flv /home/portalgrad/xn--80aa6ayb0b.xn--80addfm9cd4gza.xn--p1ai/application/../docs//file/temp/123_convert.avi^C
malloc of size 1455104 failed - as I understand it, the RAM ran out?
The input file is 823 mb 720 x 400, bit rate 1500kb/s, frame rate 23, total speed 1691kb/s
audio
192k, 2 streams,
ffmpeg -i 123.avi -threads 0 -vcodec libx264 -b 450k -bt 500 -ab 128 -ar 44100 -ac 2 -vol 256 -skip_frame none -coder 1 -async 1 -flags +loop+mv4 -me_method tesa -nr 0 -wpredp 0 -g 250 -qcomp 0.60 -qmin 10 -qmax 50 -bf 16 -sc_threshold 40 -qdiff 4 -keyint_min 25 -deblockalpha 0 -deblockbeta 0 -b_strategy 1 -cmp chroma -me_range 16 -flags2 +wpred+dct8x8+ mixed_refs+mbtree -trellis 2 -partitions +parti8x8+parti4x4+partp8x8+partb8x8 -i_qfactor 1.41 -y -f flv 123_convert.avi
Answer the question
In order to leave comments, you need to log in
Video and audio are streaming data, there is no need to download the entire file to transcode them.
Guaranteed to fit into 256m, and most likely less.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question