Postponed (maintainer needs more info)
Project:
Video
Version:
7.x-2.8
Component:
Video Core
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Oct 2012 at 09:56 UTC
Updated:
18 Apr 2014 at 19:08 UTC
Jump to comment: Most recent
Comments
Comment #1
Jorrit commentedCould you post the log messages that you are receiving?
Comment #1.0
Jorrit commentedFmpeg failed to transcode test upload.mp4.
Reported errors
PHPVideoToolkit error: Execute error. It was not possible to encode "D:\xampp\htdocs\drupal7\exercises\videos\original\test upload_2.mp4" as FFmpeg returned an error. Note, however the error was encountered on the second pass of the encoding process and the first pass appear to go fine. The error is with the video codec of the input file. FFmpeg reports the error to be "Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height".
Executed commands and output
D:\xampp\htdocs\drupal7\ffmpeg\bin\ffmpeg -i "D:\xampp\htdocs\drupal7\exercises\videos\original\test upload_2.mp4" -strict experimental -vcodec "h264" -s "200x150" -acodec "aac" -ac "2" -pass "1" -passlogfile "D:\tmp/1351417387-508cfe2b3f4c4-multipass" -y D:\tmp/1351417387-508cfe2b3e4a5.mp4
ffmpeg version N-45739-g04bf2e7 Copyright (c) 2000-2012 the FFmpeg developers
built on Oct 20 2012 00:16:49 with gcc 4.7.2 (GCC)
configuration: --enable-gpl --enable-version3 --disable-pthreads --enable-runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
libavutil 51. 76.100 / 51. 76.100
libavcodec 54. 67.100 / 54. 67.100
libavformat 54. 33.100 / 54. 33.100
libavdevice 54. 3.100 / 54. 3.100
libavfilter 3. 19.103 / 3. 19.103
libswscale 2. 1.101 / 2. 1.101
libswresample 0. 16.100 / 0. 16.100
libpostproc 52. 1.100 / 52. 1.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'D:\xampp\htdocs\drupal7\exercises\videos\original\test upload_2.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
creation_time : 1970-01-01 00:00:00
encoder : Lavf52.94.0
Duration: 00:00:12.43, start: 0.000000, bitrate: 552 kb/s
Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 200x152 [SAR 1:1 DAR 25:19], 549 kb/s, 30 fps, 30 tbr, 30 tbn, 60 tbc
Metadata:
creation_time : 1970-01-01 00:00:00
handler_name : VideoHandler
[libx264 @ 002f6cc0] using SAR=75/76
[libx264 @ 002f6cc0] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.1 Cache64
[libx264 @ 002f6cc0] profile Main, level 1.2
[libx264 @ 002f6cc0] 264 - core 128 r2216 198a7ea - H.264/MPEG-4 AVC codec - Copyleft 2003-2012 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x1:0 me=dia subme=2 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=3 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'D:\tmp/1351417387-508cfe2b3e4a5.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf54.33.100
Stream #0:0(und): Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 200x150 [SAR 75:76 DAR 25:19], q=-1--1, pass 1, 15360 tbn, 30 tbc
Metadata:
creation_time : 1970-01-01 00:00:00
handler_name : VideoHandler
Stream mapping:
Stream #0:0 -> #0:0 (h264 -> libx264)
Press [q] to stop, [?] for help
frame= 373 fps=0.0 q=2292007.0 Lsize= 142kB time=00:00:12.36 bitrate= 93.8kbits/s
video:137kB audio:0kB subtitle:0 global headers:0kB muxing overhead 3.704101%
[libx264 @ 002f6cc0] frame I:2 Avg QP:22.28 size: 2920
[libx264 @ 002f6cc0] frame P:175 Avg QP:24.38 size: 594
[libx264 @ 002f6cc0] frame B:196 Avg QP:29.03 size: 150
[libx264 @ 002f6cc0] consecutive B-frames: 15.3% 32.7% 33.8% 18.2%
[libx264 @ 002f6cc0] mb I I16..4: 21.9% 0.0% 78.1%
[libx264 @ 002f6cc0] mb P I16..4: 6.2% 0.0% 0.0% P16..4: 47.6% 0.0% 0.0% 0.0% 0.0% skip:46.3%
[libx264 @ 002f6cc0] mb B I16..4: 0.3% 0.0% 0.0% B16..8: 13.6% 0.0% 0.0% direct: 3.6% skip:82.6% L0:19.2% L1:41.3% BI:39.5%
[libx264 @ 002f6cc0] coded y,uvDC,uvAC intra: 63.6% 72.7% 34.8% inter: 12.5% 11.1% 0.5%
[libx264 @ 002f6cc0] i16 v,h,dc,p: 12% 59% 21% 8%
[libx264 @ 002f6cc0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 18% 43% 12% 5% 6% 4% 4% 2% 6%
[libx264 @ 002f6cc0] i8c dc,h,v,p: 43% 44% 9% 4%
[libx264 @ 002f6cc0] Weighted P-Frames: Y:2.3% UV:0.0%
[libx264 @ 002f6cc0] kb/s:89.53
D:\xampp\htdocs\drupal7\ffmpeg\bin\ffmpeg -i "D:\xampp\htdocs\drupal7\exercises\videos\original\test upload_2.mp4" -strict experimental -vcodec "h264" -s "200x150" -acodec "aac" -ac "2" -pass "2" -passlogfile "D:\tmp/1351417387-508cfe2b3f4c4-multipass" -y D:\tmp/1351417387-508cfe2b3e4a5.mp4
ffmpeg version N-45739-g04bf2e7 Copyright (c) 2000-2012 the FFmpeg developers
built on Oct 20 2012 00:16:49 with gcc 4.7.2 (GCC)
configuration: --enable-gpl --enable-version3 --disable-pthreads --enable-runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
libavutil 51. 76.100 / 51. 76.100
libavcodec 54. 67.100 / 54. 67.100
libavformat 54. 33.100 / 54. 33.100
libavdevice 54. 3.100 / 54. 3.100
libavfilter 3. 19.103 / 3. 19.103
libswscale 2. 1.101 / 2. 1.101
libswresample 0. 16.100 / 0. 16.100
libpostproc 52. 1.100 / 52. 1.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'D:\xampp\htdocs\drupal7\exercises\videos\original\test upload_2.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
creation_time : 1970-01-01 00:00:00
encoder : Lavf52.94.0
Duration: 00:00:12.43, start: 0.000000, bitrate: 552 kb/s
Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 200x152 [SAR 1:1 DAR 25:19], 549 kb/s, 30 fps, 30 tbr, 30 tbn, 60 tbc
Metadata:
creation_time : 1970-01-01 00:00:00
handler_name : VideoHandler
[libx264 @ 00396cc0] using SAR=75/76
[libx264 @ 00396cc0] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.1 Cache64
[libx264 @ 00396cc0] constant rate-factor is incompatible with 2pass.
Output #0, mp4, to 'D:\tmp/1351417387-508cfe2b3e4a5.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf52.94.0
Stream #0:0(und): Video: h264, yuv420p, 200x150 [SAR 75:76 DAR 25:19], q=-1--1, pass 2, 90k tbn, 30 tbc
Metadata:
creation_time : 1970-01-01 00:00:00
handler_name : VideoHandler
Stream mapping:
Stream #0:0 -> #0:0 (h264 -> libx264)
Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
Comment #2
brycefisherfleig commentedIs this issue still ongoing? Please update to the latest version of Video module (7.x-2.x-dev) and provide instructions for reproducing this issue.