Okay fejlen er fundet.
"[libmp3lame @ 0x2cbe5e0] flv does not support that sample rate, choose from (44100, 22050, 11025)."
så har smidt en "-ar 44100" på så spiller det bare
ffmpeg version git-v0.7b2-32-gd39bf3d, Copyright (c) 2000-2011 the Libav developers
built on Jun 24 2011 15:27:59 with gcc 4.4.3
configuration: --enable-avfilter --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-runtime-cpudetect --enable-libmp3lame --enable-libfaac --enable-nonfree --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libxvid --enable-libx264 --enable-libopencore-amrnb --enable-version3 --enable-libopencore-amrwb --enable-libdc1394 --enable-libvpx --disable-ffserver --disable-ffplay
libavutil 51. 1. 0 / 51. 1. 0
libavcodec 53. 3. 0 / 53. 3. 0
libavformat 53. 0. 3 / 53. 0. 3
libavdevice 53. 0. 0 / 53. 0. 0
libavfilter 2. 4. 0 / 2. 4. 0
libswscale 1. 1. 0 / 1. 1. 0
libpostproc 52. 0. 0 / 52. 0. 0
Seems stream 0 codec frame rate differs from container frame rate: 60000.00 (60000/1) -> 1000.00 (1000/1)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/media/data/files/video/in2.mp4':
Metadata:
major_brand : 3gp4
minor_version : 768
compatible_brands: 3gp43gp6
Duration: 00:00:55.13, start: 0.000000, bitrate: 3492 kb/s
Stream #0.0(eng): Video: h264 (Baseline), yuv420p, 720x480, 3428 kb/s, 29.87 fps, 1k tbr, 30k tbn, 60k tbc
Stream #0.1(eng): Audio: aac, 16000 Hz, mono, s16, 60 kb/s
[buffer @ 0x2cc4d60] w:720 h:480 pixfmt:yuv420p
[libmp3lame @ 0x2cbe5e0] flv does not support that sample rate, choose from (44100, 22050, 11025).
Output #0, flv, to '/media/data/files/video/out2.flv':
Metadata:
major_brand : 3gp4
minor_version : 768
compatible_brands: 3gp43gp6
encoder : Lavf53.0.3
Stream #0.0(eng): Video: flv, yuv420p, 720x480, q=2-31, 200 kb/s, 1k tbn, 1k tbc
Stream #0.1(eng): Audio: libmp3lame, 16000 Hz, mono, s16, 64 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
Could not write header for output file #0 (incorrect codec parameters ?)
tak for hjælpen..
debugging via php kan ske via: ("2> logfil.txt")
- $q = $_SERVER['DOCUMENT_ROOT'];
- $cmd = "ffmpeg -i $q/files/video/in2.mp4 -ar 44100 $q/files/video/out_php.flv 2> $q/files/video/out_php.txt";
- exec($cmd);
/kenneth.
Indlæg senest redigeret d. 21.07.2011 15:50 af Bruger #3427