You are not logged in.

#1 2010-06-10 17:31:30

stony
Member
From: Rotenburg, Germany
Registered: 2009-07-06
Posts: 8
Website

x264 converted file stays empty

Hi there,

i never had problems converting y4m-streams to mp4 using

glc-capture savage2 (record with shift + F8)
glc-play -i 2 ./savage2-bin..........
glc-play -y numberfrominformation ./savage2-bin...... -o name.y4m
glc-play -a numberfrominformation ./savage2-bin...... -o name.wav
x264 --crf 24 -o name.mp4 name.y4m

Now it does not work anymore and i just cant figure out why.

The file is a glc-recording wirh following information

YUV4MPEG2 file format detected.
YUV4MPEG2 Video stream 0 size: display: 1440x900, codec: 1440x900
VIDEO:  [YV12]  1440x900  12bpp  30.000 fps    0.0 kbps ( 0.0 kbyte/s)
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
Movie-Aspect is undefined - no prescaling applied.
VO: [vdpau] 1440x900 => 1440x900 Planar YV12 
Selected video codec: [rawyv12] vfm: raw (RAW YV12)

and its playing fine.

When i try to convert it with the code on the top he just works for a long time but the file remains with zero byte.

x264-version is

x264 --version
x264 0.98.1647 a8bbe4e
built on Jun 10 2010, gcc: 4.5.0 20100520 (prerelease)

Can anyone give me an advice where to look?

Greetings

Stony

Last edited by stony (2010-06-10 17:32:53)

Offline

#2 2010-06-11 03:22:33

kazuo
Member
From: São Paulo/Brazil
Registered: 2008-03-18
Posts: 413
Website

Re: x264 converted file stays empty

Post the output from the x264 run. Tried to use ffmpeg? usually its not needed because the input is yuv4mpeg, but you can see if the x264 decoding had some problem. Try to output to a raw stream too.

But a complete post of output can give us some info, use the verbose flag (and post it on the pastebin, its gonna be huge), you can only encode a small numbers of frames.

Offline

#3 2010-06-11 04:30:22

stony
Member
From: Rotenburg, Germany
Registered: 2009-07-06
Posts: 8
Website

Re: x264 converted file stays empty

Thanks for your time kazuo.

Here goes the logfile: http://pastebin.com/W6KdQcU9

Converting to raw x264 didn't give any usable file either.

Offline

#4 2010-06-11 04:56:35

kazuo
Member
From: São Paulo/Brazil
Registered: 2008-03-18
Posts: 413
Website

Re: x264 converted file stays empty

Uhh, the log looks ok. If its possible can you upload a small sample of the yuv4mpeg source that reproduce the problem?

In the time, a thing you can do. With mplayer try to save the decoded yuv4mpeg as a yuv4mpeg (mplayer -vo yuv4mpeg:file=stream.y4m -noframedrop -benchmark -nosound 29247.y4m) this gonna be fast, but if you sample is huge you can decode only some frames too.

This is a "try only", I think that the problem can be with something at x264, because its encode each frame, but its dont output the encoded frames. (Another try, sorry to dont give you any a concrete answer, what about outputing to /dev/stdout? you get any output?)

Offline

#5 2010-06-22 08:10:58

stony
Member
From: Rotenburg, Germany
Registered: 2009-07-06
Posts: 8
Website

Re: x264 converted file stays empty

I am sorry that it took me so long to respond.

I was in a hurry so I tried the conversion with root-privileges and it worked. The file- and folderpermissions were world-open. So i dont know why x264 needs root priviliges but it only works this way for me.

Thanks for your time to help.

Offline

Board footer

Powered by FluxBB