From: James Almer <jamrial@gmail.com>
To: ffmpeg-devel@ffmpeg.org
Subject: Re: [FFmpeg-devel] [FFmpeg-cvslog] avformat/mov: export cropping values from clap boxes
Date: Fri, 12 Jul 2024 17:02:34 -0300
Message-ID: <7713ff65-5195-4551-8caf-0cfc8a3c4bb5@gmail.com> (raw)
In-Reply-To: <20240712193444.GQ4991@pb2>
On 7/12/2024 4:34 PM, Michael Niedermayer wrote:
> On Fri, Jul 12, 2024 at 01:57:43PM -0300, James Almer wrote:
>> On 7/12/2024 1:53 PM, Michael Niedermayer wrote:
>>> On Thu, Jul 11, 2024 at 01:31:23PM +0000, James Almer wrote:
>>>> ffmpeg | branch: master | James Almer <jamrial@gmail.com> | Mon Jul 8 20:50:18 2024 -0300| [93be6b425ebeb6cf96faf502281a4f7a1ed5138c] | committer: James Almer
>>>>
>>>> avformat/mov: export cropping values from clap boxes
>>>>
>>>> Addresses part of ticket #7437.
>>>>
>>>> Signed-off-by: James Almer <jamrial@gmail.com>
>>>>
>>>>> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=93be6b425ebeb6cf96faf502281a4f7a1ed5138c
>>>> ---
>>>>
>>>> libavformat/mov.c | 74 +++++++++++++++++++++++++++++++++
>>>> tests/ref/fate/aic | 32 +++++++-------
>>>> tests/ref/fate/prores-transparency | 4 +-
>>>> tests/ref/fate/prores-transparency_skip | 4 +-
>>>> 4 files changed, 94 insertions(+), 20 deletions(-)
>>>
>>> breaks:
>>>
>>> ./ffmpeg_g -i ~/tickets/1439/in.mov -t 1 -timecode 09:59:30:06 -an -c:v dvvideo -pix_fmt yuv420p -an -y -bitexact /tmp/ile1439.mov
>>>
>>> [dvvideo @ 0x7fd2d8011980] Found no DV profile for 702x576 yuv420p video. Valid DV profiles are:
>>
>> The input file has a clap box that defines cropping, which began being
>> applied by default after the aforementioned commit.
>
> I did realize that, i reported that anyway as it was a interresting failure
>
>
>> You should add
>> "-apply_cropping 0" to disable all cropping or "-apply_cropping 2" to only
>> apply codec level cropping.
>
> thx ill use that
All values for apply_cropping are documented in ffmpeg.texi. It used to
be a bool but now it also accepts 2 and 3 (And const aliases for all
four values).
I wouldn't use 0 in general, before or after the above commit, as codec
level cropping is almost always desirable (1080p h264 samples would
decode as 1088 lines otherwise, for example), so IMO use 2/codec to
disable container cropping and only leave codec cropping on for this
kind of scenario.
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
prev parent reply other threads:[~2024-07-12 20:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20240711133124.CB528411AF2@natalya.videolan.org>
2024-07-12 16:53 ` Michael Niedermayer
2024-07-12 16:57 ` James Almer
2024-07-12 19:34 ` Michael Niedermayer
2024-07-12 20:02 ` James Almer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7713ff65-5195-4551-8caf-0cfc8a3c4bb5@gmail.com \
--to=jamrial@gmail.com \
--cc=ffmpeg-devel@ffmpeg.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
ffmpegdev@gitmailbox.com
public-inbox-index ffmpegdev
Example config snippet for mirrors.
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git