Error running command: could not get mpeg2 profile and level av_interleaved_write_frame(): Operation not permitted

Questions involving a Windows version of FFmpeg.
Post Reply
APerson
Posts: 1
Joined: Wed Sep 25, 2019 8:39 am

Error running command: could not get mpeg2 profile and level av_interleaved_write_frame(): Operation not permitted

Post by APerson » Wed Sep 25, 2019 8:43 am

HI Community,

I hope you can help me :(

this is my command but i get an error

Code: Select all

ffmpeg -i video.mpeg -i audio.wav -c copy -map 0:0 -map 1:0 out.mxf
even if the input for video is mpg, m2v

Code: Select all

ffmpeg version N-94821-g976617c7d2 Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 9.1.1 (GCC) 20190807
  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf
  libavutil      56. 35.100 / 56. 35.100
  libavcodec     58. 56.101 / 58. 56.101
  libavformat    58. 32.104 / 58. 32.104
  libavdevice    58.  9.100 / 58.  9.100
  libavfilter     7. 58.102 /  7. 58.102
  libswscale      5.  6.100 /  5.  6.100
  libswresample   3.  6.100 /  3.  6.100
  libpostproc    55.  6.100 / 55.  6.100
Input #0, mpegvideo, from 'video.mpeg':
  Duration: N/A, bitrate: N/A
    Stream #0:0: Video: mpeg2video (High), yuv420p(tv, top first), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 1200k tbn, 50 tbc
Guessed Channel Layout for Input Stream #1.0 : stereo
Input #1, wav, from 'audio.wav':
  Duration: 00:07:36.16, bitrate: 1536 kb/s
    Stream #1:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, stereo, s16, 1536 kb/s
Output #0, mxf, to 'out.mxf':
  Metadata:
    encoder         : Lavf58.32.104
    Stream #0:0: Video: mpeg2video (High), yuv420p(tv, top first), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 25 fps, 25 tbr, 25 tbn, 25 tbc
    Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, stereo, s16, 1536 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #1:0 -> #0:1 (copy)
Press [q] to stop, [?] for help
[mxf @ 000001b5e48f9680] could not get mpeg2 profile and level
av_interleaved_write_frame(): Operation not permitted

pandy
Posts: 255
Joined: Mon Feb 24, 2014 1:46 pm

Re: Error running command: could not get mpeg2 profile and level av_interleaved_write_frame(): Operation not permitted

Post by pandy » Mon Oct 14, 2019 6:17 pm

Perhaps try to simplify your original commandline:

Code: Select all

ffmpeg -i video.mpeg -i audio.wav -c copy out.mxf

Reino
Posts: 91
Joined: Thu Aug 22, 2013 5:14 pm
Contact:

Re: Error running command: could not get mpeg2 profile and level av_interleaved_write_frame(): Operation not permitted

Post by Reino » Tue Oct 15, 2019 11:31 pm

There's nothing wrong with the mapping. Your suggested -map 1:1 doesn't even exist.

APerson has also posted this on SO and according to "llogan" this is probably a bug.

pandy
Posts: 255
Joined: Mon Feb 24, 2014 1:46 pm

Re: Error running command: could not get mpeg2 profile and level av_interleaved_write_frame(): Operation not permitted

Post by pandy » Wed Oct 16, 2019 5:28 pm

Reino wrote:
Tue Oct 15, 2019 11:31 pm
There's nothing wrong with the mapping. Your suggested -map 1:1 doesn't even exist.
True, my fault - sorry

Post Reply
'