Created
November 17, 2012 01:29
-
-
Save gabeguz/4092476 to your computer and use it in GitHub Desktop.
ffmpeg tests
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Supported Media formats taken from here: http://developer.android.com/guide/appendix/media-formats.html | |
First attempt (h264 + aac): | |
ffmpeg -i testfile.mkv -vcodec libx264 -preset slow -b 768k -maxrate 768k -bufsize 1536 -vf scale=-1:720 -threads 0 -acodec aac -strict experimental -ac 2 -ab 44100 output.mp4 | |
Notes - video was able to play using VPlayer with Bubble | |
Transformer: | |
BubbleUPnP Android Video Player - video + audio | |
BubbleUPnP Vplayer - video + audio | |
aVia Android Video Player - didn't play | |
aVia Vplayer - didn't play | |
SD Card Android Video Player - video + audio | |
Revue: | |
BubbleUPnP Android Video Player - didn't play | |
aVia Android Video Player - didn't play | |
Second attempt reencode audio only to aac: | |
ffmpeg -i testfile.mkv -vcodec copy -threads 2 -acodec aac -strict experimental -ac 2 -ab 44100 -scodec copy output.mkv | |
Plays on all combinations... stutters on the network, but plays fine from sd card. | |
Third attempt, reencode audio to aac and switch container to mp4 | |
ffmpeg -i testfile.mkv -vcodec copy -threads 0 -acodec aac -strict experimental -ac 2 -ab 44100 output.mp4 | |
Fourth attempt, reencode video to h264, reencode audio to aac, and switch container to mp4 | |
ffmpeg -i testfile.mkv -vcodec libx264 -threads 0 -acodec aac -strict experimental -ac 2 -ab 44100 output.mp4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/ksh | |
#ffmpeg encoding command: | |
#ffmpeg -i VTS_01_1.VOB -f avi -vcodec mpeg4 -b 800k -g 300 -bf 2 -acodec ac3 -ab 384k test.avi | |
#transcode encoding command: | |
#http://www.transcoding.org/transcode?Examples_DVD_To_Xvid4 | |
export COUNT=$1 | |
export IN=/tmp/dvdriptest/VIDEO_TS/VTS_01_$COUNT.VOB | |
export OUT=/tmp/dvdriptest/transcodeout/VTS_01_$COUNT.avi | |
cd /tmp/dvdriptest/$COUNT | |
export RESIZE="-B 12,10,8" | |
export BITRATE="-w 1500,250,100" | |
export AC3PASSTHRU="-A -N 0x2000" | |
transcode -i $IN -M 2 $BITRATE $DEINTERLACE -a 0 -b 128,0,0 $AC3PASSTHRU -f 25 $RESIZE -R 1 -x vob,null -o /dev/null -y xvid4 | |
transcode -i $IN -M 2 $BITRATE $DEINTERLACE -a 0 -b 128,0,0 $AC3PASSTHRU -f 25 $RESIZE -R 2 -x vob -o $OUT -y xvid4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/ksh | |
#ffmpeg encoding command: | |
#ffmpeg -i VTS_01_1.VOB -f avi -vcodec mpeg4 -b 800k -g 300 -bf 2 -acodec ac3 -ab 384k test.avi | |
#transcode encoding command: | |
#http://www.transcoding.org/transcode?Examples_DVD_To_Xvid4 | |
export COUNT=$1 | |
export IN=/tmp/dvdriptest/VIDEO_TS/VTS_01_$COUNT.VOB | |
export OUT=/tmp/dvdriptest/transcodeout/VTS_01_$COUNT.avi | |
export RESIZE="-B 12,10,8" | |
export BITRATE="-w 1500,250,100" | |
export AC3PASSTHRU="-A -N 0x2000" | |
transcode -i $IN -M 2 $BITRATE $DEINTERLACE -a 0 -b 128,0,0 $AC3PASSTHRU -f 25 $RESIZE -R 1 -x vob,null -o /dev/null -y xvid4 | |
transcode -i $IN -M 2 $BITRATE $DEINTERLACE -a 0 -b 128,0,0 $AC3PASSTHRU -f 25 $RESIZE -R 2 -x vob -o $OUT -y xvid4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment