OS2 World.Com Forum
2012.05.23, 17:56:20
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
OS2 World.Com Forum
>
OS/2 - Technical
>
Programming
>
OS/2 command processor ?
Pages: [
1
]
« previous
next »
Print
Author
Topic: OS/2 command processor ? (Read 1540 times)
CDRWSel
Sr. Member
Posts: 419
OS/2 command processor ?
«
on:
2010.06.22, 05:09:16 »
Hi team,
I have a problem and didn't find how to bypass it using a rexx batch file.
I can issue any ffmpeg command from a batch (cmd) file but one kind of command always fail !
Here is the sample:
/* */
'ffmpeg -f image2 -i "e:\ce2mp3\img%04d.gif" -sameq -f mpeg2video file.mpg'
return
Very easy isn't it except that the os/2 cmd processor interprets the %0 using the bach program name which is here test.cmd
Following error appears then !
e:\ce2mp3\imgtest4d.gif: No such file or directory
How to prevent this issue and have ffmpeg looking for numbered img0001.gif.. img0002.gif etc... ?
Using the cmd as rexx or not rexx gives the same result.
I need this command been issued from a batch file !
The same command issued from an OS/2 prompt command work well
[E:\ffmpeg-r23406]ffmpeg -f image2 -i "e:\ce2mp3\img%04d.gif" -sameq -f mpeg2vid
eo file.mpg
FFmpeg version SVN-r23406, Copyright (c) 2000-2010 the FFmpeg developers
built on Jun 1 2010 19:37:55 with gcc 4.4.4
configuration: --prefix=/extras --enable-gpl --enable-libmp3lame --enable-libf
aad --enable-libfaac --enable-libxvid --enable-libx264 --enable-libtheora --pref
ix=/extras --enable-postproc --enable-nonfree
libavutil 50.16. 0 / 50.16. 0
libavcodec 52.72. 1 / 52.72. 1
libavformat 52.67. 0 / 52.67. 0
libavdevice 52. 2. 0 / 52. 2. 0
libavfilter 1.20. 0 / 1.20. 0
libswscale 0.10. 0 / 0.10. 0
libpostproc 51. 2. 0 / 51. 2. 0
Input #0, image2, from 'e:\ce2mp3\img%04d.gif':
Duration: 00:00:00.12, start: 0.000000, bitrate: N/A
etc...
Suggestions are welcome
Thanks helping me.
Cheers/2
Remy
Logged
CDRWSel
Sr. Member
Posts: 419
Re: OS/2 command processor ?
«
Reply #1 on:
2010.06.22, 11:20:29 »
I just talk with an old DOS specialist !
He told me be a normal issue and that I have to add one more % to tell command process to not interpret the %0 specified into the command. Name IMG%04d.gif should then be coded as IMG%%04d.gif
I'll do it a try this evening to verify...
During the time I asked the question and this morning, I found a bypass which works.
I changed the *.cmd file which has variables + a command line to a *.txt (or any other type of text file) and wrote a very small rexx compiled exe which reads this parameter file and does an nterpret. All is then well executed.
Bye/2
Remy
Logged
CDRWSel
Sr. Member
Posts: 419
Re: OS/2 command processor ?
«
Reply #2 on:
2010.06.28, 23:45:00 »
Oh! I didn't give test results...
Yes it works.
replacing IMG%04d.gif by IMG%%04d.gif gives IMG%04d.gif as expected which is then correctly handled by ffmpeg.
That is the tric !
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
WebSite Information
-----------------------------
=> Article Discussions
=> Comments, Suggestions & Questions
-----------------------------
OS/2 - General
-----------------------------
=> Events
=> Marketplace
=> Polls
-----------------------------
OS/2 - Technical
-----------------------------
=> Applications
=> Communication
=> Games
=> Hardware
=> Internet
=> Mail-News
=> Multimedia
=> Networking
=> Programming
=> Setup & Installation
=> Utilities
=> Web applications
=> Storage
-----------------------------
OS/2 - SIGs
-----------------------------
=> Abandonware
=> CW-Multimedia
=> Doodle's ScreenSaver
=> Emulators
=> Hobbes Archive
=> ODIN
=> OS2 Petition
=> Rexx
=> Security
=> Socket Service
=> USB
=> XFree86
-----------------------------
OS2 World.Com Bounty System
-----------------------------
=> General Discussion
=> Open Bounties
=> Claimed Bounties
=> Development
-----------------------------
User Groups
-----------------------------
=> OS2 User Groups
=> OS2 User Group Denmark
=> OS2 User Group Germany
=> OS2 User Group Sweden
=> OS2 User Group Southern Europe
-----------------------------
Public Discussions
-----------------------------
=> General Advertisements
=> General Discussion
=> Off Topic discussions
Loading...