Jump to content

transcode from flac => missing 'mp3' at the end of the ffmpeg command line ?


Recommended Posts

Posted (edited)

hi, for the environment (debian wheezy):

2016-08-10 15:41:49.3754 Info Main: Emby	Command line: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe -programdata /var/lib/emby-server -ffmpeg /usr/bin/ffmpeg -ffprobe /usr/bin/ffprobe -restartpath /usr/lib/emby-server/restart.sh	Operating system: Unix 3.2.0.4	Processor count: 2	64-Bit OS: True	64-Bit Process: True	Program data path: /var/lib/emby-server	Mono: 4.2.1 (Stable 4.2.1.102/6dd2d0d Fri Dec  4 18:45:15 UTC 2015)	Application Path: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe

The issue :  when i want to play a flac file from the web interface, there is nothing. It is ok for a MP3 file ... The log says :

	ApplicationName='/usr/bin/ffmpeg', CommandLine='-i file:"/mnt/Data2/Musique/Michael Jackson/Got to be There/01 - Ain't No Sunshine.flac" -threads 0 -vn  -id3v2_version 3 -write_id3v1 1 -y "/Data/tmp/transcoding-temp/0edcefd033c97c56816ee735a3208a30"', CurrentDirectory='', Native error= Cannot find the specified file
	System.ComponentModel.Win32Exception

anf it is the same error if I copy paste the ffmpeg command line in a console...

 

but if i put this in a console (with a mp3 at the end), it works ( ffmpeg transcode the file in the temp directory). Is there a option that i miss to modify tthe transcode command line ?

ffmpeg -i file:"/mnt/Data2/Musique/Michael Jackson/Got to be There/01 - Ain't No Sunshine.flac" -y "/Data/tmp/transcoding-temp/deb3fa5179cde400d041f179a6724792.mp3"

as a complement, i use this static version of ffmpeg, could it be a pb ? :

ffmpeg version N-81308-g369ed11-static http://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 5.4.0 (Debian 5.4.0-6) 20160609
  configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --enable-libmp3lame --enable-libx264 --enable-libx265 --enable-libwebp --enable-libspeex --enable-libvorbis --enable-libvpx --enable-libfreetype --enable-fontconfig --enable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvo-amrwbenc --enable-gray --enable-libopenjpeg --enable-libopus --enable-libass --enable-gnutls --enable-libvidstab --enable-libsoxr --enable-frei0r --enable-libfribidi --disable-indev=sndio --disable-outdev=sndio --enable-librtmp --enable-libmfx --enable-libzimg --cc=gcc
  libavutil      55. 28.100 / 55. 28.100
  libavcodec     57. 51.100 / 57. 51.100
  libavformat    57. 46.100 / 57. 46.100
  libavdevice    57.  0.102 / 57.  0.102
  libavfilter     6. 50.100 /  6. 50.100
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  1.100 /  2.  1.100
  libpostproc    54.  0.100 / 54.  0.100
Edited by bolbit
Posted

what emby app are you trying to play from?

Posted

hi.

i use the web interface.

i have another issue with the web interface when i want to play a movie, there is an error. ... and when i put the command from the log in a linux console it works

there is something that i dont understand...

Posted

The video issue seems to be related to the ffmpeg version. I swith to an auto compile static version with the help of the script from https://github.com/markus-perl/ffmpeg-build-script and now the video streaming is ok with the web player,

There is still an issue with a flac play :

2016-08-13 01:03:31.1758 Info App: /usr/bin/ffmpeg -i file:"/mnt/Data2/Musique/Michael Jackson/Off the wall/01 - Don't Stop 'Til You Get Enough.flac" -threads 0 -vn  -id3v2_version 3 -write_id3v1 1 -y "/Data/transcoding-temp/655bd69b70db86689919a223f3e1c084"2016-08-13 01:03:31.3107 Info App: FFMpeg exited with code 1

in a console :

 /usr/bin/ffmpeg -i file:"/mnt/Data2/Musique/Michael Jackson/Off the wall/01 - Don't Stop 'Til You Get Enough.flac" -threads 0 -vn  -id3v2_version 3 -write_id3v1 1 -y "/Data/transcoding-temp/debbdb50e250fb9ae7e3d2769bce7f80"

gives

ffmpeg version N-81323-gb5f30fe-static Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 4.7 (Debian 4.7.2-5)
  configuration: --arch=64 --prefix=/Data/bin/ffmpeg-build/workspace --extra-cflags=-I/Data/bin/ffmpeg-build/workspace/include --extra-ldflags=-L/Data/bin/ffmpeg-build/workspace/lib --extra-version=static --extra-cflags=--static --enable-static --disable-debug --disable-shared --disable-ffplay --disable-ffserver --disable-doc --enable-gpl --enable-version3 --enable-nonfree --enable-pthreads --enable-libvpx --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libx265 --enable-runtime-cpudetect --enable-libfdk-aac --enable-avfilter --enable-libopencore_amrwb --enable-libopencore_amrnb --enable-filters --enable-libvidstab
  libavutil      55. 28.100 / 55. 28.100
  libavcodec     57. 51.100 / 57. 51.100
  libavformat    57. 46.100 / 57. 46.100
  libavdevice    57.  0.102 / 57.  0.102
  libavfilter     6. 51.100 /  6. 51.100
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  1.100 /  2.  1.100
  libpostproc    54.  0.100 / 54.  0.100
Input #0, flac, from 'file:/mnt/Data2/Musique/Michael Jackson/Off the wall/01 - Don't Stop 'Til You Get Enough.flac':
  Metadata:
    GENRE           : Soul and R&B
    TITLE           : Don't Stop 'til You Get Enough
    RELEASECOUNTRY  : JP
    TOTALDISCS      : 1
    LABEL           : Epic
    TOTALTRACKS     : 19
    MUSICBRAINZ_ALBUMARTISTID: f27ec8db-af05-4f36-916e-3d57f91ecf5e
    DATE            : 2010-06-23
    disc            : 1
    TRACKTOTAL      : 19
    MUSICBRAINZ_RELEASETRACKID: 1da566a9-f1f9-45f0-98b5-904c96ee44d0
    ASIN            : B003IGMIYE
    ALBUMARTISTSORT : Jackson, Michael
    ORIGINALDATE    : 1979-08-10
    SCRIPT          : Latn
    MUSICBRAINZ_ALBUMID: 72d8b60b-154f-4925-88f8-7c8be0589b90
    RELEASESTATUS   : official
    album_artist    : Michael Jackson
    ACOUSTID_ID     : 5cbdae1a-3b01-4885-98d6-bdde021ec456
    CATALOGNUMBER   : EICP 1408
    ALBUM           : Off the Wall
    MUSICBRAINZ_ARTISTID: f27ec8db-af05-4f36-916e-3d57f91ecf5e
    MEDIA           : CD
    RELEASETYPE     : album
    ORIGINALYEAR    : 1979
    ISRC            : USSM17800764;USSM17900003;USSM17900816
    MUSICBRAINZ_RELEASEGROUPID: ee749c63-5699-38e0-b565-7e84414648d9
    DISCTOTAL       : 1
    ARTIST          : Michael Jackson
    BARCODE         : 4547366054163
    MUSICBRAINZ_TRACKID: 88a1ca2c-7613-4ddc-a933-b61e4d1482b5
    ARTISTSORT      : Jackson, Michael
    ARTISTS         : Michael Jackson
    track           : 1
  Duration: 00:06:05.53, start: 0.000000, bitrate: 980 kb/s
    Stream #0:0: Audio: flac, 44100 Hz, stereo, s16
    Stream #0:1: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 500x496 [SAR 1:1 DAR 125:124], 90k tbr, 90k tbn, 90k tbc
    Metadata:
      comment         : Cover (front)
[NULL @ 0x3fb56c0] Unable to find a suitable output format for '/Data/transcoding-temp/debbdb50e250fb9ae7e3d2769bce7f80'
/Data/transcoding-temp/debbdb50e250fb9ae7e3d2769bce7f80: Invalid argument

with an extension, it works :

 /usr/bin/ffmpeg -i file:"/mnt/Data2/Musique/Michael Jackson/Off the wall/01 - Don't Stop 'Til You Get Enough.flac" -threads 0 -vn  -id3v2_version 3 -write_id3v1 1 -y "/Data/transcoding-temp/debbdb50e250fb9ae7e3d2769bce7f80.mp3"
ffmpeg version N-81323-gb5f30fe-static Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 4.7 (Debian 4.7.2-5)
  configuration: --arch=64 --prefix=/Data/bin/ffmpeg-build/workspace --extra-cflags=-I/Data/bin/ffmpeg-build/workspace/include --extra-ldflags=-L/Data/bin/ffmpeg-build/workspace/lib --extra-version=static --extra-cflags=--static --enable-static --disable-debug --disable-shared --disable-ffplay --disable-ffserver --disable-doc --enable-gpl --enable-version3 --enable-nonfree --enable-pthreads --enable-libvpx --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libx265 --enable-runtime-cpudetect --enable-libfdk-aac --enable-avfilter --enable-libopencore_amrwb --enable-libopencore_amrnb --enable-filters --enable-libvidstab
  libavutil      55. 28.100 / 55. 28.100
  libavcodec     57. 51.100 / 57. 51.100
  libavformat    57. 46.100 / 57. 46.100
  libavdevice    57.  0.102 / 57.  0.102
  libavfilter     6. 51.100 /  6. 51.100
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  1.100 /  2.  1.100
  libpostproc    54.  0.100 / 54.  0.100
Input #0, flac, from 'file:/mnt/Data2/Musique/Michael Jackson/Off the wall/01 - Don't Stop 'Til You Get Enough.flac':
  Metadata:
    GENRE           : Soul and R&B
    TITLE           : Don't Stop 'til You Get Enough
    RELEASECOUNTRY  : JP
    TOTALDISCS      : 1
    LABEL           : Epic
    TOTALTRACKS     : 19
    MUSICBRAINZ_ALBUMARTISTID: f27ec8db-af05-4f36-916e-3d57f91ecf5e
    DATE            : 2010-06-23
    disc            : 1
    TRACKTOTAL      : 19
    MUSICBRAINZ_RELEASETRACKID: 1da566a9-f1f9-45f0-98b5-904c96ee44d0
    ASIN            : B003IGMIYE
    ALBUMARTISTSORT : Jackson, Michael
    ORIGINALDATE    : 1979-08-10
    SCRIPT          : Latn
    MUSICBRAINZ_ALBUMID: 72d8b60b-154f-4925-88f8-7c8be0589b90
    RELEASESTATUS   : official
    album_artist    : Michael Jackson
    ACOUSTID_ID     : 5cbdae1a-3b01-4885-98d6-bdde021ec456
    CATALOGNUMBER   : EICP 1408
    ALBUM           : Off the Wall
    MUSICBRAINZ_ARTISTID: f27ec8db-af05-4f36-916e-3d57f91ecf5e
    MEDIA           : CD
    RELEASETYPE     : album
    ORIGINALYEAR    : 1979
    ISRC            : USSM17800764;USSM17900003;USSM17900816
    MUSICBRAINZ_RELEASEGROUPID: ee749c63-5699-38e0-b565-7e84414648d9
    DISCTOTAL       : 1
    ARTIST          : Michael Jackson
    BARCODE         : 4547366054163
    MUSICBRAINZ_TRACKID: 88a1ca2c-7613-4ddc-a933-b61e4d1482b5
    ARTISTSORT      : Jackson, Michael
    ARTISTS         : Michael Jackson
    track           : 1
  Duration: 00:06:05.53, start: 0.000000, bitrate: 980 kb/s
    Stream #0:0: Audio: flac, 44100 Hz, stereo, s16
    Stream #0:1: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 500x496 [SAR 1:1 DAR 125:124], 90k tbr, 90k tbn, 90k tbc
    Metadata:
      comment         : Cover (front)
[mp3 @ 0x3cc16c0] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
Output #0, mp3, to '/Data/transcoding-temp/debbdb50e250fb9ae7e3d2769bce7f80.mp3':
  Metadata:
    TCON            : Soul and R&B
    TIT2            : Don't Stop 'til You Get Enough
    RELEASECOUNTRY  : JP
    TOTALDISCS      : 1
    LABEL           : Epic
    TOTALTRACKS     : 19
    MUSICBRAINZ_ALBUMARTISTID: f27ec8db-af05-4f36-916e-3d57f91ecf5e
    TYER            : 2010
    TDAT            : 2306
    TPOS            : 1
    TRACKTOTAL      : 19
    MUSICBRAINZ_RELEASETRACKID: 1da566a9-f1f9-45f0-98b5-904c96ee44d0
    ASIN            : B003IGMIYE
    ALBUMARTISTSORT : Jackson, Michael
    ORIGINALDATE    : 1979-08-10
    SCRIPT          : Latn
    MUSICBRAINZ_ALBUMID: 72d8b60b-154f-4925-88f8-7c8be0589b90
    RELEASESTATUS   : official
    TPE2            : Michael Jackson
    ACOUSTID_ID     : 5cbdae1a-3b01-4885-98d6-bdde021ec456
    CATALOGNUMBER   : EICP 1408
    TALB            : Off the Wall
    MUSICBRAINZ_ARTISTID: f27ec8db-af05-4f36-916e-3d57f91ecf5e
    MEDIA           : CD
    RELEASETYPE     : album
    ORIGINALYEAR    : 1979
    ISRC            : USSM17800764;USSM17900003;USSM17900816
    MUSICBRAINZ_RELEASEGROUPID: ee749c63-5699-38e0-b565-7e84414648d9
    DISCTOTAL       : 1
    TPE1            : Michael Jackson
    BARCODE         : 4547366054163
    MUSICBRAINZ_TRACKID: 88a1ca2c-7613-4ddc-a933-b61e4d1482b5
    ARTISTSORT      : Jackson, Michael
    ARTISTS         : Michael Jackson
    TRCK            : 1
    TSSE            : Lavf57.46.100
    Stream #0:0: Audio: mp3 (libmp3lame), 44100 Hz, stereo, s16p
    Metadata:
      encoder         : Lavc57.51.100 libmp3lame
Stream mapping:
  Stream #0:0 -> #0:0 (flac (native) -> mp3 (libmp3lame))
Press [q] to stop, [?] for help
size=     840kB time=00:00:53.60 bitrate= 128.3kbits/s speed=23.5x    
video:0kB audio:838kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.193341%

 

Posted

hi, it is firefox 48, i use linux mint 18 cinnamon 64b.

Posted

can you please attach the complete server log? thanks.

Posted

thanks you for your support, but i came back to subsonic.

Beside the flac not playing, the server user 100% cpu for near 2 hours for each library scan and i was enable to make the transcode of video work. it seems to me that the linux version is not yet optimised.

I will try to check soon if i miss something in the configuration of the server .

Good luck, it seems a very good media server.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...