IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
ffmpeg audio codec problem
fruminous
post Jul 31 2013, 00:11
Post #1





Group: Members
Posts: 1
Joined: 31-July 13
Member No.: 109376



I have some m4a files that will not play properly using the google music player app on my Android phone, although they play fine on most everything else. I thought the problem was the container and thought "ffmpeg -i bad.m4a -codec copy good.m4a" might help. However, when I run on the problem files, I get error messages. Running this command on non-problem files has not generated error messages.

Please suggest ways to fix (other than re-encoding).

CODE
ffmpeg -i "01 - The Day Begins.m4a" -codec copy day.m4a
ffmpeg version N-55066-gc96b3ae Copyright (c) 2000-2013 the FFmpeg developers
  built on Jul 29 2013 18:05:45 with gcc 4.7.3 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetyp
e --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --ena
ble-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-l
ibopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libsp
eex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-
amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --
enable-libxvid --enable-zlib
  libavutil      52. 40.100 / 52. 40.100
  libavcodec     55. 19.100 / 55. 19.100
  libavformat    55. 12.102 / 55. 12.102
  libavdevice    55.  3.100 / 55.  3.100
  libavfilter     3. 82.100 /  3. 82.100
  libswscale      2.  4.100 /  2.  4.100
  libswresample   0. 17.103 /  0. 17.103
  libpostproc    52.  3.100 / 52.  3.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000000002da300] stream 0, timescale not set
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '01 - The Day Begins.m4a':
  Metadata:
    major_brand     : m4a
    minor_version   : 0
    compatible_brands: M4A mp4isom
    creation_time   : 2003-07-06 20:27:46
    track           : 1
    genre           : Rock
    title           : The Day Begins
    artist          : Moody Blues
    album           : Days of Future Passed
    date            : 1967
  Duration: 00:05:50.83, start: 0.000000, bitrate: 166 kb/s
    Stream #0:0(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 15
9 kb/s
    Metadata:
      creation_time   : 2003-07-06 20:27:46
      handler_name    : Apple Sound Media Handler
    Stream #0:1(eng): Data: none (mp4s / 0x7334706D)
    Metadata:
      creation_time   : 2003-07-06 20:27:46
      handler_name    : Apple MPEG-4 Scene Media Handler
    Stream #0:2(eng): Data: none (mp4s / 0x7334706D)
    Metadata:
      creation_time   : 2003-07-06 20:27:46
      handler_name    : Apple MPEG-4 ODSM Media Handler
    Stream #0:3: Video: png, rgb24, 240x240 [SAR 2834:2834 DAR 1:1], 90k tbr, 90
k tbn, 90k tbc
[ipod @ 000000000031dd40] track 0: could not find tag, codec not currently suppo
rted in container
Output #0, ipod, to 'day.m4a':
  Metadata:
    major_brand     : m4a
    minor_version   : 0
    compatible_brands: M4A mp4isom
    date            : 1967
    track           : 1
    genre           : Rock
    title           : The Day Begins
    artist          : Moody Blues
    album           : Days of Future Passed
    encoder         : Lavf55.12.102
    Stream #0:0: Video: png, rgb24, 240x240 [SAR 2834:2834 DAR 1:1], q=2-31, 90k
tbn, 90k tbc
    Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, 159 kb/s

    Metadata:
      creation_time   : 2003-07-06 20:27:46
      handler_name    : Apple Sound Media Handler
Stream mapping:
  Stream #0:3 -> #0:0 (copy)
  Stream #0:0 -> #0:1 (copy)
Could not write header for output file #0 (incorrect codec parameters ?): Error
number -1 occurred
Go to the top of the page
+Quote Post
LithosZA
post Jul 31 2013, 07:38
Post #2





Group: Members
Posts: 180
Joined: 26-February 11
Member No.: 88525



I am not completely sure if it is normal that it sees the PNG metadata image as video. Have you tried to add -vn?
ffmpeg -i "01 - The Day Begins.m4a" -acodec copy -vn day.m4a
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 17th April 2014 - 08:31