.m4a to .flv - image/video fails
Hi all, I have greatly appreciated the information I have already gleaned from reading this forum. However I still can not solve my current problem. I am trying to convert from .m4a to .flv. These are podcast files (.m4a) built in garage band. Pictures were added as well and we would like to use this format to create weekly announcements because Garage Band is so easy for our non-technically oriented staff. Using ffmpeg the audio converts just fine but the "video" is not right. I guess it's because these files include chapter data not actual video. However when I convert it to any format the images fly through at different rates, then it seems to get stuck on a picture in the middle. The format I would like to convert to is flash so that I can easy display multiple announcement files using a flash player. I can convert .mov to .flv no problem. Converting .m4a to .mov and then .flv doesn't produce any better results. Here are the before and after files: http://www.warwicksd.org/warwick.m4a http://www.warwicksd.org/output.flv I used the following to get my conversion: ffmpeg -i warwick.m4a -b 300k -r 12 -s 300x300 -ar 22050 -y -ab 96k output.flv FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al. configuration: --enable-gpl --enable-libfaac --enable-libfaad --enable- libmp3lame --disable-vhook --enable-shared libavutil version: 49.5.0 libavcodec version: 51.44.0 libavformat version: 51.14.0 built on Oct 22 2007 15:31:25, gcc: 3.3 20030304 (Apple Computer, Inc. build 1640) Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'warwick.m4a': Duration: 00:00:55.9, start: 0.000000, bitrate: 100 kb/s Stream #0.0(eng): Audio: mpeg4aac, 44100 Hz, stereo Stream #0.1(eng): Video: mjpeg, yuvj420p, 300x300, 44100.00 fps(r) Stream #0.2(eng): Data: tx3g / 0x67337874 Stream #0.3(eng): Data: text / 0x74786574 Output #0, flv, to 'output.flv': Stream #0.0(eng): Video: flv, yuv420p, 300x300, q=2-31, 300 kb/s, 12.00 fps (c) Stream #0.1(eng): Audio: libmp3lame, 22050 Hz, stereo, 96 kb/s Stream mapping: Stream #0.1 -> #0.0 Stream #0.0 -> #0.1 Press [q] to stop encoding frame= 83 fps= 21 q=2.0 Lsize= 1099kB time=6.9 bitrate=1301.6kbits/s video:70kB audio:657kB global headers:0kB muxing overhead 51.296550% .mov files convert nicely to .flv but these .m4as are just not working. Our current staff is very eager to use these Garage Band files to communicate announcements. I have been so desperate to get this particular file type to convert that I have been experimenting with grabbing the frames every 5 secs. and then rebuilding the images into video. This produces strange results and seems to be more programming then should be necessary. Thanks in advanced for any solutions you can provide. Nancy Reddig Web Programmer Warwick SD
Nancy Reddig a ?crit :
Hi all, I have greatly appreciated the information I have already gleaned from reading this forum. However I still can not solve my current problem.
I am trying to convert from .m4a to .flv. These are podcast files (.m4a) built in garage band. Pictures were added as well and we would like to use this format to create weekly announcements because Garage Band is so easy for our non-technically oriented staff.
Using ffmpeg the audio converts just fine but the "video" is not right. I guess it's because these files include chapter data not actual video. However when I convert it to any format the images fly through at different rates, then it seems to get stuck on a picture in the middle. The format I would like to convert to is flash so that I can easy display multiple announcement files using a flash player.
I can convert .mov to .flv no problem. Converting .m4a to .mov and then .flv doesn't produce any better results.
Here are the before and after files:
http://www.warwicksd.org/warwick.m4a
http://www.warwicksd.org/output.flv
I used the following to get my conversion:
ffmpeg -i warwick.m4a -b 300k -r 12 -s 300x300 -ar 22050 -y -ab 96k output.flv
FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
This shouldnt happen. Please update, distclean and rebuild
configuration: --enable-gpl --enable-libfaac --enable-libfaad --enable- libmp3lame --disable-vhook --enable-shared libavutil version: 49.5.0 libavcodec version: 51.44.0 libavformat version: 51.14.0 built on Oct 22 2007 15:31:25, gcc: 3.3 20030304 (Apple Computer, Inc. build 1640) Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'warwick.m4a': Duration: 00:00:55.9, start: 0.000000, bitrate: 100 kb/s Stream #0.0(eng): Audio: mpeg4aac, 44100 Hz, stereo Stream #0.1(eng): Video: mjpeg, yuvj420p, 300x300, 44100.00 fps(r)
This stinks. 44100 fps!
Stream #0.2(eng): Data: tx3g / 0x67337874 Stream #0.3(eng): Data: text / 0x74786574 Output #0, flv, to 'output.flv': Stream #0.0(eng): Video: flv, yuv420p, 300x300, q=2-31, 300 kb/s, 12.00 fps (c) Stream #0.1(eng): Audio: libmp3lame, 22050 Hz, stereo, 96 kb/s Stream mapping: Stream #0.1 -> #0.0 Stream #0.0 -> #0.1 Press [q] to stop encoding frame= 83 fps= 21 q=2.0 Lsize= 1099kB time=6.9 bitrate=1301.6kbits/s video:70kB audio:657kB global headers:0kB muxing overhead 51.296550%
.mov files convert nicely to .flv but these .m4as are just not working. Our current staff is very eager to use these Garage Band files to communicate announcements. I have been so desperate to get this particular file type to convert that I have been experimenting with grabbing the frames every 5 secs. and then rebuilding the images into video. This produces strange results and seems to be more programming then should be necessary.
-- Michel Bardiaux R&D Director T +32 [0] 2 790 29 41 F +32 [0] 2 790 29 02 E mailto:mbardiaux at mediaxim.be Mediaxim NV/SA Vorstlaan 191 Boulevard du Souverain Brussel 1160 Bruxelles http://www.mediaxim.com/
Nancy, did you ever find a workaround for this problem? I am trying to convert .m4a podcast files with embedded images and chapters to .flv so I can more easily display and play them on my website. Any advice would be much appreciated.
Why are you going to FLV? Flash Player supports H.264/MP4, and most HTML5 browsers support H.264 MP4 as well. You'll get better quality for equivalent nitrates than the H.263 FLV compression ffmpeg offers. -Robert Robert Reinhardt Author, original Flash Bible series and ActionScript Bible series The difference knowledge + experience makes | Consultant @ [theMAKERS] { work: http://www.theMakers.com } { video: http://videoRx.com } { blog: http://probablyjustme.com } ________________________________________ From: ffmpeg-user-bounces@ffmpeg.org [ffmpeg-user-bounces@ffmpeg.org] on behalf of Josh [joshdotnet@gmail.com] Sent: Friday, March 30, 2012 7:24 AM To: ffmpeg-user@ffmpeg.org Subject: Re: [FFmpeg-user] .m4a to .flv - image/video fails Nancy, did you ever find a workaround for this problem? I am trying to convert .m4a podcast files with embedded images and chapters to .flv so I can more easily display and play them on my website. Any advice would be much appreciated. _______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
participants (4)
-
Josh -
mbardiaux@mediaxim.be -
nreddig@ptd.net -
Robert Reinhardt