Results 1 to 2 of 2
  1. #1
    offline Itty Bitty Modder
    Join Date
    Aug 2008
    Posts
    8
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Downloads
    3
    Uploads
    0

    Troubleshooting Encoding to MP4 with ffmpeg

    Hi,
    just a little tip, you can use ffmpeg (a free command line tool for linux and windows) to encode videos to mp4. Here is the command line:

    ffmpeg -i [InputVideo.almostanyformat] -r 20 -ar 44100 -ab 196 -b 300k -aspect 4:3 -s 320x240 -croptop 0 -cropbottom 0 -cropleft 0 -cropright 0 [EncodedVideo.mp4]

    on windows use ffmpeg.exe (you have to get the software first)
    -r 20 is the framerate [frames/second]
    -ar 44100 is the audio rate [samples/second]
    -ab 196 is audio 196kbps
    -b 300k is the video bitrate of 300kbps
    -aspect 4:3 is the desired aspect ratio
    -s 320x240 will scale to E8 screen resolution
    -crop use the crop lines to cut of unwanted edges of original video

    Hope this can be of some help

  2. #2
    micro_mx's Avatar
    offline Maybe Modder
    Join Date
    Jun 2008
    Posts
    28
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Downloads
    29
    Uploads
    0
    cool, im using ffmpeg too (in linux).. but I seem to find one problem with my U9, when im using 320x240 vids and I play it on fullscreen the audio & video is desincronized... but playing on normal window its ok...

    seems odd... but if I use the videos with another resolution (lets say 280x210) the video plays without problem... Im using this line...

    ffmpeg -i video.avi -f mp4 -vcodec mpeg4 -b 350k -r 23.98 -acodec aac -ar 22050 -ab 64k -s 280x210 -map 0.0 -map 0.1 out.mp4

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •