Skip to content

Instantly share code, notes, and snippets.

@parshap

parshap/saved Secret

Last active December 20, 2015 16:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parshap/7e7d174db24ed061ae3b to your computer and use it in GitHub Desktop.
Save parshap/7e7d174db24ed061ae3b to your computer and use it in GitHub Desktop.
ffmpeg mp3 issue
> mpeg -i test.mp3 -codec copy -f mp3 pipe:1 > piped.mp3
ffmpeg version N-55127-g11ace70 Copyright (c) 2000-2013 the FFmpeg developers
built on Aug 1 2013 12:49:10 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
configuration:
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
Input #0, mp3, from 'test.mp3':
Metadata:
artist : Nine Inch Nails
album : The Slip
encoded_by : LAME
title : 999,999
composer : Trent Reznor
track : 1/10
disc : 1/1
date : 2008
Duration: 00:01:25.13, start: 0.000000, bitrate: 294 kb/s
Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 216 kb/s
Stream #0:1: Video: mjpeg, yuvj444p, 1200x1200 [SAR 300:300 DAR 1:1], 90k tbr, 90k tbn, 90k tbc
Metadata:
title :
comment : Other
Stream #0:2: Video: mjpeg, yuvj444p, 1200x1200 [SAR 300:300 DAR 1:1], 90k tbr, 90k tbn, 90k tbc
Metadata:
title :
comment : Other
Output #0, mp3, to 'pipe:1':
Metadata:
TPE1 : Nine Inch Nails
TALB : The Slip
TENC : LAME
TIT2 : 999,999
TCOM : Trent Reznor
TRCK : 1/10
TPOS : 1/1
TDRL : 2008
TSSE : Lavf55.12.102
Stream #0:0: Video: mjpeg, yuvj444p, 1200x1200 [SAR 300:300 DAR 1:1], q=2-31, 90k tbn, 90k tbc
Metadata:
title :
comment : Other
Stream #0:1: Audio: mp3, 44100 Hz, stereo, 216 kb/s
Stream mapping:
Stream #0:1 -> #0:0 (copy)
Stream #0:0 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame= 1 fps=0.0 q=-1.0 Lsize= 2592kB time=00:01:25.13 bitrate= 249.4kbits/s
video:346kB audio:2246kB subtitle:0 global headers:0kB muxing overhead 0.008515%
> ffprobe -show_format piped.mp3
ffprobe version N-55127-g11ace70 Copyright (c) 2007-2013 the FFmpeg developers
built on Aug 1 2013 12:49:10 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
configuration:
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
[mp3 @ 0x9636100] Header missing
Last message repeated 1 times
[mp3 @ 0x9635860] Estimating duration from bitrate, this may be inaccurate
Input #0, mp3, from 'piped.mp3':
Duration: 00:02:03.49, start: 0.000000, bitrate: 171 kb/s
Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 171 kb/s
[FORMAT]
filename=piped.mp3
nb_streams=1
nb_programs=0
format_name=mp3
format_long_name=MP2/3 (MPEG audio layer 2/3)
start_time=0.000000
duration=123.487110
size=2654340
bit_rate=171959
[/FORMAT]
> ffmpeg -i test.mp3 -codec copy -f mp3 saved.mp3
ffmpeg version N-55127-g11ace70 Copyright (c) 2000-2013 the FFmpeg developers
built on Aug 1 2013 12:49:10 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
configuration:
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
Input #0, mp3, from 'test.mp3':
Metadata:
artist : Nine Inch Nails
album : The Slip
encoded_by : LAME
title : 999,999
composer : Trent Reznor
track : 1/10
disc : 1/1
date : 2008
Duration: 00:01:25.13, start: 0.000000, bitrate: 294 kb/s
Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 216 kb/s
Stream #0:1: Video: mjpeg, yuvj444p, 1200x1200 [SAR 300:300 DAR 1:1], 90k tbr, 90k tbn, 90k tbc
Metadata:
title :
comment : Other
Stream #0:2: Video: mjpeg, yuvj444p, 1200x1200 [SAR 300:300 DAR 1:1], 90k tbr, 90k tbn, 90k tbc
Metadata:
title :
comment : Other
Output #0, mp3, to 'saved.mp3':
Metadata:
TPE1 : Nine Inch Nails
TALB : The Slip
TENC : LAME
TIT2 : 999,999
TCOM : Trent Reznor
TRCK : 1/10
TPOS : 1/1
TDRL : 2008
TSSE : Lavf55.12.102
Stream #0:0: Video: mjpeg, yuvj444p, 1200x1200 [SAR 300:300 DAR 1:1], q=2-31, 90k tbn, 90k tbc
Metadata:
title :
comment : Other
Stream #0:1: Audio: mp3, 44100 Hz, stereo, 216 kb/s
Stream mapping:
Stream #0:1 -> #0:0 (copy)
Stream #0:0 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame= 1 fps=0.0 q=-1.0 Lsize= 2593kB time=00:01:25.13 bitrate= 249.5kbits/s
video:346kB audio:2246kB subtitle:0 global headers:0kB muxing overhead 0.035907%
> ffprobe -show_format saved.mp3
ffprobe version N-55127-g11ace70 Copyright (c) 2007-2013 the FFmpeg developers
built on Aug 1 2013 12:49:10 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
configuration:
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
Input #0, mp3, from 'saved.mp3':
Metadata:
artist : Nine Inch Nails
album : The Slip
encoded_by : LAME
title : 999,999
composer : Trent Reznor
track : 1/10
disc : 1/1
date : 2008
encoder : Lavf55.12.102
Duration: 00:01:25.13, start: 0.000000, bitrate: 249 kb/s
Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 216 kb/s
Stream #0:1: Video: mjpeg, yuvj444p, 1200x1200 [SAR 300:300 DAR 1:1], 90k tbr, 90k tbn, 90k tbc
Metadata:
title :
comment : Other
[FORMAT]
filename=saved.mp3
nb_streams=2
nb_programs=0
format_name=mp3
format_long_name=MP2/3 (MPEG audio layer 2/3)
start_time=0.000000
duration=85.133061
size=2655067
bit_rate=249498
TAG:artist=Nine Inch Nails
TAG:album=The Slip
TAG:encoded_by=LAME
TAG:title=999,999
TAG:composer=Trent Reznor
TAG:track=1/10
TAG:disc=1/1
TAG:date=2008
TAG:encoder=Lavf55.12.102
[/FORMAT]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment