Oct 18 2012

Video format problems loading Big Data University lessons on Samsung TV

Published by at 2:06 pm under linux

I’ve found some problems watching the videos of the course “Hadoop Fundamentals I” of the Big Data University on my Samsung TV. The videos of several lessons can’t be loaded showing the message “unsopported format“.

I’ve been testing and the encoding is the same so it seems that the problem is due to an unsopported resolution.
The videos of the Lesson 1 have 1024×852 and the other ones 1280×1108.
The problem can be easily solved changing the resolution to 1280×1024. We are changing a little the aspect ratio but it doesn’t matter so much, most of the images are slides and the conversion is almost negligible.

Those are the commands I’ve executed in Linux to solve it.

To show the current resolution of a video:

ffmpeg -i 02_hadooparchitecturepart1.mp4
> ...
> Stream #0.0(eng): Video: h264 (High), yuv420p, 1280x1108 [PAR 1:1 DAR 320:277], 180 kb/s, 15 fps, 15 tbr, 15k tbn, 30 tbc
> ...

And to fix it if needed:

ffmpeg -i 02_hadooparchitecturepart1.mp4 -s 1280x1024 -aspect 4:3 02_hadooparchitecturepart1_fixed.mp4

This is the complete script I’ve used to fix all the videos of the course:

cd Lesson\ 2\ -\ Hadoop\ architecture/
ffmpeg -i 02_hadooparchitecturepart1.mp4 -s 1280x1024 -aspect 4:3 02_hadooparchitecturepart1_fixed.mp4
ffmpeg -i 03_hadooparchitecturepart2.mp4 -s 1280x1024 -aspect 4:3 03_hadooparchitecturepart2_fixed.mp4
cd ..
cd Lesson\ 3\ -\ MapReduce/
ffmpeg -i 05_mapreducepart1.mp4 -s 1280x1024 -aspect 4:3 05_mapreducepart1_fixed.mp4
ffmpeg -i 06_mapreducepart2.mp4 -s 1280x1024 -aspect 4:3 06_mapreducepart2_fixed.mp4
ffmpeg -i 07_mapreducepart3.mp4 -s 1280x1024 -aspect 4:3 07_mapreducepart3_fixed.mp4
ffmpeg -i 08_mapreducepart4.mp4 -s 1280x1024 -aspect 4:3 08_mapreducepart4_fixed.mp4
ffmpeg -i 09_mapreducepart5.mp4 -s 1280x1024 -aspect 4:3 09_mapreducepart5_fixed.mp4
ffmpeg -i 10_mapreducepart6.mp4 -s 1280x1024 -aspect 4:3 10_mapreducepart6_fixed.mp4
cd ..
cd Lesson\ 4\ -\ Querying\ data/
ffmpeg -i 13_pighivejaqlpart1.mp4 -s 1280x1024 -aspect 4:3 13_pighivejaqlpart1_fixed.mp4
ffmpeg -i 14_pighivejaqlpart2.mp4 -s 1280x1024 -aspect 4:3 14_pighivejaqlpart2_fixed.mp4
ffmpeg -i 15_pighivejaqlpart3.mp4 -s 1280x1024 -aspect 4:3 15_pighivejaqlpart3_fixed.mp4
ffmpeg -i 16_pighivejaqlpart4.mp4 -s 1280x1024 -aspect 4:3 16_pighivejaqlpart4_fixed.mp4
cd ..
cd Lesson\ 5\ -\ Moving\ data/
ffmpeg -i 11_flumepart1.mp4 -s 1280x1024 -aspect 4:3 11_flumepart1_fixed.mp4
ffmpeg -i 12_flumepart2.mp4 -s 1280x1024 -aspect 4:3 12_flumepart2_fixed.mp4

No responses yet


Trackback URI | Comments RSS

Leave a Reply