Kirjoittaja Aihe: [Ratkaistu]12.04 LTS ja mencoder h264-ongelma.  (Luettu 2440 kertaa)

kamara

  • Käyttäjä
  • Viestejä: 2944
    • Profiili
[Ratkaistu]12.04 LTS ja mencoder h264-ongelma.
« : 27.04.12 - klo:15.13 »
En ole onnistunut tekemään mencoderilla mpg:stä h264-videofilua.

Tämä tekee vain mustaa videota...
Koodia: [Valitse]
$ mencoder $file -nosound -vf-add crop=1024:572 -vf-add scale=1024:572 -ovc x264 -x264encopts crf=23:bframes=5:trellis=1:8x8dct:threads=auto:frameref=3:mixed_refs:weight_b:b_pyramid=normal:psy-rd=1.0:subq=7 -of rawvideo -o "${file%.mpg}.264"  -force-avi-aspect 1.79020979
.
.
.
[swscaler @ 0x7f5a77a13120]Slices start in the middle!
[swscaler @ 0x7f5a77a13120]Slices start in the middle!
[swscaler @ 0x7f5a77a13120]Slices start in the middle!
[swscaler @ 0x7f5a77a13120]Slices start in the middle!
[swscaler @ 0x7f5a77a13120]Slices start in the middle!
[swscaler @ 0x7f5a77a13120]Slices start in the middle!
[swscaler @ 0x7f5a77a13120]Slices start in the middle!
[swscaler @ 0x7f5a77a13120]Slices start in the middle!
[swscaler @ 0x7f5a77a13120]Slices start in the middle!
[swscaler @ 0x7f5a77a13120]Slices start in the middle!
[swscaler @ 0x7f5a77a13120]Slices start in the middle!
[swscaler @ 0x7f5a77a13120]Slices start in the middle!
[swscaler @ 0x7f5a77a13120]Slices start in the middle!
[swscaler @ 0x7f5a77a13120]Slices start in the middle!
[swscaler @ 0x7f5a77a13120]Slices start in the middle!
Pos:  36.5s    913f (99%) 75.91fps Trem:   0min   4mb  A-V:0.000 [1034:0]
Warning! FPS changed 25.000 -> 50.000  (-25.000000) [6]  
Unsupported PixelFormat 61
Unsupported PixelFormat 53
Unsupported PixelFormat 81
Pos:  36.5s    914f (99%) 75.98fps Trem:   0min   4mb  A-V:0.000 [1034:0]

Flushing video frames.

Video stream: 1050.970 kbit/s  (131371 B/s)  size: 4797677 bytes  36.520 secs  914 frames
x264 [info]: frame I:24    Avg QP:16.07  size: 17709
x264 [info]: frame P:459   Avg QP:25.37  size:  7764
x264 [info]: frame B:429   Avg QP:26.28  size:  1886
x264 [info]: consecutive B-frames: 35.7%  7.0% 12.8% 15.8% 21.4%  7.2%
x264 [info]: mb I  I16..4: 63.2% 26.9%  9.9%
x264 [info]: mb P  I16..4: 19.8%  9.0%  2.7%  P16..4: 27.8%  4.6%  2.3%  0.0%  0.0%    skip:33.9%
x264 [info]: mb B  I16..4:  2.0%  0.5%  0.1%  B16..8: 29.0%  1.4%  0.2%  direct: 0.9%  skip:65.9%  L0:39.9% L1:56.9% BI: 3.2%
x264 [info]: 8x8 transform intra:27.6% inter:81.4%
x264 [info]: coded y,uvDC,uvAC intra: 26.0% 34.6% 17.2% inter: 8.3% 11.8% 1.4%
x264 [info]: i16 v,h,dc,p: 74% 20%  2%  4%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 26% 21% 26%  4%  4%  5%  5%  5%  5%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 12% 68%  7%  2%  2%  2%  3%  2%  2%
x264 [info]: i8c dc,h,v,p: 66% 21% 10%  3%
x264 [info]: Weighted P-Frames: Y:18.5% UV:12.0%
x264 [info]: ref P L0: 45.5%  8.6% 12.8% 29.2%  3.9%
x264 [info]: ref B L0: 86.9% 11.6%  1.5%
x264 [info]: ref B L1: 91.5%  8.5%
x264 [info]: kb/s:1052.12



10.04.4:ssä kyseinen toimii.

Tällaista lähettää vastauksena...
Koodia: [Valitse]
mencoder $file -nosound -ovc x264 -x264encopts crf=23:bframes=5:trellis=1:8x8dct:threads=auto:frameref=3:mixed_refs:weight_b:b_pyramid=normal:psy-rd=1.0:subq=7 -of rawvideo -o "${file%.mpg}.avi"
MEncoder svn r34540 (Ubuntu), built with gcc-4.6 (C) 2000-2012 MPlayer Team
success: format: 0  data: 0x0 - 0x90f000
libavformat version 53.21.0 (external)
Mismatching header version 53.19.0
MPEG-PS file format detected.
VIDEO:  MPEG2  720x576  (aspect 2)  25.000 fps  9500.0 kbps (1187.5 kbyte/s)
[V] filefmt:2  fourcc:0x10000002  size:720x576  fps:25.000  ftime:=0.0400
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 53.35.0 (external)
Mismatching header version 53.32.2
Selected video codec: [ffmpeg2] vfm: ffmpeg (FFmpeg MPEG-2)
==========================================================================
Unsupported PixelFormat 61
Unsupported PixelFormat 53
Unsupported PixelFormat 81
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
x264 [info]: using SAR=16/15
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2
x264 [info]: profile High, level 3.0
Pos:   0.0s      1f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.000 [0:0]

1 duplicate frame(s)!
Pos:  25.5s    637f (68%) 111.58fps Trem:   0min   4mb  A-V:0.000 [934:0]
[mpeg2video @ 0x7f5b386884c0]Warning MVs not available
[mpeg2video @ 0x7f5b386884c0]concealing 5 DC, 5 AC, 5 MV errors
Pos:  36.5s    913f (99%) 111.53fps Trem:   0min   4mb  A-V:0.000 [946:0]
Warning! FPS changed 25.000 -> 50.000  (-25.000000) [6]  
Unsupported PixelFormat 61
Unsupported PixelFormat 53
Unsupported PixelFormat 81
Pos:  36.5s    914f (99%) 111.63fps Trem:   0min   4mb  A-V:0.000 [946:0]

Flushing video frames.

Video stream:  954.443 kbit/s  (119305 B/s)  size: 4357032 bytes  36.520 secs  914 frames
x264 [info]: frame I:11    Avg QP:19.64  size: 28576
x264 [info]: frame P:336   Avg QP:23.12  size:  9469
x264 [info]: frame B:565   Avg QP:26.27  size:  1524
x264 [info]: consecutive B-frames: 17.5%  7.2%  5.6% 30.7% 25.8% 13.2%
x264 [info]: mb I  I16..4: 29.4% 63.3%  7.3%
x264 [info]: mb P  I16..4: 12.2% 16.1%  3.1%  P16..4: 30.8%  7.6%  3.9%  0.0%  0.0%    skip:26.2%
x264 [info]: mb B  I16..4:  0.3%  0.5%  0.0%  B16..8: 32.8%  1.8%  0.3%  direct: 1.0%  skip:63.3%  L0:44.9% L1:50.0% BI: 5.0%
x264 [info]: 8x8 transform intra:52.9% inter:84.2%
x264 [info]: coded y,uvDC,uvAC intra: 47.7% 63.3% 25.6% inter: 9.0% 11.7% 1.5%
x264 [info]: i16 v,h,dc,p: 38% 46%  8%  9%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 19% 33%  3%  2%  3%  2%  4%  4%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 10% 78%  4%  1%  1%  2%  1%  1%  1%
x264 [info]: i8c dc,h,v,p: 41% 28% 25%  5%
x264 [info]: Weighted P-Frames: Y:7.7% UV:6.2%
x264 [info]: ref P L0: 62.6% 12.5% 17.8%  7.0%  0.2%
x264 [info]: ref B L0: 83.7% 14.2%  2.2%
x264 [info]: ref B L1: 90.8%  9.2%
x264 [info]: kb/s:955.49
« Viimeksi muokattu: 27.04.12 - klo:21.33 kirjoittanut kamara »

nm

  • Käyttäjä
  • Viestejä: 16232
    • Profiili
Vs: 12.04 LTS ja mencoder h264-ongelma.
« Vastaus #1 : 27.04.12 - klo:15.46 »
x264:n tulosteen perusteella sisältö on kyllä muutakin kuin pelkkää mustaa.

Miten toistat videotiedostoa? Huomaa, että nykyinen MPlayer ei välttämättä toista H.264 annex b:tä (.264, .h264) kunnolla, vaan video pitäisi ensin sijoittaa MP4- tai MKV-säiliöön.

kamara

  • Käyttäjä
  • Viestejä: 2944
    • Profiili
Vs: 12.04 LTS ja mencoder h264-ongelma.
« Vastaus #2 : 27.04.12 - klo:15.51 »
Kuinkahan laitetaan mkv-säilöön, sillä se on lopullinen sijainti joka tapauksessa.

Tai kuinkahan laitetaan MP4:ksi?

Ääni menee ogg:na.

nm

  • Käyttäjä
  • Viestejä: 16232
    • Profiili
Vs: 12.04 LTS ja mencoder h264-ongelma.
« Vastaus #3 : 27.04.12 - klo:15.55 »
Ääni menee ogg:na.

Silloin ainoa vaihtoehto on tosiaan MKV:

Koodia: [Valitse]
mkvmerge video.264 audio.ogg -o elokuva.mkv
Jos ääniraitaa ei vielä ole, jätä se vain lisäämättä tässä vaiheessa. Voit myös käyttää mkvmergen graafista käyttöliittymää (mmg, sijaitsee paketissa mkvtoolnix-gui).

kamara

  • Käyttäjä
  • Viestejä: 2944
    • Profiili
Vs: 12.04 LTS ja mencoder h264-ongelma.
« Vastaus #4 : 27.04.12 - klo:21.32 »
Kiitos ratkaisusta. Itselleni oli yllätys, ettei .264 - päätettä tuntenut vlc eikä mendocer.

Lisäksi omassa scriptissäni oli muutama virhe, jonka takia ei tullut .mkv-tiedostoa.

Syyllinen oli lame, joka toimii hivenen eri tavalla tässä 12.4:ssä kuin 10.4:ssä.

Pienten muutosten jälkeen sainkin scriptini toimimaan.