New submission from Jhendler <[email protected]>: Will need some guidance about what information I need to provide. Not clear if the issue is for all video files,and all contexts. Will be updating ticket shortly with more information
FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1 on ubuntu 10.0.4 installed via sudo wget http://www.medibuntu.org/sources.list.d/`lsb_release -cs`.list --output-document=/etc/apt/sources.list.d/medibuntu.list && sudo apt-get -q update && sudo apt-get --yes -q --allow-unauthenticated install medibuntu-keyring && sudo apt-get -q update sudo apt-get install ffmpeg libavcodec-extra-52 Only affects two-passencoding nice -n 11 /usr/bin/ffmpeg -y -i $1 -r 30000/1001 -b 1M -bt 2M -vcodec libx264 -threads 0 -pass 1 -vpre /usr/share/ffmpeg/libx264-fastfirstpass.ffpreset -an movie.flv nice -n 11 /usr/bin/ffmpeg -y -i $1 -r 30000/1001 -b 1M -bt 2M -vcodec libx264 -threads 0 -pass 2 -vpre /usr/share/ffmpeg/libx264-hq.ffpreset -acodec libfaac -ac 2 -ar 48000 -ab 192k movie.flv Where $1 is the full path to a file. Symptoms - worked from command line - sometimes first pass works without audio - current files are wmv , also fails with other formats orginal post https://roundup.ffmpeg.org/issue1829 I may have an issue with PHP wrapping ffmpeg that only happens during two pass encoding. When run from the shell -it executes fine. In this case an bash script is run via exec in php. nice -n 11 /usr/bin/ffmpeg -y -i $1 -r 30000/1001 -b 1M -bt 2M -vcodec libx264 -threads 0 -pass 1 -vpre /usr/share/ffmpeg/libx264-fastfirstpass.ffpreset -an movie.flv nice -n 11 /usr/bin/ffmpeg -y -i $1 -r 30000/1001 -b 1M -bt 2M -vcodec libx264 -threads 0 -pass 2 -vpre /usr/share/ffmpeg/libx264-hq.ffpreset -acodec libfaac -ac 2 -ar 48000 -ab 192k movie.flv I've tried chaining the commands together with && and suppressing output with > /dev/null 2>&1 . FIle paths seem to be correct I am using FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1, Copyright (c) 2000-2009 Fabrice Bellard, et al. configuration: --extra-version=4:0.5.1-1ubuntu1 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --disable-stripping --disable-vhook --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared --disable-static libavutil 49.15. 0 / 49.15. 0 libavcodec 52.20. 1 / 52.20. 1 libavformat 52.31. 0 / 52.31. 0 libavdevice 52. 1. 0 / 52. 1. 0 libavfilter 0. 4. 0 / 0. 4. 0 libswscale 0. 7. 1 / 0. 7. 1 libpostproc 51. 2. 0 / 51. 2. 0 built on Mar 4 2010 12:41:55, gcc: 4.4.3 At least one output file must be specified I also get in apache logs [Sun Sep 19 18:37:02 2010] [warn] [client 204.236.224.9] mod_fcgid: stderr: wmv, files3/1qwj, 1qwj.wmv For more background: http://stackoverflow.com/questions/2504842/ffmpeg-running-in-command-line-but-not-php msg11968 (view) Author: hendler Date: 2010-09-19.23:27:19 here are the log artifacts when completed. Perhaps this is a user error with passlog file location? -rw-r--r-- 1 www-data www-data 0 2010-09-19 19:02 ffmpeg2pass-0.log -rw-r--r-- 1 www-data www-data 0 2010-09-19 19:02 movie.flv -rw-r--r-- 1 www-data www-data 153466 2010-09-19 19:02 movie.jpg -rw-r--r-- 1 www-data www-data 358803 2010-09-19 19:02 movie_preview.jpg -rw-r--r-- 1 www-data www-data 410283 2010-09-19 19:02 x264_2pass.log -rw-r--r-- 1 www-data www-data 5759257 2010-09-19 19:02 x264_2pass.log.mbtree ---------- messages: 11973 priority: normal status: new substatus: new title: two pass encoding bugs from both PHP and command line topic: ffmpeg type: bug ________________________________________________ FFmpeg issue tracker <[email protected]> <https://roundup.ffmpeg.org/issue2238> ________________________________________________
