1

I try to convert a mpeg2 video to mov with codec ac3 but when put ffmpeg -i 1.mpg 1.mov the audio don't convert.

¿Anyone know why?

6
  • So your source is MPEG-2 video and AC3 audio and you wish to convert to H264 video and AC3 audio in MOV?
    – Gyan
    Nov 10 '15 at 13:04
  • Exactly, and then only convert the video, without audio...
    – user12041
    Nov 11 '15 at 9:22
  • Paste it at Pastebin.com and link it here.
    – Gyan
    Nov 13 '15 at 11:16
  • You have exceeded the maximum file size of 512 kilobytes per paste. PRO users don't have this limit! :( Damn!
    – user12041
    Nov 13 '15 at 12:59
  • How big is the .MPG? Run the following command and paste its console output: ffmpeg -i 1.mpg -c:v libx264 -c:a ac3 -b:a 192k -t 5 1.mov
    – Gyan
    Nov 13 '15 at 13:07
2

Use

ffmpeg -i 1.mpg -c:v libx264 -c:a ac3 -b:a 192k 1.mov

in order to convert to a MOV file containing H.264 video and AC3 audio. I've used 192kb/s as bitrate for the audio and the H.264 encoding will use the defaults of CRF 23 and preset 'medium'.

To convert only video, and strip out audio, use

ffmpeg -i 1.mpg -c:v libx264 -an 1.mov
6
  • thanks for the answer, but still not convert the audio, the specs of source video are: Vídeo: MPEG-1/2 Video (mpgv) 720x576 25fps Planar 4:2:0 YUV and Audio are: DVD LPCM Audio (lpcm) Stereo, 48000 Hz 16 bits.
    – user12041
    Nov 11 '15 at 14:24
  • What error do you get?
    – Gyan
    Nov 11 '15 at 14:45
  • The conversion is successful, but the video does not have audio. Don't show any error...
    – user12041
    Nov 11 '15 at 15:40
  • Try converting to AAC and see if it works: ffmpeg -i 1.mpg -c:v libx264 -c:a aac -strict -2 -b:a 192k 1.mov
    – Gyan
    Nov 11 '15 at 15:51
  • 1
    Can you paste the complete console output into your question?
    – Gyan
    Nov 11 '15 at 16:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy