Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Multimedia
  • Search

problems decoding h264 file

Help with creation, editing, or playback of sounds, images, or video. Amarok, audacious, mplayer, grip, cdparanoia and anything else that makes a sound or plays a video.
Post Reply
Advanced search
11 posts • Page 1 of 1
Author
Message
TheCoop
Veteran
Veteran
User avatar
Posts: 1814
Joined: Sat Jun 15, 2002 5:20 pm
Location: Where you least expect it
Contact:
Contact TheCoop
Website

problems decoding h264 file

  • Quote

Post by TheCoop » Mon Apr 09, 2007 7:27 pm

I've in the middle of copying my movie collection onto hard disk, and on some movies something goes wrong while encoding/decoding the video. When playing the files, around halfway through the movie the image goes crazy and I get the following in xterm:

mplayer:
[h264 @ 0xc4f520]warning: first frame is no keyframe
[h264 @ 0xc4f520]AVC: nal size 15390048
[h264 @ 0xc4f520]concealing 531 DC, 531 AC, 531 MV errors
[h264 @ 0xc4f520]AVC: nal size 13600
[h264 @ 0xc4f520]no frame!
Error while decoding frame!
[h264 @ 0xc4f520]AVC: nal size 13600
[h264 @ 0xc4f520]no frame!
Error while decoding frame!
[h264 @ 0xc4f520]AVC: nal size 13600
[h264 @ 0xc4f520]no frame!
Error while decoding frame!
[h264 @ 0xc4f520]AVC: nal size 13600
[h264 @ 0xc4f520]no frame!
Error while decoding frame!
[h264 @ 0xc4f520]AVC: nal size 13600
[h264 @ 0xc4f520]no frame!
...etc

ffplay:
[h264 @ 0x2b3d335a8410]AVC: Consumed only 37086 bytes instead of 15390048
[h264 @ 0x2b3d335a8410]Unknown NAL code: 26
[h264 @ 0x2b3d335a8410]concealing 531 DC, 531 AC, 531 MV errors
[h264 @ 0x2b3d335a8410]AVC: Consumed only 8293 bytes instead of 15390048
[h264 @ 0x2b3d335a8410]Unknown NAL code: 26
[h264 @ 0x2b3d335a8410]illegal short term buffer state detected
[h264 @ 0x2b3d335a8410]concealing 531 DC, 531 AC, 531 MV errors
[h264 @ 0x2b3d335a8410]AVC: Consumed only 9490 bytes instead of 13600
[h264 @ 0x2b3d335a8410]illegal short term buffer state detected
[h264 @ 0x2b3d335a8410]concealing 531 DC, 531 AC, 531 MV errors
[h264 @ 0x2b3d335a8410]AVC: Consumed only 4817 bytes instead of 15390048
[h264 @ 0x2b3d335a8410]Unknown NAL code: 26
[h264 @ 0x2b3d335a8410]illegal short term buffer state detected
[h264 @ 0x2b3d335a8410]concealing 531 DC, 531 AC, 531 MV errors
[h264 @ 0x2b3d335a8410]AVC: Consumed only 8387 bytes instead of 13600
[h264 @ 0x2b3d335a8410]illegal short term buffer state detected
[h264 @ 0x2b3d335a8410]concealing 531 DC, 531 AC, 531 MV errors
[h264 @ 0x2b3d335a8410]AVC: Consumed only 2922 bytes instead of 15390048
....etc

has anyone got any idea whats going on? is it something wrong with the encoding or decoding?
95% of all computer errors occur between chair and keyboard (TM)

"One World, One web, One program" - Microsoft Promo ad.
"Ein Volk, Ein Reich, Ein Führer" - Adolf Hitler

Change the world - move a rock
Top
ttuegel
Apprentice
Apprentice
Posts: 176
Joined: Tue Jan 18, 2005 11:05 pm
Location: Illinois, USA

  • Quote

Post by ttuegel » Mon Apr 09, 2007 8:07 pm

When was the last time you updated x264-svn? If not recently, I would recommend trying that to rule out a decoding issue (the svn-ebuild is the only one in Portage, and it's reasonably stable anyway, never had any issues with it).
Top
TheCoop
Veteran
Veteran
User avatar
Posts: 1814
Joined: Sat Jun 15, 2002 5:20 pm
Location: Where you least expect it
Contact:
Contact TheCoop
Website

  • Quote

Post by TheCoop » Tue Apr 10, 2007 11:42 am

updating to newest version didnt make a difference
95% of all computer errors occur between chair and keyboard (TM)

"One World, One web, One program" - Microsoft Promo ad.
"Ein Volk, Ein Reich, Ein Führer" - Adolf Hitler

Change the world - move a rock
Top
TheCoop
Veteran
Veteran
User avatar
Posts: 1814
Joined: Sat Jun 15, 2002 5:20 pm
Location: Where you least expect it
Contact:
Contact TheCoop
Website

  • Quote

Post by TheCoop » Tue Apr 10, 2007 11:53 am

And I can't encode with the newest version:

Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
[swscaler @ 0xb95480]SwScaler: using unscaled yuv420p -> yuv420p special converter
x264 [error]: width or height not divisible by 2 (576x1)
x264_encoder_open failed.
FATAL: Cannot initialize video driver.
95% of all computer errors occur between chair and keyboard (TM)

"One World, One web, One program" - Microsoft Promo ad.
"Ein Volk, Ein Reich, Ein Führer" - Adolf Hitler

Change the world - move a rock
Top
ttuegel
Apprentice
Apprentice
Posts: 176
Joined: Tue Jan 18, 2005 11:05 pm
Location: Illinois, USA

  • Quote

Post by ttuegel » Tue Apr 10, 2007 12:00 pm

TheCoop wrote:And I can't encode with the newest version:
Do you have x264-svn and x264-svn-encoder installed? They separated the enconding/decoding libraries into two ebuilds.
Top
TheCoop
Veteran
Veteran
User avatar
Posts: 1814
Joined: Sat Jun 15, 2002 5:20 pm
Location: Where you least expect it
Contact:
Contact TheCoop
Website

  • Quote

Post by TheCoop » Tue Apr 10, 2007 2:28 pm

I'm using mencoder, which just has a dependancy on the .so library (which x264-svn provides...)
95% of all computer errors occur between chair and keyboard (TM)

"One World, One web, One program" - Microsoft Promo ad.
"Ein Volk, Ein Reich, Ein Führer" - Adolf Hitler

Change the world - move a rock
Top
ttuegel
Apprentice
Apprentice
Posts: 176
Joined: Tue Jan 18, 2005 11:05 pm
Location: Illinois, USA

  • Quote

Post by ttuegel » Tue Apr 10, 2007 2:39 pm

TheCoop wrote:I'm using mencoder, which just has a dependancy on the .so library (which x264-svn provides...)
Regardless of what it _says_ the dependencies are, have you tried installing x264-svn-encoder? Otherwise, I'm not sure how mencoder is going to encode something in a format that it doesn't have the encoder for...
Top
TheCoop
Veteran
Veteran
User avatar
Posts: 1814
Joined: Sat Jun 15, 2002 5:20 pm
Location: Where you least expect it
Contact:
Contact TheCoop
Website

  • Quote

Post by TheCoop » Tue Apr 10, 2007 2:50 pm

x264-svn-encoder has a program that does stand-alone programming. It links against the library in x264-svn that mencoder also links against, that both mencoder and x264 (program) use to encode stuff. I've had a look, and the x264 program takes raw input - since I'm encoding dvds, the size of the raw input would be prohibitively large...
95% of all computer errors occur between chair and keyboard (TM)

"One World, One web, One program" - Microsoft Promo ad.
"Ein Volk, Ein Reich, Ein Führer" - Adolf Hitler

Change the world - move a rock
Top
ttuegel
Apprentice
Apprentice
Posts: 176
Joined: Tue Jan 18, 2005 11:05 pm
Location: Illinois, USA

  • Quote

Post by ttuegel » Tue Apr 10, 2007 4:30 pm

That's strange... I've been using transcode to encode DVDs into H264 with ffmpeg, but it doesn't work without x264-svn-encoder installed (complains about being unable to load a library). I thought that mplayer used ffmpeg where available? Or am I thinking of something else?

In any case, with reference to the original problem, it sounds like the original files weren't encoded correctly, if the latest x264-svn doesn't play them.
Top
meson_ray
n00b
n00b
Posts: 8
Joined: Wed Oct 25, 2006 2:55 pm

  • Quote

Post by meson_ray » Thu May 31, 2007 3:49 pm

TheCoop wrote:And I can't encode with the newest version:

Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
[swscaler @ 0xb95480]SwScaler: using unscaled yuv420p -> yuv420p special converter
x264 [error]: width or height not divisible by 2 (576x1)
x264_encoder_open failed.
FATAL: Cannot initialize video driver.
I've got a similar problem with the newest version 20070325 (masked ~x86), which worked fine on the first DVD I tried encoding, but not the second one so far:

[swscaler @ 0x8600508]SwScaler: BICUBIC scaler, from yuv420p to yuv420p using MMX2
[swscaler @ 0x8600508]SwScaler: using 4-tap MMX scaler for horizontal luminance scaling
[swscaler @ 0x8600508]SwScaler: using 4-tap MMX scaler for horizontal chrominance scaling
[swscaler @ 0x8600508]SwScaler: using n-tap MMX scaler for vertical scaling (YV12 like)
[swscaler @ 0x8600508]SwScaler: 720x480 -> 752x320
x264 [error]: width or height not divisible by 2 (320x1)

I don't really know what to tell you about the other problem though, just to say that you're not alone in problems with the newer driver.
Top
fsteinel
n00b
n00b
User avatar
Posts: 3
Joined: Thu Jan 19, 2006 3:53 pm
Location: Germany

  • Quote

Post by fsteinel » Sat Jun 02, 2007 9:10 pm

Update to ftp://ftp.videolan.org/pub/videolan/x26 ... 45.tar.bz2 and remerge mplayer.
x264-svn-20070601.ebuild:

Code: Select all

--- /usr/portage/media-libs/x264-svn/x264-svn-20070325.ebuild   2007-03-25 21:38:52.000000000 +0200
+++ /usr/portage/media-libs/x264-svn/x264-svn-20070601.ebuild   2007-06-02 23:05:31.000000000 +0200
@@ -8,7 +8,7 @@ IUSE="debug threads"
 
 DESCRIPTION="A free library for encoding X264/AVC streams."
 HOMEPAGE="http://developers.videolan.org/x264.html"
-SRC_URI="mirror://gentoo/${P}.tar.bz2"
+SRC_URI="mirror://gentoo/${P/svn/snapshot}-2245.tar.bz2"
 
 SLOT="0"
 LICENSE="GPL-2"
@@ -21,7 +21,7 @@ DEPEND="${RDEPEND}
        x86? ( dev-lang/nasm )
        x86-fbsd? ( dev-lang/nasm )"
 
-S="${WORKDIR}/${PN}"
+S="${WORKDIR}/${P/svn/snapshot}-2245"
 
 src_unpack() {
        unpack ${A}

x264-svn-encoder-20070601.ebuild:

Code: Select all

--- /usr/portage/media-video/x264-svn-encoder/x264-svn-encoder-20070325.ebuild  2007-03-25 21:40:48.000000000 +0200
+++ /usr/portage/media-video/x264-svn-encoder/x264-svn-encoder-20070601.ebuild  2007-06-02 22:06:33.000000000 +0200
@@ -6,7 +6,8 @@ inherit multilib eutils toolchain-funcs
 
 IUSE="debug mp4 gtk threads"
 
-X264_SVN_P=${P/-encoder/}
+X264_SVN_P1=${P/-encoder/}
+X264_SVN_P=${X264_SVN_P1/svn/snapshot}-2245
 
 DESCRIPTION="A free library for encoding X264/AVC streams."
 HOMEPAGE="http://developers.videolan.org/x264.html"
@@ -18,20 +19,20 @@ KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~spa
 
 RDEPEND="mp4? ( >=media-video/gpac-0.4.1_pre20060122 )
        gtk? ( >=x11-libs/gtk+-2.6.10 >=dev-libs/glib-2.10.3 )
-       ~media-libs/${X264_SVN_P}"
+       ~media-libs/${X264_SVN_P1}"
 
 DEPEND="${RDEPEND}
        amd64? ( >=dev-lang/yasm-0.6.0 )
        x86? ( dev-lang/nasm )
        x86-fbsd? ( dev-lang/nasm )"
 
-S=${WORKDIR}/${PN/-encoder/}
+S=${WORKDIR}/${X264_SVN_P}
 
 src_unpack() {
        unpack ${A}
        cd "${S}"
        epatch "${FILESDIR}/${P}-nostrip.patch"
-       epatch "${FILESDIR}/${P}-nolib.patch"
+       epatch "${FILESDIR}/${PN}-20070325-nolib.patch"
 }
 
 src_compile() {
x264-svn-encoder-20070601-nostrip.patch

Code: Select all

--- x264-snapshot-20070601-2245/configure.orig  2007-06-01 22:45:02.000000000 +0200
+++ x264-snapshot-20070601-2245/configure       2007-06-02 21:44:13.000000000 +0200
@@ -375,11 +375,6 @@ if [ "$pic" = "yes" ] ; then
     ASFLAGS="$ASFLAGS -D__PIC__"
 fi
 
-if [ "$debug" != "yes" -a "$gprof" != "yes" ]; then
-    CFLAGS="$CFLAGS -s -fomit-frame-pointer"
-    LDFLAGS="$LDFLAGS -s"
-fi
-
 if [ "$debug" = "yes" ]; then
     CFLAGS="-O1 -g $CFLAGS"
 else
Top
Post Reply

11 posts • Page 1 of 1

Return to “Multimedia”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic