Skip to content

ffmpeg: add Arabic translation #16268

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions pages.ar/common/ffmpeg.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# ffmpeg

> أداة لتحويل الفيديو.
> لمزيد من التفاصيل: <https://ffmpeg.org>.

- استخراج الصوت من فيديو وحفظه بصيغة MP3:

`ffmpeg -i {{path/to/video.mp4}} -vn {{path/to/sound.mp3}}`

- تحويل ملف FLAC إلى تنسيق Red Book CD (44100kHz، 16bit):

`ffmpeg -i {{path/to/input_audio.flac}} -ar 44100 -sample_fmt s16 {{path/to/output_audio.wav}}`

- حفظ فيديو كـ GIF مع ضبط ارتفاع الصورة إلى 1000 بكسل ومعدل الإطارات إلى 15:

`ffmpeg -i {{path/to/video.mp4}} {{[-vf|-filter:v]}} 'scale=-1:{{1000}}' -r {{15}} {{path/to/output.gif}}`

- دمج صور مرقمة (`frame_1.jpg`، `frame_2.jpg`، إلخ) في فيديو أو GIF:

`ffmpeg -i {{path/to/frame_%d.jpg}} -f image2 {{video.mpg|video.gif}}`

- قص فيديو من وقت بداية معين mm:ss إلى وقت نهاية mm2:ss2 (تجاهل علامة to- للقص حتى النهاية):

`ffmpeg -i {{path/to/input_video.mp4}} -ss {{mm:ss}} -to {{mm2:ss2}} {{[-c|-codec]}} copy {{path/to/output_video.mp4}}`

- تحويل فيديو AVI إلى MP4. صوت AAC بمعدل 128kbit، فيديو h264 بـ CRF 23:

`ffmpeg -i {{path/to/input_video}}.avi {{[-c|-codec]}}:a aac -b:a 128k {{[-c|-codec]}}:v libx264 -crf 23 {{path/to/output_video}}.mp4`

- إعادة تهيئة فيديو MKV إلى MP4 دون إعادة ترميز تيارات الصوت أو الفيديو:

`ffmpeg -i {{path/to/input_video}}.mkv {{[-c|-codec]}} copy {{path/to/output_video}}.mp4`

- تحويل فيديو MP4 إلى ترميز VP9. للحصول على أفضل جودة، استخدم قيمة CRF (النطاق الموصى به 15-35) ويجب أن يكون b:v- صفرًا:

`ffmpeg -i {{path/to/input_video}}.mp4 {{[-c|-codec]}}:v libvpx-vp9 -crf {{30}} -b:v 0 {{[-c|-codec]}}:a libopus -vbr on -threads {{number_of_threads}} {{path/to/output_video}}.webm`