Re: [FFmpeg-user] Converting mp3 with included cover art into mp4 with cover art as video fails

2020-10-22 Thread Rimvydas
> Please test current FFmpeg git head and provide the complete,
> uncut console output.

Compiled ffmpeg with the current head. The same thing happens. Find the
full output below.

ffmpeg version N-99691-g1bf86ee907 Copyright (c) 2000-2020 the FFmpeg
developers
  built with Apple clang version 12.0.0 (clang-1200.0.32.2)
  configuration: --prefix=/usr/local --enable-gpl --enable-nonfree
--enable-libass --enable-libfdk-aac --enable-libfreetype
--enable-libmp3lame --enable-libvorbis --enable-libvpx --enable-libx264
--enable-libx265 --enable-libopus --enable-libxvid --samples=fate-suite
  libavutil  56. 60.100 / 56. 60.100
  libavcodec 58.111.101 / 58.111.101
  libavformat58. 62.100 / 58. 62.100
  libavdevice58. 11.102 / 58. 11.102
  libavfilter 7. 88.100 /  7. 88.100
  libswscale  5.  8.100 /  5.  8.100
  libswresample   3.  8.100 /  3.  8.100
  libpostproc55.  8.100 / 55.  8.100
Input #0, mp3, from '/Users/naktinis/data/audio/with_cover.mp3':
  Metadata:
title   : 2 - Glow Cloud
artist  : Night Vale Presents
album   : Welcome to Night Vale
genre   : Podcast
encoder : Lavf57.83.100
date: 2012
  Duration: 00:21:32.59, start: 0.011995, bitrate: 130 kb/s
Stream #0:0: Audio: mp3, 44100 Hz, stereo, fltp, 128 kb/s
Metadata:
  encoder : Lavf
Stream #0:1: Video: mjpeg (Baseline), yuvj420p(pc,
bt470bg/unknown/unknown), 2228x2228 [SAR 300:300 DAR 1:1], 90k tbr, 90k
tbn, 90k tbc (attached pic)
Metadata:
  title   : Final_WelcomeToNightVale_Logo_Square2.jpg
  comment : Cover (front)
File 'out.mp4' already exists. Overwrite? [y/N] y
Stream mapping:
  Stream #0:1 -> #0:0 (mjpeg (native) -> h264 (libx264))
  Stream #0:0 -> #0:1 (mp3 (mp3float) -> aac (native))
Press [q] to stop, [?] for help
[mp4 @ 0x7fab1b814400] Frame rate very high for a muxer not efficiently
supporting it.
Please consider specifying a lower framerate, a different muxer or -vsync 2
[libx264 @ 0x7fab1c808e00] using SAR=1/1
[libx264 @ 0x7fab1c808e00] MB rate (176400) > level limit (16711680)
[libx264 @ 0x7fab1c808e00] using cpu capabilities: MMX2 SSE2Fast SSSE3
SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 0x7fab1c808e00] profile High, level 6.2, 4:2:0, 8-bit
[libx264 @ 0x7fab1c808e00] 264 - core 160 r3011M cde9a93 - H.264/MPEG-4 AVC
codec - Copyleft 2003-2020 - http://www.videolan.org/x264.html - options:
cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1
psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1
cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12
lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0
bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1
b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25
scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0
qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
[mp4 @ 0x7fab1b814400] Could not find tag for codec h264 in stream #0,
codec not currently supported in container
Could not write header for output file #0 (incorrect codec parameters ?):
Invalid argument
Error initializing output stream 0:1 --
[aac @ 0x7fab1c80a600] Qavg: nan
Conversion failed!


On Wed, Oct 21, 2020 at 7:35 PM Carl Eugen Hoyos  wrote:

> Am Mi., 21. Okt. 2020 um 12:52 Uhr schrieb Rimvydas :
>
> > Running "ffmpeg -i in.mp3 out.mp4" fails with:
>
> Please test current FFmpeg git head and provide the complete,
> uncut console output.
>
> Carl Eugen
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".



-- 
Rimvydas
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Converting mp3 with included cover art into mp4 with cover art as video fails

2020-10-21 Thread Carl Eugen Hoyos
Am Mi., 21. Okt. 2020 um 12:52 Uhr schrieb Rimvydas :

> Running "ffmpeg -i in.mp3 out.mp4" fails with:

Please test current FFmpeg git head and provide the complete,
uncut console output.

Carl Eugen
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-user] Converting mp3 with included cover art into mp4 with cover art as video fails

2020-10-21 Thread Rimvydas
Hi,

I have an mp3 file with two streams:
Stream #0:0: Audio: mp3
Stream #0:1: Video: mjpeg

I'm trying to produce an mp4 file with two streams as well:
Stream #0:0: Audio: aac
Stream #0:1: Video: h264

Running "ffmpeg -i in.mp3 out.mp4" fails with:
[mp4 @ 0x55c1527c66c0] Could not find tag for codec h264 in stream #0,
codec not currently supported in container
Could not write header for output file #0 (incorrect codec parameters ?):
Invalid argument
Error initializing output stream 0:1 --

However, if I extract the image in a separate step and then mux it back, it
works as expected. This works:
ffmpeg -i in.mp3 cover.jpg
ffmpeg -y -i in.mp3 -i cover.jpg -map 0:a:0 -map 1:0 out.mp4

Also, converting to a webm container works as expected too:
ffmpeg -i in.mp3 out.webm

How come when creating an mp4 a "Video: mjpeg" stream works from ".jpg"
input, but not from ".mp3" input? How come this issue appears only when
converting to "mp4", but not to "webm". This looks like a bug, but I hope
there's a simple explanation and I'm missing something.

Versions:
ffmpeg version 4.3.1-4ubuntu1
x264 version: core 160 r3011 cde9a93

Input's ffprobe stream info:
  Duration: 00:21:32.59, start: 0.011995, bitrate: 130 kb/s
Stream #0:0: Audio: mp3, 44100 Hz, stereo, fltp, 128 kb/s
Metadata:
  encoder : Lavf
Stream #0:1: Video: mjpeg (Baseline), yuvj420p(pc,
bt470bg/unknown/unknown), 2228x2228 [SAR 300:300 DAR 1:1], 90k tbr, 90k
tbn, 90k tbc (attached pic)
Metadata:
  title   : Cover.jpg
  comment : Cover (front)

Extracted cover's ffprobe stream info:
  Duration: 00:00:00.04, start: 0.00, bitrate: 20836 kb/s
Stream #0:0: Video: mjpeg (Baseline), yuvj420p(pc,
bt470bg/unknown/unknown), 2228x2228 [SAR 300:300 DAR 1:1], 25 tbr, 25 tbn,
25 tbc

--
Rimvydas
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".