[FFmpeg-user] Help converting .mov and .mp4 to .mp4 and playing in JWPlayer5

Lou lou at lrcd.com
Mon Jan 6 20:51:35 CET 2014


On Mon, 6 Jan 2014 09:56:53 -0500
Andrew Rietbergen <andrew at reflexionsdata.com> wrote:

> Hello ffmpeg-user,
> 
> I'm having some trouble converting some files (.mp4 and .mov) to .mp4 and subsequently trying to play the file with JWPlayer 5. The most common side effect I get is that the file converts and an file is created, but the audio is there, but there is no video. I need some guidance.
> 
> Here is the command I am attempting to run some directory names changed:
> 
> /usr/bin/ffmpeg -i '/var/www/vhosts/[HOST_NAME]/public/htdocs/uploads/sample.mov' -codec:v libx264rgb -codec:a libfdk_aac -y -s 640x360 -b:v 345k '/var/www/vhosts/[HOST_NAME]/public/htdocs/uploads/sample.mp4' 2> '/var/www/vhosts/[HOST_NAME]/logs/ffmpeg/01-06-2014_09-08-34_mp4.log'

Why are you using libx264rgb instead of libx264?

You should add "-movflags +faststart" as an output option so the viewer
does not need to download the complete file before beginning playback.

Why are you re-encoding in the first place? Why not just re-mux if you
want to use mp4 container since your input video and audio should be
playable by JW Player:

ffmpeg -i input.mov -codec copy -movflags +faststart output.mp4


> Stream #0:1(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 192x242, 66 kb/s, 30 fps, 30 tbr, 600 tbn, 1200 tbc (default)

Your input is 192x242, but forcing the size to 640x360 will make it
look weird.


More information about the ffmpeg-user mailing list