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

burek burek021 at gmail.com
Mon May 13 03:05:02 EEST 2019


[00:39:45 CEST] <aiena> How do I make ffmpeg encode with " mp41avc1"
[00:40:26 CEST] <aiena> I had doen -c:v libx264 but that makes a  isomiso2avc1mp41
[00:41:33 CEST] <BtbN> what?
[00:42:32 CEST] <aiena> hmm wait sorry
[00:42:40 CEST] <aiena> the difference is just the resolution
[00:42:43 CEST] <aiena> one sec
[00:47:18 CEST] <aiena1> BtbN: hmm I did something wrong
[00:47:21 CEST] <aiena1> http://paste.opensuse.org/view/raw/33565139
[00:47:39 CEST] <aiena1> if you see the first ffprobe that file the video plays on the tv the audio doesnt
[00:47:55 CEST] <aiena1> in the second one I encoded from the source video. But the streams are funny
[00:48:20 CEST] <aiena1> stream 0 is the video stream 1 is the audio in a  "core video stream" and the third stream is bogus
[00:48:27 CEST] <aiena1> I did something wrong in my command I thinkg
[00:49:06 CEST] <aiena1> the command was `ffmpeg -i in.mp4 -c:v libx264 -c:a aac out.mp4" where in.mp4 is input and out.mp4 is output
[00:49:28 CEST] <aiena1> * `ffmpeg -i in.mp4 -c:v libx264 -c:a aac out.mp4`
[00:50:01 CEST] <BtbN> It'll default to pretty bad quality if you don't tell it anything about that.
[00:52:27 CEST] <aiena1> BtbN: this is the ffprobe of the source file http://paste.opensuse.org/view/raw/5d45eddc
[00:52:52 CEST] <aiena1> It also seems to have that weird third stream in it which just say's     Stream #0:2(und): Data: none (tmcd / 0x64636D74) (default)
[00:54:14 CEST] <cehoyos> The output is cut making it unreadable.
[00:54:24 CEST] <aiena1> I want to try keeping just the 4k video and the aac audio stream alone in a file as a test to see if my TV borks if the file is larger than 1080p and I want to make another file which scales down to 1080p
[00:54:52 CEST] <cehoyos> Which file works and which file does not work? Are you using a working file as input and get an output file that does not work? If yes, only provide the ffmpeg command (and console output), no ffprobe
[00:55:21 CEST] <cehoyos> Then please first try to encode to 1080
[00:55:35 CEST] <aiena1> cehoyos: how do I scale down a video to 1080p
[00:55:42 CEST] <cehoyos> -s hd1080
[00:56:47 CEST] <aiena1> so `ffmpeg -i in.mp4 -s hd1080 out.mp4`
[00:57:06 CEST] <cehoyos> Yes. Does in.mp4 play with your tv?
[00:57:16 CEST] <aiena1> no
[00:57:34 CEST] <aiena1> cehoyos: I had used vlc's convert function
[00:57:51 CEST] <cehoyos> Does vlc's output file work with your tv?
[00:57:59 CEST] <aiena1> the ouytput of that vlc conversion plays the video component and does not play the audio component
[00:58:36 CEST] <aiena1> I noticed mpv on my desktop does not play the audio component too so vlc is doing something a bit funny.
[00:58:55 CEST] <cehoyos> With the tv or with FFmpeg?
[00:58:59 CEST] <cehoyos> Does it play with vlc?
[00:59:03 CEST] <aiena1> I mean the video compoenet of the conversion plays on the tv
[00:59:08 CEST] <aiena1> the audio does not
[00:59:21 CEST] <cehoyos> Does the audio component not play with: tv? ffmpeg? vlc?
[00:59:47 CEST] <aiena1> the audio componenet plays with vlc, does not play with the TV or the "mpv" player on my windows system
[00:59:56 CEST] <aiena1> *play on the TV
[01:00:08 CEST] <cehoyos> Please provide the file TV366.mp4
[01:00:22 CEST] <cehoyos> (If it plays with vlc, it is supposed to also play with FFmpeg)
[01:00:22 CEST] <aiena1> It's 3.65GB
[01:00:32 CEST] <aiena1> wait
[01:00:39 CEST] <aiena1> i never tested if it plays with ffmpeg
[01:00:43 CEST] <cehoyos> Perhaps you could re-encode another file, but only the first ten seconds
[01:00:53 CEST] <aiena1> i only know the audio plays on vlc but not on the TV
[01:00:54 CEST] <cehoyos> I can see from the console output that it does not play with FFmpeg
[01:01:22 CEST] <cehoyos> You can also use "qt-faststart" to produce a file that can be cut, then cut it with "dd".
[01:01:35 CEST] <aiena1> I am not on linux
[01:01:38 CEST] <cehoyos> (Cutting the current original file will mostly likely lead to a broken file. Or at least can)
[01:01:40 CEST] <aiena1> do you know a way to do it on windows
[01:01:53 CEST] <cehoyos> If you don't have qt-faststart (and cannot compile) no
[01:02:04 CEST] <cehoyos> But encoding ten seconds should not take too long.
[01:02:22 CEST] <cehoyos> (btw.: There is now wls, a Linux provided by Microsoft that contains everything)
[01:02:30 CEST] <cehoyos> by Microsoft for Windows 10
[01:03:50 CEST] <cehoyos> It's wsl, not wls...
[01:03:52 CEST] <aiena1> yes ffmpeg does not play the file.
[01:04:01 CEST] <cehoyos> We already knew that...
[01:04:04 CEST] <aiena1> I have a dual boot the file is on my pend drive
[01:04:26 CEST] <aiena1> let me boot into the linux distr and cut it I'll ask for guidance then
[01:04:27 CEST] <cehoyos> Just encode another file, that should be by far the quickest way of doing it.
[01:04:35 CEST] <cehoyos> Please don't
[01:04:42 CEST] <furq> don't boot into linux to use ffmpeg
[01:04:42 CEST] <aiena1> how do I tell vlc to encode only 10 seconds
[01:04:50 CEST] <aiena1> vlc created the file
[01:04:56 CEST] <cehoyos> Use a ten seconds input video?
[01:05:07 CEST] <aiena1> ok let me find one
[01:05:17 CEST] <aiena1> or can ffmpeg make it
[01:05:19 CEST] <cehoyos> ffmpeg -i in.mp4 -t 10 -c copy out.mp4
[01:05:28 CEST] <aiena1> ok cool
[01:05:30 CEST] <cehoyos> With audio if possible...
[01:05:51 CEST] <cehoyos> If audio starts 90 seconds into the file it's: ffmpeg -ss 90 -i input -t 10 output
[01:06:05 CEST] <cehoyos> If audio starts 90 seconds into the file it's: ffmpeg -ss 90 -i in.mp4 -c copy -t 10 outmp4
[01:08:55 CEST] <aiena1> hmm yes audio is broken in vlc too on conversion but not completely
[01:09:04 CEST] <aiena1> I'll share the 2 files
[01:09:14 CEST] <cehoyos> No, only share the file vlc created
[01:09:25 CEST] <aiena1> ok
[01:09:48 CEST] <cehoyos> Did you create the file with the GUI or from the console?
[01:11:03 CEST] <aiena1> cehoyos: hmm this time the result is slightly different
[01:11:27 CEST] <aiena1> ffplay does play the video component of the cut 15 seconds
[01:11:42 CEST] <aiena1> but no audio on vlc you get 1 second of audio on playback
[01:11:44 CEST] <cehoyos> Of course, but we are interested in the audio
[01:11:47 CEST] <aiena1> the rest is cut
[01:12:01 CEST] <cehoyos> Then make it twenty seconds if that helps...
[01:12:26 CEST] <cehoyos> Did you create the file with the GUI or from the console?
[01:13:37 CEST] <aiena1> https://drive.google.com/file/d/1ox3jrfKDGuzo2tQSLCtg8nT9-UUO7Puj/view?usp=sharing
[01:13:50 CEST] <cehoyos> Did you create the file with the GUI or from the console?
[01:14:01 CEST] <aiena1> cehoyos: the VLC one was from the GUI
[01:14:21 CEST] <aiena1> I opened the file in the meida player then with the menu I chose convert/save
[01:14:33 CEST] <aiena1> The iriginal video is from vimeo
[01:15:43 CEST] <aiena1> cehoyos: hmm I am a bit confused.
[01:16:16 CEST] <aiena1> 'Did you create the file with the GUI or from the console?' I presume is the VLC one from the 15 second cut video of the original
[01:16:44 CEST] <aiena1> in the 15 seconds video there is audio for the last 5 seconds
[01:17:29 CEST] <cehoyos> Does the input video play audible sound while the still image is shown?
[01:17:38 CEST] <aiena1> no
[01:17:43 CEST] <cehoyos> If not, this sample sadly makes limited sense
[01:17:58 CEST] <cehoyos> Luckily, I showed you a command line above that jumps over the silent part.
[01:18:04 CEST] <aiena1> I mean audio starts after the still image stops
[01:18:12 CEST] <aiena1> so second 11 to 15
[01:18:21 CEST] <aiena1> seconds 1 to 10 have no audio
[01:18:22 CEST] <cehoyos> (Sorry if I sound annoyed: It is late here and I just came home through a rainstorm)
[01:18:46 CEST] <aiena1> I am sorry cehoyos
[01:19:01 CEST] <cehoyos> The file is not fifteen seconds long here
[01:19:53 CEST] <aiena1> hmm cehoyos you are right
[01:20:01 CEST] <aiena1> the source is 15 seconds long
[01:20:08 CEST] <aiena1> when vlc converted it changed to 13 seconds
[01:20:11 CEST] <aiena1> I didnt notice
[01:20:12 CEST] <cehoyos> Anyway, the sample is sufficient, thank you
[01:20:24 CEST] <aiena1> so vlc cut the video somehow
[01:21:53 CEST] <aiena1> this explains why it sounds like just 1 second of audio in the vlc file
[01:22:37 CEST] <aiena1> https://drive.google.com/file/d/1ic-Jv-GSOj1lXe-GIPCU-KF_6qipdnTE/view?usp=sharing is the 15 sec trim by ffmpeg
[01:30:48 CEST] <aiena1> cehoyos: https://drive.google.com/file/d/1Qqwb2aB5za7La5vpJN5r3CSjrecESa0O/view?usp=sharing is 20 seconds of audio plus video. The audio plays in vlc doesny with ffplay
[01:34:44 CEST] <cehoyos> Which version of vlc did you use for encoding?
[01:35:16 CEST] <cehoyos> Sorry, it says in the console output, please ignore.
[01:37:21 CEST] <cehoyos> aiena1: Should be fixed, thank you for the sample!
[01:48:14 CEST] <aiena1> cehoyos: in vlc?
[01:48:27 CEST] <aiena1> you mean is 3.0.6
[01:49:44 CEST] <aiena1> How do I patch the output file
[01:49:53 CEST] <aiena1> can I move the stream around etc.
[01:56:49 CEST] <another> ffmpeg -i "CROQUIS CAFE_ Art Models for Drawing, No. 366 (New Model)-original.mp4" -c:v copy -c:a copy -map 0:v:0 -map 0:a -movflags faststart -t 20 366.4k.20sec.mp4
[01:57:08 CEST] <another> ffmpeg -i "CROQUIS CAFE_ Art Models for Drawing, No. 366 (New Model)-original.mp4" -c:v copy -c:a copy -map 0:v:0 -map 0:a -movflags faststart -s hd1080 -t 20 366.1080.20sec.mp4
[01:58:22 CEST] <another> ffmpeg -i "CROQUIS CAFE_ Art Models for Drawing, No. 366 (New Model)-original.mp4" -c:v libx264 -s hd1080 -c:a copy -map 0:v:0 -map 0:a -movflags faststart -t 20 366.1080.20sec.mp4
[02:05:26 CEST] <another> second command was wrong
[02:09:10 CEST] <cehoyos> aiena1: I fixed decoding the (broken) vlc sample in FFmpeg, there should be no files that play with vlc but cannot be decoded with FFmpeg.
[02:09:15 CEST] <cehoyos> (Such files exist though)
[02:09:31 CEST] <cehoyos> another: wrong?
[02:09:38 CEST] <aiena1> cehoyos: the problem is that that file is broken on the TV
[02:09:45 CEST] <aiena1> is that correct for mp4 container
[02:09:55 CEST] <aiena1> should an audio stream go under video?
[02:10:01 CEST] <cehoyos> That definitely the case, this audio is not specified as used be vlc
[02:10:32 CEST] <aiena1> The source file is also in a way broken
[02:10:43 CEST] <aiena1> but it somehow plays correctly on PC media players
[02:10:55 CEST] <aiena1> On the TV one it does not.
[02:11:36 CEST] <aiena1> cehoyos:  is it normal to have streams like in my sample file
[02:11:48 CEST] <cehoyos> streams?
[02:11:49 CEST] <another> cehoyos: can't do stream copy and scaling
[02:11:55 CEST] <cehoyos> Definitely not
[02:12:14 CEST] <aiena1> cehoyos: if you do ffprobe
[02:12:18 CEST] <cehoyos> Yes, you are correct, the second command is "wrong"
[02:12:34 CEST] <aiena1> you see mp3 in a "video" stream
[02:13:08 CEST] <cehoyos> aiena1: Please do not concentrate on the audio stream in the file produced by vlc, you cannot vlc
[02:13:18 CEST] <cehoyos> you cannot fix vlc
[02:13:19 CEST] <aiena1> cehoyos: I am not
[02:13:35 CEST] <aiena1> I mean the source file has streams like that
[02:13:49 CEST] <aiena1> I think that could be whiy vlc is keeping it the same way
[02:14:01 CEST] <another> it's unusual
[02:14:47 CEST] <aiena1> http://paste.opensuse.org/view/raw/89217130 is what ffprobe say's about the source file
[02:15:02 CEST] <aiena1> I think the source file is directly from a sony DSLR camera which may be confused
[02:15:22 CEST] <aiena1> If the source is wrong then VLC must be just following it somehow
[02:15:34 CEST] <cehoyos> Am I correct that the file does not play with your tv but that you want to know which files play with your tv?
[02:15:45 CEST] <aiena1> How do I convert this source into a 1080p video with aac audio with streams in a sensible way
[02:15:47 CEST] <cehoyos> Did you already test "ffmpeg -i input -s hd1080 out.mp4"?
[02:16:05 CEST] <cehoyos> (I thought I suggested this before but may of course be wrong)
[02:16:10 CEST] <another> aiena1: see my suggestions above
[02:16:29 CEST] <aiena1> you did but I have not yet tested it out one sec.
[02:18:19 CEST] <aiena1> its taking a bit of time to encode
[02:33:27 CEST] <aiena1> cehoyos: I tested it out. No just scaling down to 1080p alone does not make it play on the TV
[02:33:50 CEST] <cehoyos> Please provide the command line including the console output you tested.
[02:33:56 CEST] <cehoyos> Do you have files that play on your tv?
[02:34:04 CEST] <aiena1> cehoyos: No
[02:34:23 CEST] <aiena1> This is not an android TV I am trying to fogure out which codecs play on the TV
[02:34:32 CEST] <aiena1> I know avc1 does play
[02:34:40 CEST] <cehoyos> How do you know that it likes mp4?
[02:34:48 CEST] <cehoyos> How do you know?
[02:34:58 CEST] <aiena1> I don't
[02:35:07 CEST] <cehoyos> How do you know avc1 does play?
[02:35:12 CEST] <aiena1> I mean the spec sheet says it should support it
[02:35:24 CEST] <cehoyos> Can you point us to the spec sheet?
[02:35:29 CEST] <aiena1> cehoyos: because that TV366.mp4 file plays video but not audio on the TV
[02:35:48 CEST] <aiena1> the one VLC made from the source
[02:36:07 CEST] <cehoyos> Then try: "ffmpeg -acodec mp3 -i TV366.mp4 -c copy out.mp4"
[02:36:48 CEST] <another> aiena1: i'll point you again to the commands i suggested half an hour ago
[02:37:06 CEST] <DHE> TVs will usually support h264, if it's 4k it will likely support h265(hevc), if it's 4k+youtube enabled then it may support vp9. any other codecs will be in the "old" family (eg: mpeg4(divx/xvid), mpeg2)
[02:37:38 CEST] <aiena1> another: ok i will try that
[02:38:01 CEST] <aiena1> DHE: this is not an android TV for certain.
[02:38:14 CEST] <aiena1> It supports h264 is what I was able to confirm
[02:38:24 CEST] <cehoyos> It is possible that faststart will make a difference because the vlc file has the moov box in front of everything else.
[02:38:26 CEST] <aiena1> let me try another's command
[02:38:43 CEST] <aiena1> it is different has a lot of additional flags
[02:38:51 CEST] <cehoyos> So try: "ffmpeg -acodec mp3 -i TV366.mp4 -c copy -movflags +faststart out.mp4"
[02:38:52 CEST] <aiena1> apart from the -s hd1080
[02:39:14 CEST] <DHE> aiena1: then vp9 support probably goes way down
[02:39:26 CEST] <aiena1> vp9 I dounbt this tv will support
[02:39:31 CEST] <DHE> *probability
[02:39:41 CEST] <aiena1> ah yes
[02:47:17 CEST] <cehoyos> We know now: The tv supports h264 hd1080, it support FFmpeg's mp4 at least if faststart was used, it supports mp3-in-mp4 as written by FFmpeg
[02:47:21 CEST] <cehoyos> Good night!
[02:48:17 CEST] Action: DHE had a TV box that would crash very hard without faststart
[02:49:47 CEST] <aiena1> I think another's command is right for that
[02:51:16 CEST] <another> tried it?
[02:51:28 CEST] <aiena1> yes
[02:51:37 CEST] <aiena1> your command does not produce a playable file on the TV
[02:51:47 CEST] <aiena1> it just say's unsupported file.
[02:51:57 CEST] <another> which one exactly?
[02:52:02 CEST] <aiena1> ffmpeg -i "CROQUIS CAFE_ Art Models for Drawing, No. 366 (New Model)-original.mp4" -c:v libx264 -s hd1080 -c:a copy -map 0:v:0 -map 0:a -movflags faststart -t 20 366.1080.20sec.mp4
[02:52:38 CEST] <another> huh. any errors?
[02:54:03 CEST] <aiena1> the TV is very idiotic
[02:54:11 CEST] <another> any errors from ffmpeg?
[02:54:17 CEST] <aiena1> hmm one sec
[02:57:09 CEST] <aiena1> another: http://paste.opensuse.org/view/raw/bd3f991b is the log of ffmpeg
[02:57:24 CEST] <iive> try without movflags and without audio (-an)
[02:57:31 CEST] <aiena1> says stream 0 timescale not set
[02:58:02 CEST] <aiena1> iive: I didnt follow
[02:58:57 CEST] <iive> try to create video file with only video, so you know it is not related to the audio codec
[02:59:24 CEST] <another> fair point
[02:59:26 CEST] <iive> remove all options that have :a in them and put -an to disable audio processing.
[03:00:07 CEST] <iive> also remove the -movflags option, as it might confuse the tv. (it should not, but... it's tv)
[03:00:14 CEST] <aiena1> another:  ffmpeg -i "CROQUIS CAFE_ Art Models for Drawing, No. 366 (New Model)-original.mp4" -c:v libx264 -s hd1080 -c:a copy -map 0:v:0 -an -movflags faststart -t 20 366.1080.20sec.mp4
[03:00:19 CEST] <aiena1> that looks right to you?
[03:00:33 CEST] <iive> there is -c:a in there
[03:00:33 CEST] <aiena1> to remove audio
[03:00:48 CEST] <another> doesn't matter
[03:00:59 CEST] <aiena1> ffmpeg -i "CROQUIS CAFE_ Art Models for Drawing, No. 366 (New Model)-original.mp4" -c:v libx264 -s hd1080 copy -map 0:v:0 -an -movflags faststart -t 20 366.1080.20sec.mp4
[03:01:08 CEST] <aiena1> should I keep the -map
[03:01:13 CEST] <another> nope
[03:01:23 CEST] <aiena1> ffmpeg -i "CROQUIS CAFE_ Art Models for Drawing, No. 366 (New Model)-original.mp4" -c:v libx264 -s hd1080 copy -an -movflags faststart -t 20 366.1080.20sec.mp4
[03:01:26 CEST] <aiena1> ^^ looks good
[03:01:31 CEST] <aiena1> ?
[03:01:32 CEST] <another> NO
[03:01:50 CEST] <another> ffmpeg -i "CROQUIS CAFE_ Art Models for Drawing, No. 366 (New Model)-original.mp4" -c:v libx264 -s hd1080-map 0:v:0 -an -movflags faststart -t 20 366.1080.20sec.mp4
[03:02:01 CEST] <another> ffmpeg -i "CROQUIS CAFE_ Art Models for Drawing, No. 366 (New Model)-original.mp4" -c:v libx264 -s hd1080 -map 0:v:0 -an -movflags faststart -t 20 366.1080.20sec.mp4
[03:02:15 CEST] <iive> copy is parameter to -c:a
[03:02:35 CEST] <another> (there's always a typo...)
[03:02:39 CEST] <aiena1> right
[03:04:25 CEST] <aiena1> another: this generated file does not play
[03:04:37 CEST] <aiena1> but I am very sure the codec used does play on the TV
[03:05:08 CEST] <aiena1> another: how do I trim another file for you toinpsect
[03:05:08 CEST] <iive> there are profiles and levels for h264
[03:05:35 CEST] <aiena1> In that file generated by VLC the video component played but the audio did not
[03:05:59 CEST] <aiena1> then running ffmpeg -acodec mp3 -i in.mp4 -c copy -movflags +faststart out.mp4
[03:06:08 CEST] <aiena1> on that file made the audio stream in that file play
[03:06:44 CEST] <iive> try adding -profile=main
[03:06:58 CEST] <another> iive: you're right. the profile looks off
[03:07:11 CEST] <iive> it should be option to libx264
[03:07:29 CEST] <another> ffmpeg -i "CROQUIS CAFE_ Art Models for Drawing, No. 366 (New Model)-original.mp4" -c:v libx264 -s hd1080 -profile high -map 0:v:0 -an -movflags faststart -t 20 366.1080.20sec.mp4
[03:07:35 CEST] <iive> i see it in `man ffmpeg-codecs`
[03:08:27 CEST] <aiena1> ok testing one sec
[03:09:36 CEST] <aiena1> another: how can I test the vlc generated video to understand what is different which makes the video play?
[03:09:50 CEST] <aiena1> ffprobe gives pretty similar output
[03:10:38 CEST] <another> do you have mediainfo ?
[03:12:07 CEST] <aiena1> hmm not sure how do I check?
[03:13:10 CEST] <another> mediainfo file.mp4
[03:13:49 CEST] <aiena1> another: http://paste.opensuse.org/view/raw/60874094 is ffprobe output
[03:14:10 CEST] <aiena1> the TV366.mp4 is the one generated by VLC from the source
[03:14:26 CEST] <aiena1> the out.mp4 is the one where audio and video work on the TV
[03:14:26 CEST] <iive> the vlc one works?
[03:14:40 CEST] <aiena1> the vlc one the audio does not workon the tv
[03:15:00 CEST] <aiena1> but running ffmpeg -acodec mp3 -i TV366.mp4 -c copy -movflags +faststart -t 120 out.mp4
[03:15:15 CEST] <aiena1> on it did make the VLCs ones audio work on the TV
[03:15:49 CEST] <aiena1> So no TV366.mp4 the video works the audio only plays in VLC. Running above command on TV366.mp4 makes the embedded audio now work on the TV.
[03:16:00 CEST] <aiena1> out.mp4 is created from TV366.mp4
[03:16:31 CEST] <aiena1> another:  is this "mediainfo" command a linux command? I don't think I have it on Windows
[03:17:29 CEST] <aiena1> *So on TV366.mp4 the video works the
[03:17:37 CEST] <another> if you want to, you can download it here: https://mediaarea.net/MediaInfo
[03:18:07 CEST] <iive> out.mp4 uses AAC audio, the TV366 one uses mp3
[03:19:40 CEST] <iive> VLC definitely uses x264 for video encoding...
[03:19:54 CEST] <aiena1> another: ok it is runnig do I need to send print screens it is a GUI tool
[03:19:57 CEST] <iive> maybe the mp4 file itself is an issue.
[03:20:16 CEST] <aiena1> iive: then why is out.mp4 playing fine on the TV
[03:20:28 CEST] <iive> or the -movflags faststart
[03:20:37 CEST] <aiena1> no
[03:20:40 CEST] <iive> mp4 has a number of flavors
[03:20:48 CEST] <aiena1> because out.mp4 has movflags and fastart in it and plays
[03:21:01 CEST] <aiena1> and it plays
[03:21:34 CEST] <iive> ??
[03:21:35 CEST] <aiena1> `ffmpeg -acodec mp3 -i TV366.mp4 -c copy -movflags +faststart -t 120 out.mp4` running this on TV366.mp4 made the audio part play along with the video
[03:21:41 CEST] <iive> out.mp4 plays on the tv ?
[03:21:43 CEST] <aiena1> in TV366.mp4 the video played
[03:21:46 CEST] <aiena1> iive: yes
[03:21:56 CEST] <another> aiena1: did you try with -profile:v high ?
[03:21:57 CEST] <iive> what is the problem then?
[03:22:11 CEST] <iive> i'm completely confused
[03:22:53 CEST] <aiena1> iive: the problem is how to make the source file encode correctly for the TV in the future
[03:23:03 CEST] <aiena1> with ffmpeg alone
[03:23:17 CEST] <aiena1> I will have more files with the same structure
[03:23:32 CEST] <aiena1> Currently the workflow would be to pass the video through vlc
[03:23:36 CEST] <aiena1> then run ffmpeg -acodec mp3 -i TV366.mp4 -c copy -movflags +faststart -t 120 out.mp4
[03:23:38 CEST] <aiena1> on it
[03:23:46 CEST] <aiena1> to get a video which plays with audio on the TV
[03:24:04 CEST] <aiena1> how can I make the out.mp4 with ffmpeg alone?
[03:24:22 CEST] <aiena1> what is vlc doing to the source which is making the video play?
[03:24:54 CEST] <iive> did you test the profile thing?
[03:25:04 CEST] <another> i have some idea left
[03:25:09 CEST] <aiena1> yes
[03:25:16 CEST] <aiena1> that did not work
[03:25:28 CEST] <aiena1> ffmpeg -acodec mp3 -i TV366.mp4 -c copy -movflags +faststart -t 120 out.mp4
[03:25:38 CEST] <aiena1> sorry
[03:25:40 CEST] <aiena1> ffmpeg -i "CROQUIS CAFE_ Art Models for Drawing, No. 366 (New Model)-original.mp4" -c:v libx264 -s hd1080 -profile high -map 0:v:0 -an -movflags faststart -t 20 366.1080.20sec.mp4
[03:25:49 CEST] <aiena1> ^^ one is what I tried
[03:25:56 CEST] <iive> TV366 seems to be "high" so you may try with it too. (if main works)
[03:26:29 CEST] <aiena1> the this ids TV366 is high profile and the one from above command is high profile too
[03:26:38 CEST] <aiena1> but the TV366 one video plays
[03:26:50 CEST] <aiena1> in this case the whole file doesnt play
[03:27:01 CEST] <another> do you have mediainfo ?
[03:27:10 CEST] <aiena1> yes but it is a GUI
[03:27:17 CEST] <aiena1> tool do I need to give print screen
[03:27:17 CEST] <another> doesn't matter
[03:27:33 CEST] <another> yes. on TV366.mp4
[03:27:42 CEST] <aiena1> ok you have a text view
[03:27:46 CEST] <aiena1> let me give it to you one sec
[03:27:53 CEST] <aiena1> err it has a text view
[03:28:23 CEST] <aiena1> http://paste.opensuse.org/view/raw/40558179 another
[03:28:34 CEST] <aiena1> this is mediainfo on TV366.mp4
[03:29:44 CEST] <aiena1> another: http://paste.opensuse.org/view/raw/15473520 is mediainfo on out.mp4 where both audio and video work
[03:30:32 CEST] <aiena1> http://paste.opensuse.org/view/raw/4511189 and this is mediainfo on the original source file
[03:30:51 CEST] <aiena1> another: with these 3 and your knowledge which goes above my head maybe you can help
[03:31:28 CEST] <another> hold on
[03:32:01 CEST] <another> so the test with -profile high did not work?
[03:32:10 CEST] <aiena1> correct
[03:35:07 CEST] <another> ffmpeg -i "CROQUIS CAFE_ Art Models for Drawing, No. 366 (New Model)-original.mp4" -c:v libx264 -s hd1080 -profile:v high -level 4.0 -c:a copy -map 0:v:0 -map 0:a -map_metadata:g -1 -movflags faststart -t 20 366.1080.20sec.mp4
[03:35:34 CEST] <iive> gtg, good luck.
[03:36:44 CEST] <aiena1> another: 1 sec trying
[03:37:29 CEST] <aiena1> another: thank you so much for your patience and time.
[03:37:39 CEST] <another> did it work?
[03:37:45 CEST] <aiena1> ok testing this on the TV just finished running
[03:39:02 CEST] <aiena1> another: no it did not.
[03:39:11 CEST] <aiena1> I noticed the encoding setting in mediainfo
[03:39:22 CEST] <aiena1> show very different flags in your files and out.mp4
[03:40:28 CEST] <aiena1> but out.mp4 is also @L4
[03:41:34 CEST] <aiena1> another: http://paste.opensuse.org/view/raw/45212358 mediainfo of your new command
[03:41:49 CEST] <aiena1> http://paste.opensuse.org/view/raw/15473520 is the out,mp4 that works on the TV
[03:43:37 CEST] <aiena1> another: hmm no
[03:44:10 CEST] <another> hmm
[03:44:32 CEST] <another> does it play on your computer?
[03:45:52 CEST] <aiena1> another: yes
[03:46:04 CEST] <another> with audio?
[03:46:07 CEST] <aiena1> yes
[03:46:42 CEST] <aiena1> on the TV it just says "unsupported file"
[03:46:57 CEST] <aiena1> its hard because the TV wont help you debug anything
[03:47:41 CEST] <another> yep, these tvs are not really helpfull
[03:48:54 CEST] <another> the only thing that's "different" is the audio
[03:49:04 CEST] <another> ffmpeg -i "CROQUIS CAFE_ Art Models for Drawing, No. 366 (New Model)-original.mp4" -c:v libx264 -s hd1080 -profile:v high -level:v 4.0 -c:a copy -map 0:v:0 -map_metadata:g -1 -movflags faststart -t 20 366.1080.20sec.mp4
[03:49:13 CEST] <another> arg
[03:49:18 CEST] <another> ffmpeg -i "CROQUIS CAFE_ Art Models for Drawing, No. 366 (New Model)-original.mp4" -c:v libx264 -s hd1080 -profile:v high -level:v 4.0 -c:a copy -map 0:v:0 -map_metadata:g -1 -an -movflags faststart -t 20 366.1080.20sec.mp4
[03:49:20 CEST] <aiena1> typo
[03:49:29 CEST] <another> yes
[03:49:39 CEST] <another> here's the same without audio
[03:49:39 CEST] <aiena1> ok just running this
[03:51:00 CEST] <aiena1> ok this clips plays without sound on the PC testing on TV
[03:53:18 CEST] <aiena1> another: hold up I goofed up
[03:53:27 CEST] <aiena1> out.mp4 does not play another one does
[03:53:40 CEST] <aiena1> outTV366.mp4 does play one sec
[03:53:52 CEST] <aiena1> giving you that mediainfo
[03:53:59 CEST] <aiena1> all these test got me confused
[03:54:03 CEST] <another> alrigth
[03:55:00 CEST] <aiena1> another: http://paste.opensuse.org/view/raw/93283508 is the one where audio and video work on the TV
[03:56:56 CEST] <another> ok. so it's mp3 that works
[03:57:07 CEST] <another> what about just the video?
[03:58:04 CEST] <aiena1> i didnt get you
[03:59:23 CEST] <another> the last encode
[03:59:38 CEST] <another> you where just trying to test
[03:59:48 CEST] <aiena1> the one with no audio
[03:59:51 CEST] <another> yes
[04:00:09 CEST] <aiena1> Yes that one the TV says "Unsupported file" and does not play it.
[04:00:21 CEST] <another> wtf?
[04:00:27 CEST] <aiena1> Exactly
[04:00:37 CEST] <aiena1> the mediainfo says their identical
[04:01:00 CEST] <aiena1> I really dont know what magic sauce VLC is doing
[04:01:18 CEST] <aiena1> which is making the video play.
[04:02:06 CEST] <aiena1> another: let me make a trim of the outTV366
[04:02:13 CEST] <aiena1> .mp4 file
[04:02:23 CEST] <aiena1> if I give you the first 20 seconds could that help
[04:02:32 CEST] <another> maybe
[04:02:58 CEST] <aiena1> Ok just give me some time to cleanup this folder
[04:03:09 CEST] <aiena1> I am removing out.mp4 which does not work
[04:03:21 CEST] <another> the other difference i see is constant bitrate vs. variable
[04:04:26 CEST] <aiena1> for video?
[04:05:05 CEST] <aiena1> another: how do I make the dumps
[04:05:42 CEST] <aiena1> will `ffmpeg -i in.pmp4 -c:a copy -c:v copy out.mp4` make a proper trim
[04:05:54 CEST] <aiena1> I dont know about the mov thing and fastart
[04:06:03 CEST] <aiena1> *in.mp4
[04:09:15 CEST] <another> ffmpeg -i "CROQUIS CAFE_ Art Models for Drawing, No. 366 (New Model)-original.mp4" -c:v libx264 -s hd1080 -profile:v high -level:v 4.0 -b:v 3500k -c:a copy -map 0:v:0 -map_metadata:g -1 -an -movflags faststart -t 20 366.1080.3500k.20sec.mp4
[04:09:35 CEST] <another> this is just video with average bitrate
[04:10:40 CEST] <aiena1> ok testing
[04:14:31 CEST] <aiena1> angular_mike: CBR ist working
[04:14:52 CEST] <aiena1> another: I tried to shorten the files which do work to send them over as a sample to you
[04:15:02 CEST] <aiena1> but the command I though would work errors out
[04:15:16 CEST] <aiena1> ffmpeg -i "TV366.mp4" -c:a copy -c:v copy -t 20 TV366_20sec.mp4
[04:15:59 CEST] <another> don't worry about it
[04:16:14 CEST] <another> so it worked? with average bitrate?
[04:16:18 CEST] <aiena1> no
[04:16:24 CEST] <aiena1> "Unsupported file" error
[04:16:28 CEST] <aiena1> on the TV
[04:16:51 CEST] <another> what kind of tv is it?
[04:17:00 CEST] <aiena1> It is a VU LCD tv
[04:17:03 CEST] <aiena1> non Android
[04:18:24 CEST] <aiena1> https://www.amazon.in/VU40D6575-102-inches-Full-Black/dp/B01DP34J32 one
[04:22:06 CEST] <aiena1> another: I guess I need to do the VLC procedure and then the final step in ffmpeg
[04:22:34 CEST] <aiena1> I think if you can find out ehat the VLC "video for 1080p TV/device" does
[04:22:50 CEST] <aiena1> then you can solve the video not rendering puzzle
[04:24:12 CEST] <aiena1> i sm asking #vlc
[04:32:45 CEST] <another> aiena1: found some vague spec sheets which say it supports matroska as well
[04:33:15 CEST] <another> maybe we try that :)
[04:33:17 CEST] <another> ffmpeg -i "CROQUIS CAFE_ Art Models for Drawing, No. 366 (New Model)-original.mp4" -c:v libx264 -s hd1080 -profile:v high -level:v 4.0 -map 0:v:0 -an -t 20 366.1080p.20sec.mkv
[04:36:32 CEST] <ossifrage> Hmm, I wonder why with mpv the h.264 (over rtp/udp) plays back fine, but ffplay seems to miss packets and drop frames
[04:48:07 CEST] <another> hmm i've got an idea aiena1
[04:57:51 CEST] <another> ffmpeg -i "CROQUIS CAFE_ Art Models for Drawing, No. 366 (New Model)-original.mp4" -c:v libx264 -s hd1080 -profile:v high -level:v 4.0 -c:a copy -map 0:v:0 -map_metadata:g -1 -an -movflags faststart -write_tmcd off -t 20 366.1080p.notmcd.20sec.mp4
[04:58:26 CEST] <CoJaBo> Anyone ever tried to normalize audio with ffmpeg, or ffmpeg-normalize? Trying with default settings results in a file that's barely audible, but nothing clearly explains what to adjust to turn it up..
[04:58:55 CEST] <another> aiena1: ^^
[05:42:16 CEST] <another> aiena: i suspect the problem to be the timecode stream
[05:43:20 CEST] <another> aiena: anyway, gotta go. if it works without tmcd here is what i suggest to actually use:
[05:43:28 CEST] <another> ffmpeg -i "CROQUIS CAFE_ Art Models for Drawing, No. 366 (New Model)-original.mp4" -map 0:v:0 -map 0:a -map_metadata:g -1 -vf scale=-2:1080 -c:v libx264 -profile:v high -level:v 4.0 -crf:v 18 -preset:v medium -c:a copy -movflags faststart -write_tmcd off -t 20 366.1080p.20sec.mp4
[05:43:50 CEST] <another> if that works, remove the -t 20 and encode the whole file
[10:54:00 CEST] <nitrxgen> is it possible to use ffmpeg to scale down a video but use the loss of pixels to improve brightness? i have a video shot in low light and its 1080p, i can sacrifice the resolution if it means an "improved night vision" for lack of better words
[10:55:02 CEST] <nitrxgen> as in, to use neighbouring pixels to improve brightness increase, etc etc, apologies if thats not how it works
[10:56:44 CEST] <pzich> you could maybe use something like the geq to add a group of pixels together instead of averaging them, but that's not how scaling works in general
[10:56:47 CEST] <pzich> https://ffmpeg.org/ffmpeg-filters.html#geq
[11:39:40 CEST] <nitrxgen> pzich, ill see what i can find thank you
[13:57:22 CEST] <sloth> chicken tendie flavoured tide pods
[14:41:21 CEST] <superware> I've implemented a video player with FFmpeg libav, to I delay between frames (~33ms for example) I use SleepEx in Windows, but this is CPU intense, what is a better solution?
[16:11:11 CEST] <keegans> im having some trouble with the HLS impl, specficially when i use it not all of the mp4 files are downloaded and then processed
[16:11:21 CEST] <keegans> it seems that it gives me the first file (about 20s of audio data)
[16:11:37 CEST] <keegans> and then right after it is dine processing it it downloads the remaining files and then exits
[16:11:47 CEST] <keegans> but they are never passed to my handler
[16:44:00 CEST] <Hello71> nitrxgen: no, that is at the hardware level
[00:00:00 CEST] --- Mon May 13 2019


More information about the Ffmpeg-devel-irc mailing list