LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   Using ffmpeg to convert to .mov with h264 encoding. (https://www.linuxquestions.org/questions/linux-desktop-74/using-ffmpeg-to-convert-to-mov-with-h264-encoding-863434/)

crosstalk 02-17-2011 08:54 PM

Using ffmpeg to convert to .mov with h264 encoding.
 
I am attempting to convert an existing .mov file to one that uses h.264 encoding for the video with ffmpeg. The following command line gets ffmpeg to execute.

Code:

ffmpeg -i /media/Lexar/Team_957.mov -vcodec libx264 -vpre medium ~/team957.mov
However, when I use mplayer to play team957.mov, I get:
Code:

MPlayer SVN-r29796-4.4.4 (C) 2000-2009 MPlayer Team

Playing /home/ryan/team957.mov.
libavformat file format detected.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x9d485f0]moov atom not found
LAVF_header: av_open_input_stream() failed
ISO: File Type Major Brand: Original QuickTime
MOV: missing header (moov/cmov) chunk! Maybe broken file...
Seek failed
libavformat file format detected.
LAVF_header: av_open_input_stream() failed


Exiting... (End of file)

Thanks for any help.

EDIT: I've gotten the conversion to work (it has to finish entirely before the file is readable), but now it has Lavf52.64.2 as the "muxer" (according to mplayer). How can I get rid of this?

EDIT2: Hmm... I think the issue is that Quicktime can't read lossless files. Problem solved (hopefully.)

EricTRA 02-18-2011 12:14 AM

Hello,

You marked your thread as solved, mentioning what you did, thanks for that. Did you however get an answer to your last question? If so, would you mind sharing that with us?

Kind regards,

Eric

crosstalk 02-18-2011 12:24 AM

Sorry... I was slow to edit my post.

I haven't verified this yet, but I don't think Quicktime could open the file I had created because it was lossless (I tried the one with "-vpre medium" with mplayer, but a lossless one with quicktime). I'm still working on this.

Sorry for the extraneous topic -- I usually don't ask questions I know I can answer, but I'm on a time limit right now, so I thought it was worth it to try.

EricTRA 02-18-2011 12:36 AM

Hello,

No problem at all :) Thank you for the update.

Kind regards,

Eric


All times are GMT -5. The time now is 08:39 AM.