[Ffmpeg-devel-irc] ffmpeg.log.20190602

burek burek021 at gmail.com
Mon Jun 3 03:05:02 EEST 2019


[16:28:10 CEST] <giaco> hello
[16:32:04 CEST] <giaco> I want to stream audio from a source over a non-reliabe link. When link is not working the stream should be saved locally and sent later. Now I am using ffmpeg to convert source to mpeg-dash and an rsync loop to cover the transmission part. I wonder if I have other options, so I'm here just for feedbacks and ideas. Thank you
[22:30:22 CEST] <Leoneof> hi, i have videos.mp4 files recorded by hikvision dvr, they are not working in any media player & cannot import them to any video editor, so what's the proper command-line to make videos.mp4 readable with any media appication?
[22:31:15 CEST] <JEEB> can you get anything useful out of those files with `ffprobe -v verbose -i FILE`
[22:31:21 CEST] <Leoneof> ok
[22:31:38 CEST] <JEEB> post on a pastebin or so if it seems to output anything useful, and link here
[22:50:14 CEST] <cehoyos> Leoneof: Please provide a sample input file
[22:53:38 CEST] <Leoneof> ok, i'm suck with windows cmd, just one minute
[22:57:22 CEST] <Leoneof> https://pastebin.com/raw/PYQdTESA
[22:57:46 CEST] <JEEB> looks like normal mp4, except the audio is mulaw PCM
[22:58:31 CEST] <Leoneof> I have other video without audio, it's not working too
[23:00:26 CEST] <JEEB> ffmpeg -v verbose -i INPUT.mp4 -c:v copy -c:a aac -b:a 192k -af 'aformat=channel_layouts=stereo' test.mp4
[23:00:29 CEST] <JEEB> try this?
[23:00:42 CEST] <Leoneof> k
[23:01:56 CEST] <JEEB> maybe you'll also have to set the rate to 44100Hz or whatever
[23:02:29 CEST] <JEEB> ffmpeg -v verbose -i INPUT.mp4 -c:v copy -c:a aac -b:a 192k -af 'aformat=sample_rates=44100:channel_layouts=stereo' test.mp4
[23:03:49 CEST] <JEEB> (or 48000 since that's exactly six times 8000)
[23:09:46 CEST] <Leoneof> JEEB: [AVFilterGraph @ 0000000002bfef80] No such filter: 'aformat=sample_rates=44100:channel_layouts=stereo'
[23:09:50 CEST] <Leoneof> Error reinitializing filters!
[23:09:58 CEST] <Leoneof> Failed to inject frame into filter network: Invalid argument
[23:10:04 CEST] <Leoneof> Error while processing the decoded data for stream #0:1
[23:11:15 CEST] <JEEB> Leoneof: ok, forgot aresample before
[23:11:31 CEST] <JEEB> "aresample,aformat=sample_rates=44100:channel_layouts=stereo"
[23:15:01 CEST] <Leoneof> JEEB: it's converting right now
[23:18:13 CEST] <Leoneof> JEEB: wow thank you very much, now i can watch videos in any media player, and video editor
[23:18:50 CEST] <JEEB> and all we did was remux the video and re-encode the audio to a more common setup of stereo+44.1kHz AAC
[23:19:00 CEST] <JEEB> that's why -c:v copy
[23:19:14 CEST] <JEEB> (sets the "codec" for video to "copy")
[23:19:46 CEST] <Leoneof> :)
[00:00:00 CEST] --- Mon Jun  3 2019


More information about the Ffmpeg-devel-irc mailing list