hello there.
i was previously using aactomp3 in my options file and this worked. i upgraded get_iplayer to 2.99 and had to remove this option.
i added this to the options file
Code:
commandradio ffmpeg -loglevel error -i "<filename>" -c:v copy -c:a libmp3lame -q:a 0 -id3v2_version 3 -write_id3v1 1 -y "<dir>/<fileprefix>.mp3" && del "<filename>"
when i tried to download a radio program and convert to mp3. the
iPM_-_My_referendum_b08j8mtq_original.mpa file is there but i get an error
iPM_-_My_referendum_b08j8mtq_original.mp3: No such file or directory. info:Command exit code 1 (raw code = 256) Error: Command Exit Code: 1.
it looks like the conversion to mp3 has not worked but i don't know why. any help would be appreciated.
i am using windows and installed get_iplayer using get_iplayer-2.99.0.exe
Remove "-loglevel error" from the commandradio option value and try it again. You should see the full spew from ffmpeg when it attempts convert the file. If that doesn't tell you anything,
follow our instructions to provide a full report so we can see what is happening on your machine.
this is the output from the prompt. when i get a chance i will get a verbose log.
Code:
C:\Users\Ethereal>get_iplayer --type=radio -g --force 26134
get_iplayer 2.99-windows.0, Copyright (C) 2008-2010 Phil Lewis
This program comes with ABSOLUTELY NO WARRANTY; for details use --warranty.
This is free software, and you are welcome to redistribute it under certain
conditions; use --conditions for details.
NOTE: A UK TV licence is required to legally access BBC iPlayer TV content
Matches:
26134: You and Yours - Leasehold abuse, Care homes, Death of diesel, BBC Rad
4, b08j997r
INFO: 1 Matching Programmes
INFO: Checking existence of original version
INFO: hafhigh1,hafhigh2,hafstd1,hafstd2,dafmed1,dafmed2,hafmed1,hafmed2,daflo
daflow2,haflow1,haflow2,hlsaaclow1 modes will be tried for version original
INFO: Trying hafhigh1 mode to record radio: You and Yours - Leasehold abuse,
e homes, Death of diesel
INFO: File name prefix = You_and_Yours_-_Leasehold_abuse_Care_homes_Death_of_
sel_b08j997r_original
INFO: Begin recording file: \\FreeNAS\Working\Completed\__British TV\Radio\Yo
nd_Yours_-_Leasehold_abuse_Care_homes_Death_of_diesel_b08j997r_original.audio
INFO: Begin recording at: 0.00 MiB (00:00:00) [1]
INFO: Recorded: 98.69 MiB (00:41:11) [387] in 00:07:28 at 1.76 Mibit/s
INFO: Saved HLS audio file: \\FreeNAS\Working\Completed\__British TV\Radio\Yo
nd_Yours_-_Leasehold_abuse_Care_homes_Death_of_diesel_b08j997r_original.hls.t
INFO: Begin converting audio file: \\FreeNAS\Working\Completed\__British TV\R
o\You_and_Yours_-_Leasehold_abuse_Care_homes_Death_of_diesel_b08j997r_origina
ls.ts
size= 96955kB time=00:41:10.42 bitrate= 321.5kbits/s speed=54.4x
INFO: Converted to file: \\FreeNAS\Working\Completed\__British TV\Radio\You_a
Yours_-_Leasehold_abuse_Care_homes_Death_of_diesel_b08j997r_original.partial.
INFO: Recorded file: \\FreeNAS\Working\Completed\__British TV\Radio\You_and_Y
s_-_Leasehold_abuse_Care_homes_Death_of_diesel_b08j997r_original.m4a
INFO: Begin tagging file: \\FreeNAS\Working\Completed\__British TV\Radio\You_
_Yours_-_Leasehold_abuse_Care_homes_Death_of_diesel_b08j997r_original.m4a
Started writing to temp file.
Progress: =========================================> 74% --------------|
Finished writing to temp file.
INFO: Tagged file: \\FreeNAS\Working\Completed\__British TV\Radio\You_and_You
-_Leasehold_abuse_Care_homes_Death_of_diesel_b08j997r_original.m4a
ffmpeg version N-84014-g9e6b269 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 6.3.0 (GCC)
configuration: --enable-gpl --enable-version3 --enable-cuda --enable-cuvid
nable-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth
enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-ico
--enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable
bfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplu
-enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --en
e-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable
bsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwo
e --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-lib
--enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --ena
-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-zlib
libavutil 55. 48.100 / 55. 48.100
libavcodec 57. 83.100 / 57. 83.100
libavformat 57. 66.104 / 57. 66.104
libavdevice 57. 3.100 / 57. 3.100
libavfilter 6. 76.100 / 6. 76.100
libswscale 4. 3.101 / 4. 3.101
libswresample 2. 4.100 / 2. 4.100
libpostproc 54. 2.100 / 54. 2.100
Output #0, ipod, to '\\FreeNAS\Working\Completed\__British TV\Radio\You_and_Y
s_-_Leasehold_abuse_Care_homes_Death_of_diesel_b08j997r_original.m4a':
Output file #0 does not contain any stream
INFO: Command exit code 1 (raw code = 256)
ERROR: Command Exit Code: 1
Thanks for the log. Your --command-radio value is incorrect and not what you posted originally. If it isn't obvious to you what is missing, copy/paste the command I provided in the documentation to reset. Don't type it into the options file yourself. Leave out "-loglevel error" permanently.
And still not correct. You'd better tell me where you're getting the command from. There may be a typo lurking out there.
EDIT: Even so, you should be able to figure it out from your original post.
i don't have a clue about these things which is why i copied the code from here -
https://github.com/get-iplayer/get_iplay...i/aactomp3
i can't tell by looking what the problem is which was why i posted here. thank you
Always convert every radio programme to MP3 format at best variable bit rate (VBR) and automatically delete M4A file by setting
in preferences:
Windows:
Code:
get_iplayer --prefs-add --command-radio="ffmpeg -loglevel error -i \""<filename>"\" -c:v copy -c:a libmp3lame -q:a 0 -id3v2_version 3 -write_id3v1 1 -y \""<dir>/<fileprefix>.mp3"\" && del \""<filename>"\""
Well, that's not what is going into your options, and I can't say why. It works fine here. Maybe you'll have to edit your options file directly.
I've already told you that you are missing something. Look at the settings printed at the top of your log and compare that value of commandradio to what it should be from the documentation.
Here's a diff of what your log file contains vs what you should see. It's a small but crucial difference:
https://www.diffchecker.com/k3NOWrtX
Left side is your log. Right side is what you should see.
Notice the little
-i that is highlighted in green? That's what you are missing.
My guess is something went wrong the first time you copied the command which lead to the initial error and then the second time when user-2 asked you to remove
-loglevel error you accidentally removed the
-i along with it.
i fixed the -i and tried a different setting (cbr) - they both failed.
thanks for you help.
Dinky - I'm stepping out of my comfort zone here as a non-Windows user but it looks like there's possibly a problem here.
<dir> isn't handling UNC file paths correctly.
ethereal is outputting to a mapped drive at
\\FreeNAS using the UNC path format.
<dir> is outputting double backslashes
\\ in the directory path which is fine with conventional file paths rooted in a drive letter (though possibly not needed as is looks like it's some kind of raw string? Do the backslashes actually need escaping?) but when it comes to mapped drives with UNC format paths it's doubling up the initial
\\ to produce
\\\\ which is an invalid format.
In ethereal's case here that's leading to:
get_iplayer Output:
\\\\FreeNAS\\Working\\Completed\\__British TV\\Radio/iPM_-_My_referendum_b08j8mtq_original.mp3: No such file or directory
The full text of that section is below so you can see the context:
get_iplayer Output:
INFO: Running command 'ffmpeg -loglevel error -i "\\FreeNAS\Working\Completed\__British TV\Radio\iPM_-_My_referendum_b08j8mtq_original.m4a" -c:v copy -c:a libmp3lame -b:a 320k -id3v2_version 3 -write_id3v1 1 -y "\\\\FreeNAS\\Working\\Completed\\__British TV\\Radio/iPM_-_My_referendum_b08j8mtq_original.mp3" && del "\\FreeNAS\Working\Completed\__British TV\Radio\iPM_-_My_referendum_b08j8mtq_original.m4a"'
INFO: Command: ffmpeg -loglevel error -i "\\FreeNAS\Working\Completed\__British TV\Radio\iPM_-_My_referendum_b08j8mtq_original.m4a" -c:v copy -c:a libmp3lame -b:a 320k -id3v2_version 3 -write_id3v1 1 -y "\\\\FreeNAS\\Working\\Completed\\__British TV\\Radio/iPM_-_My_referendum_b08j8mtq_original.mp3" && del "\\FreeNAS\Working\Completed\__British TV\Radio\iPM_-_My_referendum_b08j8mtq_original.m4a"
\\\\FreeNAS\\Working\\Completed\\__British TV\\Radio/iPM_-_My_referendum_b08j8mtq_original.mp3: No such file or directory
INFO: Command exit code 1 (raw code = 256)
ERROR: Command Exit Code: 1
I can see the underlying problem now. It looks like a bug. Map your NAS share to a drive letter and change your output directories accordingly. For example, if the share point is \\FreeNAS\Working mapped to D:, then outputradio would be D:\Completed\__British TV\Radio. Use whatever is correct for your system.
(22-03-2017, 11:34 AM)I can see the underlying problem now. It looks like a bug. Map your NAS share to a drive letter and change your output directories accordingly. For example, if the share point is \\FreeNAS\Working mapped to D:, then outputradio would be D:\Completed\__British TV\Radio. Use whatever is correct for your system.
that works now - thank you
Good. That will be fixed in next release.