Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Jun 2013 19:15:48 -0600 (MDT)
From:      hideo <hideo@lastamericanempire.com>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/179942: [patch] multimedia/dvdstyler: uses wrong ffmpeg when multiple versions are installed	
Message-ID:  <20130625011548.28E0C300D3@darwin.lastamericanempire.com>
Resent-Message-ID: <201306250130.r5P1U2xW081740@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         179942
>Category:       ports
>Synopsis:       [patch] multimedia/dvdstyler: uses wrong ffmpeg when multiple versions are installed
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jun 25 01:30:01 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     hideo
>Release:        FreeBSD 9.1-STABLE amd64
>Organization:
>Environment:
System: FreeBSD darwin.lastamericanempire.com 9.1-STABLE FreeBSD 9.1-STABLE #0 r252127: Sun Jun 23 17:39:24 MDT 2013 hideo@darwin.lastamericanempire.com:/usr/obj/usr/local/raid0/src/sys/darwin amd64


	
>Description:
dvdstyler will use the wrong ffmpeg binary when transcoding if multimedia/ffmpeg is also installed.
The port is configured to use multimedia/ffmpeg1 but "ffmpeg" is hardcoded in
src/Config.h.   The new command line sytax generates an error like below.  

* * * The diff adds a new file (files/patch-Configure.h) that changes the binary to "ffmpeg1".  * * *


DVDStyler v2.4.3
FreeBSD 9.1-STABLE amd64
FFmpeg: libavformat 54.29.104, libavcodec 54.59.100, libavutil 51.73.101
Prepare
Cleaning temporary directory
Search for transcoded files in cache
Generating menus
Generating menu 1 of 1
Create menu MPEG
Multiplexing subpictures into mpeg
Executing command: spumux -P -s 0 "/tmp/dvd-tmp/menu1-0.mpg_spumux.xml"
DVDAuthor::spumux, version 0.7.1.
Build options: gnugetopt iconv freetype fribidi fontconfig
Send bug reports to <dvdauthor-users@lists.sourceforge.net>
INFO: no default video format, must explicitly specify NTSC or PAL
INFO: PNG had 1 colors
INFO: PNG had 3 colors
INFO: PNG had 3 colors
INFO: Pickbuttongroups, success with 1 groups, useimg=1
INFO: 0 bytes of data written
INFO: 4096 bytes of data written
INFO: 8192 bytes of data written
INFO: 12288 bytes of data written
INFO: 16384 bytes of data written
INFO: Found EOF in .sub file.
INFO: Max_sub_size=44
INFO: 22528 bytes of data written
INFO: 1 subtitles added, 0 subtitles skipped, stream: 32, offset: 1.00
Executing command: spumux -P -s 1 "/tmp/dvd-tmp/menu1-0.mpg_spumux.xml"
DVDAuthor::spumux, version 0.7.1.
Build options: gnugetopt iconv freetype fribidi fontconfig
Send bug reports to <dvdauthor-users@lists.sourceforge.net>
INFO: no default video format, must explicitly specify NTSC or PAL
INFO: PNG had 1 colors
INFO: PNG had 4 colors
INFO: PNG had 4 colors
INFO: Pickbuttongroups, success with 1 groups, useimg=1
INFO: 0 bytes of data written
INFO: 6144 bytes of data written
INFO: 10240 bytes of data written
INFO: 16384 bytes of data written
INFO: Found EOF in .sub file.
INFO: Max_sub_size=40
INFO: 22528 bytes of data written
INFO: found existing substream ID 0x20 (DVD-Video 0)
INFO: 24576 bytes of data written
INFO: 1 subtitles added, 0 subtitles skipped, stream: 33, offset: 1.00
Transcode/remultiplex
Add file to cache: /tmp/dvd-ache/entry001.vob
Transcode video file: test.avi
Need encode: true, use mplex: false
Executing command: ffmpeg -i "test.avi" -f dvd -c:v:0 mpeg2video -s 720x480 -r 24000/1001 -g 18 -b:v:0 3941000 -maxrate:v:0 3941000 -minrate:v:0 3941000 -bufsize:v:0 1835008 -packetsize 2048 -muxrate 10080000 -vf scale=720:304,pad=720:480:0:88 -b:a 192000 -ar 48000 -c:a:0 ac3 -map 0:v -map 0:a "/tmp/dvd-cache/entry001.vob"
ffmpeg version 0.7.15, Copyright (c) 2000-2013 the FFmpeg developers
  built on Jun 18 2013 08:00:54 with gcc 4.2.1 20070831 patched [FreeBSD]
  configuration: --enable-x11grab --prefix=/usr/local --mandir=/usr/local/man --enable-shared --enable-gpl --enable-postproc --enable-avfilter --enable-pthreads --enable-memalign-hack --enable-runtime-cpudetect --cc=/usr/local/libexec/ccache/world/cc --extra-cflags='-I/usr/local/include/vorbis -I/usr/local/include' --extra-ldflags='-L/usr/local/lib ' --extra-libs=-pthread --disable-debug --enable-libaacplus --disable-indev=alsa --disable-outdev=alsa --disable-libopencore-amrnb --disable-libopencore-amrwb --disable-libcelt --disable-libdirac --enable-libfaac --disable-ffserver --enable-libfreetype --disable-frei0r --enable-libgsm --enable-libmp3lame --disable-libopencv --enable-libopenjpeg --disable-librtmp --enable-libschroedinger --disable-ffplay --disable-libspeex --enable-libtheora --disable-vaapi --enable-vdpau --disable-libvo-aacenc --disable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-nonfree
  libavutil    50. 43. 0 / 50. 43. 0
  libavcodec   52.123. 0 / 52.123. 0
  libavformat  52.111. 0 / 52.111. 0
  libavdevice  52.  5. 0 / 52.  5. 0
  libavfilter   1. 80. 0 /  1. 80. 0
  libswscale    0. 14. 1 /  0. 14. 1
  libpostproc  51.  2. 0 / 51.  2. 0
Seems stream 0 codec frame rate differs from container frame rate: 24000.00 (24000/1) -> 23.98 (24000/1001)
Input #0, avi, from 'test.avi':
  Metadata:
    encoder         : Lavf52.111.0
  Duration: 02:23:03.24, start: 0.000000, bitrate: 1086 kb/s
Duration: 02:23:03.24, start: 0.000000, bitrate: 1086 kb/s
    Stream #0.0: Video: mpeg4, yuv420p, 640x272 [PAR 1:1 DAR 40:17], 23.98 fps, 23.98 tbr, 23.98 tbn, 24k tbc
    Stream #0.1: Audio: mp3, 48000 Hz, stereo, s16, 128 kb/s
Unrecognized option 'c:v:0'
Error transcoding of test.avi

>How-To-Repeat:
Make sure multimedia/ffmpeg is installed in addition to multimedia/ffmpeg1 (pulled in by port).
Create an ISO or burn a DVD where the source files need to be transcoded with ffmpeg, e.g. from an .avi file.
>Fix:

	

--- dvdstyler-Config.h.diff begins here ---
diff -ruN multimedia/dvdstyler.orig/files/patch-Config.h multimedia/dvdstyler/files/patch-Config.h
--- multimedia/dvdstyler.orig/files/patch-Config.h	1969-12-31 17:00:00.000000000 -0700
+++ multimedia/dvdstyler/files/patch-Config.h	2013-06-24 18:51:18.000000000 -0600
@@ -0,0 +1,11 @@
+--- src/Config.h.orig	2013-06-24 18:28:31.000000000 -0600
++++ src/Config.h	2013-06-24 18:28:37.000000000 -0600
+@@ -62,7 +62,7 @@
+ const bool DEF_USE_MPLEX = false;
+ const bool DEF_USE_MPLEX_FOR_MENUS = true;
+ #ifdef USE_FFMPEG
+-const wxString DEF_AVCONV_CMD    = _T("ffmpeg");
++const wxString DEF_AVCONV_CMD    = _T("ffmpeg1");
+ #else
+ const wxString DEF_AVCONV_CMD    = _T("avconv");
+ #endif
--- dvdstyler-Config.h.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130625011548.28E0C300D3>