Re: [FFmpeg-user] upscaling a single DASH segment

2017-05-22 Thread Steven Liu
2017-05-22 17:26 GMT+08:00 Qian Li :

> Hello,
>
>
> I am a newbie of FFmpeg. I am trying to upscale a single video segment
> (downloaded by a DASH client from a DASH server) to a higher resolution. I
> tried the copy and scale filters, but both of them gave the following
> errors:
>
>
> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x55f1d6eeb8e0] could not find corresponding
> track id 1
> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x55f1d6eeb8e0] could not find corresponding
> trex
> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x55f1d6eeb8e0] error reading header
> BigBuckBunny_4s1.m4s: Invalid data found when processing input
>
> The following is the meta data of BigBuckBunny_4s1.m4s generated by mp4dump
>
> ?[styp] size=8+16
> [sidx] size=12+32
>   reference_ID = 1
>   timescale = 96
>   earliest_presentation_time = 0
>   first_offset = 0
> [moof] size=8+464
>   [mfhd] size=12+4
> sequence number = 1
>   [traf] size=8+440
> [tfhd] size=12+4, flags=2
>   track ID = 1
> [tfdt] size=12+4
>   base media decode time = 0
> [trun] size=12+396, flags=205
>   sample count = 96
>   data offset = 480
>   first sample flags = 0
> [mdat] size=8+21112
>
> The following is the meta data of the init.mp4 file
> [ftyp] size=8+20
>   major_brand = iso5
>   minor_version = 1
>   compatible_brand = avc1
>   compatible_brand = dash
>   compatible_brand = iso5
> [free] size=8+50
> [moov] size=8+783
> ...
>
> Could you give me a hint on what is wrong and how to upscale a single DASH
> segment?
>

which module do you using? ffmpeg dash muxer? or other?

>
> Thanks in advance!
>
> Best regards,
> Qian
>
>
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Images to video under Windows

2017-05-22 Thread Bouke / VideoToolShed
> On 22 May 2017, at 17:36, Wolfgang Hugemann  wrote:
> 
> Hey,
> 
> I have a bunch of images that I want to convert into a video. These are, 
> however, not numbered consecuitively (not like 001.jpg, 002.jpg, ...).
> 
> Well, I could make a copy of each and rename them in such a pattern, but is 
> there a more elegant way to perform the job? File name globbing is obviously 
> not supported by the Windows version. How about piping?

Hi Wolfgang,
Piping is a bad idea, it craps out after some 40 images in my experience. (Pipe 
to pipe to pipe to….)
What about creating a Cat.txt file first, and use that as input? That works for 
me just fine.
(Although the cat.txt is done outside FFmpeg…)

hth,

Bouke


> Wolfgang Hugemann
> ___
> 

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Images to video under Windows

2017-05-22 Thread Gyan
On Mon, May 22, 2017 at 9:06 PM, Wolfgang Hugemann  wrote:


> How about piping?
>

Pipiing or the concat demuxer can work.

e.g.   cat *.jpg | ffmpeg -f image2pipe -framerate 25 -i - out.mp4

See https://stackoverflow.com/questions/40870357/input-parameters-to-ffmpeg
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-user] Images to video under Windows

2017-05-22 Thread Wolfgang Hugemann
Hey,

I have a bunch of images that I want to convert into a video. These are, 
however, not numbered consecuitively (not like 001.jpg, 002.jpg, ...).

Well, I could make a copy of each and rename them in such a pattern, but is 
there a more elegant way to perform the job? File name globbing is obviously 
not supported by the Windows version. How about piping?

Wolfgang Hugemann
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Create an AAC stream matching the Core Media Audio packet format / priming etc?

2017-05-22 Thread Mark Burton
On 15 Apr 2017, at 09:22, Christian Ebert  wrote:
> Somewhat counterintuitive, but you never know:
> 
> -filter:a aresample=async=1:first_pts=0,asetpts=PTS-STARTPTS+1024
> 
> combined with the -t incantation.

Hi Christian,

It seems this issue is not going to garner much attention which is a little 
disheartening. I can show how to reproduce it and would love to be able to help.

So I looked back at your above -af and realised that the 1024 should actually 
be 2112 which is Apple’s chosen fixed encoding delay.
https://developer.apple.com/library/content/documentation/QuickTime/QTFF/QTFFAppenG/QTFFAppenG.html
 


-filter:a aresample=async=1:first_pts=0,asetpts=PTS-STARTPTS+2112

...brings the native aac encoder almost perfectly into sync when played by a 
Quicktime based decoder. There is a tiny discrepancy, but its 99.9% better than 
without the -af line.

Further to this, using the AudioToolbox AAC encoder (aac_at) available in 
ffmpeg on macOS only, with the above -af line, this discrepancy is gone and the 
encoded file is a perfect sync match for the original source file.

The outstanding issue is the remaining samples for the file which are not being 
trimmed, so the clip runs past the end of the picture and we get a black frame. 
Perhaps the remaining samples are not being flagged in a way that the decoder 
would expect, I’m really not sure.

I can use the '-t' command with the value for ('total duration of source' - 
‘0.041') to trim the end, but its has issues too.
In my case of 24fps source, 0.041 is the duration of 1 frame. Doing this 
shortens the overlong audio stream, but it removes the last frame of audio and 
in some cases does strange things with the last two frames of audio. So its not 
really usable in a production environment. Without subtracting 0.041, the audio 
is still overlong.

So in short, this is super close to a solution for Quicktime environments, but 
still with one big issue. Hmm.

Best
Mark


___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-user] upscaling a single DASH segment

2017-05-22 Thread Qian Li
Hello,


I am a newbie of FFmpeg. I am trying to upscale a single video segment 
(downloaded by a DASH client from a DASH server) to a higher resolution. I 
tried the copy and scale filters, but both of them gave the following errors:


[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55f1d6eeb8e0] could not find corresponding track 
id 1
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55f1d6eeb8e0] could not find corresponding trex
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55f1d6eeb8e0] error reading header
BigBuckBunny_4s1.m4s: Invalid data found when processing input

The following is the meta data of BigBuckBunny_4s1.m4s generated by mp4dump

?[styp] size=8+16
[sidx] size=12+32
  reference_ID = 1
  timescale = 96
  earliest_presentation_time = 0
  first_offset = 0
[moof] size=8+464
  [mfhd] size=12+4
sequence number = 1
  [traf] size=8+440
[tfhd] size=12+4, flags=2
  track ID = 1
[tfdt] size=12+4
  base media decode time = 0
[trun] size=12+396, flags=205
  sample count = 96
  data offset = 480
  first sample flags = 0
[mdat] size=8+21112

The following is the meta data of the init.mp4 file
[ftyp] size=8+20
  major_brand = iso5
  minor_version = 1
  compatible_brand = avc1
  compatible_brand = dash
  compatible_brand = iso5
[free] size=8+50
[moov] size=8+783
...

Could you give me a hint on what is wrong and how to upscale a single DASH 
segment?

Thanks in advance!

Best regards,
Qian


___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".