The second pass is missing the -y

Comments

hypertext200’s picture

@gordon, granting you CVS access to direct commit to the dev. Your fixes are always welcome

gordon’s picture

Status: Needs review » Fixed

This has been committed.

bcobin’s picture

Looks like we're good in 4.2 beta as far as HTML5 and Flash is concerned- these formats are now successfully transcoding.

However, iphone_mov preset produces the following error:

Video conversion failed for preset iphone_mov. FFMPEG reported the following output: FFmpeg version SVN-r23544, Copyright (c) 2000-2010 the FFmpeg developers built on Jun 8 2010 20:31:53 with gcc 4.1.2 20080704 (Red Hat 4.1.2-48) configuration: --enable-libmp3lame --disable-mmx --enable-shared --enable-gpl --enable-postproc --enable-nonfree --enable-postproc --enable-libfaad --enable-avfilter --enable-pthreads --enable-libxvid --enable-libx264 --enable-libfaac --enable-libtheora --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvorbis libavutil 50.18. 0 / 50.18. 0 libavcodec 52.75. 1 / 52.75. 1 libavformat 52.68. 0 / 52.68. 0 libavdevice 52. 2. 0 / 52. 2. 0 libavfilter 1.20. 0 / 1.20. 0 libswscale 0.11. 0 / 0.11. 0 libpostproc 51. 2. 0 / 51. 2. 0 Input #0, mpeg, from 'sites/default/files/videos/original/test_vid.mpg': Duration: 00:00:04.99, start: 0.226278, bitrate: 3252 kb/s Stream #0.0[0x1e0]: Video: mpeg1video, yuv420p, 704x480 [PAR 200:219 DAR 880:657], 3000 kb/s, 30 fps, 30 tbr, 90k tbn, 30 tbc Stream #0.1[0x1c0]: Audio: mp2, 48000 Hz, 2 channels, s16, 224 kb/s encoder 'aac' is experimental and might produce bad results. Add '-strict experimental' if you want to use it. Or use the non experimental encoder 'libfaac'.

And html5_ogv produces the following:

Video conversion failed for preset html5_ogv. FFMPEG reported the following output: nice: ffmpeg2theora: No such file or directory

html5_webm also fails with a Unknown encoder 'libvpx' error message, but I assume I need to install something else here and would then need to recompile FFMPEG.

So I can encode mp4 and Flash, but the HTML5 player doesn't seem to work - in FF there's a dimmed preview image with no player and in Mac, the native Quicktime player initializes (which is wrong.) I will post this last in a separate thread just to keep the issue consistent. Anyway, still not there as far as creating cross-platform video...

hypertext200’s picture

HTML5 will need mp4 and ogg video types. See this article http://video.heidisoft.com/blog/how-many-formats-do-i-need-html5-video

virtuali1151’s picture

@bcobin - Can you supply the 2 pass command line you are using for the transcoding..??

Cheers.

hypertext200’s picture

Check the latest code in the dev

bcobin’s picture

Status: Fixed » Needs work

MP4 is OK after the patch above; libtheora and liborbis are enabled in the FFMPEG build. The command in html5_ogv.inc is as follows and looks to be incomplete:

'ffmpeg2theora --videobitrate !videobitrate --max_size !widthx!height --output !convertfile !videofile'

(There's no !cmd_path.)

As to the iphone_mov.inc preset, there's a problem with aac audio encoding as described in #3.

Setting this back to "needs review" because although the multi-pass issue looks to have been resolved here, there's still a problem with presets.

bcobin’s picture

To #5: Here ya go - probably the same as what's in the dev.

// 'HandBrakeCLI --preset "iPhone & iPod Touch" --vb !videobitrate --width !width --two-pass --turbo --optimize --input !videofile --output !convertfile'
'!cmd_path -i !videofile -an -pass 1 -vcodec libx264 -vpre slow_firstpass -b 500k -threads 0 !convertfile',
'!cmd_path -y -i !videofile -acodec libfaac -ab 128k -pass 2 -vcodec libx264 -vpre slow -b 500k -threads 0 !convertfile'

virtuali1151’s picture

I seem to be getting the ffmpegpass2.log error..?? I think Bcobin was getting this before.. is there any fix for this? Cheers.

Video conversion failed for preset html5_mp4. FFMPEG reported the following output: FFmpeg version SVN-r25853, Copyright (c) 2000-2010 the FFmpeg developers built on Dec 1 2010 06:32:04 with gcc 4.1.2 20080704 (Red Hat 4.1.2-48) configuration: --prefix=/usr/local/cpffmpeg --enable-shared --enable-nonfree --enable-gpl --enable-pthreads --enable-libopencore-amrnb --enable-decoder=liba52 --enable-libopencore-amrwb --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --extra-cflags=-I/usr/local/cpffmpeg/include/ --extra-ldflags=-L/usr/local/cpffmpeg/lib --enable-version3 libavutil 50.33. 0 / 50.33. 0 libavcore 0.14. 0 / 0.14. 0 libavcodec 52.97. 2 / 52.97. 2 libavformat 52.87. 1 / 52.87. 1 libavdevice 52. 2. 2 / 52. 2. 2 libavfilter 1.65. 0 / 1.65. 0 libswscale 0.12. 0 / 0.12. 0 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'sites/default/files/videos/original/bud_fishing_x264_0.mp4': Metadata: major_brand : mp42 minor_version : 0 compatible_brands: mp42isom creation_time : 2011-01-23 00:54:04 encoder : mp4creator 1.4.4 Duration: 00:00:29.92, start: 0.000000, bitrate: 902 kb/s Stream #0.0(eng): Video: h264, yuv420p, 320x240 [PAR 1:1 DAR 4:3], 788 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc Metadata: creation_time : 2011-01-23 00:54:04 Stream #0.1(eng): Audio: aac, 44100 Hz, stereo, s16, 115 kb/s Metadata: creation_time : 2011-01-23 00:54:04 [buffer @ 0x1115bde0] w:320 h:240 pixfmt:yuv420p Cannot read file 'ffmpeg2pass-0.log': No such file or directory Error reading log file 'ffmpeg2pass-0.log' for pass-2 encoding last atom in file was not a moov atom

virtuali1151’s picture

Has anybody been able to get a fix for the 'ffmpeg2pass-0.log' error..??

Tks guys..

Cheers.

bcobin’s picture

@virtuali1151:

This is just a wild stab: Try running the FFMPEG command from your base directory and see if you can successfully two-pass encode - it may just generate the ffmpeg2pass-0.log file for you in the base directory.

If that doesn't work, try creating an empty file named ffmpeg2pass-0.log and place it in your base directory with permissions set to 664. File type should be text/x-log.

My particular insight here is that I see this file in my base directory and two-pass now seems to work (although I have other issues, as you can see.)

Good luck!

firebus’s picture

yes, i agree with #11

the user/group that the webserver is running as needs to be able to write to the drupal basedir so that it can create and read the logfiles.

would be nicer if the logfiles could be created in a temp folder...

hypertext200’s picture

firebus’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

delykj’s picture

subscribe