Closed Thunderssucks closed 3 years ago
from moviepy.video.io.ffmpeg_reader import ffmpeg_parse_infos
d = ffmpeg_parse_infos("path/to/your/file.ext")
print(d["video_bitrate"])
What do you mean exactly with datarate?
Bitrate
from moviepy.video.io.ffmpeg_reader import ffmpeg_parse_infos d = ffmpeg_parse_infos("path/to/your/file.ext") print(d["video_bitrate"])
What do you mean exactly with datarate?
d = ffmpeg_parse_infos("path/to/your/file.ext") print(d["video_bitrate"])
Return: {'duration': 1147.51, 'video_found': True, 'video_size': [576, 324], 'video_fps': 24.0, 'video_nframes': 27541, 'video_duration': 1147.51, 'video_rotation': 0, 'audio_found': True, 'audio_fps': 44100}
Could you share the file?
I'm sure this applies to any video file.
I'm using the output of that file with master branch and video_bitrate
is parsed:
What version of moviepy are you using? These data has been introduced in a recent commit, you must use master because these changes are not released yet.
The data rate is not something that FFMPEG can output and we can't afford the mantainment of adding another program like ffprobe, so prove with it to get the data rate.
I am using movie v1.0.3
yes, I've sent you another file, but with this a have the same result.
It's ok for me if ffmpeg can't handle this. But I still cannot determinate bitrate using moviepy
Please, try with master branch: pip install -e git+https://github.com/Zulko/moviepy.git#egg=moviepy
It works, thanks
Couldn't find any info