my mobile samsung e2120 does not play mp4 file created using ffmpeg
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
my mobile samsung e2120 does not play mp4 file created using ffmpeg
I am using ubuntu 8.04
here is what i did
I ran
ffmpeg -i /sumeet/clip/friends\ introduction\ song.mp4 -s 160x120 -acodec amr_nb -vcodec mpeg4 -r 30 -ar 8000 -ac 1 ~/Desktop/friends.mp4
now I compared sample video created by mobile file I created above.
Code:
09:08:59 ~ $ffmpeg -i ~/Desktop/sample.mp4
FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
configuration: --enable-gpl --enable-pp --enable-swscaler --enable-pthreads --enable-libvorbis --enable-libtheora --enable-libogg --enable-libgsm --enable-dc1394 --disable-debug --enable-libmp3lame --enable-libfaadbin --enable-libfaad --enable-libfaac --enable-xvid --enable-x264 --enable-liba52 --enable-amr_nb --enable-amr_wb --enable-shared --prefix=/usr
libavutil version: 1d.49.3.0
libavcodec version: 1d.51.38.0
libavformat version: 1d.51.10.0
built on May 1 2010 18:17:41, gcc: 4.2.4 (Ubuntu 4.2.4-1ubuntu4)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/lxuser/Desktop/sample.mp4':
Duration: 00:00:11.0, start: 0.000000, bitrate: 18 kb/s
Stream #0.0(und): Audio: amr_nb, 8000 Hz, mono
Stream #0.1(und): Video: mpeg4, yuv420p, 160x120, 30.00 fps(r)
Must supply at least one output file
09:09:07 ~ $ffmpeg -i ~/Desktop/friends.mp4
FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
configuration: --enable-gpl --enable-pp --enable-swscaler --enable-pthreads --enable-libvorbis --enable-libtheora --enable-libogg --enable-libgsm --enable-dc1394 --disable-debug --enable-libmp3lame --enable-libfaadbin --enable-libfaad --enable-libfaac --enable-xvid --enable-x264 --enable-liba52 --enable-amr_nb --enable-amr_wb --enable-shared --prefix=/usr
libavutil version: 1d.49.3.0
libavcodec version: 1d.51.38.0
libavformat version: 1d.51.10.0
built on May 1 2010 18:17:41, gcc: 4.2.4 (Ubuntu 4.2.4-1ubuntu4)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/lxuser/Desktop/friends.mp4':
Duration: 00:00:44.3, start: 0.000000, bitrate: 238 kb/s
Stream #0.0(und): Video: mpeg4, yuv420p, 160x120, 30.00 fps(r)
Stream #0.1(und): Audio: amr_nb, 8000 Hz, mono
Must supply at least one output file
All i can see difference is order of audio & video stream.
What should i do ?
here I am comparing two mp4 files .
One created by mobile & other on computer .
i am showing that codec & other parameters of both file are same (except order of audio & video stream) . Yet , computer file does not play in mobile which says 'unsupported content'
now I have further perused/scrutinised media info .
Code:
Format profile : Base Media to 3GPP Media Release 4
Codec ID : isom to 3gp4
video
id : 1 to 2
Format settings, BVOP : no to color=red]Yes[/color]
Bit rate mode : Variable to constant
Nominal bit rate : 128 Kbps
Original display aspect ratio : 3:2 (though dar=4:3 is satisfied by ffmpeg)
Frame rate mode : constant to Variable
Minimum frame rate : 7.463 fps
Maximum frame rate : 15.152 fps
Audio
ID : 2 to 1
I tried '-b 128k -minrate 128k -maxrate 128k -bufsize 256k -r 8' . That helped.
Now question reamins about interchanging order of video 7 audio in output ?
Last edited by sumeet inani; 07-30-2010 at 01:07 AM.
Reason: did something useful
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.