Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.


Go Back   Doom9's Forum > Video Encoding > MPEG-4 AVC / H.264

Thread Tools Search this Thread Display Modes
Old 19th April 2016, 22:26   #1  |  Link
Registered User
Join Date: Apr 2016
Posts: 3
JM reference software.


I am able to encode and decode video files using JM reference software.
The encoded video is stored in BIN directory as a video file. Is there any method to packetise the video file, in order to send over a network as video packet. ( need send video packets at diffrent data rates and set different QP for) it.
i,e Is there a way to get hold of encoded video files as individual packet in order to sent it over network.

The encoding takes a really long time using JM. I encoded a video (more like a static video) which is 1 min 20 sec long, if we view it. It has only 2001 frames. It took about 45-50 min to encode. Does it takes this much long time?
But decoding the same took about 13sec only.
The file I encoded is available online here- http://trace.eas.asu.edu/yuv/-bridge-close_qcif.yuv

Thanks in Advance.

Last edited by Ansii; 19th April 2016 at 22:31.
Ansii is offline   Reply With Quote
Old 20th April 2016, 19:37   #2  |  Link
Software Developer
LoRd_MuldeR's Avatar
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,249
Yes, reference encoder is slow as hell. It's simply not optimized for speed at all.

I don't know if JM can be used as a library with a proper API, which allows you to process individual encoded frames (NAL units) as they pop out of the encoder. But x264 (libx264) does exactly that! And it is *way* faster than JM

See also:

/* x264_encoder_encode:
encode one picture.
*pi_nal is the number of NAL units outputted in pp_nal.
returns the number of bytes in the returned NALs.
returns negative on error and zero if no NAL units returned.
the payloads of all output NALs are guaranteed to be sequential in memory. */

int x264_encoder_encode( x264_t *, x264_nal_t **pp_nal, int *pi_nal, x264_picture_t *pic_in, x264_picture_t *pic_out );
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊

Last edited by LoRd_MuldeR; 20th April 2016 at 19:47.
LoRd_MuldeR is offline   Reply With Quote

h.264, jm software, video packets

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +1. The time now is 16:28.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.