maxVBitrate not adhered to?
I built ffmpeg myself for Ubuntu:
- Code:
ffmpeg version git-2012-09-16-a593f5b Copyright (c) 2000-2012 the FFmpeg developers
built on Sep 16 2012 20:07:02 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-postproc --enable-version3 --enable-libvpx --enable-librtmp --enable-libxvid --cpu=core2
libavutil 51. 73.100 / 51. 73.100
libavcodec 54. 56.100 / 54. 56.100
libavformat 54. 27.101 / 54. 27.101
libavdevice 54. 2.100 / 54. 2.100
libavfilter 3. 16.104 / 3. 16.104
libswscale 2. 1.101 / 2. 1.101
libswresample 0. 15.100 / 0. 15.100
libpostproc 52. 0.100 / 52. 0.100
First off, my Samsung B series tv does NOT like any mp4 files I have come across. I also wanted to restrict the bandwidth to something the powerline devcies would take.
The original file is showing high peaks:
Therefore I changed the profile to this:
- Code:
<Video targetContainer="mpegts" targetACodec="ac3" targetVCodec="mpeg2video" maxVBitrate="15360">
<Matches container="asf" vCodec="wmv2" />
<Matches container="matroska" vCodec="mpeg2video" />
<Matches container="matroska" vCodec="vp8" />
<Matches container="avi" vCodec="mjpeg" />
<Matches container="avi" vCodec="dvvideo" />
<Matches container="mp4" vCodec="mjpeg" />
<Matches container="flv" />
<Matches container="ogg" />
<Matches container="mp4"/>
</Video>
The debug log shows:
- Code:
2012-09-30 08:35:07,882 DEBUG [MediaItemDAOImpl] Getting file of media item 11890
2012-09-30 08:35:07,883 DEBUG [FFMPEGWrapper] Invoking FFmpeg to transcode video file: /shared_data2/video/cartoons/Test.mp4
2012-09-30 08:35:07,883 DEBUG [ProcessExecutor] Starting /shared_data/serviio/serviio-1.0.1/bin/ffmpeg -i /shared_data2/video/cartoons/Test.mp4 -y -threads 1 -copyts -c:v mpeg2video -b:v 15360k -maxrate:v 15360k -bufsize:v 15360k -r 24000/1001 -g 15 -c:a ac3_fixed -b:a 192k -ac 2 -map 0:0 -map 0:1 -sn -f mpegts /tmp/Serviio/transcoding-temp-11890-2-ORIGINAL.stf
2012-09-30 08:35:08,384 DEBUG [FileBasedTranscodingDeliveryStrategy] Sending transcoding stream
2012-09-30 08:35:08,384 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file Test.mp4: MPEG_TS_SD_EU_ISO
2012-09-30 08:35:08,384 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file Test.mp4: MPEG_TS_SD_NA_ISO
2012-09-30 08:35:08,384 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file Test.mp4: MPEG_TS_SD_KO_ISO
Which looks like it is taking the setting.
BUT when I use Bitrate Viewer I See:
Which has higher peaks and a higher average!
What's going on???
Pure Flow One | Samsung LE40B650 | Samsung UE40F6320 | Sony PS3 | Ubuntu 14.04