Opened 13 years ago

Closed 13 years ago

#305 closed defect (fixed)

-passlogfile option is broken (used to work)

Reported by: Dominique Dumont Owned by: Michael Niedermayer
Priority: important Component: undetermined
Version: git-master Keywords: passlogfile
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

Hello

I'm using ffmpeg 0.8:

ffmpeg version 0.8, Copyright (c) 2000-2011 the FFmpeg developers

built on Jun 23 2011 08:05:02 with gcc 4.6.1 20110616 (prerelease)

I use -passlogfile option to be able to run several 2-pass ffmpeg in the same directory. I need -passlogfile to prevent log file cloberring. This option did work at some point.

But now, log are always stored in this file:
$ ll passlogfile-0.log
-rw-r--r-- 1 foo bar 3,5M 25 juin 18:29 passlogfile-0.log

Could you fix this option ?

All the best

Change History (4)

comment:1 by Carl Eugen Hoyos, 13 years ago

Component: FFmpegundetermined
Status: newopen

Please provide command line and complete, uncut output.
If you believe this is a regression, please try to find the version introducing it.

comment:2 by Dominique Dumont, 13 years ago

Here's the command line with output:


$ cat "vdr/Les_ptites_poules/%Dessin_animØ#2E/2011-06-23.11.50.5-0.rec/00001.ts" | nice ffmpeg -i - -deinterlace -y -vcodec mpeg4 -mbd rd -flags +mv4+aic -trellis 2 -cmp 2 -subcmp 2 -g 300 -b 800k -acodec libmp3lame -ab 128k -sn -passlogfile t_vdr_Les_ptites_poules_Dessin_animØ2E_2011-06-23_11_50_5-0_rec -pass 1 tvdr_Les_ptites_poules_Dessin_animØ2E_2011-06-23_11_50_5-0_rec.avi
ffmpeg version 0.8, Copyright (c) 2000-2011 the FFmpeg developers

built on Jun 23 2011 08:05:02 with gcc 4.6.1 20110616 (prerelease)
configuration: --prefix=/usr --extra-cflags='-Wall -g ' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-nonfree --enable-libdirac --disable-decoder=libdirac --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-libvpx --enable-librtmp --enable-avfilter --enable-frei0r --enable-libopencv --enable-libfreetype --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libdc1394 --disable-altivec --disable-armv5te --disable-armv6 --disable-vis
libavutil 51. 9. 1 / 51. 9. 1
libavcodec 53. 7. 0 / 53. 7. 0
libavformat 53. 4. 0 / 53. 4. 0
libavdevice 53. 1. 1 / 53. 1. 1
libavfilter 2. 23. 0 / 2. 23. 0
libswscale 2. 0. 0 / 2. 0. 0
libpostproc 51. 2. 0 / 51. 2. 0

[mpegts @ 0x1fa4c20] max_analyze_duration 5000000 reached at 5000000
[mpegts @ 0x1fa4c20] Estimating duration from bitrate, this may be inaccurate
Input #0, mpegts, from 'pipe:':

Duration: N/A, start: 29953.419456, bitrate: 15192 kb/s
Program 132

Stream #0.0[0x140]: Video: mpeg2video (Main), yuv420p, 720x576 [PAR 64:45 DAR 16:9], 15000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0.1[0x14a](fra): Audio: mp2, 48000 Hz, stereo, s16, 192 kb/s
Stream #0.2[0x154](fra): Subtitle: dvbsub (hearing impaired)

[buffer @ 0x1faa200] w:720 h:576 pixfmt:yuv420p tb:1/1000000 sar:64/45 sws_param:
Output #0, avi, to 'tvdr_Les_ptites_poules_Dessin_animØ2E_2011-06-23_11_50_5-0_rec.avi':

Metadata:

ISFT : Lavf53.4.0
Stream #0.0: Video: mpeg4 (hq), yuv420p, 720x576 [PAR 64:45 DAR 16:9], q=2-31, pass 1, 800 kb/s, 25 tbn, 25 tbc
Stream #0.1(fra): Audio: libmp3lame, 48000 Hz, stereo, s16, 128 kb/s

Stream mapping:

Stream #0.0 -> #0.0
Stream #0.1 -> #0.1


-passlogfile option works correctly with:
FFmpeg version 0.6.2, Copyright (c) 2000-2010 the FFmpeg developers

built on May 21 2011 16:13:49 with gcc 4.6.1 20110507 (prerelease)

Here's the log file written by ffmpeg 0.6.2:
-rw-r--r-- 1 foo bar 484K 25 juin 19:35 t_vdr_Les_ptites_poules_Dessin_animØ2E_2011-06-23_11_50_5-0_rec-0.log

(Note: I've replaced my login/group by foo and bar)

Hope this helps

comment:3 by Carl Eugen Hoyos, 13 years ago

Priority: normalimportant
Reproduced by developer: set
Version: 0.8git-master

comment:4 by Michael Niedermayer, 13 years ago

Resolution: fixed
Status: openclosed
Note: See TracTickets for help on using tickets.