انجمن‌های فارسی اوبونتو

تازه کار => انجمن تازه‌کاران => نویسنده: AlirezaYargholi در 17 اسفند 1385، 03:00 ب‌ظ

عنوان: 3gp converter
ارسال شده توسط: AlirezaYargholi در 17 اسفند 1385، 03:00 ب‌ظ
سلام
به چه صورت میتوان فایل های avi , dv , dvd , mp2 را به فرمت 3gp برای نمایش در موبایل تبدیل کرد؟
عنوان: پاسخ به: 3gp converter
ارسال شده توسط: Mehdi در 17 اسفند 1385، 03:46 ب‌ظ
روش اول:

این نسخه از ffmpeg که تو مخازن هست به درد شما نمیخوره و باید نسخه جدید رو از مخازن بگیری. چون از svn میگیرید نیاز به subversion دارید:
sudo apt-get remove ffmpeg
sudo apt-get install subversion

با دستور زیر یه فایل برای نصب ffmpeg جدید درست کنید:
gedit install-ffmpeg
توی فایل اینها رو بنویسید:
#!/bin/bash

# feel free to change the src directory
cd /usr/src/

#will download the newest svn ffmpeg
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
#Install the required audio codecs for 3gp videos
cd ffmpeg/libavcodec
mkdir amr_float
cd amr_float
wget http://www.3gpp.org/ftp/Specs/archive/26_series/26.104/26104-510.zip
unzip *.zip
unzip *code.zip
cd ..
mkdir amrwb_float
cd amrwb_float
wget http://www.3gpp.org/ftp/Specs/archive/26_series/26.204/26204-510.zip
unzip *.zip
unzip *code.zip
cd ../..
#configure ffmpeg to use these audio codecs
./configure --enable-amr_nb --enable-amr_wb $@
make

ln -sf /usr/src/ffmpeg/ffmpeg /usr/local/bin/ffmpeg

فایل رو ذخیره کنید و gedit رو ببندید.

این اسکریپت رو اجرایی کنید:
chmod +x install-ffmpeg
به اینترنت وصل بشید و اسکریپت رو اجرا کنید:
sudo ./install-ffmpeg
برای تبدیل از MPG به 3GP
ffmpeg -i video_clip.mpg -s qcif -vcodec h263 -acodec mp3 -ac 1 -ar 8000 -ab 32 -y clip.3gp
برای تبدیل از AVI به3GP
ffmpeg -i video_clip.avi-s qcif -vcodec h263 -acodec mp3 -ac 1 -ar 8000 -r 25 -ab 32 -y clip.3gp
برای تبدیل از 3GP به AVI
ffmpeg -i clip.3gp -f avi -vcodec xvid -acodec mp3 -ar 22050 file.avi

روش دوم:

و یه راه خیلی ساده‌تر اینه که فایلهاتون رو تو این سایت به فرمت دلخواه تبدیل کنید  ;)
http://media-convert.com/convert/index.php
عنوان: پاسخ به: 3gp converter
ارسال شده توسط: مهدی پیشگوی در 17 اسفند 1385، 06:44 ب‌ظ
یه راهنمای فوق العاده حرفه ای ! مرسی مهدی جان من بهش نیاز داشتم
عنوان: پاسخ به: 3gp converter
ارسال شده توسط: مهدی پیشگوی در 18 اسفند 1385، 12:31 ق‌ظ
سلام
حالا اینو ببینین

Free 3GP Converter, Converters, Convertors (Xilisoft, Imtoo, Nokia)
Looking for 3GP Converters?
We provide you all the 3GP Converters for FREE!
What type of format do you want?
avi to 3gp, mpeg to 3gp, mpg to 3gp, wmv to 3gp, dat to 3gp, mp3 to 3gp, wma to 3gp?

این هم لینکش ... (http://www.3gpclip.com/free-3gp-converters-convertors-xilisoft-imtoo-nokia/)
عنوان: پاسخ به: 3gp converter
ارسال شده توسط: AlirezaYargholi در 20 اسفند 1385، 03:46 ب‌ظ
بچه ها از روش فوق عمل کردم
موفقیت آمیز نبود!!!!!!!!!!!!!!!!!!!!!
حالا چه کنم؟؟؟؟؟؟؟؟؟؟؟/
عنوان: پاسخ به: 3gp converter
ارسال شده توسط: Mehdi در 20 اسفند 1385، 04:03 ب‌ظ
چه ایرادی داشتید ؟ میشه error رو بنویسید ؟
عنوان: پاسخ به: 3gp converter
ارسال شده توسط: AlirezaYargholi در 21 اسفند 1385، 08:58 ب‌ظ

سلام
خیلی مخلصیم
از این مرحله به بعد مشکل دارم:
شاید من تسلط در اجرای دستورات رو ندارم
با این حال در اجرای دستورات قبلی مشکلی نداشتم :( ???

این اسکریپت رو اجرایی کنید:
کد:

chmod +x install-ffmpeg


به اینترنت وصل بشید و اسکریپت رو اجرا کنید:
کد:

sudo install-ffmpeg


برای تبدیل از MPG به 3GP
کد:

ffmpeg -i video_clip.mpg -s qcif -vcodec h263 -acodec mp3 -ac 1 -ar 8000 -ab 32 -y clip.3gp


برای تبدیل از AVI به3GP
کد:

ffmpeg -i video_clip.avi-s qcif -vcodec h263 -acodec mp3 -ac 1 -ar 8000 -r 25 -ab 32 -y clip.3gp


برای تبدیل از 3GP به AVI
کد:

ffmpeg -i clip.3gp -f avi -vcodec xvid -acodec mp3 -ar 22050 file.avi
عنوان: پاسخ به: 3gp converter
ارسال شده توسط: Mehdi در 22 اسفند 1385، 09:43 ق‌ظ
خواهش ;)
برای راحتی کار این فایل (http://wiki.ubuntu-ir.org/MehdiHassanpour/HelpFiles?action=AttachFile&do=get&target=install-ffmpeg) رو دانلود کنید و تو پوشه خانگیتون مثلا home/alireza/ کپی کنید و بعد یه ترمینال باز کنید و
cd /home/alireza
sudo ./install-ffmpeg

اگر error نداشتید میتونید از اون دستوراتی که گفتم برای تبدیلهاتون استفاده کنید :)
عنوان: پاسخ به: 3gp converter
ارسال شده توسط: مهدی پیشگوی در 11 خرداد 1386، 12:43 ق‌ظ
Unknown option "--enable-amr_nb".
See ./configure --help for available options.
Makefile:5: config.mak: No such file or directory
/version.sh
make: /version.sh: Command not found
make: *** No rule to make target `config.mak'.  Stop.
erfan@erfan:~$
عنوان: پاسخ به: 3gp converter
ارسال شده توسط: samic در 11 شهریور 1389، 10:22 ق‌ظ
ببخشید که این پست رو میارم بالا (لبته نشون میده که اول برای حل مشکلم سرچ کردم! ;) )
من نمیتونم هیچ فایلی رو به 3gp تبدیل کنم! هر چقدر که میگردم نه برنامه ای هست نه روشی!
اسکریپ بالا رو اجرا کردم کار نکرد! گفت:
:~/Desktop$ ffmpeg -i PingPong.wmv -s qcif -vcodec h263 -acodec mp3 -ac 1 -ar 8000 -ab 32 -y clip.3gp
The program 'ffmpeg' is currently not installed.  You can install it by typing:
sudo apt-get install ffmpeg
بعد دوباره ffmpeg  رو نصب کردم اینبار گفت:
:~/Desktop$ ffmpeg -i PingPong.wmv -s qcif -vcodec h263 -acodec mp3 -ac 1 -ar 8000 -ab 32 -y clip.3gp
FFmpeg version 0.6-4:0.6-2ubuntu2~ppa1~lucid1, Copyright (c) 2000-2010 the FFmpeg developers
  built on Jul 17 2010 20:55:23 with gcc 4.4.3
  configuration: --extra-version='4:0.6-2ubuntu2~ppa1~lucid1' --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-vaapi --enable-pthreads --enable-zlib --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-x11grab --enable-libdc1394 --enable-shared --disable-static
  WARNING: library configuration mismatch
  libavutil   configuration: --extra-version='4:0.6-2ubuntu2~ppa1~lucid1' --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-vaapi --enable-pthreads --enable-zlib --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay
  libavcodec  configuration: --extra-version='4:0.6-2ubuntu2~ppa1~lucid1' --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-vaapi --enable-pthreads --enable-zlib --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay
  libavformat configuration: --extra-version='4:0.6-2ubuntu2~ppa1~lucid1' --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-vaapi --enable-pthreads --enable-zlib --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay
  libavdevice configuration: --extra-version='4:0.6-2ubuntu2~ppa1~lucid1' --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-vaapi --enable-pthreads --enable-zlib --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay
  libavfilter configuration: --extra-version='4:0.6-2ubuntu2~ppa1~lucid1' --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-vaapi --enable-pthreads --enable-zlib --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay
  libswscale  configuration: --extra-version='4:0.6-2ubuntu2~ppa1~lucid1' --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-vaapi --enable-pthreads --enable-zlib --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay
  libpostproc configuration: --extra-version='4:0.6-2ubuntu2~ppa1~lucid1' --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-vaapi --enable-pthreads --enable-zlib --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay
  libavutil     50.15. 1 / 50.15. 1
  libavcodec    52.72. 2 / 52.72. 2
  libavformat   52.64. 2 / 52.64. 2
  libavdevice   52. 2. 0 / 52. 2. 0
  libavfilter    1.19. 0 /  1.19. 0
  libswscale     0.11. 0 /  0.11. 0
  libpostproc   51. 2. 0 / 51. 2. 0

Seems stream 1 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 25.00 (25/1)
Input #0, asf, from 'PingPong.wmv':
  Metadata:
    WMFSDKVersion   : 9.00.00.4503
    WMFSDKNeeded    : 0.0.0.0000
    IsVBR           : 0
    title           : liznąwszy funiaste.net
    author          :
    copyright       :
    comment         :
  Duration: 00:01:12.88, start: 5.000000, bitrate: 548 kb/s
    Stream #0.0: Audio: wmav2, 44100 Hz, 2 channels, s16, 64 kb/s
    Stream #0.1: Video: wmv3, yuv420p, 320x240, 25 tbr, 1k tbn, 1k tbc
WARNING: The bitrate parameter is set too low. It takes bits/s as argument, not kbits/s
Unknown encoder 'mp3'