News for hackers. Stuff that matters.
Re:I hacked SONOS and YouTube the same day by polishdude20 on Thursday February 03, 2022 @02:52PM (#30197840)
Would the conversion of the MP4 be able to be done using ffmpeg?
Re:I hacked SONOS and YouTube the same day by mattmar96 on Thursday February 03, 2022 @04:05PM (#30198836)
Yes, even as a stream. The author mentions that a streaming conversion of mp4 to mp3 would be very difficult/impossible. I actually built that exact system for a simple youtube->mp3 downloader. FFMpeg can perform a streaming mp4->mp3 conversion. See here: https://github.com/matttt/youtubesampler/blob/master/main.js...
Re:I hacked SONOS and YouTube the same day by deadf00d on Thursday February 03, 2022 @06:47PM (#30200727)
It's not impossible, but it would be way less efficient as it need complete re-encoding of the audio, as my system just re-format the container format.
Re:I hacked SONOS and YouTube the same day by mbilker on Thursday February 03, 2022 @08:11PM (#30201513)
ffmpeg can copy streams without transcoding. For example: ffmpeg -i input.m4a -c:a copy input.mp4
Re:I hacked SONOS and YouTube the same day by deadf00d on Thursday February 03, 2022 @08:20PM (#30201576)
In this case both mp4 and m4a (which are the same thing) use AAC. So no transcoding, but mp3 is not. So in the case of mp4 > mp3 it need a complete re-encoding of the audio.