output_example does not create valid MP4 file
Hello everyone! Since I have problems creating PSP video files I tried to create a simple mp4 file using output_example.exe. So I run output_example.exe c:\test.mp4 and I received the output: Output #0, mp4, to 'c:\test.mp4': Stream #0.0, -1.#J fps: Video: mpeg4, yuv420p, 352x288, q=2-31, 400 kb/s Stream #0.1: Audio: aac, 44100 Hz, stereo, 64 kb/s Ffmpeg is generated as follows: ffmpeg version CVS, build 3342336, Copyright (c) 2000-2004 Fabrice Bellard configuration: --enable-shared --enable-memalign-hack --enable-mingw32 --extr a-cflags=-I/local/include --extra-ldflags=-L/local/lib --prefix=/home --disable- debug --disable-ffserver --disable-ffplay --enable-amr_nb --enable-amr_wb --enab le-faac --extra-cflags=-Id:/faac/include --extra-ldflags=-Ld:/faac/libfaac/.libs Even VLC cannot play the file with sound (only the video stream is played). Can you please generate a MP4 file on your computer and try to run it? That would help me. Thanks a lot in advance. Lars
Lars Blumberg a ?crit :
Hello everyone!
Hi,
Since I have problems creating PSP video files I tried to create a simple mp4 file using output_example.exe.
So I run output_example.exe c:\test.mp4
and I received the output:
Output #0, mp4, to 'c:\test.mp4': Stream #0.0, -1.#J fps: Video: mpeg4, yuv420p, 352x288, q=2-31, 400 kb/s Stream #0.1: Audio: aac, 44100 Hz, stereo, 64 kb/s
Ffmpeg is generated as follows:
ffmpeg version CVS, build 3342336, Copyright (c) 2000-2004 Fabrice Bellard configuration: --enable-shared --enable-memalign-hack --enable-mingw32 --extr a-cflags=-I/local/include --extra-ldflags=-L/local/lib --prefix=/home --disable- debug --disable-ffserver --disable-ffplay --enable-amr_nb --enable-amr_wb --enab le-faac --extra-cflags=-Id:/faac/include --extra-ldflags=-Ld:/faac/libfaac/.libs
Even VLC cannot play the file with sound (only the video stream is played).
I create my mp4 with : ffmpeg to create video stream (mpeg4) ffmpeg to create audio stream (wav) faac to create audio steam (wav -> aac) mp4creator to create a mp4 file with the video and audio streams It works perfectly on mobile phones, and with VLC, but not with QuickTime.
Can you please generate a MP4 file on your computer and try to run it? That would help me.
Thanks a lot in advance.
-- . //// . (. .) -------------oOO--(_)--OOo----------- Julien YOUX (juju at nain-de-jardin.com
I create my mp4 with : ffmpeg to create video stream (mpeg4) ffmpeg to create audio stream (wav) faac to create audio steam (wav -> aac) mp4creator to create a mp4 file with the video and audio streams
It works perfectly on mobile phones, and with VLC, but not with QuickTime.
Isn't it possible to create mp4 files for PSP only using ffmpeg? Doesn't the software http://www.pspvideo9.com/ only use ffmpeg for creating PSP videos? Thanks for any ideas! Lars
Lars Blumberg a ?crit :
I create my mp4 with : ffmpeg to create video stream (mpeg4) ffmpeg to create audio stream (wav) faac to create audio steam (wav -> aac) mp4creator to create a mp4 file with the video and audio streams
It works perfectly on mobile phones, and with VLC, but not with QuickTime.
Isn't it possible to create mp4 files for PSP only using ffmpeg? Doesn't the software http://www.pspvideo9.com/ only use ffmpeg for creating PSP videos?
Can you give in private a source video and I will encode this with my method, and you will try it on your PSP ;-) -- . //// . (. .) -------------oOO--(_)--OOo----------- Julien YOUX (juju at nain-de-jardin.com
Julien Youx wrote:
[...]
I create my mp4 with : ffmpeg to create video stream (mpeg4) ffmpeg to create audio stream (wav) faac to create audio steam (wav -> aac) mp4creator to create a mp4 file with the video and audio streams
It works perfectly on mobile phones, and with VLC, but not with QuickTime.
Can you please generate a MP4 file on your computer and try to run it? That would help me.
Thanks a lot in advance.
No need. ffmpeg generates (or should anyway) generate correct files for psp. If any problem, report them, and upload failing samples somewhere. -- Baptiste COUDURIER GnuPG Key Id: 0x5C1ABAAA SMARTJOG S.A. http://www.smartjog.com Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA Phone: +33 1 49966312
Lars Blumberg wrote:
[...] Even VLC cannot play the file with sound (only the video stream is played).
Can you please generate a MP4 file on your computer and try to run it? That would help me.
It works. Please update to latest cvs. -- Baptiste COUDURIER GnuPG Key Id: 0x5C1ABAAA SMARTJOG S.A. http://www.smartjog.com Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA Phone: +33 1 49966312
It works. Please update to latest cvs.
Okay, I will try it. Can someone tell me why MinGW/MSys setup renames "make.exe" to "make-mingw32.exe"? If I wouldn't copy "make-mingw32.exe" back to "make.exe" there wouldn't be any "make.exe" for compiling ffmpeg. Why this happens? Thank your very much so far. Lars
It works. Please update to latest cvs.
I am using the following commands to build a ffmpeg which should create PSP video files: make clean rm config.h rm config.mak ./configure --enable-memalign-hack --enable-mingw32 --prefix=/home --enable-faac --extra-cflags=-Is:/faac/include --extra-ldflags=-Ls:/faac/libfaac/.libs --enable-shared make I then used the command $ ffmpeg -y -i test.mpg -title "blabla" -bitexact -s 320x240 -r 29.97 -b 480 -ac 2 -ar 24000 -ab 64 -f psp -muxvb 768 M4V12346.mp4 to convert a mpg video file to psp format. I received the following error message: FFmpeg version CVS, Copyright (c) 2000-2004 Fabrice Bellard configuration: --enable-memalign-hack --enable-mingw32 --prefix=/home --enable-faac --extra-cflags=-Is:/faac/include --extra-ldflags=-Ls:/faac/libfaac/.libs libavutil version: 49.0.0 libavcodec version: 51.8.0 libavformat version: 50.4.0 built on Mar 31 2006 14:19:03, gcc: 3.4.2 (mingw-special) Input #0, mpeg, from 'test.mpg': Duration: 00:03:28.4, start: 0.571756, bitrate: 658 kb/s Stream #0.0[0x1e0], 24.00 fps(r): Video: mpeg1video, yuv420p, 320x240, 512 kb/s Stream #0.1[0x1c0]: Audio: mp2, 44100 Hz, stereo, 128 kb/s Unable for find a suitable output format for '320x240' (I used the ffmpeg.exe from PSP Video 9 and it worked fine) Even if I don't use "-s 320x240" option ffmpeg then tells me "Unable for find a suitable output format for '29.97'" What is going wrong? Why doesn't my ffmpeg.exe not correctly understand the parameters. ffmpeg.exe of "PSP Video 9" does understand this line and creates a correct psp video file. Thanks for any suggestions! Best regards Lars
Lars Blumberg wrote:
[...]
-bitexact expects an argument. Use -bitexact 1. -- Baptiste COUDURIER GnuPG Key Id: 0x5C1ABAAA SMARTJOG S.A. http://www.smartjog.com Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA Phone: +33 1 49966312
-bitexact expects an argument. Use -bitexact 1.
Thank you very much, this was a problem. I created my first PSP video with my own ffmpeg :) But I still wonder why PSP Video 9's ffmpeg.exe understood this parameters with an error. Nevertheless, I still have two questions: 1. When I use the additional configure options "--enable-shared --disable-static" I cannot compile ffmpeg because faac library is not found. When I don't use this options I can compile it?!? My original aim was to create a avformat.dll which helps me creating PSP videos. I am using the configure params: --enable-memalign-hack --enable-mingw32 --prefix=/home --enable-faac --extra-cflags=-Is:/faac/include --extra-ldflags=-Ls:/faac/libfaac/.libs --enable-shared --disable-static When running make I receive the following linker error: s:\system\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe: cannot find -lfaac collect2: ld returned 1 exit status make[1]: *** [avutil.dll] Error 1 make[1]: Leaving directory `/s/ffmpeg/libavutil' make: *** [lib] Error 2 2. I cannot use the ffmpeg option "muxvb 768". ffmpeg.exe tells me: "unrecognized option '-muxvb'" Best regards and thanks again for all your help Lars
participants (3)
-
baptiste.coudurier@smartjog.com -
juju@nain-de-jardin.com -
Lars.Blumberg@aquasoft.de