Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: H.264 Encoder/Decoder (Read 8881 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

H.264 Encoder/Decoder

I'm trying to use the JM9.X encoder with H.264 Baseline properties,
I used (windows\)clock.avi as input file to the encoder,
and after that run the decoder on the encode file, and both output files
(from the encoder,decoder) are not running in my movie-players (and CODECS)

i run :
lencod              with: InputFile = "clock.avi"
                                OutputFile= "test.264"
ldecod

did the input file appropriate?
do i need specific player? or decoder?
what shuld i do?

H.264 Encoder/Decoder

Reply #1
JM only accept YUV(uncompressend raw YUV420/422/444 video file)...
so the lencod will not work for AVI.

the encoder output is raw h264 video file,
i thinks no dshow filter can decode it ATM,
only MPlayer is able to decode it with a few parameter,
eg. "-demuxer 30 -nobps -ni -forceidx -mc 0",
without parameter work too, but the frame rates might be wrong.
it 's recommended you use avc2avi.. ,mpeg4iptools, and MP4box(GPAC) (get all from here) and mux raw h264 to a proper container.

H.264 Encoder/Decoder

Reply #2
You can do an yuv input file for jm9.x with ffmpeg. Goes like this
ffmpeg -i mydivx.avi -o hugefile.yuv

It could be possible to do some piping but I'm not sure.

H.264 Encoder/Decoder

Reply #3
thank u both.... you help me alot!!!!!!!!!!111

BUT, there is another thing i need your help,

after coding the *.yuv file and decoding,

i still can't play the output file...

Raanan

H.264 Encoder/Decoder

Reply #4
MPlayer refuse to play the raw h264?
better you can uplaod the problem raw h264,
so we can investigate the problem :)

H.264 Encoder/Decoder

Reply #5
You right yong, my friend, the mplayer not displaying the raw h264 file,
i'll happy to sent you the raw h264 file but how can i do it? (via mail?)
this is my mail address :



thanks again

H.264 Encoder/Decoder

Reply #6
Quote
You right yong, my friend, the mplayer not displaying the raw h264 file,
i'll happy to sent you the raw h264 file but how can i do it? (via mail?)
this is my mail address :



thanks again.
[a href="index.php?act=findpost&pid=293668"][{POST_SNAPBACK}][/a]


I think this may be a known bug in mplayer in the raw h264 reader.  Try putting the file in mp4 container using mp4box or put it in avi.  It should play then.

H.264 Encoder/Decoder

Reply #7
Actually you need to name the file as *.h264, so mplayer will send it to h264-es demuxer by default, or give some extra-options at cmdline otherwise.

H.264 Encoder/Decoder

Reply #8
@moraanan:
You will soon receive a lot of S.P.@.M ,
because you expose your e-mail adds... 

@Bonzi:
Recently Loren(x264 dev) fixed some bugs in x264 encoder and mplayer raw h264 decoding bug.
Using the Daily CVS snapshot version will solve the problem i think.

@ak:
Actually MPlayer only recognize *.264
without any cli option.

i've tried the *.h264 file extention and MPlayer show:
Code: [Select]
MPlayer dev-CVS-050426-18:43-3.4.2 (C) 2000-2005 MPlayer Team
CPU: Intel Pentium 4/Xeon/Celeron Foster (Family: 8, Stepping: 7)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

81 audio & 178 video codecs
Playing C:\Documents and Settings\Chen Yong.NEC\Desktop\04girl.h264.
Cache fill:  0.00% (0 bytes)    64bit file, but you've compiled MPlayer without
LARGEFILE support!

64bit file

 

H.264 Encoder/Decoder

Reply #9
Oh yeah, my bad, it's .264 and .26l indeed, not .h264.

H.264 Encoder/Decoder

Reply #10
 

thank you all, you help me alot...

but don't go so far, still have some problems,

Raanan, Jerusalem Israel...

H.264 Encoder/Decoder

Reply #11
heyz..

im trying to decode a *.264 file under linux with mplayer ...  i saw in previous post that i need to rename it to *.h264 ...  but it still doesn't work...

any startup sugestions or examples?  (i can play avi files so i gues my installation is allright)

question 2: i only need to make a baseline decoder for .264 files... and the referentialcode  (JM95) is so ugly written i dont want to use it.. any suggestion.. or does someone allready have made a standalone decoder?

thnks in advance

H.264 Encoder/Decoder

Reply #12
Quote
question 2: i only need to make a baseline decoder for .264 files... and the referentialcode  (JM95) is so ugly written i dont want to use it.. any suggestion.. or does someone allready have made a standalone decoder?

thnks in advance
[{POST_SNAPBACK}][/a]

ffmpeg libavocdec?
[a href="http://ffmpeg.sourceforge.net/index.php]http://ffmpeg.sourceforge.net/index.php[/url]
it's able to decode h264(function not complete yet AFAIK) and a ton of formats.

H.264 Encoder/Decoder

Reply #13
Quote
Quote
question 2: i only need to make a baseline decoder for .264 files... and the referentialcode  (JM95) is so ugly written i dont want to use it.. any suggestion.. or does someone allready have made a standalone decoder?

thnks in advance
[{POST_SNAPBACK}][/a]

ffmpeg libavocdec?
[a href="http://ffmpeg.sourceforge.net/index.php]http://ffmpeg.sourceforge.net/index.php[/url]
it's able to decode h264(function not complete yet AFAIK) and a ton of formats.
[a href="index.php?act=findpost&pid=294071"][{POST_SNAPBACK}][/a]


i tried that.. but keep messing up when i try to decode one

H.264 Encoder/Decoder

Reply #14
okeejz.... i finaly got it to work... damn i hate myself for those stupid mistakes.... i had corrupted version of ffmpeg 

H.264 Encoder/Decoder

Reply #15
Bakel, hi

I'm just writing the h264 baseline encoder,

and need some help with those NUL's,   

so i'll be happy to talk to you soon,

( you can send me mail : raanan.mor@gmail.com )

Raanan.

H.264 Encoder/Decoder

Reply #16
Quote
Bakel, hi

I'm just writing the h264 baseline encoder,

and need some help with those NUL's,  

so i'll be happy to talk to you soon,

( you can send me mail : raanan.mor@gmail.com )

Raanan.
[a href="index.php?act=findpost&pid=294334"][{POST_SNAPBACK}][/a]


I used the referential code to make a h264  encoded video from a yuv420pl file... i turned the configfile to serve the baseline settings and encoded a few yuv files... after that i have played with the code to learn it but i din't really builded my own... my assignment is really about the decoder... and i gonna use ffmpeg as my startingpoint...  To bad i tried to optimize the setting on thatone and now need a restart

oh.. about the referentialcode...  its ugly code but its working, i use it to see how some thing work but i try to avoid using it into my programs.

further.. about those NULL's.. can yha tell more about that problem?? then i might be able to help.

H.264 Encoder/Decoder

Reply #17
I have the ISO/IEC and ITU-T Rec. H.264 BUT it describes this topic(NUL's) in high complexity.
Do someone has an summery of the basic of it, or simple code (minimal baseline)
of the endocer or decoder ?
I want to know what sequences are they need to be (inside and outside)...

H.264 Encoder/Decoder

Reply #18
Quote
I have the ISO/IEC and ITU-T Rec. H.264 BUT it describes this topic(NUL's) in high complexity.
Do someone has an summery of the basic of it, or simple code (minimal baseline)
of the endocer or decoder ?
I want to know what sequences are they need to be (inside and outside)...
[{POST_SNAPBACK}][/a]



whell i do know what i need for baseline.. problem is that i need a good starting point... because everyone is writing baseline nested into an other profile... the point of baseline is that it needs to be small...

till now i use ffmpeg and compile it with allmost everything off... now i only need to clean up the code for stuff i dont need... and that gonna take me some weeks   

im using [a href="http://mplayerhq.hu/MPlayer/cvs/FFMpeg-20050502.tar.bz2]http://mplayerhq.hu/MPlayer/cvs/FFMpeg-20050502.tar.bz2[/url] on the moment and it seems to work... dont want to think and only want the h264 decoder?

i used the following lines: (replace XXX with you disired install path)

./configure --prefix=XXX --enable-gpl --disable-zlib --disable-altivec --disable-ffserver --disable-vhook --disable-mmx --disable-network
make
make install

now im starting with code refreshing

Oh just 1 sec ago i found some usefull info.. i din't tested it yet but il looks prommising: http://wiki.blender.org/bin/view.pl/Requests/Libavicodec

H.264 Encoder/Decoder

Reply #19
I not just looking for code,
so if you got some informaition about the NUL please tell me

H.264 Encoder/Decoder

Reply #20
Quote
I not just looking for code,
so if you got some informaition about the NUL please tell me
[a href="index.php?act=findpost&pid=294798"][{POST_SNAPBACK}][/a]



NUL or NAL?  because i dont know what yha wanna achieve with the NUL

H.264 Encoder/Decoder

Reply #21
NAL

H.264 Encoder/Decoder

Reply #22
Quote
NAL
[a href="index.php?act=findpost&pid=295090"][{POST_SNAPBACK}][/a]



then pls say littlebit more about what you want to know about it...
(  NAL units  => Network Abstraction layer units )