mp4 on my Samsung D840
With some trial and error, I finally found how to encode videos to play on my Samsung D840.
Here is a shell script that does a good job thanks to the ffmpeg encoder. Hope the codecs and bitrates will be useful to others:
PYTHON:
-
#!/bin/sh
-
# This shell script encodes a decrypted VOB into a
-
# mp4 file that is playable on Samsung mobile
-
#
-
#author Regis Decamps
-
#
-
f=$1
-
-
VIDEO_BITRATE=112
-
VIDEO_FRAME_RATE=12
-
VIDEO_SIZE=cif
-
-
AUDIO_FREQ=24000
-
AUDIO_BITRATE=96
-
-
ffmpeg -i "$f" \
-
-vcodec mpeg4 \
-
-r $VIDEO_FRAME_RATE \
-
-b $VIDEO_BITRATE \
-
-s $VIDEO_SIZE \
-
-acodec aac \
-
-ar $AUDIO_FREQ \
-
-ab $AUDIO_BITRATE \
-
-map 0.0 \
-
-map 0.2 \
-
"$(basename $f .vob).mp4"
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.



Leave a Reply