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-2 Encoding

Reply
 
Thread Tools Search this Thread Display Modes
Old 3rd February 2016, 12:17   #1  |  Link
maheshmore
Registered User
 
Join Date: Jan 2016
Posts: 8
mpeg 2 encoding of .yuv video

Hello all,

I am trying to encode akiyo_cif.yuv video file (resolution 352 x 288) (downloaded from http://trace.eas.asu.edu/yuv/akiyo/akiyo_cif.7z) using mpeg 2 encoder (version 1.1) downloaded from MPEG official site ( http://www.mpeg.org/pub_ftp/mpeg/mss...c_v1.1a.tar.gz).



content of parameter file are given below(parameter file is also attached below)



MPEG-2 Verification Sequence
akiyo_cif /* name of source files */
- /* name of reconstructed images ("-": don't store) */
- /* name of intra quant matrix file ("-": default matrix) */
- /* name of non intra quant matrix file ("-": default matrix) */
stat.out /* name of statistics file ("-": stdout ) */
0 /* input picture file format: 0=*.Y,*.U,*.V, 1=*.yuv, 2=*.ppm */
300 /* number of frames */
0 /* number of first frame */
23:59:59:24 /* timecode of first frame */
6 /* N (# of frames in GOP) */
2 /* M (I/P frame distance) */
0 /* ISO/IEC 11172-2 stream */
0 /* 0:frame pictures, 1:field pictures */
352 /* horizontal_size */
288 /* vertical_size */
2 /* aspect_ratio_information 1=square pel, 2=4:3, 3=16:9, 4=2.11:1 */
3 /* frame_rate_code 2=23.976, 3=25, 4=29.97, 5=30 frames/second */
400000.0 /* bit_rate (bits/s) */
12 /* vbv_buffer_size (in multiples of 16 kbit) */
0 /* low_delay */
0 /* constrained_parameters_flag */
4 /* Profile ID: Simple = 5, Main = 4, SNR = 3, Spatial = 2, High = 1 */
8 /* Level ID: Low = 10, Main = 8, High 1440 = 6, High = 4 */
0 /* progressive_sequence */
1 /* chroma_format: 1=4:2:0, 2=4:2:2, 3=4:4:4 */
1 /* video_format: 0=comp., 1=PAL, 2=NTSC, 3=SECAM, 4=MAC, 5=unspec. */
5 /* color_primaries */
5 /* transfer_characteristics */
5 /* matrix_coefficients */
352 /* display_horizontal_size */
288 /* display_vertical_size */
1 /* intra_dc_precision (0: 8 bit, 1: 9 bit, 2: 10 bit, 3: 11 bit */
1 /* top_field_first */
1 0 0 /* frame_pred_frame_dct (I P B) */
0 0 0 /* concealment_motion_vectors (I P B) */
0 1 1 /* q_scale_type (I P B) */
1 1 0 /* intra_vlc_format (I P B)*/
1 0 1 /* alternate_scan (I P B) */
0 /* repeat_first_field */
0 /* progressive_frame */
0 /* P distance between complete intra slice refresh */
0 /* rate control: r (reaction parameter) */
0 /* rate control: avg_act (initial average activity) */
0 /* rate control: Xi (initial I frame global complexity measure) */
0 /* rate control: Xp (initial P frame global complexity measure) */
0 /* rate control: Xb (initial B frame global complexity measure) */
0 /* rate control: d0i (initial I frame virtual buffer fullness) */
0 /* rate control: d0p (initial P frame virtual buffer fullness) */
0 /* rate control: d0b (initial B frame virtual buffer fullness) */
2 2 11 11 /* P: forw_hor_f_code forw_vert_f_code search_width/height */
1 1 3 3 /* B1: forw_hor_f_code forw_vert_f_code search_width/height */
1 1 7 7 /* B1: back_hor_f_code back_vert_f_code search_width/height */
1 1 7 7 /* B2: forw_hor_f_code forw_vert_f_code search_width/height */
1 1 3 3 /* B2: back_hor_f_code back_vert_f_code search_width/height */







But I am not able to get desired output. It only shows the 1st frame of video for whole duration.


Can you suggest what is the problem .yuv file, parameter file or anything else?
Attached Files
File Type: txt parfile.txt (3.0 KB, 26 views)

Last edited by maheshmore; 9th February 2016 at 17:47.
maheshmore is offline   Reply With Quote
Old 9th February 2016, 10:31   #2  |  Link
rishi007bansod
Registered User
 
Join Date: Feb 2016
Posts: 1
mpeg 2 encoding of .yuv video

I am also having same problem in processing .yuv.

please reply
rishi007bansod is offline   Reply With Quote
Old 9th February 2016, 15:20   #3  |  Link
Music Fan
Registered User
 
Join Date: May 2009
Location: Belgium
Posts: 1,744
I didn't know this format, but I just saw that VLC could open it, and thus maybe convert it. By the way, the resolution is 176.144 and fps 25 (according to VLC).
You can also try to open it with Avisynth and open the script in your encoder.

edit : Avisynth can open it with the plugin RawSource ;
http://forum.doom9.org/showthread.ph...73#post1641673
This script works ;
Code:
RawSource("I:\akiyo_qcif.yuv",176,144,"I420")

Last edited by Music Fan; 9th February 2016 at 17:19.
Music Fan is offline   Reply With Quote
Old 9th February 2016, 17:18   #4  |  Link
maheshmore
Registered User
 
Join Date: Jan 2016
Posts: 8
Thanx for correcting me..... It was a typo. It is Akiyo_cif (not akiyo_qcif). I have made changes accordingly in original post.

Last edited by maheshmore; 9th February 2016 at 17:21.
maheshmore is offline   Reply With Quote
Old 9th February 2016, 17:22   #5  |  Link
Music Fan
Registered User
 
Join Date: May 2009
Location: Belgium
Posts: 1,744
Actually the good pixel type is I420, not YV12, otherwise the face of the woman is blue, I corrected my previous post.
And there are only 300 frames.
Music Fan is offline   Reply With Quote
Old 9th February 2016, 17:38   #6  |  Link
maheshmore
Registered User
 
Join Date: Jan 2016
Posts: 8
Yes. And same is used here
maheshmore is offline   Reply With Quote
Reply

Tags
.yuv, mpeg-2 encoding, parameter file

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 05:17.


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