Discussion:
[FFmpeg-user] Help transcoding surestream .rm to .mp4 and -map commands
Jim Shultz
2010-07-22 21:45:59 UTC
Permalink
First post to the user group.

I have been trying to find a solution to use ffmpeg to transcode old
RealVideo files which were encoded as multi-bitrate files (aka
SureStream) and extract the hightest bitrate video and audio streams and
repackage them into either an mpeg1 file or an mp4 file.

I am running ffmpeg on a Windows machine but could run on linux if
necessary. I have more cpu power on my windows machine.

These files also have event streams in them, so it complicates things a
bit since the audio and video streams are not the first streams.

I cannot get a good transcode with these files using ffmpeg. I have been
trying the -map command with no success.

Here is an example of the information ffmpeg finds in the file:

C:\Program Files\ffmpeg>ffmpeg -i d:\rmtest\Anderson1.rm
FFmpeg version SVN-r21231-Sherpya, Copyright (c) 2000-2010 Fabrice
Bellard, et al.
built on Jan 16 2010 05:42:31 with gcc 4.2.5 20080919 (prerelease) [Sherpya]
libavutil 50. 7. 0 / 50. 7. 0
libavcodec 52.47. 0 / 52.47. 0
libavformat 52.47. 0 / 52.47. 0
libavdevice 52. 2. 0 / 52. 2. 0
libavfilter 1.15. 0 / 1.15. 0
libswscale 0. 8. 0 / 0. 8. 0
libpostproc 51. 2. 0 / 51. 2. 0
[NULL @ 01938300]Unsupported video codec
[NULL @ 019399b0]Unsupported video codec
[NULL @ 003ee260]Unsupported video codec
[NULL @ 003ee7f0]Unsupported video codec
[NULL @ 019427a0]Unsupported video codec
[NULL @ 01942e10]Unsupported video codec
[rm @ 003ed070]max_analyze_duration reached
Input #0, rm, from 'd:\rmtest\Anderson1.rm':
Metadata:
title : Understanding Flight
author : David Anderson
copyright : ?2001
comment :
Duration: 00:55:00.94, start: 0.000000, bitrate: 775 kb/s
Stream #0.0: Data: 0x0000, 64 kb/s
Stream #0.1: Data: 0x0000, 385 kb/s
Stream #0.2: Data: 0x0000
Stream #0.3: Data: 0x0000, 0 kb/s
Stream #0.4: Audio: sipr, 8000 Hz, 1 channels, 6 kb/s
Stream #0.5: Audio: sipr, 8000 Hz, 1 channels, flt, 6 kb/s
Stream #0.6: Audio: sipr, 8000 Hz, 1 channels, 6 kb/s
Stream #0.7: Video: rv30, 240x180, 27 kb/s, 12 tbr, 1k tbn, 12 tbc
Stream #0.8: Video: rv30, yuv420p, 240x180, 27 kb/s, 12.05 fps, 12 tbr,
1k tbn, 12 tbc
Stream #0.9: Video: rv30, 240x180, 27 kb/s, 12 tbr, 1k tbn, 12 tbc
Stream #0.10: Video: rv30, 240x180, 27 kb/s, 12 tbr, 1k tbn, 12 tbc
Stream #0.11: Video: rv30, 240x180, 19 kb/s, 12 tbr, 1k tbn, 12 tbc
Stream #0.12: Video: rv30, 240x180, 13 kb/s, 12 tbr, 1k tbn, 12 tbc
Stream #0.13: Audio: cook, 44100 Hz, 1 channels, 64 kb/s
Stream #0.14: Video: rv30, 240x180, 385 kb/s, 12 tbr, 1k tbn, 12 tbc
Stream #0.15: Video: rv30, 240x180, 273 kb/s, 12 tbr, 1k tbn, 12 tbc
Stream #0.16: Data: 0x0000, 0 kb/s
Stream #0.17: Data: 0x0000, 0 kb/s
Stream #0.18: Video: rv30, 240x180, 13 kb/s, 12 tbr, 1k tbn, 12 tbc
At least one output file must be specified

Ideally they should become mp4 files with aac audio. If I need a two
step process (rm --> mpeg --> mp4), I am OK with that (but would rather
not have to). I am not sure if I have all of the right codecs. If I can
work this out with one file, I am hoping to batch process several
thousand files to transcode.

Any suggestions?

thanks in advance.

Jim
belcampo
2010-07-23 06:33:31 UTC
Permalink
Post by Jim Shultz
First post to the user group.
I have been trying to find a solution to use ffmpeg to transcode old
RealVideo files which were encoded as multi-bitrate files (aka
SureStream) and extract the hightest bitrate video and audio streams and
repackage them into either an mpeg1 file or an mp4 file.
I am running ffmpeg on a Windows machine but could run on linux if
necessary. I have more cpu power on my windows machine.
These files also have event streams in them, so it complicates things a
bit since the audio and video streams are not the first streams.
I cannot get a good transcode with these files using ffmpeg. I have been
trying the -map command with no success.
C:\Program Files\ffmpeg>ffmpeg -i d:\rmtest\Anderson1.rm
FFmpeg version SVN-r21231-Sherpya, Copyright (c) 2000-2010 Fabrice
Bellard, et al.
built on Jan 16 2010 05:42:31 with gcc 4.2.5 20080919 (prerelease) [Sherpya]
libavutil 50. 7. 0 / 50. 7. 0
libavcodec 52.47. 0 / 52.47. 0
libavformat 52.47. 0 / 52.47. 0
libavdevice 52. 2. 0 / 52. 2. 0
libavfilter 1.15. 0 / 1.15. 0
libswscale 0. 8. 0 / 0. 8. 0
libpostproc 51. 2. 0 / 51. 2. 0
title : Understanding Flight
author : David Anderson
copyright : ?2001
Duration: 00:55:00.94, start: 0.000000, bitrate: 775 kb/s
Stream #0.0: Data: 0x0000, 64 kb/s
Stream #0.1: Data: 0x0000, 385 kb/s
Stream #0.2: Data: 0x0000
Stream #0.3: Data: 0x0000, 0 kb/s
Stream #0.4: Audio: sipr, 8000 Hz, 1 channels, 6 kb/s
Stream #0.5: Audio: sipr, 8000 Hz, 1 channels, flt, 6 kb/s
Stream #0.6: Audio: sipr, 8000 Hz, 1 channels, 6 kb/s
Stream #0.7: Video: rv30, 240x180, 27 kb/s, 12 tbr, 1k tbn, 12 tbc
Stream #0.8: Video: rv30, yuv420p, 240x180, 27 kb/s, 12.05 fps, 12 tbr,
1k tbn, 12 tbc
Stream #0.9: Video: rv30, 240x180, 27 kb/s, 12 tbr, 1k tbn, 12 tbc
Stream #0.10: Video: rv30, 240x180, 27 kb/s, 12 tbr, 1k tbn, 12 tbc
Stream #0.11: Video: rv30, 240x180, 19 kb/s, 12 tbr, 1k tbn, 12 tbc
Stream #0.12: Video: rv30, 240x180, 13 kb/s, 12 tbr, 1k tbn, 12 tbc
Stream #0.13: Audio: cook, 44100 Hz, 1 channels, 64 kb/s
Stream #0.14: Video: rv30, 240x180, 385 kb/s, 12 tbr, 1k tbn, 12 tbc
Stream #0.15: Video: rv30, 240x180, 273 kb/s, 12 tbr, 1k tbn, 12 tbc
Stream #0.16: Data: 0x0000, 0 kb/s
Stream #0.17: Data: 0x0000, 0 kb/s
Stream #0.18: Video: rv30, 240x180, 13 kb/s, 12 tbr, 1k tbn, 12 tbc
At least one output file must be specified
Ideally they should become mp4 files with aac audio. If I need a two
step process (rm --> mpeg --> mp4), I am OK with that (but would rather
not have to). I am not sure if I have all of the right codecs. If I can
work this out with one file, I am hoping to batch process several
thousand files to transcode.
Any suggestions?
thanks in advance.
Jim
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user at mplayerhq.hu
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
ffmpeg -i d:\rmtest\Anderson1.rm -acodec libfaac -ab 64k -ar 44100 -ac 1
-vcodec codec-youwant bitrate-needed -map 0:8 -map 0:13 -f mp4 result.mp4

I think this will give you what you want, the 'best' video- and
audio-soure to the wanted aac in an mp4 container. It looks that the
needed codecs are available in your ffmpeg version.
Also have a look
http://howto-pages.org/ffmpeg/#map

Loading...