Title: Question regarding the frame rate options (seems inconsistent with ffmpeg command-line) · Issue #49 · python-ffmpegio/python-ffmpegio · GitHub
Open Graph Title: Question regarding the frame rate options (seems inconsistent with ffmpeg command-line) · Issue #49 · python-ffmpegio/python-ffmpegio
X Title: Question regarding the frame rate options (seems inconsistent with ffmpeg command-line) · Issue #49 · python-ffmpegio/python-ffmpegio
Description: Thanks for this nice project! I have a question regarding the framerate change. For example, import ffmpegio with ffmpegio.open( "test_video.mp4", mode="rv", r=24, pix_fmt="rgb24", ) as videostream, ffmpegio.open( "low_fps.mp4", "wv", ra...
Open Graph Description: Thanks for this nice project! I have a question regarding the framerate change. For example, import ffmpegio with ffmpegio.open( "test_video.mp4", mode="rv", r=24, pix_fmt="rgb24", ) as videostream...
X Description: Thanks for this nice project! I have a question regarding the framerate change. For example, import ffmpegio with ffmpegio.open( "test_video.mp4", mode="rv", r=24, pix_fmt="...
Opengraph URL: https://github.com/python-ffmpegio/python-ffmpegio/issues/49
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Question regarding the frame rate options (seems inconsistent with ffmpeg command-line)","articleBody":"Thanks for this nice project! I have a question regarding the framerate change. For example,\r\n```\r\nimport ffmpegio\r\n\r\nwith ffmpegio.open(\r\n \"test_video.mp4\",\r\n mode=\"rv\",\r\n r=24,\r\n pix_fmt=\"rgb24\",\r\n) as videostream, ffmpegio.open(\r\n \"low_fps.mp4\",\r\n \"wv\",\r\n rate_in=24,\r\n format=\"mp4\",\r\n vcodec=\"libx264\",\r\n pix_fmt=\"yuv420p\",\r\n overwrite=True,\r\n) as videoout:\r\n for frame in videostream:\r\n videoout.write(frame)\r\n```\r\nI have a test_video.mp4 with 60fps, I'm trying to convert it to 24fps without changing the playback time. This means I need to drop some frames for the new framerate. Surprisingly, I find the above code seems working well. However, if I use `ffmpeg -r 24 -i test_video.mp4 low_fps.mp4`, the video won't drop any frame but the output video will have longer playback time. I assume the `-r` in ffmpegio here performs differently to ffmpeg command-line? I would be appreciated if you have any insight, thanks!","author":{"url":"https://github.com/buggyyang","@type":"Person","name":"buggyyang"},"datePublished":"2024-08-07T06:18:03Z","url":"https://github.com/python-ffmpegio/python-ffmpegio/issues/49"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:815983d7-ffed-0161-4912-05f38e67400a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9EE6:3D0E0F:2EC454:41876C:6AFD75E3 |
| html-safe-nonce | 616ac7c75f4b4502956439b1a177564d74d1a5cf1df145a7ddf2f3bb62bd2b55 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RUU2OjNEMEUwRjoyRUM0NTQ6NDE4NzZDOjZBRkQ3NUUzIiwidmlzaXRvcl9pZCI6IjMyNzk1ODk3Mjg1NDU3NjQ4MzUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 7253a7f637ef4841e5b390fd635d15426e793d0a89f855ec5d59ee8dfefd0197 |
| hovercard-subject-tag | issue:2452607714 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-ffmpegio/python-ffmpegio/49/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ea95660c4b819859c19faca5decef667e37b4f39b41c89a5048221270a201208/python-ffmpegio/python-ffmpegio/issues/49 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ea95660c4b819859c19faca5decef667e37b4f39b41c89a5048221270a201208/python-ffmpegio/python-ffmpegio/issues/49 |
| og:image:alt | Thanks for this nice project! I have a question regarding the framerate change. For example, import ffmpegio with ffmpegio.open( "test_video.mp4", mode="rv", r=24, pix_fmt="rgb24", ) as videostream... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | buggyyang |
| hostname | github.com |
| expected-hostname | github.com |
| None | e54006cf2b96d1ac260960edd10003132911469ccd1ec99c9803119fe2a4e032 |
| turbo-cache-control | no-preview |
| go-import | github.com/python-ffmpegio/python-ffmpegio git https://github.com/python-ffmpegio/python-ffmpegio.git |
| octolytics-dimension-user_id | 98168493 |
| octolytics-dimension-user_login | python-ffmpegio |
| octolytics-dimension-repository_id | 355600490 |
| octolytics-dimension-repository_nwo | python-ffmpegio/python-ffmpegio |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 355600490 |
| octolytics-dimension-repository_network_root_nwo | python-ffmpegio/python-ffmpegio |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 5be0bf2b8cf26f8897d31e6bc3c232d328b12a54 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width