#41
|
||||
|
||||
I'm sorry but no news yet
__________________
JD-Dev & Server-Admin |
#42
|
|||
|
|||
hello if I converted the 'mp4' sound would it be good? is this possible?
|
#43
|
||||
|
||||
@smokiemamour: mpeg4 audio is superior to mp3.
__________________
JD-Dev & Server-Admin |
#44
|
|||
|
|||
this subject is solved thanks to all
|
#45
|
|||
|
|||
hello, I would like to make a script so that when I download mp4 it converts me to mp3
can you tell me if the script is good thanks Code:
// Convert /mp4 files to mp3. // Trigger required: "A Download Stopped". // Requires ffmpeg/ffprobe. Uses JD ffmpeg/ffprobe settings if available. // Overwrites destination file (mp3) if it already exists. if (link.isFinished()) { var fileName = link.name.replace(/(.+)(\..+$)/, "$1"); var fileType = link.name.replace(/(.+)(\..+$)/, "$2"); var sourceFile = link.getDownloadPath(); var audioFile = /\.(aac|m4a|ogg)$/.test(sourceFile); if (audioFile) { var downloadFolder = package.getDownloadFolder(); var destFile = downloadFolder + "/" + fileName + ".mp3"; var ffmpeg = callAPI("config", "get", "org.jdownloader.controlling.ffmpeg.FFmpegSetup", null, "binarypath"); var ffprobe = callAPI("config", "get", "org.jdownloader.controlling.ffmpeg.FFmpegSetup", null, "binarypathprobe"); var data = JSON.parse(callSync(ffprobe, "-v", "quiet", "-print_format", "json", "-show_streams", "-show_format", sourceFile)); var streamsBitrate = data.streams[0].bit_rate ? data.streams[0].bit_rate : 0; var formatBitrate = data.format.bit_rate ? data.format.bit_rate : 0; var bitrate = Math.max(streamsBitrate, formatBitrate) / 1000; var deleteSourceFile = false; // Set this to true to delete source file after conversion. if (bitrate > 0) { callSync(ffmpeg, "-y", "-i", sourceFile, "-b:a", bitrate + "k", destFile); if (deleteSourceFile && getPath(destFile).exists()) deleteFile(sourceFile, false); } } } disablePermissionChecks(); Last edited by raztoki; 03.12.2019 at 12:01. |
05.12.2019, 10:03 |
smokiemamour |
Message deleted by raztoki.
Reason: dupe
|
#46
|
||||
|
||||
I do believe the answer was already answered right https://board.jdownloader.org/showpo...7&postcount=20
please stop making the exact same post over and over (your copy paste). If you have further enquiry please query specifics and then wait for a response. raztoki
__________________
raztoki @ jDownloader reporter/developer http://svn.jdownloader.org/users/170 Don't fight the system, use it to your advantage. :] |
#47
|
|||
|
|||
it is to convert aac/m4a/ogg it's because I wanted to make a new subject
|
#48
|
||||
|
||||
we can rename this thread easy enough. Think the merging of your topics as already achieved your goal.
From your posts you still seem unsure of your script (which mgpai and jiaz have provided/worked on). I would ask again that if you have an issue please state specifics then those that have knowledge will hopefully spend time and assist. raztoki
__________________
raztoki @ jDownloader reporter/developer http://svn.jdownloader.org/users/170 Don't fight the system, use it to your advantage. :] Last edited by raztoki; 05.12.2019 at 11:17. |
#49
|
|||
|
|||
why not just make a new topic?
|
#50
|
||||
|
||||
because your exact same post was already in here. Their is zero need.
__________________
raztoki @ jDownloader reporter/developer http://svn.jdownloader.org/users/170 Don't fight the system, use it to your advantage. :] |
#51
|
|||
|
|||
Quote:
Quote:
Example: 'm4a' = 'aac' audio 'mp4' = 'aac' audio + 'h.264' video If they are of the same audio bitrate (which they usually are), quality of the converted 'mp3' file will remain the same in both cases. So, it is not necessary to download the file in 'mp4' (video+audio) format, if you just want the audio stream. YT normally provides only the transcoded video/audio files and not the original ones. You will be again transcoding from one lossy format (aac) to another (mp3). Hence, the quality of the resulting 'mp3' file will be inferior than the source (aac) file. |
#52
|
|||
|
|||
so what should I take as a file?
excuse me but I do not understand your message |
#53
|
|||
|
|||
hello would it be possible to rename my message, I would like to do it but everything is in English I'm French I do not understand anything thank you
|
|
|