x264: scrolling from left to right

Discuss about generic usage of MediaCoder.

Moderator: HuggiL

Post Reply
ruedigers
Amateur
Amateur
Posts: 19
Joined: Wed Sep 05, 2012 8:57 pm

x264: scrolling from left to right

Post by ruedigers » Tue Mar 05, 2013 4:07 am

Hi all,

this is not really a question pertaining MC, but the underlying tools.

I am trying to make an original mov into a mp4 with the same setps that MC would, but the resulting movie ist scrolling from left to right and has some other artefacts in the image.

I am using these steps:
1.ffmpeg -> raw
2. x264 >-h264
3. MP4Bo -> mp4

The raw-file from step 1 plays fine in VLC, but the 264 from step 2 shows the problem (see windows media player screen shot attached). It does not matter how many options I add or take off the x264 command, the file from step 2 will just not play. What am I doing wrong?

Full list of commands attached:

Code: Select all

root@media:/cifs/Z/ECL# mediainfo ECL00000000949_d.mov
General
Complete name                            : ECL00000000949_d.mov
Format                                   : QuickTime
Format/Info                              : Original Apple specifications
File size                                : 28.8 MiB
Duration                                 : 15s 40ms
Overall bit rate                         : 16.0 Mbps
Encoded date                             : UTC 2012-08-29 11:06:39
Tagged date                              : UTC 2012-08-29 11:07:43
Writing library                          : Apple QuickTime

Video
ID                                       : 2
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : Main@L3.2
Format settings, CABAC                   : No
Format settings, ReFrames                : 2 frames
Format settings, GOP                     : M=1, N=25
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 15s 40ms
Bit rate                                 : 14.4 Mbps
Width                                    : 720 pixels
Height                                   : 576 pixels
Display aspect ratio                     : 5:4
Frame rate mode                          : Constant
Frame rate                               : 25.000 fps
Standard                                 : PAL
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 1.386
Stream size                              : 25.8 MiB (90%)
Title                                    : Apple Video Mediensteuerung / Apple Alias-Datensteuerung
Language                                 : English
Encoded date                             : UTC 2012-08-29 11:07:30
Tagged date                              : UTC 2012-08-29 11:07:43
Color primaries                          : BT.601 NTSC
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.601

Audio
ID                                       : 1
Format                                   : PCM
Format settings, Endianness              : Big
Format settings, Sign                    : Signed
Codec ID                                 : twos
Duration                                 : 15s 40ms
Bit rate mode                            : Constant
Bit rate                                 : 1 536 Kbps
Channel(s)                               : 2 channels
Sampling rate                            : 48.0 KHz
Bit depth                                : 16 bits
Stream size                              : 2.75 MiB (10%)
Title                                    : Apple Ton Mediensteuerung / Apple Alias-Datensteuerung
Language                                 : English
Encoded date                             : UTC 2012-08-29 11:07:30
Tagged date                              : UTC 2012-08-29 11:07:42

Menu
ID                                       : 3
Duration                                 : 15s 40ms
Title                                    : Apple Zeitmarken-Mediensteuerung / Apple Alias-Datensteuerung
Language                                 : English
Encoded date                             : UTC 2012-08-29 11:07:43
Tagged date                              : UTC 2012-08-29 11:07:43


root@media:/cifs/Z/ECL# ffmpeg -i ECL00000000949_d.mov  -s 576x320 -c:v rawvideo -pix_fmt yuv420p -threads 2 -f yuv4mpegpipe -v quiet -an ./ECL00000000949_d.raw
root@media:/cifs/Z/ECL# mediainfo ECL00000000949_d.raw
General
Complete name                            : ECL00000000949_d.raw
Format                                   : YUV4MPEG2
File size                                : 99.1 MiB
Duration                                 : 15s 40ms
Overall bit rate                         : 55.3 Mbps

Video
Format                                   : YUV
Duration                                 : 15s 40ms
Bit rate                                 : 55.3 Mbps
Width                                    : 576 pixels
Height                                   : 320 pixels
Display aspect ratio                     : 16:9
Frame rate                               : 25.000 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Scan type                                : Progressive
Compression mode                         : Lossless
Bits/(Pixel*Frame)                       : 12.000
Stream size                              : 99.1 MiB (100%)


root@media:/cifs/Z/ECL# x264 --no-progress --profile main --preset slow --tune film --nal-hrd vbr --weightp 2 --b-pyramid normal --open-gop --keyint 50 --min-keyint 25 --aud --non-deterministic --bframes 0 --ref 1 --psy-rd 1:0 --constrained-intra --bitrate 512 --qcomp 0.6 --sar 80:81 --threads 6 --demuxer raw --input-res 576x320 --fps 25 --input-csp i420 -o "ECL00000000949_d.264" ./ECL00000000949_d.raw
raw [info]: 576x320p 80:81 @ 25/1 fps (cfr)
x264 [warning]: NAL HRD parameters require VBV parameters
x264 [info]: using SAR=80/81
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
x264 [info]: profile Main, level 2.1
x264 [info]: frame I:11    Avg QP:28.15  size:  9291
x264 [info]: frame P:365   Avg QP:32.77  size:  2512
x264 [info]: mb I  I16..4: 39.8%  0.0% 60.2%
x264 [info]: mb P  I16..4:  0.1%  0.0%  0.4%  P16..4: 44.9% 20.3%  7.9%  0.0%  0.0%    skip:26.4%
x264 [info]: final ratefactor: 28.86
x264 [info]: coded y,uvDC,uvAC intra: 63.6% 13.8% 2.5% inter: 23.7% 5.0% 1.8%
x264 [info]: i16 v,h,dc,p: 48% 21%  6% 24%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 10%  6%  9% 10% 14% 11% 13% 11% 16%
x264 [info]: i8c dc,h,v,p: 67% 32%  1%  0%
x264 [info]: Weighted P-Frames: Y:63.3% UV:17.3%
x264 [info]: kb/s:542.09

encoded 376 frames, 6.05 fps, 542.09 kb/s
root@media:/cifs/Z/ECL# mediainfo ECL00000000949_d.264
General
Complete name                            : ECL00000000949_d.264
Format                                   : AVC
Format/Info                              : Advanced Video Codec
File size                                : 995 KiB

Video
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : Main@L2.1
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 1 frame
Bit rate                                 : 512 Kbps
Width                                    : 576 pixels
Height                                   : 320 pixels
Display aspect ratio                     : 16:9
Frame rate                               : 25.000 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.111
Writing library                          : x264 core 130 r2 b3065e6
Encoding settings                        : cabac=1 / ref=1 / deblock=1:-1:-1 / analyse=0x1:0x111 / me=umh / subme=8 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=0 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=6 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=1 / bframes=0 / weightp=2 / keyint=50 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=50 / rc=abr / mbtree=1 / bitrate=512 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00


root@media:/cifs/Z/ECL# MP4Box -tmp "/tmp" -packed -keepsys -mpeg4 -nodrop -hint -inter 500 -add './ECL00000000949_d.264#video:fps=25' 'ECL00000000949_d.mp4' -hint
AVC-H264 import - frame size 576 x 320 at 25.000 FPS
Adjusting AVC SizeLength to 16 bits
Import results: 376 samples - Slices: 11 I 365 P 0 B - 1 SEI - 9 IDR
Hinting file with Path-MTU 1450 Bytes
Hinting track ID 1 - Type "avc1:avc1" (mpeg4-generic) - BW 541 kbps
Saving to ECL00000000949_d.mp4: 0.500 secs Interleaving
Thanks in advance for any help!

Post Reply