Originally Posted by
xzero1
Try adding the "-f mp4" parameter. The original command works for me converting a similar ".ts" format (h.264, 5.1) file. If that does not work, you may need to update ffmpeg and its libraries.
In the command line, I used "FFmpeg version 0.5-svn17737+3:0.svn20090303-1ubuntu6" compiled according to this thread:
http://ubuntuforums.org/showthread.p...ight=ffmpeg-mt
Thanks have tried the "-f mp4" parameter and this also errored
Code:
ffmpeg -i 00001.MTS -f mp4 -vcodec copy -acodec copy test.mp4
FFmpeg version r11872+debian_3:0.svn20080206-12ubuntu3.1, Copyright (c) 2000-2008 Fabrice Bellard, et al.
configuration: --enable-gpl --enable-pp --enable-swscaler --enable-x11grab --prefix=/usr --enable-libgsm --enable-libtheora --enable-libvorbis --enable-pthreads --disable-strip --enable-libfaad --enable-libfaadbin --enable-liba52 --enable-liba52bin --enable-libdc1394 --enable-shared --disable-static
libavutil version: 49.6.0
libavcodec version: 51.50.0
libavformat version: 52.7.0
libavdevice version: 52.0.0
built on Mar 13 2009 17:52:45, gcc: 4.3.2
Input #0, mpegts, from '00001.MTS':
Duration: 00:00:35.3, start: 1.040000, bitrate: 12466 kb/s
Program 1
Stream #0.0[0x1011]: Video: h264, yuv420p, 1440x1080 [PAR 4:3 DAR 16:9], 25.00 tb(r)
Stream #0.1[0x1100]: Audio: liba52, 48000 Hz, 5:1, 448 kb/s
Output #0, mp4, to 'test.mp4':
Stream #0.0: Video: libx264, yuv420p, 1440x1080 [PAR 0:1 DAR 0:1], q=2-31, 25.00 tb(c)
Stream #0.1: Audio: ac3, 48000 Hz, 5:1, 448 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
[mp4 @ 0x7f6b2cbcd040]track 1: could not find tag for codec
Could not write header for output file #0 (incorrect codec parameters ?)
My version of ffmpeg is
Code:
ffmpeg -version
FFmpeg version r11872+debian_3:0.svn20080206-12ubuntu3.1, Copyright (c) 2000-2008 Fabrice Bellard, et al.
configuration: --enable-gpl --enable-pp --enable-swscaler --enable-x11grab --prefix=/usr --enable-libgsm --enable-libtheora --enable-libvorbis --enable-pthreads --disable-strip --enable-libfaad --enable-libfaadbin --enable-liba52 --enable-liba52bin --enable-libdc1394 --enable-shared --disable-static
libavutil version: 49.6.0
libavcodec version: 51.50.0
libavformat version: 52.7.0
libavdevice version: 52.0.0
built on Mar 13 2009 17:52:45, gcc: 4.3.2
FFmpeg r11872+debian_3:0.svn20080206-12ubuntu3.1
libavutil 3212800
libavcodec 3355136
libavformat 3409664
libavdevice 3407872
Do i need to upgrade this? Is there a way to do this without building from source?
I still think this could be to do with the audio formats that mp4 supports.
Thanks again for any help
Bookmarks