Autor | Zpráva | ||
---|---|---|---|
Silver8000 Profil |
FFMPEG chyba pri otevirani enkoderu pro vychozi stream #0:0 (h264 -> libx264)
Ahoj vsem potrebuji poradit, mam spoustu souboru ktere konvertuji ale nektere z nich nejdou prekonvertovat a vyzkytne se hlaska viz error log : ffmpeg version N-57114-g5340c3d Copyright (c) 2000-2013 the FFmpeg developers built on Oct 13 2013 18:02:04 with gcc 4.8.1 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib libavutil 52. 46.101 / 52. 46.101 libavcodec 55. 35.100 / 55. 35.100 libavformat 55. 19.100 / 55. 19.100 libavdevice 55. 4.100 / 55. 4.100 libavfilter 3. 88.101 / 3. 88.101 libswscale 2. 5.101 / 2. 5.101 libswresample 0. 17.103 / 0. 17.103 libpostproc 52. 3.100 / 52. 3.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\Xampp_Server1.7.2_php5.3.0\htdocs\video_uc\include\config/../../data/video/uploads/1384708798.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf54.6.100 Duration: 02:03:45.96, start: 0.000000, bitrate: 905 kb/s Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 480x320 [SAR 3853:2422 DAR 11559:4844], 771 kb/s, SAR 16384:10299 DAR 8192:3433, 30 fps, 30 tbr, 30 tbn, 60 tbc (default) Metadata: handler_name : VideoHandler Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 127 kb/s (default) Metadata: handler_name : SoundHandler [libx264 @ 003ad640] height not divisible by 2 (320x213) Output #0, mp4, to 'C:\Xampp_Server1.7.2_php5.3.0\htdocs\video_uc\include\config/../../data/video/output/temp-1384708798.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf54.6.100 Stream #0:0(und): Video: h264, yuv420p, 320x213 [SAR 27264:17165 DAR 8192:3433], q=-1--1, 90k tbn, 30 tbc (default) Metadata: handler_name : VideoHandler Stream #0:1(und): Audio: aac, 48000 Hz, stereo, s16, 128 kb/s (default) Metadata: handler_name : SoundHandler Stream mapping: Stream #0:0 -> #0:0 (h264 -> libx264) Stream #0:1 -> #0:1 (aac -> libvo_aacenc) Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height nevite co s tim nahodou? Uz jsem prohledal googlem snad vsechno ale nikde neni vysvetleni cim pripadne nahradit syntaxi aby to slapalo. Neocekavam ze se to vyresi hned ale dik predem vsem ktery se udou snazit pomoct. ps: zde prikladam jeste tvar prikazu: C:/Xampp_Server1.7.2_php5.3.0/FFmpeg/bin/ffmpeg.exe -y -i C:\Xampp_Server1.7.2_php5.3.0\htdocs\video_uc\include\config/../../data/video/uploads/1384708798.mp4 -strict -2 -acodec aac -ab 32000 -s 320x213 -vcodec libx264 -crf 22 -threads 2 -g 15 C:\Xampp_Server1.7.2_php5.3.0\htdocs\video_uc\include\config/../../data/video/output/temp-1384708798.mp4 1>C:\Xampp_Server1.7.2_php5.3.0\htdocs\video_uc\include\config/../../data/logs/conversionLog-1384708798.log 2>&1 |
||
Mike8748 Profil |
Silver8000:
height not divisible by 2 (320x213) .... tedy tebou požadovaná výška videa není dělitelná dvěma, protože chceš výšku 213 320x213 je hodně divný formát videa... když už tak používej sudá čísla |
||
Silver8000 Profil |
hmm toho jsem si nevsimul ale v konfiguracnim souboru mam 320x240 tak nechapu proc se tam dela tohle rozliseni.
ja totiz delam konvertaci v PHP // configuration options for VideoConverter.php class $config = array( 'uploadPath' => BASE_PATH . 'data/video/uploads/', 'outputPath' => BASE_PATH . 'data/video/output/', 'thumbPath' => BASE_PATH . 'data/video/thumbnails/', 'conversionLog' => BASE_PATH . 'data/logs/conversionLog-', 'errorLog' => BASE_PATH . 'data/logs/errorLog-', 'conversionScript' => BASE_PATH . 'include/scripts/processVideo.php', 'outputFormat' => 'mp4', // either 'mp4' or 'flv' 'bitRate' => 32000, 'sampleRate' => 22050, 'videoMaxWidth' => 320, 'videoMaxHeight' => 240, 'thumbMaxWidth' => 320, 'thumbMaxHeight' => 240, 'minDuration' => 1, 'videoThumbDepth' => 25, // % into video to get thumbnail ); jeste prolitnu celej skript a omrknu nastaveni. Pak dam vedet jetly je chyba jinde. |
||
Silver8000 Profil |
Chybu tam zadnou nemam tak to nechapu proc se to kazi,ale kdyz udelam konverzaci rucne tak to jede.Kontroloval jsem skript asi 10x.
|
||
Časová prodleva: 11 let
|
0