[FFmpeg-user] stream copy video / re-enc audio

Mike F paziu at yahoo.com
Sun Sep 29 17:16:51 CEST 2013


> 
> Is the problem also reproducible with -c:a aac ?
> 
> Please do not top-post here, Carl Eugen
> 

Hello,

yes, it is the same issue with -c:a aac:


# ffmpeg -y -i c61,avi -c:a aac -b:a 128k -ac 2 -threads 12 -c:v copy -map 0:0 -map 0:1  -c:s copy -strict experimental c61.mkv -v debug
ffmpeg version 2.0 Copyright (c) 2000-2013 the FFmpeg developers
  built on Aug  6 2013 10:47:57 with gcc 4.5.2 (Gentoo 4.5.2 p1.1, pie-0.4.5)
  configuration: --enable-libx264 --enable-libxvid --enable-libfaac --enable-libmp3lame --enable-libvorbis --enable-gpl --enable-nonfree --enable-libtheora --enable-x11grab --enable-vdpau --enable-libfdk-aac --enable-libass --enable-libvpx --enable-libaacplus
  libavutil      52. 38.100 / 52. 38.100
  libavcodec     55. 18.102 / 55. 18.102
  libavformat    55. 12.100 / 55. 12.100
  libavdevice    55.  3.100 / 55.  3.100
  libavfilter     3. 79.101 /  3. 79.101
  libswscale      2.  3.100 /  2.  3.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  3.100 / 52.  3.100
Splitting the commandline.
Reading option '-y' ... matched as option 'y' (overwrite output files) with argument '1'.                                                                                   
Reading option '-i' ... matched as input file with argument 'c61,avi'.                                                                                                      
Reading option '-c:a' ... matched as option 'c' (codec name) with argument 'aac'.                                                                                           
Reading option '-b:a' ... matched as option 'b' (video bitrate (please use -b:v)) with argument '128k'.                                                                     
Reading option '-ac' ... matched as option 'ac' (set number of audio channels) with argument '2'.                                                                           
Reading option '-threads' ... matched as AVOption 'threads' with argument '12'.                                                                                             
Reading option '-c:v' ... matched as option 'c' (codec name) with argument 'copy'.                                                                                          
Reading option '-map' ... matched as option 'map' (set input stream mapping) with argument '0:0'.                                                                           
Reading option '-map' ... matched as option 'map' (set input stream mapping) with argument '0:1'.                                                                           
Reading option '-c:s' ... matched as option 'c' (codec name) with argument 'copy'.                                                                                          
Reading option '-strict' ... matched as AVOption 'strict' with argument 'experimental'.                                                                                     
Reading option 'c61.mkv' ... matched as output file.                                                                                                                        
Reading option '-v' ... matched as option 'v' (set logging level) with argument 'debug'.                                                                                    
Finished splitting the commandline.                                                                                                                                         
Parsing a group of options: global .                                                                                                                                        
Applying option y (overwrite output files) with argument 1.                                                                                                                 
Applying option v (set logging level) with argument debug.                                                                                                                  
Successfully parsed a group of options.                                                                                                                                     
Parsing a group of options: input file c61,avi.                                                                                                                             
Successfully parsed a group of options.                                                                                                                                     
Opening an input file: c61,avi.                                                                                                                                             
[avi @ 0x254bb80] Format avi probed with size=2048 and score=100                                                                                                            
[avi @ 0x254c120] use odml:1                                                                                                                                                
[avi @ 0x254bb80] File position before avformat_find_stream_info() is 65536                                                                                                 
[avi @ 0x254bb80] first_dts 0 not matching first dts 3584 in the queue                                                                                                      
[avi @ 0x254bb80] first_dts 0 not matching first dts 7168 in the queue                                                                                                      
[mpeg4 @ 0x254c540] Invalid and inefficient vfw-avi packed B frames detected                                                                                                
[avi @ 0x254bb80] All info found                                                                                                                                            
[avi @ 0x254bb80] File position after avformat_find_stream_info() is 78764                                                                                                  
Input #0, avi, from 'c61,avi':                                                                                                                                              
  Metadata:
    encoder         : AVI-Mux GUI 1.17.7, Aug  8 2006  20:59:17
    JUNK            : 
  Duration: 01:42:42.12, start: 0.000000, bitrate: 2049 kb/s
    Stream #0:0, 1, 104271/2500000: Video: mpeg4 (Advanced Simple Profile) (XVID / 0x44495658), yuv420p, 720x304 [SAR 1:1 DAR 45:19], 911/21845, 23.98 tbr, 23.98 tbn, 23.98 tbc
    Stream #0:1, 6, 1/56000: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, 5.1(side), fltp, 448 kb/s
    Metadata:
      title           : c61
Successfully opened the file.
Parsing a group of options: output file c61.mkv.                                                                                                                            
Applying option c:a (codec name) with argument aac.                                                                                                                         
Applying option b:a (video bitrate (please use -b:v)) with argument 128k.                                                                                                   
Applying option ac (set number of audio channels) with argument 2.                                                                                                          
Applying option c:v (codec name) with argument copy.                                                                                                                        
Applying option map (set input stream mapping) with argument 0:0.                                                                                                           
Applying option map (set input stream mapping) with argument 0:1.                                                                                                           
Applying option c:s (codec name) with argument copy.                                                                                                                        
Successfully parsed a group of options.                                                                                                                                     
Opening an output file: c61.mkv.                                                                                                                                            
Successfully opened the file.                                                                                                                                               
detected 8 logical cores                                                                                                                                                    
[graph 0 input from stream 0:1 @ 0x2552380] Setting 'time_base' to value '1/48000'                                                                                          
[graph 0 input from stream 0:1 @ 0x2552380] Setting 'sample_rate' to value '48000'                                                                                          
[graph 0 input from stream 0:1 @ 0x2552380] Setting 'sample_fmt' to value 'fltp'                                                                                            
[graph 0 input from stream 0:1 @ 0x2552380] Setting 'channel_layout' to value '0x60f'                                                                                       
[graph 0 input from stream 0:1 @ 0x2552380] tb:1/48000 samplefmt:fltp samplerate:48000 chlayout:0x60f                                                                       
[audio format for output stream 0:1 @ 0x2583520] Setting 'sample_fmts' to value 'fltp'                                                                                      
[audio format for output stream 0:1 @ 0x2583520] Setting 'sample_rates' to value '96000|88200|64000|48000|44100|32000|24000|22050|16000|12000|11025|8000|7350'              
[audio format for output stream 0:1 @ 0x2583520] Setting 'channel_layouts' to value '0x3'                                                                                   
[audio format for output stream 0:1 @ 0x2583520] auto-inserting filter 'auto-inserted resampler 0' between the filter 'Parsed_anull_0' and the filter 'audio format for output stream 0:1'                                                                                                                                                              
[AVFilterGraph @ 0x2580d00] query_formats: 4 queried, 9 merged, 3 already done, 0 delayed                                                                                   
1.000000 0.000000 0.707107 0.000000 0.707107 0.000000                                                                                                                       
0.000000 1.000000 0.707107 0.000000 0.000000 0.707107                                                                                                                       
[auto-inserted resampler 0 @ 0x2544680] ch:6 chl:5.1(side) fmt:fltp r:48000Hz -> ch:2 chl:stereo fmt:fltp r:48000Hz                                                         
Output #0, matroska, to 'c61.mkv':                                                                                                                                          
  Metadata:
    JUNK            : 
    encoder         : Lavf55.12.100
    Stream #0:0, 0, 1/1000: Video: mpeg4 (XVID / 0x44495658), yuv420p, 720x304 [SAR 1:1 DAR 45:19], 104271/2500000, q=2-31, 1k tbn, 23.98 tbc
    Stream #0:1, 0, 1/1000: Audio: aac ([255][0][0][0] / 0x00FF), 48000 Hz, stereo, fltp, 128 kb/s
    Metadata:
      title           : c61
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (ac3 -> aac)
Press [q] to stop, [?] for help
[matroska @ 0x25524c0] Writing block at offset 728, size 34, pts 0, dts 0, duration 21, flags 128
[matroska @ 0x25524c0] Can't write packet with unknown timestamp                                                                                                            
av_interleaved_write_frame(): Invalid argument                                                                                                                              
[AVIOContext @ 0x25808a0] Statistics: 0 seeks, 2 writeouts                                                                                                                  
[AVIOContext @ 0x2554180] Statistics: 3211616 bytes read, 49 seeks 


Thanks,

Mike


More information about the ffmpeg-user mailing list