2010-10-14 10 views

Odpowiedz

30

Z ffmpeg zainstalowane:

ffmpeg -i input.mov -acodec copy -vcodec copy output.m4v

ten wykona dokładną kopię zarówno audio i wideo strumieni do nowego pliku.

+0

jak zainstalować ffmpeg? pobrałem pliki, ale nie ma instalacji. to tylko biblioteki dla programistów – Pavan

+11

Najprostszym sposobem jest zainstalowanie Homebrew (http://mxcl.github.com/homebrew/), a następnie z linii poleceń, wykonaj 'brew install ffmpeg' – Paul

+1

lub zainstaluj z portu: $ port zainstaluj ffmpeg –

7

Wystarczy popatrzeć na ffmpeg:

http://ffmpeg.org/

+0

wielki miałem na niego okiem. Dziękuję Ci. Jakiś kod, który mógłbyś opublikować, więc mogę go wpisać do terminala i wystrzelić? dzięki – Pavan

1

Chyba jestem trochę w grze, ale dzisiaj na badaniu tego samego tematu, znalazłem dziś statki MacOS z avconvert:

AVCONVERT(1)    BSD General Commands Manual    AVCONVERT(1) 

NAME 
    avconvert -- movie conversion tool 

SYNOPSIS 
    avconvert [-hvq] --p <preset_name> --s <source_media> --o <output_movie> 

DESCRIPTION 
avconvert can be used to compress video media to different types for sharing on the 
web or loading onto devices. 

-h  prints usage information and available presets 

-v  sets the console output to verbose 

-q  sets the console output to quiet 

-prog shows progress during the export (default with -v) 

-p | --preset name 
      converts the source media to an output file using the specified preset. Use 
      --listPresets to get the full list. Common presets are: 

      PresetAppleM4VCellular 
      PresetAppleM4ViPod 
      PresetAppleM4VWiFi 
      PresetAppleM4VAppleTV 
      PresetAppleM4V480pSD 
      PresetAppleM4V720pHD 
      PresetAppleM4V1080pHD 
      PresetAppleM4A 
Powiązane problemy