[FFmpeg-trac] #9974(undetermined:new): Setting "setsar" with num:denum throws error.

FFmpeg trac at avcodec.org
Fri Oct 14 10:27:24 EEST 2022


#9974: Setting "setsar" with num:denum throws error.
-------------------------------------+-------------------------------------
             Reporter:  steipal      |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:               |                  Version:
  undetermined                       |  unspecified
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 I would like to use "setsar" with num:denum notation where of course the
 colon ":" must be escaped "\:".
 {{{
 >ffmpeg -f lavfi -i smptebars -vf setsar='2\:1' -f null -
 This works but throws an error:
 [Parsed_setsar_0 @ 00000199d9e2b380] [Eval @ 0000002a3e3fe8b0] Invalid
 chars ':1' at the end of expression '2:1'

 >ffmpeg -f lavfi -i smptebars -vf setsar=2\:1 -f null -
 No error but don't work as ffmpeg ignore sar and set it to 1:1.

 >ffmpeg -f lavfi -i smptebars -vf setsar=2/1 -f null -
 No error and works.
 }}}
 The question is how to set sar with num:denum notation correctly without
 getting the error. Or is that just a bug/anomalie?
 Using master build from 12. October 2022.
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/9974>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list