[mythtv-users] Nuvexport, ffmpeg and x264 .mp4 fc10 issue - libx264 non monotone timestamps

Giacomo Shimmings giacomo_shimmings at hotmail.com
Thu Jun 11 21:37:19 UTC 2009


Hi there, 


I'm using a Fedora Core 10 installation that has 'grown up' from a FC8 installation.


Using Atrpms and the packages for Mythtv, I'm having some issues with ffmpeg and nuvexport.  Now I know there's some discrepancy between the Atrpms versions of ffmpeg and the packaged nuvexport, but I was hoping someone had a similar issue and managed to solve it.


Here is what I have installed:


Installed:
[root at 192 src]# $KVER
-bash: 2.6.27.24-170.2.68.fc10.i686


ffmpeg-0.5-30.fc10.i386
mythtv-0.21-208.fc10.i386
x264-0.65-9_20090117.2245.fc10.i386
nuvexport-0.5-4_20090410.svn.fc10.noarch


running nuvexport in debug give me this:


[root at 192 src]# mkdir -m 0755 /tmp/fifodir_27339/
[root at 192 src]# /bin/nice -n19 /usr/bin/mythtranscode --showprogress -p '0' -c '1004' -s '2008-05-02T22:30:00' -f "/tmp/fifodir_27339/" --honorcutlist 2>&1


2009-06-11 21:21:42.391 Using runtime prefix = /usr
2009-06-11 21:21:42.407 Empty LocalHostName.
2009-06-11 21:21:42.418 New DB connection, total: 1
2009-06-11 21:21:42.424 Closing DB connection named 'DBManager0'
2009-06-11 21:21:42.424 Enabled verbose msgs: important
2009-06-11 21:21:42.427 New DB connection, total: 2
2009-06-11 21:21:42.444 Using protocol version 40
2009-06-11 21:21:50.443 Processed: 47 of 52920 frames(1 seconds)
2009-06-11 21:25:22.461 mythtranscode: 96% Completed @ 233.289 fps.
2009-06-11 21:25:25.560 Processed: 51954 of 52920 frames(2078 seconds)


...here is the other terminal result:


[root at 192 ~]# /bin/nice -n19 ffmpeg -f rawvideo -s 704x576 -r 25 -i /tmp/fifodir_27339/vidout -f yuv4mpegpipe - 2> /dev/null | /bin/nice -n19 yuvdenoise 2> /dev/null | /bin/nice -n19 ffmpeg -threads 2 -y -f s16le -ar 48000 -ac 2 -i /tmp/fifodir_27339/audout -f yuv4mpegpipe -s 704x576 -aspect 1.33333333333333 -r 25 -i - -aspect 1.77777777777778 -r 25 -deinterlace -croptop    2 -cropright 4 -cropbottom 2 -cropleft  4 -s 480x272  -vcodec libx264 -b '384k' -title 'Peep Show - s05e01 Burglary' -level 30 -flags loop -g 250 -keyint_min 25 -sc_threshold 40 -rc_eq 'blurCplx^(1-qComp)' -bt '384k' -maxrate '1372k' -bufsize '2000k' -i_qfactor '0.71428572' -b_qfactor '0.76923078' -bf '0' -me_method umh -refs 2 -subq 7 -partitions parti4x4+parti8x8+partp4x4+partp8x8+partb8x8 -flags2 +bpyramid+wpred+mixed_refs+8x8dct+brdo -me_range 21 -trellis 2 -chroma 1 -slice 2 -cmp 1 -deblockalpha 0 -deblockbeta 0 -acodec libfaac -ar 48000 -async 1 -ab '128k' '/mnt/video/ipod/Peep Show - s05e01 Burglary.mp4' 2>&1


FFmpeg version 0.5-30.fc10, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  configuration: --prefix=/usr --libdir=/usr/lib --shlibdir=/usr/lib --mandir=/usr/share/man --enable-shared --enable-gpl --enable-postproc --enable-swscale --enable-avfilter --enable-avfilter-lavf --enable-pthreads --enable-x11grab --enable-vdpau --disable-avisynth --disable-libamr-nb --disable-libamr-wb --enable-libdc1394 --enable-libdirac --enable-libfaac --enable-libfaad --enable-libfaadbin --enable-libgsm --enable-libmp3lame --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --extra-cflags=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables --disable-stripping --extra-cflags=-I/usr/include/nvidia-graphics --extra-ldflags=-L/usr/lib/nvidia-graphics
  libavutil     49.15. 0 / 49.15. 0
  libavcodec    52.20. 0 / 52.20. 0
  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 15 2009 14:10:20, gcc: 4.3.2 20081105 (Red Hat 4.3.2-7)


Input #0, s16le, from '/tmp/fifodir_27339/audout':
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #0.0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
Input #1, yuv4mpegpipe, from 'pipe:':
  Duration: N/A, bitrate: N/A
    Stream #1.0: Video: rawvideo, yuv420p, 704x576, 25 tbr, 25 tbn, 25 tbc
ffmpeg: unrecognized option '-title'
[root at 192 ~]# alized value in numeric gt (>) at /usr/share/nuvexport/export/ffmpeg.pm line 368, <STDIN> line 16.
-bash: syntax error near unexpected token `('


Reading around on the net, I see that ffmpeg changed the title variable from the command line.  I noticed Chris had a newer version of nuvexport on his website (I've read from him that he builds from the SVN of nuvexport), so I tried it:


[root at 192 src]# rpm -e nuvexport
[root at 192 src]# rpm -Uvh http://forevermore.net/files/nuvexport/nuvexport-0.5-0.20090413.svn.noarch.rpm


... and ran nuvexport again:


[root at 192 src]# mkdir -m 0755 /tmp/fifodir_30162/
[root at 192 src]# /bin/nice -n19 /usr/bin/mythtranscode --showprogress -p '0' -c '1004' -s '2008-05-02T22:30:00' -f "/tmp/fifodir_30162/" --honorcutlist 2>&1


2009-06-11 21:51:10.387 Using runtime prefix = /usr
2009-06-11 21:51:10.421 Empty LocalHostName.
2009-06-11 21:51:10.472 New DB connection, total: 1
2009-06-11 21:51:10.478 Closing DB connection named 'DBManager0'
2009-06-11 21:51:10.478 Enabled verbose msgs: important
2009-06-11 21:51:10.481 New DB connection, total: 2
2009-06-11 21:51:10.562 Using protocol version 40
2009-06-11 21:51:20.390 Processed: 47 of 52920 frames(1 seconds)


...here is the other terminal result:


[root at 192 ~]# /bin/nice -n19 ffmpeg -f rawvideo -s 704x576 -r 25 -i /tmp/fifodir_30162/vidout -f yuv4mpegpipe - 2> /dev/null | /bin/nice -n19 yuvdenoise 2> /dev/null | /bin/nice -n19 ffmpeg -threads 2 -y -f s16le -ar 48000 -ac 2 -i /tmp/fifodir_30162/audout -f yuv4mpegpipe -s 704x576 -aspect 1.33333333333333 -r 25 -i - -aspect 1.77777777777778 -r 25 -deinterlace -croptop    2 -cropright 4 -cropbottom 2 -cropleft  4 -s 480x272  -vcodec libx264 -b '384k' -level 30 -flags loop+slice -g 250 -keyint_min 25 -sc_threshold 40 -rc_eq 'blurCplx^(1-qComp)' -bt '384k' -maxrate '1372k' -bufsize '2000k' -i_qfactor '0.71428572' -b_qfactor '0.76923078' -bf '0' -me_method umh -refs 2 -subq 7 -partitions parti4x4+parti8x8+partp4x4+partp8x8+partb8x8 -flags2 +bpyramid+wpred+mixed_refs+8x8dct -me_range 21 -trellis 2 -cmp 1 -deblockalpha 0 -deblockbeta 0 -acodec libfaac -ar 48000 -async 1 -ab '128k' '/mnt/video/ipod/Peep Show - s05e01 Burglary.mp4' 2>&1


FFmpeg version 0.5-30.fc10, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  configuration: --prefix=/usr --libdir=/usr/lib --shlibdir=/usr/lib --mandir=/usr/share/man --enable-shared --enable-gpl --enable-postproc --enable-swscale --enable-avfilter --enable-avfilter-lavf --enable-pthreads --enable-x11grab --enable-vdpau --disable-avisynth --disable-libamr-nb --disable-libamr-wb --enable-libdc1394 --enable-libdirac --enable-libfaac --enable-libfaad --enable-libfaadbin --enable-libgsm --enable-libmp3lame --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --extra-cflags=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables --disable-stripping --extra-cflags=-I/usr/include/nvidia-graphics --extra-ldflags=-L/usr/lib/nvidia-graphics
  libavutil     49.15. 0 / 49.15. 0
  libavcodec    52.20. 0 / 52.20. 0
  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 15 2009 14:10:20, gcc: 4.3.2 20081105 (Red Hat 4.3.2-7)
Input #0, s16le, from '/tmp/fifodir_30162/audout':
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #0.0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
Input #1, yuv4mpegpipe, from 'pipe:':
  Duration: N/A, bitrate: N/A
    Stream #1.0: Video: rawvideo, yuv420p, 704x576, 25 tbr, 25 tbn, 25 tbc
Output #0, mp4, to '/mnt/video/ipod/Peep Show - s05e01 Burglary.mp4':
    Stream #0.0: Video: libx264, yuv420p, 480x272 [PAR 136:135 DAR 16:9], q=2-31, 384 kb/s, 90k tbn, 25 tbc
    Stream #0.1: Audio: libfaac, 48000 Hz, stereo, s16, 128 kb/s
Stream mapping:
  Stream #1.0 -> #0.0
  Stream #0.0 -> #0.1
[libx264 @ 0x952eaa0]using SAR=136/135
[libx264 @ 0x952eaa0]using cpu capabilities: MMX2 SSE2 Cache64
[libx264 @ 0x952eaa0]profile Baseline, level 3.0
[libx264 @ 0x952eaa0]error, non monotone timestamps -2147483648>= -2147483648
av_interleaved_write_frame(): Error while opening file


---


And this is where I am now.  I saw that the 'non monotone timestamp' issue has been raised on the Atrpms list before by bigwavedave but I cannot see a resolution.


http://www.gossamer-threads.com/lists/atrpms/users/12524?do=post_view_threaded#12524


Some of the ffmpeg pages I've found say that ibavformat doesn't support bpyramid.  


http://mailman.videolan.org/pipermail/x264-devel/2006-August/002109.html


Has anyone else had this issue with x264 and nuvexport?
_________________________________________________________________
Get the best of MSN on your mobile
http://clk.atdmt.com/UKM/go/147991039/direct/01/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mythtv.org/pipermail/mythtv-users/attachments/20090611/f5b6c675/attachment.htm>


More information about the mythtv-users mailing list