[FFmpeg-user] Unable to understand error

Rukmangadh Sai Myana rukmangadh.sai at nobroker.in
Fri Mar 4 20:24:01 EET 2022


Hi,
Pardon me. I am using the ffmpeg-python
<https://github.com/kkroening/ffmpeg-python> package inside my code. The
exact code that is giving me error is as follows:

input_clip = ffmpeg.input(
>     os.path.join(animation_dir, 'input_clip.h265'))
> animated_text_clip = ffmpeg.input(os.path.join(
>     animation_dir, f'animated_text_clip.h265'
> ))
> clip_stream = ffmpeg.filter(
>     [input_clip, animated_text_clip],
>     'overlay', y=int(0.8 * video_height),
>     format='auto', shortest=True
> )
> out = clip_stream.output(
>     os.path.join(tmpdir, f'clips/clip{idx}.h265'),
>     vcodec='libx265'
> )
> out.run(overwrite_output=True,
>         capture_stdout=True, capture_stderr=True)
>

I am essentially trying to overlay one video over another. The issue is
that the python package throws the error that I shared above and exits.
This happens only on the production machine and not on my local machine.
So, I am quite puzzled as to what this error corresponds to. Thanks in
advance for your help.

Rukmangadh Sai Myana
+91 8106275207
Associate Data Scientist | NoBroker.com


On Fri, Mar 4, 2022 at 11:07 PM stefano roveda <stfrvd at gmail.com> wrote:

> hi Rukmangadh
> When you post for help you should send the command that gave you the error
> otherwise how can we solve?
> which part of India are you from?
>
>
> Il giorno ven 4 mar 2022 alle ore 17:54 Rukmangadh Sai Myana <
> rukmangadh.sai at nobroker.in> ha scritto:
>
> > Hi,
> > I am a newbie to ffmpeg and am facing troubles with understanding the
> > following FFMPEG Error:
> >
> >
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> > STDOUT:
> > STDERR: ffmpeg version 4.4.1-static https://johnvansickle.com/ffmpeg/
> >  Copyright (c) 2000-2021 the FFmpeg developers
> >   built with gcc 8 (Debian 8.3.0-6)
> >   configuration: --enable-gpl --enable-version3 --enable-static
> > --disable-debug --disable-ffplay --disable-indev=sndio
> > --disable-outdev=sndio --cc=gcc --enable-fontconfig --enable-frei0r
> > --enable-gnutls --enable-gmp --enable-libgme --enable-gray
> --enable-libaom
> > --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype
> > --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb
> > --enable-libopenjpeg --enable-librubberband --enable-libsoxr
> > --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus
> > --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc
> > --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265
> > --enable-libxml2 --enable-libdav1d --enable-libxvid --enable-libzvbi
> > --enable-libzimg
> >   libavutil      56. 70.100 / 56. 70.100
> >   libavcodec     58.134.100 / 58.134.100
> >   libavformat    58. 76.100 / 58. 76.100
> >   libavdevice    58. 13.100 / 58. 13.100
> >   libavfilter     7.110.100 /  7.110.100
> >   libswscale      5.  9.100 /  5.  9.100
> >   libswresample   3.  9.100 /  3.  9.100
> >   libpostproc    55.  9.100 / 55.  9.100
> > Input #0, hevc, from
> > '/home/ubuntu/flixer/tmpofmcrjst/animation/input_clip.h265':
> >   Duration: N/A, bitrate: N/A
> >   Stream #0:0: Video: hevc (Main), yuvj420p(pc), 3264x2448 [SAR 1:1 DAR
> > 4:3], 60 fps, 60 tbr, 1200k tbn, 60 tbc
> > Input #1, hevc, from
> > '/home/ubuntu/flixer/tmpofmcrjst/animation/animated_text_clip.h265':
> >   Duration: N/A, bitrate: N/A
> >   Stream #1:0: Video: hevc (Main), yuvj420p(pc, bt470bg/unknown/unknown),
> > 2448x244 [SAR 1:1 DAR 612:61], 60 fps, 60 tbr, 1200k tbn, 60 tbc
> > Stream mapping:
> >   Stream #0:0 (hevc) -> overlay:main
> >   Stream #1:0 (hevc) -> overlay:overlay
> >   overlay -> Stream #0:0 (libx265)
> > Press [q] to stop, [?] for help
> > [swscaler @ 0x7e03080] deprecated pixel format used, make sure you did
> set
> > range correctly
> > [swscaler @ 0x7e746c0] deprecated pixel format used, make sure you did
> set
> > range correctly
> > x265 [info]: HEVC encoder version 3.5+1-f0c1022b6
> > x265 [info]: build info [Linux][GCC 8.3.0][64 bit] 8bit+10bit+12bit
> > x265 [info]: using cpu capabilities: MMX2 SSE2Fast LZCNT SSSE3 SSE4.2 AVX
> > FMA3 BMI2 AVX2
> > x265 [info]: Main profile, Level-5.1 (Main tier)
> > x265 [info]: Thread pool created using 4 threads
> > x265 [info]: Slices                              : 1
> > x265 [info]: frame threads / pool features       : 2 / wpp(39 rows)
> > x265 [info]: Coding QT: max CU size, min CU size : 64 / 8
> > x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra
> > x265 [info]: ME / range / subpel / merge         : hex / 57 / 2 / 3
> > x265 [info]: Keyframe min / max / scenecut / bias  : 25 / 250 / 40 / 5.00
> > x265 [info]: Lookahead / bframes / badapt        : 20 / 4 / 2
> > x265 [info]: b-pyramid / weightp / weightb       : 1 / 1 / 0
> > x265 [info]: References / ref-limit  cu / depth  : 3 / off / on
> > x265 [info]: AQ: mode / str / qg-size / cu-tree  : 2 / 1.0 / 32 / 1
> > x265 [info]: Rate Control / qCompress            : CRF-28.0 / 0.60
> > x265 [info]: tools: rd=3 psy-rd=2.00 early-skip rskip mode=1 signhide
> tmvp
> > x265 [info]: tools: b-intra strong-intra-smoothing lslices=8 deblock sao
> > Output #0, hevc, to '/home/ubuntu/flixer/tmpofmcrjst/clips/clip1.h265':
> >   Metadata:
> >     encoder         : Lavf58.76.100
> >   Stream #0:0: Video: hevc, yuv420p(tv, progressive), 3264x2448 [SAR 1:1
> > DAR 4:3], q=2-31, 60 fps, 60 tbn (default)
> >     Metadata:
> >       encoder         : Lavc58.134.100 libx265
> >     Side data:
> >       cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
> > frame=    1 fps=0.0 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A
> > speed=   0x
> > frame=    9 fps=0.0 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A
> > speed=   0x
> > frame=   19 fps= 16 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A
> > speed=   0x
> > frame=   25 fps= 15 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A
> > speed=   0x
> > frame=   27 fps=5.8 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A
> > speed=   0x
> > frame=   28 fps=5.3 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A
> > speed=   0x
> > frame=   29 fps=4.1 q=26.6 size=      69kB time=-00:00:00.01 bitrate=N/A
> > speed=N/A
> > frame=   32 fps=4.2 q=38.9 size=      74kB time=00:00:00.03
> > bitrate=18296.1kbits/s speed=0.00436x
> > frame=   33 fps=3.9 q=38.9 size=      75kB time=00:00:00.05
> > bitrate=12286.1kbits/s speed=0.00591x
> >
> >
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> >
> > Can someone help me?
> >
> > Thanks in advance.
> >
> >
> > Rukmangadh Sai Myana
> > +91 8106275207
> > Associate Data Scientist | NoBroker.com
> > _______________________________________________
> > ffmpeg-user mailing list
> > ffmpeg-user at ffmpeg.org
> > https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> >
> > To unsubscribe, visit link above, or email
> > ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
> >
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
>


More information about the ffmpeg-user mailing list