Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#3314 closed defect (fixed)

mytharchive default profiles pass kbits/s to ffmpeg -ab option, instead of bits/s

Reported by: anonymous Owned by: paulh
Priority: minor Milestone: unknown
Component: mytharchive Version: head
Severity: medium Keywords: ffmpeg mytharchive
Cc: Ticket locked: no

Description

ffmpeg fails out for me when it's given an option like "-ab 192" for the output audio bitrate. The man page says -ab takes bits/s, not kbits/sec. It works for me if I pass "-ab 192k".

See attached patch.

Attachments (1)

mythpatch1.patch (4.0 KB) - added by tu@… 13 years ago.
patch to mytharchive profiles to fix ffmpeg -ab argument -- append 'k' to bitrate

Download all attachments as: .zip

Change History (6)

Changed 13 years ago by tu@…

Attachment: mythpatch1.patch added

patch to mytharchive profiles to fix ffmpeg -ab argument -- append 'k' to bitrate

comment:1 Changed 13 years ago by anonymous

Some other info -- I'm compiling mytharchive from SVN trunk, at revision 13244.

I'm using Debian. My ffmpeg version is apparently recent, but the info is a bit sloppy due to installing it from marillat's packages:

tulrich@sheep:~/src/mythtv/mythplugins$ ffmpeg -version ffmpeg: /usr/lib/libtheora.so.0: no version information available (required by /usr/lib/libavcodec.so.51) FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.

configuration: --prefix=/usr --libdir=${prefix}/lib --shlibdir=${prefix}/lib --incdir=${prefix}/include/ffmpeg --enable-shared --enable-libmp3lame --enable-gpl --enable-libfaad --mandir=${prefix}/share/man --enable-libvorbis --enable-pthreads --enable-libfaac --enable-xvid --enable-libdts --enable-amr_nb --enable-amr_wb --enable-pp --enable-libogg --enable-libgsm --enable-x264 --enable-liba52 --enable-libtheora --extra-cflags=-Wall -g -fPIC -DPIC --cc=ccache cc --enable-swscaler libavutil version: 49.4.0 libavcodec version: 51.40.2 libavformat version: 51.11.0 built on Mar 29 2007 11:08:52, gcc: 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)

ffmpeg SVN-rUNKNOWN libavutil 3212288 libavcodec 3352578 libavformat 3345152

tulrich@sheep:~/src/mythtv/mythplugins$ apt-cache show --installed ffmpeg Package: ffmpeg Priority: optional Section: graphics Installed-Size: 648 Maintainer: Christian Marillat <marillat@…> Architecture: i386 Source: ffmpegcvs Version: 3:20070329-0.0 Depends: libavcodeccvs51 (>= 3:20070329), libavformatcvs51 (>= 3:20070329), libavutilcvs49 (>= 3:20070329), libc6 (>= 2.3.6-6), libfreetype6 (>= 2.2), libimlib2, libsdl1.2debian (>= 1.2.10-1), libswscalecvs0 (>= 3:20070329) Filename: pool/main/f/ffmpegcvs/ffmpeg_20070329-0.0_i386.deb Size: 183510 MD5sum: 00bd02362243b3fb551c179ab82fa501 SHA1: b797e43ff86fc6e73b3932eec00c6513ed8e3d0b SHA256: 9e1d6650f6a21a95aba78624ff5ad0168880c6e9c549d5dd05a0a75e33448912 Description: audio/video encoder, streaming server & audio/video file converter

ffmpeg is a hyper fast real time audio/video encoder, a streaming server and a generic audio and video file converter. . It can grab from a standard Video4Linux video source and convert it into several file formats based on DCT/motion compensation encoding. Sound is compressed in MPEG audio layer 2 or using an AC3 compatible stream.

Bugs: mailto:marillat@…

comment:2 Changed 13 years ago by paulh

(In [13309]) ffmpeg have changed the units used by -ab parameter to specify the audio bitrate from kbits/sec to bits/sec. It seems as though older versions of ffmpeg already accept the new format so just use that.

Refs #3314.

comment:3 Changed 13 years ago by paulh

Resolution: fixed
Status: newclosed

(In [13310]) ffmpeg have changed the units used by -ab parameter to specify the audio bitrate from kbits/sec to bits/sec. It seems as though older versions of ffmpeg already accept the new format so just use that.

Fixes #3314.

comment:4 Changed 13 years ago by paulh

(In [13359]) Forgot to also change the -ab parameter passed to ffmpeg in mythburn.py to use the new units in [13309].

Refs #3314.

comment:5 Changed 13 years ago by paulh

(In [13360]) Forgot to also change the -ab parameter passed to ffmpeg in mythburn.py to use the new units in [13310].

Refs #3314.

Note: See TracTickets for help on using tickets.