Bug #1198
Arabic numbers being written in command line args for ffmpeg
Status: | In Progress | Start date: | 04/26/2013 | |
---|---|---|---|---|
Priority: | High | Due date: | ||
Assignee: | n8fr8 | % Done: | 0% | |
Category: | - | |||
Target version: | Bugs | |||
Component: |
Description
On 04/26/2013 08:18 AM, Bethel wrote:
From this log, you sent, I have discovered a very fun issues related to localization. This should only be happening in Photo Essays, but it is possible it could also be happening with audio and video as well. I will test and see.
Here is one of our render commands below... you can see that the file names like "image-???.jpg" are actually being written in Arabic, since the phone is set to Arabic:
D/StoryMaker(14453): video:23kB audio:0kB global headers:0kB muxing overhead 100.000000%???.jpg
D/FFMPEG (14453): /data/data/info.guardianproject.mrapp/app_bin/ffmpeg -y -i /data/data/info.guardianproject.mrapp/app_stories/17/1366976356366smktmp.jpg -s 720x480 /data/data/info.guardianproject.mrapp/app_stories/17/image
While this is very cool that it is possible, it is actually screwing up our rendering code, because we expect the numbers to be encoded in English.
When we later look for the images we expect to be numnbered image-001.jpg, image-002.jpg, etc, the ffmpeg code cannot find them:
D/FFMPEG (14453): /data/data/info.guardianproject.mrapp/app_bin/ffmpeg y -loop 0 -f image2 -r 1/5 -i /data/data/info.guardianproject.mrapp/app_stories/17/image%03d.jpg strict -2 /data/data/info.guardianproject.mrapp/app_stories/17/tmp.mpg%03d.jpg: No such file or directory
D/StoryMaker(14453): /data/data/info.guardianproject.mrapp/app_stories/17/image
So, this is a GREAT find, and I am both amazed this is happening, and also I feel slightly dumb that I have never encountered this or did not expect it.
Working on a fix now...
+n
History
#1 Updated by SteveWyshy over 4 years ago
- Target version changed from Beta 3 to Bugs