You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MoviePy should correctly parse and concatenate metadata fields from ffmpeg output by converting all values to strings when necessary. Even if a metadata value is numeric, it should be handled gracefully without throwing an error.
When parsing metadata from a video file, MoviePy raises a TypeError because it attempts to concatenate a float (e.g., 3.088510 from com.apple.quicktime.location.accuracy.horizontal) with a string. The error message is:
TypeError: unsupported operand type(s) for +: 'float' and 'str'
Steps and code to Reproduce the Problem
Use a video file (for example, a .mov file) that includes metadata fields with numeric values.
Expected Behavior
MoviePy should correctly parse and concatenate metadata fields from
ffmpeg
output by converting all values to strings when necessary. Even if a metadata value is numeric, it should be handled gracefully without throwing an error.Changing this line in
ffmpeg_reader.py
from this:to this:
seems to solve the issue.
Actual Behavior
When parsing metadata from a video file, MoviePy raises a TypeError because it attempts to concatenate a float (e.g.,
3.088510
fromcom.apple.quicktime.location.accuracy.horizontal
) with a string. The error message is:Steps and code to Reproduce the Problem
Used medias
I'd rather not put it here, can send privately
Specifications
The text was updated successfully, but these errors were encountered: