Re: [FFmpeg-user] Unable to understand error

2022-03-05 Thread Carl Zwanzig

On 3/5/2022 6:03 AM, Rukmangadh Sai Myana wrote:

The issue was that ffmpeg was sending the
above logs, which don't correspond to any error to STDERR. 
This is common for programs that usually/often send their work-product to 
stdout; the status messages have to go somewhere and that's stderr*. It does 
help to look at the exit status to see if there's really an error (exit 
status = 0 usually means success, even if there was output on stderr).


*ffmpeg does have options to turn off a log of the logging, but there's 
really no need to do that if they can be ignored.




The python wrapper was interpreting this as an error.

A wrapper written by someone who hasn't experienced that above :).


When scripting things like ffmpeg, I find it helpful to merge stderr and 
stdout into one channel ("2>&1") but look first at the exit status.


z!
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] Unable to understand error

2022-03-05 Thread Kieran O Leary
On Sat 5 Mar 2022 at 14:04, Rukmangadh Sai Myana 
wrote:

> > In general, I mistrust wrapper libraries for things like this- I'd rather
> > create the full command string myself and execute that; it gives much
> better
> > control over the process.
>
> Thank you for this suggestion. The issue was that ffmpeg was sending the
> above logs, which don't correspond to any error to STDERR. The python
> wrapper was interpreting this as an error. I changed the python wrapper
> based code to one where I invoke ffmpeg directly as a command. This removed
> the error :D


Yup, doing a subprocess call rather than a wrapper has always worked better
for me.

Best,

Kieran

>
>
> Rukmangadh Sai Myana
> +91 8106275207
> Associate Data Scientist | NoBroker.com
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] Unable to understand error

2022-03-05 Thread Rukmangadh Sai Myana
> In general, I mistrust wrapper libraries for things like this- I'd rather
> create the full command string myself and execute that; it gives much
better
> control over the process.

Thank you for this suggestion. The issue was that ffmpeg was sending the
above logs, which don't correspond to any error to STDERR. The python
wrapper was interpreting this as an error. I changed the python wrapper
based code to one where I invoke ffmpeg directly as a command. This removed
the error :D

Rukmangadh Sai Myana
+91 8106275207
Associate Data Scientist | NoBroker.com
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] Unable to understand error

2022-03-04 Thread Carl Zwanzig

On 3/4/2022 10:24 AM, Rukmangadh Sai Myana wrote:

  The issue is
that the python package throws the error that I shared above and exits.

The problem is that there isn't an error message in the original post.


This happens only on the production machine and not on my local machine.
What's different between the two?  Try working out the exact ffmpeg command 
and run it from the command line, if that succeeds then there may be an 
issue with the python; if running from the command line fails, post the 
complete command and complete output here. Are you getting anything on 
stderr (and what is it)?


In general, I mistrust wrapper libraries for things like this- I'd rather 
create the full command string myself and execute that; it gives much better 
control over the process.


Also, please do not top-post on this mailing list.

z!
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] Unable to understand error

2022-03-04 Thread Rukmangadh Sai Myana
Hi,
Pardon me. I am using the 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  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@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
> >   libavformat58. 76.100 / 58. 76.100
> >   libavdevice58. 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
> >   libpostproc55.  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
> > 

Re: [FFmpeg-user] Unable to understand error

2022-03-04 Thread stefano roveda
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@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
>   libavformat58. 76.100 / 58. 76.100
>   libavdevice58. 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
>   libpostproc55.  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
> f