ldbkutty
asked on
Error in Linux Shell Programming ...
Dear Experts,
I have a problem while convertimg ppm image files to YUV format.i have these commands:
export dir="out1/"
(
i=0
for file in `find $dir -name "out1*" |sort`
do
i=0
x=10
cat $file
done
)|ppmtoy4m -F 25:1|mpeg2enc -f 8 -o exp.m1v
I am giving ppm images as INPUT and after some calculation(in C Language) i am making OUTPUT images to "out1" folder. With the above commands, i am getting "bad raw ppm magic number" error when piped to ppmto4ym command.
I have p6 format for ppm images. Size of the image is: 776*602
I am a newbie for Linux Shell Commands. Is this the Right section for this Question ? Please tell me if i am not clear in my explanation. Thanks for any reply.
I have a problem while convertimg ppm image files to YUV format.i have these commands:
export dir="out1/"
(
i=0
for file in `find $dir -name "out1*" |sort`
do
i=0
x=10
cat $file
done
)|ppmtoy4m -F 25:1|mpeg2enc -f 8 -o exp.m1v
I am giving ppm images as INPUT and after some calculation(in C Language) i am making OUTPUT images to "out1" folder. With the above commands, i am getting "bad raw ppm magic number" error when piped to ppmto4ym command.
I have p6 format for ppm images. Size of the image is: 776*602
I am a newbie for Linux Shell Commands. Is this the Right section for this Question ? Please tell me if i am not clear in my explanation. Thanks for any reply.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
i am gettng : "Horizontal size is greater than permitted in specified level " in the command mpeg2enc -f 8 -o exp.m1v
if i remove -f 8 in the above command, i am getting a warning msg as: "Error reading from header(1) : code parameter out of range."
Could you please tell me what might be the problem?
Thanks for your patience.
if i remove -f 8 in the above command, i am getting a warning msg as: "Error reading from header(1) : code parameter out of range."
Could you please tell me what might be the problem?
Thanks for your patience.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
even though i have some more questions, my question has been answered. so, i will accept your answers now and will post a new question later.
thanks again.
thanks again.
ASKER
Dear experts
i tried for the scaling of the image using y4mscaler
ls -1 dimas* | sort | xargs -n1 ppmtoy4m -F 25:1 | /y4mscaler-0.6.2-bin/y4msc aler -I sar=1:1 -O sar=PAL -O size=704*576 | mpeg2enc -f 8 -o video1.m1v
but i have some errors
ERROR: Could not read YUV4MPEG header: system error (failed read/write)!
xargs: ppmtoy4m: terminated by signal 13
what is this xargs terminated by signal 13 means and how should i solve it
i have installed the y4mscaler ...but it also says
/y4mscaler-0.6.2-bin/y4msc aler: No match.
could you please tell me what is this problem all about and how to tackle it.
thanks for your patience
i tried for the scaling of the image using y4mscaler
ls -1 dimas* | sort | xargs -n1 ppmtoy4m -F 25:1 | /y4mscaler-0.6.2-bin/y4msc
but i have some errors
ERROR: Could not read YUV4MPEG header: system error (failed read/write)!
xargs: ppmtoy4m: terminated by signal 13
what is this xargs terminated by signal 13 means and how should i solve it
i have installed the y4mscaler ...but it also says
/y4mscaler-0.6.2-bin/y4msc
could you please tell me what is this problem all about and how to tackle it.
thanks for your patience
You can try to use "ppmtoy4m" to test convert one to see if there is any problem.
also:
ls -al /y4mscaler-0.6.2-bin/y4msc aler
see what you get, if the file permissions is correct, then try to test convert just one file
to make sure that your commandline syntax is correct.
also:
ls -al /y4mscaler-0.6.2-bin/y4msc
see what you get, if the file permissions is correct, then try to test convert just one file
to make sure that your commandline syntax is correct.
ASKER
Thanks for ur reply.....i have had no chance to try yesterday..i will check it tonight and come back to u tomorrow..
bye....