[FFmpeg-user] upscaling a single DASH segment

Qian Li qial at ifi.uio.no
Tue May 23 13:12:59 EEST 2017


On 2017-05-23 04:09, Steven Liu wrote:
> 2017-05-22 17:26 GMT+08:00 Qian Li <qial at ifi.uio.no>:
> 
>> 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=20000
>>       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?

Hi,

Thank you very much for the reply.

I installed ffmpeg 3.3-1~16.04.york1 for Ubuntu 16.04 from PPA. I think 
it includes all the libraries and command line tools.

I concatenated the initialization file init.mp4 with one of the segments 
seg1.m4s to new_seg.mp4 using cat. With the help of mp4dump, I could see 
that all the required information (e.g. [trak] and [trex]) presented in 
new_seg.mp4.

However, I still got the same errors when I was upconverting 
new_seg.mp4. The following is the errors returned:

command: ffmpeg -i new_seg.mp4 -vf scale=1920:1080 seg_1080.mp4

errors:
ffmpeg version 3.3-1~16.04.york1 Copyright (c) 2000-2017 the FFmpeg 
developers
   built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 20160609
   configuration: --prefix=/usr --extra-version='1~16.04.york1' 
--toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu 
--incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping 
--enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa 
--enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca 
--enable-libcdio --enable-libflite --enable-libfontconfig 
--enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm 
--enable-libmp3lame --enable-libopenjpeg --enable-libopenmpt 
--enable-libopus --enable-libpulse --enable-librubberband 
--enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex 
--enable-libssh --enable-libtheora --enable-libtwolame 
--enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp 
--enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi 
--enable-omx --enable-openal --enable-opengl --enable-sdl2 
--enable-libdc1394 --enable-libiec61883 --enable-chromaprint 
--enable-frei0r --enable-libopencv --enable-libx264 --enable-shared

   WARNING: library configuration mismatch

   avcodec     configuration: --prefix=/usr 
--extra-version='1~16.04.york1' --toolchain=hardened 
--libdir=/usr/lib/x86_64-linux-gnu 
--incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping 
--enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa 
--enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca 
--enable-libcdio --enable-libflite --enable-libfontconfig 
--enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm 
--enable-libmp3lame --enable-libopenjpeg --enable-libopenmpt 
--enable-libopus --enable-libpulse --enable-librubberband 
--enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex 
--enable-libssh --enable-libtheora --enable-libtwolame 
--enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp 
--enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi 
--enable-omx --enable-openal --enable-opengl --enable-sdl2 
--enable-libdc1394 --enable-libiec61883 --enable-chromaprint 
--enable-frei0r --enable-libopencv --enable-libx264 --enable-shared 
--enable-version3 --disable-doc --disable-programs 
--enable-libopencore_amrnb --enable-libopencore_amrwb 
--enable-libtesseract --enable-libvo_amrwbenc --enable-netcdf
   libavutil      55. 58.100 / 55. 58.100
   libavcodec     57. 89.100 / 57. 89.100
   libavformat    57. 71.100 / 57. 71.100
   libavdevice    57.  6.100 / 57.  6.100
   libavfilter     6. 82.100 /  6. 82.100
   libavresample   3.  5.  0 /  3.  5.  0
   libswscale      4.  6.100 /  4.  6.100
   libswresample   2.  7.100 /  2.  7.100
   libpostproc    54.  5.100 / 54.  5.100

[mov,mp4,m4a,3gp,3g2,mj2 @ 0x560c39cfc380] could not find corresponding 
trex
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x560c39cfc380] error reading header
seg1.mp4: Invalid data found when processing input

What can be wrong?

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



More information about the ffmpeg-user mailing list