[FFmpeg-user] Transcoding for the Roku with recent ffmpeg

Yan Seiner yan at seiner.com
Sat Jan 5 19:52:17 CET 2013


Yan Seiner wrote:
> Carl Eugen Hoyos wrote:
>> Yan Seiner <yan <at> seiner.com> writes:
>>
>>  
>>> Well, my latest effort is pretty close:
>>>
>>> ffmpeg 1.0
>>>
>>> < Bits/(Pixel*Frame)       : 0.152
>>> < Stream size              : 1.57 GiB (89%)
>>> < Writing library          : x264 core 129 r2230 1cffe9f
>>> crf=19.0
>>>     
>>
>>  
>>> ffmpeg 0.8
>>>
>>>    
>>>> Bits/(Pixel*Frame)       : 0.163
>>>> Stream size              : 937 MiB (88%)
>>>> Writing library          : x264 core 114
>>>>       
>>> bitrate=1200
>>>     
>>
>> These are still *completely* different files.
>>
>> Did you already test 0.8 with a newer x264 or current FFmpeg with 
>> older x264?
>>   
> ffmpeg 1.0 with older x264:
>
> Writing library                          : x264 core 118
> Encoding settings                        : cabac=0 / ref=2 / 
> deblock=1:0:0 / analyse=0x1:0x111 / me=hex / subme=6 / psy=1 / 
> psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=0 
> / 8x8dct=0 / cqm=0 / deadzone=21,11 / fast_pskip=1 / 
> chroma_qp_offset=-2 / threads=3 / sliced_threads=0 / nr=0 / decimate=1 
> / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=0 / 
> weightp=0 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 
> / rc_lookahead=40 / rc=crf / mbtree=1 / crf=22.0 / qcomp=0.60 / 
> qpmin=10 / qpmax=51 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
>
> Same result; plays about 30 seconds then rebuffers.
>
> The ones that play are all variable bit rate; the ones that refuse to 
> play are constant bit rate.  How do I set vbr?  (I know this is 
> probably a dumb question but I've never had to set it explicitly.)
>
> --Yan
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> !DSPAM:50e87113327621804284693!
>
HAH!  Some small measure of success.....  On playback with mplayer, I 
got an error at the exact same spot that the Roku glitches:

MPlayer SVN-r30390-4.3.3 (C) 2000-2009 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote 
control.

Playing avengers.mp4.
libavformat file format detected.
[lavf] Video stream found, -vid 0
[lavf] Audio stream found, -aid 1
VIDEO:  [H264]  720x480  24bpp  59.940 fps  189.1 kbps (23.1 kbyte/s)
Clip info:
 major_brand: isom
 minor_version: 512
 compatible_brands: isomiso2avc1mp41
 encoder: Lavf53.5.0
Xlib:  extension "XFree86-VidModeExtension" missing on display ":2.0".
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
AUDIO: 48000 Hz, 2 ch, s16le, 192.6 kbit/12.54% (ratio: 24075->192000)
Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
AO: [oss] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
Movie-Aspect is 2.11:1 - prescaling to correct movie aspect.
VO: [xv] 720x480 => 1010x480 Planar YV12
[h264 @ 0xd73d60]left block unavailable for requested intra4x4 mode -1 
at 0 3
[h264 @ 0xd73d60]error while decoding MB 0 3
[h264 @ 0xd73d60]concealing 1264 DC, 1264 AC, 1264 MV errors
[h264 @ 0xd73d60]out of range intra chroma pred mode at 13 16% 27 0
[h264 @ 0xd73d60]error while decoding MB 13 16
[h264 @ 0xd73d60]concealing 666 DC, 666 AC, 666 MV errors

Is there any way to clean this up?


More information about the ffmpeg-user mailing list