View Full Version : Samsung BDP Profile: Error in Transcoding RMVB files

02-12-2011, 05:59 PM
From the log file, I got the following error message when streaming a RMVB file:

ERROR> We cannot transcode this file at all!

Examining the logfile, I noted that the ffmpeg parameters were used:

- ffmpeg.exe -i "input_filename" -y -vcodec mpeg2video -b 15000000 -g 15 -vf "scale=592:336" -acodec ac3 -ac 2 -ab 448000 -ar 48000 -sn -f dvd -threads 4 -pix_fmt yuv420p -copyinkf -sc_threshold 1000000000 -coder ac -qmin 1 -cmp 2 -subcmp 2 -flags +loop -mbd bits -vbsf h264_mp4toannexb -fflags +genpts+ignidx+igndts -deinterlace "output_filename"

From dos command line, the above ffmpeg command gave the following error message:

Input #0, rm, from 'aaaaa.rmvb':
title : ┬┬╬╔ð╗ˡ─
author : ┬┬╬╔ðBT
copyright :
comment :
Duration: 01:32:34.30, start: 0.000000, bitrate: 408 kb/s
Stream #0.0: Audio: cook, 44100 Hz, stereo, s16, 44 kb/s
Stream #0.1: Video: rv40, yuv420p, 592x336, 354 kb/s, 12.05 fps, 12 tbr, 1k
tbn, 12 tbc
Stream #0.2: Data: [0][0][0][0] / 0x0000
[buffer @ 01859100] w:592 h:336 pixfmt:yuv420p
[scale @ 017b70f0] w:592 h:336 fmt:yuv420p -> w:592 h:336 fmt:yuv420p flags:0x4
[mpeg2video @ 01889bc0] MPEG1/2 does not support 12/1 fps
Output #0, dvd, to 'out.mpg':
Stream #0.0: Video: mpeg2video (hq), yuv420p, 592x336, q=1-31, 15000 kb/s, 9
0k tbn, 12 tbc
Stream #0.1: Audio: ac3, 48000 Hz, stereo, flt, 448 kb/s
Stream mapping:
Stream #0.1 -> #0.0
Stream #0.0 -> #0.1
Error while opening encoder for output stream #0.0 - maybe incorrect parameters
such as bit_rate, rate, width or height

At this stage, it seems that the problem was ffmpeg cannot transcode the file.

However, from dos command line, ffmpeg successfully transcoded the file with the following parameters, :

- ffmpeg.exe -i "input_filename" -target pal-dvd "output_filename"

The transcoded file could be stream to my Samy. So it looks like the problem is due to inappropriate parameters assigned to ffmpeg by Mezzmo.

What's wrong with the default ffmpeg parameters?

Is there any way for users to change the ffmpeg parameters to their like?


02-14-2011, 09:13 AM
Can you please try the following command from the DOS prompt:

ffmpeg.exe -i "input_filename" -y -vcodec mpeg2video -b 15000000 -g 15 -r 25 -vf "scale=592:336" -acodec ac3_fixed -ac 2 -ab 448000 -ar 48000 -sn -f dvd -threads 4 -pix_fmt yuv420p -copyinkf -sc_threshold 1000000000 -coder ac -qmin 1 -cmp 2 -subcmp 2 -flags +loop -mbd bits -vbsf h264_mp4toannexb -fflags +genpts+ignidx+igndts -deinterlace "output_filename"

I think it's because of the input file's frame rate of 12.05 fps, which is not supported by MPEG2. Can you try the "Samsung BDP 3D" device profile and see if that works better? It should transcode that file fine.

You cannot override all parameters we pass to FFmpeg, but you can add a <framerate>25</framerate> to the video section in the device profile to force all transcoding to 25 fps.

02-26-2011, 09:54 PM
Thanks Dennis.

Forcing transcoding to 25fps does the trick, up to a point.

While play back appears to be fine initially, play back of files being transcoded often stop before the end of videos.

Any suggestions to overcome this problem?


02-28-2011, 09:11 AM
Sounds like transcoding is too slow - can you please check what speed FFmpeg is transcoding at (see the "fps" while transcoding) - or just send us a log of playing such a file and we'll check it out.