Imagination is a pretty nice application, however I'd love to see 720p and 1080p output encoded in X264/AAC.
These files are useful for YouTube upload, and possibly Blueray authoring...
It could be a great feature !
You seem to have CSS turned off. Please don't fill out this field.
I patched "export.c" to have a 1920x1080 video encoded with X264, into a Matroska container. Let me know if you're interested on it.
Hi,
we are interested in your patch. Could you please attach it here or paste bin elsewhere?
Thanks Giuseppe
I''ve just added x263/ac3 support in trunk,, have a look at it and tell me if it is OK for you (x264 seem very complicated).
The patch is really simple. I modified the ffmpeg command to export mpeg2 into mkv. So if you apply the patch you will lose mpeg2 support. But it can be a good starting point.
diff -r imagination-3.0/src/export.c ../imagination-3.0-mkv/src/export.c 1259a1260 > /* 1266a1268,1275 > */ > cmd_line = g_strdup_printf( "ffmpeg -f image2pipe -vcodec ppm -r %.0f " > "-i pipe: <#AUDIO#> -y " > "-vcodec libx264 -flags +loop+mv4 -cmp 256 -partitions +parti4x4+parti8x8+partp4x4+partp8x8+partb8x8 -subq 7 -trellis 1 -refs 5 -bf 0 -flags2 +mixed_refs -coder 0 -me_range 16 -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -qmin 10 -qmax 51 -qdiff 4 " > "-bf 2 -s %dx%d %s%s -b 15000k \"%s.mkv\" ", > img->export_fps, > img->video_size[0], img->video_size[1], > aspect_ratio_cmd, aspect_ratio, filename ); 1267a1277 > fprintf(stdout, "Cmdline: %s\n", cmd_line);
Log in to post a comment.
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
It could be a great feature !
I patched "export.c" to have a 1920x1080 video encoded with X264, into a Matroska container.
Let me know if you're interested on it.
Hi,
we are interested in your patch. Could you please attach it here or paste bin elsewhere?
Thanks
Giuseppe
I''ve just added x263/ac3 support in trunk,, have a look at it and tell me if it is OK for you (x264 seem very complicated).
The patch is really simple. I modified the ffmpeg command to export mpeg2 into mkv.
So if you apply the patch you will lose mpeg2 support. But it can be a good starting point.
diff -r imagination-3.0/src/export.c ../imagination-3.0-mkv/src/export.c
1259a1260
> /*
1266a1268,1275
> */
> cmd_line = g_strdup_printf( "ffmpeg -f image2pipe -vcodec ppm -r %.0f "
> "-i pipe: <#AUDIO#> -y "
> "-vcodec libx264 -flags +loop+mv4 -cmp 256 -partitions +parti4x4+parti8x8+partp4x4+partp8x8+partb8x8 -subq 7 -trellis 1 -refs 5 -bf 0 -flags2 +mixed_refs -coder 0 -me_range 16 -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -qmin 10 -qmax 51 -qdiff 4 "
> "-bf 2 -s %dx%d %s%s -b 15000k \"%s.mkv\" ",
> img->export_fps,
> img->video_size[0], img->video_size[1],
> aspect_ratio_cmd, aspect_ratio, filename );
1267a1277
> fprintf(stdout, "Cmdline: %s\n", cmd_line);