Note that there are some explanatory texts on larger screens.

plurals
  1. POFFMPEG conversion to MXF
    text
    copied!<p>I have to wrap an MPEG2 video file in an MXF container and convert the audio in the process. I have the MXF wrapping working but it won't convert the audio stream (which needs to be 16bit, 48kHz Linear PCM).</p> <p>Here's what I'm trying:</p> <pre><code>ffmpeg -i input.mpg -map 0:0 -map 0:1 -vcodec copy -f mpeg2video -acodec pcm_s16le -ar 48000 -ac 2 output.mxf </code></pre> <p>Results:</p> <pre><code>ffmpeg version 0.10 Copyright (c) 2000-2012 the FFmpeg developers built on Jan 30 2012 17:49:23 with gcc 4.2.1 (Apple Inc. build 5666) (dot 3) configuration: *{snipped}* runtime-cpudetect libavutil 51. 34.101 / 51. 34.101 libavcodec 53. 60.100 / 53. 60.100 libavformat 53. 31.100 / 53. 31.100 libavdevice 53. 4.100 / 53. 4.100 libavfilter 2. 60.100 / 2. 60.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 6.100 / 0. 6.100 libpostproc 52. 0.100 / 52. 0.100 [mpeg @ 0x10201ae00] max_analyze_duration 5000000 reached at 5000000 Input #0, mpeg, from '/Volumes/Extra/test.mpg': Duration: 00:00:59.97, start: 0.192911, bitrate: 6513 kb/s Stream #0:0[0x1c0]: Audio: mp2, 48000 Hz, stereo, s16, 384 kb/s Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x576 [SAR 16:15 DAR 4:3], 12000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc Output #0, mpeg2video, to 'video.mxf': Metadata: encoder : Lavf53.31.100 Stream #0:0: Video: mpeg2video, yuv420p, 720x576 [SAR 16:15 DAR 4:3], q=2-31, 12000 kb/s, 25 fps, 90k tbn, 25 tbc Stream mapping: Stream #0:1 -&gt; #0:0 (copy) Press [q] to stop, [?] for help frame= 1500 fps= 0 q=-1.0 Lsize= 43949kB time=00:00:59.96 bitrate=6004.6kbits/s video:43949kB audio:0kB global headers:0kB muxing overhead 0.000000% </code></pre> <p>The video plays fine as the MXF, but there is no audio stream at all. Any help would be great.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload