ArchiveOrangemail archive

FFmpeg user questions


ffmpeg-user.ffmpeg.org
(List home) (Recent threads) (3 other FFmpeg lists)

Subscription Options

  • RSS or Atom: Read-only subscription using a browser or aggregator. This is the recommended way if you don't need to send messages to the list. You can learn more about feed syndication and clients here.
  • Conventional: All messages are delivered to your mail address, and you can reply. To subscribe, send an email to the list's subscribe address with "subscribe" in the subject line, or visit the list's homepage here.
  • Moderate traffic list: up to 30 messages per day
  • This list contains about 51,564 messages, beginning Apr 2005
  • 6 messages added yesterday
Report the Spam
This button sends a spam report to the moderator. Please use it sparingly. For other removal requests, read this.
Are you sure? yes no

AVERROR code on avfilter_graph_config

Ad
killkenny64 1328824531Thu, 09 Feb 2012 21:55:31 +0000 (UTC)
When I use:

avfilter_graph_config(filter_graph, NULL)

it fails and returns -22. The documentation states that if it fails it
returns a negative AVERROR code, but I can't find documentation anywhere
that tells me what the code -22 actually means.

I can successfully parse the graph beforehand:

filter_descr = "movie=logo.png [logo];[in][logo]
overlay=10:main_h-overlay_h-10 [out]"
avfilter_graph_parse(filter_graph, filter_descr, &inputs, &outputs, NULL)

but I avfilter_graph_config does not work.

As a side note, it does work if I use 
filter_descr = "color=red@0.2:720x480:10 [color]; [in][color] overlay [out]"

I have made sure that I have enabled the overlay and movie filters when I
compiled FFmpeg.

What does the return value -22 mean? For what reasons will
avfilter_graph_config fail when using that filter_desc?

Cheers,--
View this message in context: http://ffmpeg-users.933282.n4.nabble.com/AVER...
Sent from the FFmpeg-users mailing list archive at Nabble.com.
killkenny64 1328828094Thu, 09 Feb 2012 22:54:54 +0000 (UTC)
killkenny64 wrote
> 
> When I use:
> 
> avfilter_graph_config(filter_graph, NULL)
> 
> it fails and returns -22. The documentation states that if it fails it
> returns a negative AVERROR code, but I can't find documentation anywhere
> that tells me what the code -22 actually means.
>I finally found out what the error code means:

{AVERROR_INVALIDDATA, "INVALIDDATA", "Invalid data found when processing
input" }, // -22

which seems to be identical to the -1094995529 error (although I can produce
both errors in different situations so I don't know how they differ)

What is wrong with "movie=logo.png [logo];[in][logo]
overlay=10:main_h-overlay_h-10 [out]"?--
View this message in context: http://ffmpeg-users.933282.n4.nabble.com/AVER...
Sent from the FFmpeg-users mailing list archive at Nabble.com.
killkenny64 1329282577Wed, 15 Feb 2012 05:09:37 +0000 (UTC)
killkenny64 wrote
> 
> What is wrong with "movie=logo.png [logo];[in][logo]
> overlay=10:main_h-overlay_h-10 [out]"?
>This is driving me crazy, I can't seem to use the movie source in any way at
all,

Trying to overlay one video on another doesn't work either:

"movie=overlay.mp4 [movie]; [in] [movie] overlay=720:480 [out]"

I still get AVERROR -22

Maybe I'm setting up the filterchain wrong, I just followed filtering.c, but
I can get other filters to work, just not when using the movie source--
View this message in context: http://ffmpeg-users.933282.n4.nabble.com/AVER...
Sent from the FFmpeg-users mailing list archive at Nabble.com.
Clément Bœsch 1329287929Wed, 15 Feb 2012 06:38:49 +0000 (UTC)
On Tue, Feb 14, 2012 at 09:08:23PM -0800, killkenny64 wrote:
> 
> 
> killkenny64 wrote
> > 
> > What is wrong with "movie=logo.png [logo];[in][logo]
> > overlay=10:main_h-overlay_h-10 [out]"?
> > 
> 
> This is driving me crazy, I can't seem to use the movie source in any way at
> all,
> 
> Trying to overlay one video on another doesn't work either:
> 
> "movie=overlay.mp4 [movie]; [in] [movie] overlay=720:480 [out]"
> 
> I still get AVERROR -22
> 
> Maybe I'm setting up the filterchain wrong, I just followed filtering.c, but
> I can get other filters to work, just not when using the movie source
>This is not the API mailing list, you should post on
https://lists.ffmpeg.org/pipermail/libav-user...

BTW, maybe you should share your code too. Just a guess, are you sure
"[in]" and "[out]" are correctly linked to your inputs and outputs? As
usual, you may want to compare with ffmpeg.c too.

[...]
killkenny64 1329348824Wed, 15 Feb 2012 23:33:44 +0000 (UTC)
Clément Bœsch wrote
> 
> This is not the API mailing list, you should post on
> https://lists.ffmpeg.org/pipermail/libav-user...
>Sorry about that, I didn't realiseClément Bœsch wrote
> 
> BTW, maybe you should share your code too. 
>I originally didn't post my code as it was pretty much just a copy-paste of
filtering.cClément Bœsch wrote
> 
> Just a guess, are you sure
> "[in]" and "[out]" are correctly linked to your inputs and outputs? As
> usual, you may want to compare with ffmpeg.c too.
>Thanks for the guess, it turns out it was a really embarrassing mistake
where the offset of the overlay led to the overlay image falling outside of
the size of the video. A very novice mistake >.< I guess the error threw me
from thinking it was something as simple as that.

Thanks again for you time =)--
View this message in context: http://ffmpeg-users.933282.n4.nabble.com/AVER...
Sent from the FFmpeg-users mailing list archive at Nabble.com.
Home | About | Privacy